Softanza
DémarrerEnglish
Softanza
La bibliothèque se documente elle-même · Programmation système

stzPlatform

50 méthodes propres · 3 formes avec extensions, rangées sous leur méthode

la source: base/platform/stzPlatform.ring(s'ouvre dans un nouvel onglet) · Toutes les classes · La référence du domaine : Programmation système

Sous chaque méthode, ses extensions (Q CS XT Z ZZ IB W U) : en gras et cochée, elle existe ; barrée, elle n'existe pas. Les extensions et leur sens

Aucune méthode de cette classe n'est exécutée sur cette page : la classe touche aux fichiers, au réseau, aux processus, à l'horloge, au hasard ou au son, et un exemple exécuté ici ne serait que l'exemple de ses effets. Chaque méthode porte l'explication que la bibliothèque donne d'elle-même.

Méthode
Explication, telle que la source la porte
init
(sans commentaire dans la source : le nom se lit comme une phrase) initaucune extension
Log
the structured log of the platform's Build() + Deploy() phases -- queryable and renderable: oPlat.Log().EntriesOfLevel(:error), oPlat.Log().AsJson().aucune extension
Name_
(sans commentaire dans la source : le nom se lit comme une phrase) name_aucune extension
Why
(sans commentaire dans la source : le nom se lit comme une phrase) whyaucune extension
SetProfile
A stzPlatformProfile DESCRIBES the solution -- its constituents (a server, a superapp, an app, ...) and their target systems. The platform OWNS one and drives its lifecycle: Build() the platform and its constituents, THEN Deploy() them -- two separate, ordered operations. (SetProfile snapshots the profile, so configure it fully first -- the aliasing doctrine.)aucune extension
Profile
(sans commentaire dans la source : le nom se lit comme une phrase) profileaucune extension
HasProfile
(sans commentaire dans la source : le nom se lit comme une phrase) has profileaucune extension
Build
BUILD the platform and its constituents. Refuses an unsound solution (LAW 3). Must precede Deploy().QCSXTZZZIBWU
IsBuilt
(sans commentaire dans la source : le nom se lit comme une phrase) is builtaucune extension
Deploy
DEPLOY the built parts to their target systems. Refuses if the platform was not built first -- Build() and Deploy() are separate. For each part, the deploy-time LOWERING bridge turns its rehearsed (up-enable) feature ops into a real target ARTIFACT (firmware source for an MCU, a manifest otherwise) -- the flash/upload of that artifact to the device is the one remaining external step.QCSXTZZZIBWU
DeployAs
Governed deploy: deployment is an EFFECTFUL crossing, so an actor that cannot effect reality (an LLM) may PROPOSE it but not perform it (Phase 4).aucune extension
IsDeployed
(sans commentaire dans la source : le nom se lit comme une phrase) is deployedaucune extension
BuildReport
(sans commentaire dans la source : le nom se lit comme une phrase) build reportaucune extension
LanguageOf
the language a part was compiled in (from the build report).aucune extension
BuildCommandFor
the stzBuilder command that compiles a part (from the build report).aucune extension
DeployReport
(sans commentaire dans la source : le nom se lit comme une phrase) deploy reportaucune extension
ArtifactFor
The lowered artifact (firmware / manifest) for a part, after Deploy().aucune extension
Parts
delegating reads into the owned profileaucune extension
NumberOfParts
(sans commentaire dans la source : le nom se lit comme une phrase) number of partsaucune extension
App
(sans commentaire dans la source : le nom se lit comme une phrase) appaucune extension
DevelopmentSystem
(sans commentaire dans la source : le nom se lit comme une phrase) development systemaucune extension
SetWorld
== 1. GENERATION ======================================================== SET the world this platform envelopes -- by HARVESTING its declarations into the platform's own records, right now. It does NOT hold the world: Haro copies an object into an attribute, so a held stzApp would be a dead snapshot the moment the caller touched it (see the aliasing note in the header). Call this AFTER the world is declared. The world is ASKED through its own accessors -- a platform never reaches into another object's attributes. (A constellation ADDs many worlds; a platform SETs its one.)aucune extension
Generate
Generate(:all) or Generate(:web / :desktop / :mobile). Writes REAL shell files (one per declared Reach) and returns the list of written paths. Raises when there is no world, no reach, or an unknown reach surface (LAW 3: refuse, never stub).aucune extension
GovernedBy
== 2. THE CAPABILITY SEAM ============================================== Wire the (fully configured, sealed) governance regime. Declares the platform's capability risk tiers into it when undeclared. the NAME of the object that governs this platform ("" if none)aucune extension
SetGovernedBy
(sans commentaire dans la source : le nom se lit comme une phrase) set governed byaucune extension
AddCapability
Request a capability for the attached world: oPlat.AddCapabilityQ(:camera).SetPurposes([ :scan-dish-photo ])QCSXTZZZIBWU
SetPurposes
(sans commentaire dans la source : le nom se lit comme une phrase) set purposesaucune extension
Granted
The governed decision: the WORLD is the actor, "use-<cap>" the action; permission CAN + authority SHOULD vs the risk tier.aucune extension
Admissions
(sans commentaire dans la source : le nom se lit comme une phrase) admissionsaucune extension
OpenCommonsOn
== 3. THE COMMONS RUNTIME ============================================== Identity / sessions / messaging / stores over an OPEN stzDatabase. (The stored object shares the engine handle -- live; keep the original open while the platform runs.)aucune extension
SetKdfRounds
Tune the KDF cost. Default 100k; lower ONLY in tests. Must be set before RegisterIdentity (a stored hash is bound to the rounds used).aucune extension
KdfRounds
(sans commentaire dans la source : le nom se lit comme une phrase) kdf roundsaucune extension
RegisterIdentity
KDF-BACKED IDENTITY (the engine KDF closes the plaintext gap): each identity stores a per-user random SALT + a PBKDF2-HMAC-SHA256 hash of the secret over @nKdfRounds iterations -- never the secret itself.aucune extension
OpenSession
Returns a session token, or "" (Why() explains) on refusal. The secret is verified by re-deriving with the stored salt + rounds and a CONSTANT-TIME compare (StzEngineCryptoConstEqual).aucune extension
SessionUser
(sans commentaire dans la source : le nom se lit comme une phrase) session useraucune extension
PostMessage
(sans commentaire dans la source : le nom se lit comme une phrase) post messageaucune extension
Inbox
(sans commentaire dans la source : le nom se lit comme une phrase) inboxaucune extension
StorePut
(sans commentaire dans la source : le nom se lit comme une phrase) store putaucune extension
StoreGet
(sans commentaire dans la source : le nom se lit comme une phrase) store getaucune extension
ServeBody
== 4. THE NETWORKED BODY =============================================== Serve the harvested world over the R7 reactor host: GET /world -> the world (name, things, screens) as json GET /thing?name=x -> one thing's fields nPort 0 = ephemeral; the bound port via HostQ().Port().aucune extension
HostQ
The serving host (a chainable stz object -- Q-convention). NB: an accessor returns a handle-sharing copy; use it for Port()/ServeOne.aucune extension
ServeFor
(sans commentaire dans la source : le nom se lit comme une phrase) serve foraucune extension
ServeOne
(sans commentaire dans la source : le nom se lit comme une phrase) serve oneaucune extension
StopServing
(sans commentaire dans la source : le nom se lit comme une phrase) stop servingaucune extension
PushWorld
== 5. REGISTRY + ENFORCEMENT ===========================================aucune extension
RetireWorld
(sans commentaire dans la source : le nom se lit comme une phrase) retire worldaucune extension
IsActiveWorld
(sans commentaire dans la source : le nom se lit comme une phrase) is active worldaucune extension
Worlds
(sans commentaire dans la source : le nom se lit comme une phrase) worldsaucune extension
Bond
Declare a norm-bearing bond: from-world may attempt an action on to-world (still subject to governance at call time).aucune extension
CallAcross
The enforcement seam: a cross-world call goes through ONLY when (a) both worlds are active in the registry, (b) a bond declares the action, and (c) governance lets the calling world proceed. Returns TRUE/FALSE; Why() explains every refusal.aucune extension