@noopolis/daimon 0.1.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +275 -51
- package/dist/contracts/attentionContract.d.ts +142 -0
- package/dist/contracts/attentionContract.d.ts.map +1 -0
- package/dist/contracts/attentionContract.js +21 -0
- package/dist/contracts/canonicalJson.d.ts +3 -0
- package/dist/contracts/canonicalJson.d.ts.map +1 -0
- package/dist/contracts/canonicalJson.js +54 -0
- package/dist/contracts/grokBrokerTaskClock.d.ts +18 -0
- package/dist/contracts/grokBrokerTaskClock.d.ts.map +1 -0
- package/dist/contracts/grokBrokerTaskClock.js +16 -0
- package/dist/contracts/grokWorkerContract.d.ts +74 -0
- package/dist/contracts/grokWorkerContract.d.ts.map +1 -0
- package/dist/contracts/grokWorkerContract.js +88 -0
- package/dist/contracts/organizationRuntimeContract.d.ts +841 -0
- package/dist/contracts/organizationRuntimeContract.d.ts.map +1 -0
- package/dist/contracts/organizationRuntimeContract.js +123 -0
- package/dist/contracts/runtimeContractManifest.d.ts +1822 -0
- package/dist/contracts/runtimeContractManifest.d.ts.map +1 -0
- package/dist/contracts/runtimeContractManifest.js +206 -0
- package/dist/contracts/shellEnvironmentPolicy.d.ts +3 -0
- package/dist/contracts/shellEnvironmentPolicy.d.ts.map +1 -0
- package/dist/contracts/shellEnvironmentPolicy.js +5 -0
- package/dist/contracts/wakeMomentContract.d.ts +61 -0
- package/dist/contracts/wakeMomentContract.d.ts.map +1 -0
- package/dist/contracts/wakeMomentContract.js +27 -0
- package/dist/core/credentialRedaction.d.ts +4 -0
- package/dist/core/credentialRedaction.d.ts.map +1 -0
- package/dist/core/credentialRedaction.js +28 -0
- package/dist/core/types.d.ts +2 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/examples/jungianPlayAgent.d.ts +1 -0
- package/dist/examples/jungianPlayAgent.d.ts.map +1 -1
- package/dist/examples/jungianPlayAgent.js +6 -2
- package/dist/mcp/toolServer.d.ts +19 -2
- package/dist/mcp/toolServer.d.ts.map +1 -1
- package/dist/mcp/toolServer.js +57 -17
- package/dist/observability/causalEvents.d.ts +6 -6
- package/dist/observability/causalEvents.d.ts.map +1 -1
- package/dist/observability/causalEvents.js +107 -19
- package/dist/observability/orgObserver.d.ts.map +1 -1
- package/dist/observability/orgObserver.js +3 -3
- package/dist/pi/agyHeadlessResult.d.ts +60 -0
- package/dist/pi/agyHeadlessResult.d.ts.map +1 -0
- package/dist/pi/agyHeadlessResult.js +95 -0
- package/dist/pi/cliChildOutput.d.ts +67 -0
- package/dist/pi/cliChildOutput.d.ts.map +1 -0
- package/dist/pi/cliChildOutput.js +269 -0
- package/dist/pi/cliEngineRun.d.ts +16 -0
- package/dist/pi/cliEngineRun.d.ts.map +1 -0
- package/dist/pi/cliEngineRun.js +27 -0
- package/dist/pi/cliEngineSpawn.d.ts +55 -0
- package/dist/pi/cliEngineSpawn.d.ts.map +1 -0
- package/dist/pi/cliEngineSpawn.js +169 -0
- package/dist/pi/cliEnvironment.d.ts +12 -0
- package/dist/pi/cliEnvironment.d.ts.map +1 -0
- package/dist/pi/cliEnvironment.js +34 -0
- package/dist/pi/cliMcpRegistration.d.ts +61 -0
- package/dist/pi/cliMcpRegistration.d.ts.map +1 -0
- package/dist/pi/cliMcpRegistration.js +75 -0
- package/dist/pi/cliProcess.d.ts +7 -0
- package/dist/pi/cliProcess.d.ts.map +1 -0
- package/dist/pi/cliProcess.js +132 -0
- package/dist/pi/cliSession.d.ts +86 -24
- package/dist/pi/cliSession.d.ts.map +1 -1
- package/dist/pi/cliSession.js +251 -173
- package/dist/pi/cliSessionMcp.d.ts +9 -0
- package/dist/pi/cliSessionMcp.d.ts.map +1 -0
- package/dist/pi/cliSessionMcp.js +80 -0
- package/dist/pi/cliTurnMetering.d.ts +60 -0
- package/dist/pi/cliTurnMetering.d.ts.map +1 -0
- package/dist/pi/cliTurnMetering.js +60 -0
- package/dist/pi/codexFilesystemRules.d.ts +3 -0
- package/dist/pi/codexFilesystemRules.d.ts.map +1 -0
- package/dist/pi/codexFilesystemRules.js +28 -0
- package/dist/pi/codexHeadlessResult.d.ts +68 -0
- package/dist/pi/codexHeadlessResult.d.ts.map +1 -0
- package/dist/pi/codexHeadlessResult.js +122 -0
- package/dist/pi/codexRolloutUsage.d.ts +95 -0
- package/dist/pi/codexRolloutUsage.d.ts.map +1 -0
- package/dist/pi/codexRolloutUsage.js +221 -0
- package/dist/pi/engineTaskClock.d.ts +9 -0
- package/dist/pi/engineTaskClock.d.ts.map +1 -0
- package/dist/pi/engineTaskClock.js +28 -0
- package/dist/pi/engineWakeLimits.d.ts +39 -0
- package/dist/pi/engineWakeLimits.d.ts.map +1 -0
- package/dist/pi/engineWakeLimits.js +55 -0
- package/dist/pi/grokHeadlessResult.d.ts +36 -0
- package/dist/pi/grokHeadlessResult.d.ts.map +1 -0
- package/dist/pi/grokHeadlessResult.js +118 -0
- package/dist/pi/grokHomeMcpRegistration.d.ts +21 -0
- package/dist/pi/grokHomeMcpRegistration.d.ts.map +1 -0
- package/dist/pi/grokHomeMcpRegistration.js +58 -0
- package/dist/pi/grokSandbox.d.ts +11 -0
- package/dist/pi/grokSandbox.d.ts.map +1 -0
- package/dist/pi/grokSandbox.js +216 -0
- package/dist/pi/grokStreamUsage.d.ts +31 -0
- package/dist/pi/grokStreamUsage.d.ts.map +1 -0
- package/dist/pi/grokStreamUsage.js +51 -0
- package/dist/pi/memoryClock.d.ts +25 -0
- package/dist/pi/memoryClock.d.ts.map +1 -0
- package/dist/pi/memoryClock.js +18 -0
- package/dist/pi/piAgentHandle.d.ts +6 -3
- package/dist/pi/piAgentHandle.d.ts.map +1 -1
- package/dist/pi/piAgentHandle.js +42 -12
- package/dist/pi/piAgentWakeSupport.d.ts +35 -0
- package/dist/pi/piAgentWakeSupport.d.ts.map +1 -1
- package/dist/pi/piAgentWakeSupport.js +4 -0
- package/dist/pi/piHarness.d.ts +18 -3
- package/dist/pi/piHarness.d.ts.map +1 -1
- package/dist/pi/piHarness.js +83 -14
- package/dist/pi/prompts.d.ts +1 -0
- package/dist/pi/prompts.d.ts.map +1 -1
- package/dist/pi/prompts.js +24 -0
- package/dist/pi/taskClockProcess.d.ts +6 -0
- package/dist/pi/taskClockProcess.d.ts.map +1 -0
- package/dist/pi/taskClockProcess.js +8 -0
- package/dist/pi/turnCausal.d.ts +4 -2
- package/dist/pi/turnCausal.d.ts.map +1 -1
- package/dist/pi/turnCausal.js +4 -4
- package/dist/pi/turnTrace.d.ts.map +1 -1
- package/dist/pi/turnTrace.js +5 -8
- package/dist/pi/wakeAcceptance.d.ts +1 -1
- package/dist/pi/wakeAcceptance.d.ts.map +1 -1
- package/dist/pi/wakeAcceptance.js +2 -2
- package/dist/pi/worldTrajectory.d.ts +1 -1
- package/dist/pi/worldTrajectory.d.ts.map +1 -1
- package/dist/pi/worldTrajectory.js +3 -3
- package/dist/runtime/agySubscriptionBootstrap.d.ts +16 -0
- package/dist/runtime/agySubscriptionBootstrap.d.ts.map +1 -0
- package/dist/runtime/agySubscriptionBootstrap.js +80 -0
- package/dist/runtime/agySubscriptionRealm.d.ts +38 -0
- package/dist/runtime/agySubscriptionRealm.d.ts.map +1 -0
- package/dist/runtime/agySubscriptionRealm.js +242 -0
- package/dist/runtime/attention.d.ts +26 -0
- package/dist/runtime/attention.d.ts.map +1 -0
- package/dist/runtime/attention.js +49 -0
- package/dist/runtime/attentionDispatcher.d.ts +78 -0
- package/dist/runtime/attentionDispatcher.d.ts.map +1 -0
- package/dist/runtime/attentionDispatcher.js +365 -0
- package/dist/runtime/cli.d.ts +7 -0
- package/dist/runtime/cli.d.ts.map +1 -0
- package/dist/runtime/cli.js +256 -0
- package/dist/runtime/codexSandboxProjection.d.ts +17 -0
- package/dist/runtime/codexSandboxProjection.d.ts.map +1 -0
- package/dist/runtime/codexSandboxProjection.js +40 -0
- package/dist/runtime/contract-manifest.json +1 -0
- package/dist/runtime/contract-manifest.sha256 +1 -0
- package/dist/runtime/contractManifest.d.ts +8 -0
- package/dist/runtime/contractManifest.d.ts.map +1 -0
- package/dist/runtime/contractManifest.js +4 -0
- package/dist/runtime/engineBrokerCapabilities.d.ts +40 -0
- package/dist/runtime/engineBrokerCapabilities.d.ts.map +1 -0
- package/dist/runtime/engineBrokerCapabilities.js +69 -0
- package/dist/runtime/engineBrokerControlClient.d.ts +55 -0
- package/dist/runtime/engineBrokerControlClient.d.ts.map +1 -0
- package/dist/runtime/engineBrokerControlClient.js +228 -0
- package/dist/runtime/engineBrokerCredentialJournal.d.ts +12 -0
- package/dist/runtime/engineBrokerCredentialJournal.d.ts.map +1 -0
- package/dist/runtime/engineBrokerCredentialJournal.js +26 -0
- package/dist/runtime/engineBrokerInferenceProtocol.d.ts +53 -0
- package/dist/runtime/engineBrokerInferenceProtocol.d.ts.map +1 -0
- package/dist/runtime/engineBrokerInferenceProtocol.js +65 -0
- package/dist/runtime/engineBrokerMcpCallLog.d.ts +171 -0
- package/dist/runtime/engineBrokerMcpCallLog.d.ts.map +1 -0
- package/dist/runtime/engineBrokerMcpCallLog.js +231 -0
- package/dist/runtime/engineBrokerMcpFacade.d.ts +59 -0
- package/dist/runtime/engineBrokerMcpFacade.d.ts.map +1 -0
- package/dist/runtime/engineBrokerMcpFacade.js +346 -0
- package/dist/runtime/engineBrokerNativeClient.d.ts +52 -0
- package/dist/runtime/engineBrokerNativeClient.d.ts.map +1 -0
- package/dist/runtime/engineBrokerNativeClient.js +151 -0
- package/dist/runtime/engineBrokerProtocol.d.ts +167 -0
- package/dist/runtime/engineBrokerProtocol.d.ts.map +1 -0
- package/dist/runtime/engineBrokerProtocol.js +357 -0
- package/dist/runtime/engineBrokerSealLedger.d.ts +70 -0
- package/dist/runtime/engineBrokerSealLedger.d.ts.map +1 -0
- package/dist/runtime/engineBrokerSealLedger.js +132 -0
- package/dist/runtime/engineBrokerService.d.ts +43 -0
- package/dist/runtime/engineBrokerService.d.ts.map +1 -0
- package/dist/runtime/engineBrokerService.js +196 -0
- package/dist/runtime/engineBrokerServiceCli.d.ts +5 -0
- package/dist/runtime/engineBrokerServiceCli.d.ts.map +1 -0
- package/dist/runtime/engineBrokerServiceCli.js +32 -0
- package/dist/runtime/engineBrokerServiceConfig.d.ts +55 -0
- package/dist/runtime/engineBrokerServiceConfig.d.ts.map +1 -0
- package/dist/runtime/engineBrokerServiceConfig.js +130 -0
- package/dist/runtime/engineBrokerSingleflight.d.ts +13 -0
- package/dist/runtime/engineBrokerSingleflight.d.ts.map +1 -0
- package/dist/runtime/engineBrokerSingleflight.js +24 -0
- package/dist/runtime/engineBrokerTurnAccounting.d.ts +76 -0
- package/dist/runtime/engineBrokerTurnAccounting.d.ts.map +1 -0
- package/dist/runtime/engineBrokerTurnAccounting.js +108 -0
- package/dist/runtime/engineBrokerTurnRegistry.d.ts +57 -0
- package/dist/runtime/engineBrokerTurnRegistry.d.ts.map +1 -0
- package/dist/runtime/engineBrokerTurnRegistry.js +159 -0
- package/dist/runtime/engineDispatcher.d.ts +38 -0
- package/dist/runtime/engineDispatcher.d.ts.map +1 -0
- package/dist/runtime/engineDispatcher.js +228 -0
- package/dist/runtime/engineReadiness.d.ts +23 -0
- package/dist/runtime/engineReadiness.d.ts.map +1 -0
- package/dist/runtime/engineReadiness.js +222 -0
- package/dist/runtime/grokAuthenticationError.d.ts +8 -0
- package/dist/runtime/grokAuthenticationError.d.ts.map +1 -0
- package/dist/runtime/grokAuthenticationError.js +20 -0
- package/dist/runtime/grokBrokerCredentialAuthority.d.ts +23 -0
- package/dist/runtime/grokBrokerCredentialAuthority.d.ts.map +1 -0
- package/dist/runtime/grokBrokerCredentialAuthority.js +150 -0
- package/dist/runtime/grokBrokerCredentialReader.d.ts +6 -0
- package/dist/runtime/grokBrokerCredentialReader.d.ts.map +1 -0
- package/dist/runtime/grokBrokerCredentialReader.js +38 -0
- package/dist/runtime/grokBrokerModelPolicy.d.ts +23 -0
- package/dist/runtime/grokBrokerModelPolicy.d.ts.map +1 -0
- package/dist/runtime/grokBrokerModelPolicy.js +28 -0
- package/dist/runtime/grokBrokerProjection.d.ts +114 -0
- package/dist/runtime/grokBrokerProjection.d.ts.map +1 -0
- package/dist/runtime/grokBrokerProjection.js +101 -0
- package/dist/runtime/grokBrokerProviderClock.d.ts +26 -0
- package/dist/runtime/grokBrokerProviderClock.d.ts.map +1 -0
- package/dist/runtime/grokBrokerProviderClock.js +133 -0
- package/dist/runtime/grokBrokerProxy.d.ts +69 -0
- package/dist/runtime/grokBrokerProxy.d.ts.map +1 -0
- package/dist/runtime/grokBrokerProxy.js +326 -0
- package/dist/runtime/grokBrokerProxyJson.d.ts +10 -0
- package/dist/runtime/grokBrokerProxyJson.d.ts.map +1 -0
- package/dist/runtime/grokBrokerProxyJson.js +31 -0
- package/dist/runtime/grokBrokerProxyRequest.d.ts +30 -0
- package/dist/runtime/grokBrokerProxyRequest.d.ts.map +1 -0
- package/dist/runtime/grokBrokerProxyRequest.js +85 -0
- package/dist/runtime/grokBrokerRealmLease.d.ts +4 -0
- package/dist/runtime/grokBrokerRealmLease.d.ts.map +1 -0
- package/dist/runtime/grokBrokerRealmLease.js +33 -0
- package/dist/runtime/grokBrokerRefresh.d.ts +2 -0
- package/dist/runtime/grokBrokerRefresh.d.ts.map +1 -0
- package/dist/runtime/grokBrokerRefresh.js +15 -0
- package/dist/runtime/grokBrokerRunBudget.d.ts +20 -0
- package/dist/runtime/grokBrokerRunBudget.d.ts.map +1 -0
- package/dist/runtime/grokBrokerRunBudget.js +85 -0
- package/dist/runtime/grokBrokerSlot.d.ts +6 -0
- package/dist/runtime/grokBrokerSlot.d.ts.map +1 -0
- package/dist/runtime/grokBrokerSlot.js +21 -0
- package/dist/runtime/grokBrokerTaskClock.d.ts +32 -0
- package/dist/runtime/grokBrokerTaskClock.d.ts.map +1 -0
- package/dist/runtime/grokBrokerTaskClock.js +120 -0
- package/dist/runtime/grokBrokerTurnMeter.d.ts +180 -0
- package/dist/runtime/grokBrokerTurnMeter.d.ts.map +1 -0
- package/dist/runtime/grokBrokerTurnMeter.js +337 -0
- package/dist/runtime/grokBrokerWorkerConfig.d.ts +89 -0
- package/dist/runtime/grokBrokerWorkerConfig.d.ts.map +1 -0
- package/dist/runtime/grokBrokerWorkerConfig.js +154 -0
- package/dist/runtime/grokEngineBroker.d.ts +88 -0
- package/dist/runtime/grokEngineBroker.d.ts.map +1 -0
- package/dist/runtime/grokEngineBroker.js +202 -0
- package/dist/runtime/grokEngineBrokerLedger.d.ts +52 -0
- package/dist/runtime/grokEngineBrokerLedger.d.ts.map +1 -0
- package/dist/runtime/grokEngineBrokerLedger.js +114 -0
- package/dist/runtime/grokEngineBrokerMetering.d.ts +51 -0
- package/dist/runtime/grokEngineBrokerMetering.d.ts.map +1 -0
- package/dist/runtime/grokEngineBrokerMetering.js +34 -0
- package/dist/runtime/grokEngineBrokerTurn.d.ts +82 -0
- package/dist/runtime/grokEngineBrokerTurn.d.ts.map +1 -0
- package/dist/runtime/grokEngineBrokerTurn.js +348 -0
- package/dist/runtime/grokEngineBrokerTurnEnd.d.ts +88 -0
- package/dist/runtime/grokEngineBrokerTurnEnd.d.ts.map +1 -0
- package/dist/runtime/grokEngineBrokerTurnEnd.js +148 -0
- package/dist/runtime/grokInferenceClientConfig.d.ts +41 -0
- package/dist/runtime/grokInferenceClientConfig.d.ts.map +1 -0
- package/dist/runtime/grokInferenceClientConfig.js +62 -0
- package/dist/runtime/grokInferenceGrants.d.ts +77 -0
- package/dist/runtime/grokInferenceGrants.d.ts.map +1 -0
- package/dist/runtime/grokInferenceGrants.js +116 -0
- package/dist/runtime/grokInferenceProxy.d.ts +29 -0
- package/dist/runtime/grokInferenceProxy.d.ts.map +1 -0
- package/dist/runtime/grokInferenceProxy.js +85 -0
- package/dist/runtime/grokInferenceProxyRequest.d.ts +23 -0
- package/dist/runtime/grokInferenceProxyRequest.d.ts.map +1 -0
- package/dist/runtime/grokInferenceProxyRequest.js +63 -0
- package/dist/runtime/grokSlotPreflightReceipt.d.ts +70 -0
- package/dist/runtime/grokSlotPreflightReceipt.d.ts.map +1 -0
- package/dist/runtime/grokSlotPreflightReceipt.js +101 -0
- package/dist/runtime/grokSubscriptionRealm.d.ts +4 -0
- package/dist/runtime/grokSubscriptionRealm.d.ts.map +1 -0
- package/dist/runtime/grokSubscriptionRealm.js +435 -0
- package/dist/runtime/grokSubscriptionRealmTypes.d.ts +26 -0
- package/dist/runtime/grokSubscriptionRealmTypes.d.ts.map +1 -0
- package/dist/runtime/grokSubscriptionRealmTypes.js +1 -0
- package/dist/runtime/grokWorkerAttestation.d.ts +175 -0
- package/dist/runtime/grokWorkerAttestation.d.ts.map +1 -0
- package/dist/runtime/grokWorkerAttestation.js +266 -0
- package/dist/runtime/grokWorkerDenyPlacement.d.ts +80 -0
- package/dist/runtime/grokWorkerDenyPlacement.d.ts.map +1 -0
- package/dist/runtime/grokWorkerDenyPlacement.js +128 -0
- package/dist/runtime/grokWorkerHomeAttestation.d.ts +32 -0
- package/dist/runtime/grokWorkerHomeAttestation.d.ts.map +1 -0
- package/dist/runtime/grokWorkerHomeAttestation.js +75 -0
- package/dist/runtime/grokWorkerSandboxProfile.d.ts +27 -0
- package/dist/runtime/grokWorkerSandboxProfile.d.ts.map +1 -0
- package/dist/runtime/grokWorkerSandboxProfile.js +44 -0
- package/dist/runtime/grokWorkerTmpAttestation.d.ts +55 -0
- package/dist/runtime/grokWorkerTmpAttestation.d.ts.map +1 -0
- package/dist/runtime/grokWorkerTmpAttestation.js +63 -0
- package/dist/runtime/index.d.ts +31 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +27 -0
- package/dist/runtime/inferenceUsageLedger.d.ts +38 -0
- package/dist/runtime/inferenceUsageLedger.d.ts.map +1 -0
- package/dist/runtime/inferenceUsageLedger.js +53 -0
- package/dist/runtime/mcpToolResult.d.ts +127 -0
- package/dist/runtime/mcpToolResult.d.ts.map +1 -0
- package/dist/runtime/mcpToolResult.js +214 -0
- package/dist/runtime/moltnetMachineRead.d.ts +97 -0
- package/dist/runtime/moltnetMachineRead.d.ts.map +1 -0
- package/dist/runtime/moltnetMachineRead.js +183 -0
- package/dist/runtime/native/daimon-engine-broker +0 -0
- package/dist/runtime/organizationRuntime.d.ts +168 -0
- package/dist/runtime/organizationRuntime.d.ts.map +1 -0
- package/dist/runtime/organizationRuntime.js +3 -0
- package/dist/runtime/organizationRuntimeAdmission.d.ts +6 -0
- package/dist/runtime/organizationRuntimeAdmission.d.ts.map +1 -0
- package/dist/runtime/organizationRuntimeAdmission.js +22 -0
- package/dist/runtime/organizationRuntimeControl.d.ts +51 -0
- package/dist/runtime/organizationRuntimeControl.d.ts.map +1 -0
- package/dist/runtime/organizationRuntimeControl.js +283 -0
- package/dist/runtime/organizationRuntimeHost.d.ts +19 -0
- package/dist/runtime/organizationRuntimeHost.d.ts.map +1 -0
- package/dist/runtime/organizationRuntimeHost.js +368 -0
- package/dist/runtime/organizationRuntimeParsing.d.ts +6 -0
- package/dist/runtime/organizationRuntimeParsing.d.ts.map +1 -0
- package/dist/runtime/organizationRuntimeParsing.js +373 -0
- package/dist/runtime/organizationRuntimeReadiness.d.ts +12 -0
- package/dist/runtime/organizationRuntimeReadiness.d.ts.map +1 -0
- package/dist/runtime/organizationRuntimeReadiness.js +67 -0
- package/dist/runtime/organizationRuntimeRecording.d.ts +7 -0
- package/dist/runtime/organizationRuntimeRecording.d.ts.map +1 -0
- package/dist/runtime/organizationRuntimeRecording.js +58 -0
- package/dist/runtime/physicalReadiness.d.ts +59 -0
- package/dist/runtime/physicalReadiness.d.ts.map +1 -0
- package/dist/runtime/physicalReadiness.js +176 -0
- package/dist/runtime/portableCredentialAuth.d.ts +6 -0
- package/dist/runtime/portableCredentialAuth.d.ts.map +1 -0
- package/dist/runtime/portableCredentialAuth.js +70 -0
- package/dist/runtime/portableCredentialMaterial.d.ts +8 -0
- package/dist/runtime/portableCredentialMaterial.d.ts.map +1 -0
- package/dist/runtime/portableCredentialMaterial.js +169 -0
- package/dist/runtime/productionAgentTools.d.ts +5 -0
- package/dist/runtime/productionAgentTools.d.ts.map +1 -0
- package/dist/runtime/productionAgentTools.js +336 -0
- package/dist/runtime/relocateRuntimeConfig.d.ts +14 -0
- package/dist/runtime/relocateRuntimeConfig.d.ts.map +1 -0
- package/dist/runtime/relocateRuntimeConfig.js +38 -0
- package/dist/runtime/runtimeHomeLayout.d.ts +48 -0
- package/dist/runtime/runtimeHomeLayout.d.ts.map +1 -0
- package/dist/runtime/runtimeHomeLayout.js +84 -0
- package/dist/runtime/schedule.d.ts +40 -0
- package/dist/runtime/schedule.d.ts.map +1 -0
- package/dist/runtime/schedule.js +376 -0
- package/dist/runtime/storeCoordination.d.ts +33 -0
- package/dist/runtime/storeCoordination.d.ts.map +1 -0
- package/dist/runtime/storeCoordination.js +117 -0
- package/dist/runtime/taskClock.d.ts +42 -0
- package/dist/runtime/taskClock.d.ts.map +1 -0
- package/dist/runtime/taskClock.js +102 -0
- package/dist/runtime/taskClockProcess.d.ts +17 -0
- package/dist/runtime/taskClockProcess.d.ts.map +1 -0
- package/dist/runtime/taskClockProcess.js +58 -0
- package/dist/runtime/toolResultSpill.d.ts +152 -0
- package/dist/runtime/toolResultSpill.d.ts.map +1 -0
- package/dist/runtime/toolResultSpill.js +351 -0
- package/dist/runtime/turnRequestLedger.d.ts +155 -0
- package/dist/runtime/turnRequestLedger.d.ts.map +1 -0
- package/dist/runtime/turnRequestLedger.js +251 -0
- package/dist/runtime/turnUsageLedger.d.ts +143 -0
- package/dist/runtime/turnUsageLedger.d.ts.map +1 -0
- package/dist/runtime/turnUsageLedger.js +203 -0
- package/dist/runtime/wakeAcceptanceClaimDiagnostics.d.ts +34 -0
- package/dist/runtime/wakeAcceptanceClaimDiagnostics.d.ts.map +1 -0
- package/dist/runtime/wakeAcceptanceClaimDiagnostics.js +79 -0
- package/dist/runtime/wakeAcceptanceIndex.d.ts +55 -0
- package/dist/runtime/wakeAcceptanceIndex.d.ts.map +1 -0
- package/dist/runtime/wakeAcceptanceIndex.js +158 -0
- package/dist/runtime/wakeAcceptanceProcessIdentity.d.ts +25 -0
- package/dist/runtime/wakeAcceptanceProcessIdentity.d.ts.map +1 -0
- package/dist/runtime/wakeAcceptanceProcessIdentity.js +54 -0
- package/dist/runtime/wakeAcceptanceReconciliation.d.ts +211 -0
- package/dist/runtime/wakeAcceptanceReconciliation.d.ts.map +1 -0
- package/dist/runtime/wakeAcceptanceReconciliation.js +289 -0
- package/dist/runtime/wakeAcceptanceRecord.d.ts +25 -0
- package/dist/runtime/wakeAcceptanceRecord.d.ts.map +1 -0
- package/dist/runtime/wakeAcceptanceRecord.js +58 -0
- package/dist/runtime/wakeAcceptanceRetention.d.ts +36 -0
- package/dist/runtime/wakeAcceptanceRetention.d.ts.map +1 -0
- package/dist/runtime/wakeAcceptanceRetention.js +38 -0
- package/dist/runtime/wakeAcceptanceStore.d.ts +113 -0
- package/dist/runtime/wakeAcceptanceStore.d.ts.map +1 -0
- package/dist/runtime/wakeAcceptanceStore.js +561 -0
- package/dist/runtime/wakeAcceptanceTypes.d.ts +179 -0
- package/dist/runtime/wakeAcceptanceTypes.d.ts.map +1 -0
- package/dist/runtime/wakeAcceptanceTypes.js +95 -0
- package/dist/runtime/wakeFuse.d.ts +124 -0
- package/dist/runtime/wakeFuse.d.ts.map +1 -0
- package/dist/runtime/wakeFuse.js +466 -0
- package/dist/runtime/wakeMomentFs.d.ts +27 -0
- package/dist/runtime/wakeMomentFs.d.ts.map +1 -0
- package/dist/runtime/wakeMomentFs.js +223 -0
- package/dist/runtime/wakeMomentHistory.d.ts +26 -0
- package/dist/runtime/wakeMomentHistory.d.ts.map +1 -0
- package/dist/runtime/wakeMomentHistory.js +109 -0
- package/dist/runtime/wakeMomentIo.d.ts +22 -0
- package/dist/runtime/wakeMomentIo.d.ts.map +1 -0
- package/dist/runtime/wakeMomentIo.js +114 -0
- package/dist/runtime/wakeMomentRecorder.d.ts +33 -0
- package/dist/runtime/wakeMomentRecorder.d.ts.map +1 -0
- package/dist/runtime/wakeMomentRecorder.js +81 -0
- package/dist/runtime/wakeMomentRetention.d.ts +7 -0
- package/dist/runtime/wakeMomentRetention.d.ts.map +1 -0
- package/dist/runtime/wakeMomentRetention.js +143 -0
- package/dist/runtime/wakeMomentRows.d.ts +8 -0
- package/dist/runtime/wakeMomentRows.d.ts.map +1 -0
- package/dist/runtime/wakeMomentRows.js +66 -0
- package/dist/runtime/wakeMomentSnapshot.d.ts +56 -0
- package/dist/runtime/wakeMomentSnapshot.d.ts.map +1 -0
- package/dist/runtime/wakeMomentSnapshot.js +248 -0
- package/package.json +22 -11
|
@@ -41,11 +41,11 @@ export declare const TURN_OUTPUT_COMPLETED_TYPE: "turn.output.completed";
|
|
|
41
41
|
/** Name of the environment variable every Noopolis authority reads `run_id` from. Never model output. */
|
|
42
42
|
export declare const NOOPOLIS_RUN_ID_ENV = "NOOPOLIS_RUN_ID";
|
|
43
43
|
/**
|
|
44
|
-
* Resolves `run_id` from
|
|
45
|
-
* `
|
|
44
|
+
* Resolves `run_id` from explicit trusted host context or the historical
|
|
45
|
+
* `NOOPOLIS_RUN_ID` environment fallback. Never derived from a WakeEvent, model output, or any
|
|
46
46
|
* other in-turn data. A causal event cannot be emitted without a real run id.
|
|
47
47
|
*/
|
|
48
|
-
export declare const resolveRunId: (env?: NodeJS.ProcessEnv) => string;
|
|
48
|
+
export declare const resolveRunId: (env?: NodeJS.ProcessEnv, explicitRunId?: string) => string;
|
|
49
49
|
export declare const sha256Hex: (value: string) => string;
|
|
50
50
|
/** Deterministic, non-model-derived event id for a turn's `turn.input.submitted` record. */
|
|
51
51
|
export declare const turnInputSubmittedEventId: (turnId: string) => string;
|
|
@@ -62,9 +62,9 @@ export declare const turnOutputCompletedEventId: (turnId: string) => string;
|
|
|
62
62
|
export declare const replyCauseEventIds: (turnId: string) => string[];
|
|
63
63
|
/**
|
|
64
64
|
* Allocates the next contiguous seq number for `(run_id, stream_id)`,
|
|
65
|
-
* persisted under `runtimeHome/telemetry/causal.seq.json`.
|
|
66
|
-
*
|
|
67
|
-
*
|
|
65
|
+
* persisted under `runtimeHome/telemetry/causal.seq.json`. Allocation is
|
|
66
|
+
* serialized in-process and mutually excluded across processes by a lock
|
|
67
|
+
* file; the counter is written atomically and fsynced.
|
|
68
68
|
*/
|
|
69
69
|
export declare const nextCausalSeq: (input: {
|
|
70
70
|
runId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"causalEvents.d.ts","sourceRoot":"","sources":["../../src/observability/causalEvents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"causalEvents.d.ts","sourceRoot":"","sources":["../../src/observability/causalEvents.ts"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,EAAG,0BAAmC,CAAC;AAExE,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE3E,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,WAAW,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC7D,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,QAAQ,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,oBAAoB,CAAC;CACtC;AAED,wFAAwF;AACxF,MAAM,WAAW,yBAA0B,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACxE,oBAAoB,EAAE,MAAM,CAAC;IAC7B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,aAAa,EAAE,MAA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to";
|
|
2
|
-
import {
|
|
1
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
2
|
+
import { constants } from "node:fs";
|
|
3
|
+
import { appendFile, open, readFile, rename, stat, unlink } from "node:fs/promises";
|
|
3
4
|
import path from "node:path";
|
|
5
|
+
import { ensureRuntimeHomeDirectory } from "../runtime/runtimeHomeLayout.js";
|
|
4
6
|
/**
|
|
5
7
|
* Daimon's own copy of the `noopolis.causal-event.v1` wire envelope. Field-
|
|
6
8
|
* for-field the canonical shape in `specs/causal-event.v1.schema.json` and
|
|
@@ -15,12 +17,12 @@ export const TURN_OUTPUT_COMPLETED_TYPE = "turn.output.completed";
|
|
|
15
17
|
/** Name of the environment variable every Noopolis authority reads `run_id` from. Never model output. */
|
|
16
18
|
export const NOOPOLIS_RUN_ID_ENV = "NOOPOLIS_RUN_ID";
|
|
17
19
|
/**
|
|
18
|
-
* Resolves `run_id` from
|
|
19
|
-
* `
|
|
20
|
+
* Resolves `run_id` from explicit trusted host context or the historical
|
|
21
|
+
* `NOOPOLIS_RUN_ID` environment fallback. Never derived from a WakeEvent, model output, or any
|
|
20
22
|
* other in-turn data. A causal event cannot be emitted without a real run id.
|
|
21
23
|
*/
|
|
22
|
-
export const resolveRunId = (env = process.env) => {
|
|
23
|
-
const value = env[NOOPOLIS_RUN_ID_ENV];
|
|
24
|
+
export const resolveRunId = (env = process.env, explicitRunId) => {
|
|
25
|
+
const value = explicitRunId ?? env[NOOPOLIS_RUN_ID_ENV];
|
|
24
26
|
if (typeof value !== "string" || value.trim().length === 0) {
|
|
25
27
|
throw new Error(`${NOOPOLIS_RUN_ID_ENV} must be set to a non-blank value`);
|
|
26
28
|
}
|
|
@@ -43,6 +45,8 @@ export const replyCauseEventIds = (turnId) => [turnOutputCompletedEventId(turnId
|
|
|
43
45
|
const telemetryDir = (runtimeHomePath) => path.join(runtimeHomePath, "telemetry");
|
|
44
46
|
const seqFilePath = (runtimeHomePath) => path.join(telemetryDir(runtimeHomePath), "causal.seq.json");
|
|
45
47
|
const jsonlFilePath = (runtimeHomePath) => path.join(telemetryDir(runtimeHomePath), "causal.jsonl");
|
|
48
|
+
const STALE_LOCK_MS = 30_000;
|
|
49
|
+
const seqAllocationQueues = new Map();
|
|
46
50
|
const readSeqStore = async (runtimeHomePath) => {
|
|
47
51
|
try {
|
|
48
52
|
const raw = await readFile(seqFilePath(runtimeHomePath), "utf8");
|
|
@@ -56,27 +60,111 @@ const readSeqStore = async (runtimeHomePath) => {
|
|
|
56
60
|
}
|
|
57
61
|
};
|
|
58
62
|
const writeSeqStore = async (runtimeHomePath, store) => {
|
|
59
|
-
await
|
|
60
|
-
|
|
63
|
+
const directory = await ensureRuntimeHomeDirectory(runtimeHomePath, "telemetry");
|
|
64
|
+
const file = seqFilePath(runtimeHomePath);
|
|
65
|
+
const temporary = `${file}.${randomUUID()}.tmp`;
|
|
66
|
+
const handle = await open(temporary, constants.O_CREAT | constants.O_EXCL | constants.O_WRONLY, 0o600);
|
|
67
|
+
try {
|
|
68
|
+
await handle.writeFile(`${JSON.stringify(store, null, 2)}\n`, "utf8");
|
|
69
|
+
await handle.sync();
|
|
70
|
+
}
|
|
71
|
+
finally {
|
|
72
|
+
await handle.close();
|
|
73
|
+
}
|
|
74
|
+
try {
|
|
75
|
+
await rename(temporary, file);
|
|
76
|
+
await syncDirectory(directory);
|
|
77
|
+
}
|
|
78
|
+
finally {
|
|
79
|
+
await unlink(temporary).catch((error) => {
|
|
80
|
+
if (error.code !== "ENOENT")
|
|
81
|
+
throw error;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const syncDirectory = async (directory) => {
|
|
86
|
+
const handle = await open(directory, constants.O_RDONLY);
|
|
87
|
+
try {
|
|
88
|
+
await handle.sync();
|
|
89
|
+
}
|
|
90
|
+
finally {
|
|
91
|
+
await handle.close();
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const acquireSeqLock = async (lockPath) => {
|
|
95
|
+
const startedAt = Date.now();
|
|
96
|
+
let backoffMs = 2;
|
|
97
|
+
while (Date.now() - startedAt < 5_000) {
|
|
98
|
+
try {
|
|
99
|
+
const handle = await open(lockPath, constants.O_CREAT | constants.O_EXCL | constants.O_WRONLY, 0o600);
|
|
100
|
+
await handle.close();
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
if (!(error && typeof error === "object" && "code" in error && error.code === "EEXIST"))
|
|
105
|
+
throw error;
|
|
106
|
+
}
|
|
107
|
+
try {
|
|
108
|
+
const observed = await stat(lockPath);
|
|
109
|
+
if (Date.now() - observed.mtimeMs > STALE_LOCK_MS) {
|
|
110
|
+
const confirmed = await stat(lockPath);
|
|
111
|
+
if (confirmed.mtimeMs === observed.mtimeMs) {
|
|
112
|
+
await unlink(lockPath).catch((error) => {
|
|
113
|
+
if (error.code !== "ENOENT")
|
|
114
|
+
throw error;
|
|
115
|
+
});
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
if (!(error && typeof error === "object" && "code" in error && error.code === "ENOENT"))
|
|
122
|
+
throw error;
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
await new Promise((resolve) => setTimeout(resolve, backoffMs));
|
|
126
|
+
backoffMs = Math.min(backoffMs * 2, 25);
|
|
127
|
+
}
|
|
128
|
+
throw new Error(`Timed out acquiring causal sequence lock: ${lockPath}`);
|
|
61
129
|
};
|
|
62
130
|
/**
|
|
63
131
|
* Allocates the next contiguous seq number for `(run_id, stream_id)`,
|
|
64
|
-
* persisted under `runtimeHome/telemetry/causal.seq.json`.
|
|
65
|
-
*
|
|
66
|
-
*
|
|
132
|
+
* persisted under `runtimeHome/telemetry/causal.seq.json`. Allocation is
|
|
133
|
+
* serialized in-process and mutually excluded across processes by a lock
|
|
134
|
+
* file; the counter is written atomically and fsynced.
|
|
67
135
|
*/
|
|
68
136
|
export const nextCausalSeq = async (input) => {
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
137
|
+
const lockPath = path.resolve(telemetryDir(input.runtimeHomePath), "causal.seq.lock");
|
|
138
|
+
const previous = seqAllocationQueues.get(lockPath) ?? Promise.resolve();
|
|
139
|
+
const allocation = previous.catch(() => undefined).then(async () => {
|
|
140
|
+
await ensureRuntimeHomeDirectory(input.runtimeHomePath, "telemetry");
|
|
141
|
+
await acquireSeqLock(lockPath);
|
|
142
|
+
try {
|
|
143
|
+
const store = await readSeqStore(input.runtimeHomePath);
|
|
144
|
+
const forRun = store[input.runId] ?? {};
|
|
145
|
+
const next = (forRun[input.streamId] ?? 0) + 1;
|
|
146
|
+
forRun[input.streamId] = next;
|
|
147
|
+
store[input.runId] = forRun;
|
|
148
|
+
await writeSeqStore(input.runtimeHomePath, store);
|
|
149
|
+
return next;
|
|
150
|
+
}
|
|
151
|
+
finally {
|
|
152
|
+
await unlink(lockPath).catch((error) => {
|
|
153
|
+
if (error.code !== "ENOENT")
|
|
154
|
+
throw error;
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
seqAllocationQueues.set(lockPath, allocation);
|
|
159
|
+
void allocation.finally(() => {
|
|
160
|
+
if (seqAllocationQueues.get(lockPath) === allocation)
|
|
161
|
+
seqAllocationQueues.delete(lockPath);
|
|
162
|
+
}).catch(() => undefined);
|
|
163
|
+
return allocation;
|
|
76
164
|
};
|
|
77
165
|
/** Appends one CausalEvent record as a line of `runtimeHome/telemetry/causal.jsonl`. */
|
|
78
166
|
export const appendCausalEvent = async (runtimeHomePath, event) => {
|
|
79
|
-
await
|
|
167
|
+
await ensureRuntimeHomeDirectory(runtimeHomePath, "telemetry");
|
|
80
168
|
await appendFile(jsonlFilePath(runtimeHomePath), `${JSON.stringify(event)}\n`, "utf8");
|
|
81
169
|
};
|
|
82
170
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orgObserver.d.ts","sourceRoot":"","sources":["../../src/observability/orgObserver.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"orgObserver.d.ts","sourceRoot":"","sources":["../../src/observability/orgObserver.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,MAAM,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,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GAAG,IAAI;IA0BR,kBAAkB,CAAC,KAAK,EAAE;QACxB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,uBAAuB;IAa3B,SAAS,IAAI,YAAY,EAAE;IAgB3B,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAepG,eAAe,IAAI;QACjB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,wBAAwB,EAAE,MAAM,CAAC;QACjC,gBAAgB,EAAE,MAAM,CAAC;QACzB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,UAAU,EAAE,MAAM,CAAC;KACpB;IAaD,YAAY,IAAI,MAAM;IAchB,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA+B/C,UAAU,IAAI,MAAM;CAoErB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { writeFile } from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
+
import { ensureRuntimeHomeDirectory } from "../runtime/runtimeHomeLayout.js";
|
|
3
4
|
const maxExcerptChars = 280;
|
|
4
5
|
const excerpt = (text) => text.length <= maxExcerptChars ? text : `${text.slice(0, maxExcerptChars).trim()}...`;
|
|
5
6
|
export const mentionsFrom = (text) => [...new Set([...text.matchAll(/@([a-z0-9-]+)/gi)].map((match) => match[1].toLowerCase()))];
|
|
@@ -110,8 +111,7 @@ export class OrgObserver {
|
|
|
110
111
|
};
|
|
111
112
|
}
|
|
112
113
|
async write(runtimeRoot) {
|
|
113
|
-
const telemetryDir =
|
|
114
|
-
await mkdir(telemetryDir, { recursive: true });
|
|
114
|
+
const telemetryDir = await ensureRuntimeHomeDirectory(runtimeRoot, "telemetry");
|
|
115
115
|
const summaryRecord = {
|
|
116
116
|
assertions: this.assertions,
|
|
117
117
|
behavior: this.behaviorSummary(),
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token accounting for one AGY turn, as the engine itself reported it.
|
|
3
|
+
*
|
|
4
|
+
* Same shape and the same discipline as {@link import("./grokHeadlessResult.js").GrokTurnUsage},
|
|
5
|
+
* but AGY's envelope is *not* Grok's. Field provenance is the terminal frame of
|
|
6
|
+
* `agy --print … --output-format stream-json`:
|
|
7
|
+
*
|
|
8
|
+
* {"event":"result","result":{ "status":"SUCCESS", "response":"…",
|
|
9
|
+
* "num_turns":1,
|
|
10
|
+
* "usage":{"input_tokens":…, "output_tokens":…,
|
|
11
|
+
* "thinking_tokens":…, "cache_read_tokens":…, "total_tokens":…}}}
|
|
12
|
+
*
|
|
13
|
+
* Differences from Grok that this decoder exists to get right:
|
|
14
|
+
*
|
|
15
|
+
* - the prompt-side cache bucket is `cache_read_tokens`, **not**
|
|
16
|
+
* `cache_read_input_tokens`;
|
|
17
|
+
* - there is no `cache_creation_input_tokens` bucket at all, so `cacheWrite` is
|
|
18
|
+
* structurally absent and recorded as `0` — absent, not measured-as-zero;
|
|
19
|
+
* - there is no `total_cost_usd`, so `notionalUsd` is `0` for the same reason;
|
|
20
|
+
* - `thinking_tokens` has no Grok equivalent and is a **subset** of
|
|
21
|
+
* `output_tokens`, not a disjoint bucket. The captured plain turn is
|
|
22
|
+
* `input 13,722 + output 74 = 13,796 = total_tokens` with
|
|
23
|
+
* `thinking_tokens: 73`, so adding it would double-count reasoning tokens.
|
|
24
|
+
* It is therefore read only to be ignored;
|
|
25
|
+
* - AGY supplies its own `total_tokens`, which is cross-checked rather than
|
|
26
|
+
* trusted (see {@link decodeAgyTurnUsage});
|
|
27
|
+
* - `status: "SUCCESS"` replaces Grok's `subtype`/`is_error` pair.
|
|
28
|
+
*
|
|
29
|
+
* The terminal frame's `usage` is the sum over the turn's model steps, not the
|
|
30
|
+
* last step's: the captured tool turn sums three `step_update` frames
|
|
31
|
+
* (14,579 + 15,079 + 15,279 input) into `input_tokens: 44,937`. Reading a
|
|
32
|
+
* `step_update` would under-report every tool-using wake.
|
|
33
|
+
*/
|
|
34
|
+
export type AgyTurnUsage = Readonly<{
|
|
35
|
+
input: number;
|
|
36
|
+
output: number;
|
|
37
|
+
cacheRead: number;
|
|
38
|
+
cacheWrite: number;
|
|
39
|
+
total: number;
|
|
40
|
+
calls: number;
|
|
41
|
+
notionalUsd: number;
|
|
42
|
+
complete: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
export type AgyHeadlessTurn = Readonly<{
|
|
45
|
+
text: string;
|
|
46
|
+
usage?: AgyTurnUsage;
|
|
47
|
+
}>;
|
|
48
|
+
/**
|
|
49
|
+
* Decode AGY's `stream-json` NDJSON without treating a progress frame as a
|
|
50
|
+
* reply, and extract the turn's own token accounting from the same frame.
|
|
51
|
+
*
|
|
52
|
+
* Frames before the terminal one are `{"event":"init"|"step_update", …}`.
|
|
53
|
+
* Unrecognized `event` values are skipped rather than rejected: AGY owns this
|
|
54
|
+
* stream and a frame kind added later must not fail a turn that published.
|
|
55
|
+
* The terminal `result` frame must be the last line, exactly as with Grok.
|
|
56
|
+
*/
|
|
57
|
+
export declare const decodeAgyHeadlessTurn: (output: string) => AgyHeadlessTurn;
|
|
58
|
+
/** Text-only view of {@link decodeAgyHeadlessTurn}, for callers that do not meter. */
|
|
59
|
+
export declare const decodeAgyHeadlessResult: (output: string) => string;
|
|
60
|
+
//# sourceMappingURL=agyHeadlessResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agyHeadlessResult.d.ts","sourceRoot":"","sources":["../../src/pi/agyHeadlessResult.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC;AAqD/E;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAAI,QAAQ,MAAM,KAAG,eAkBtD,CAAC;AAEF,sFAAsF;AACtF,eAAO,MAAM,uBAAuB,GAAI,QAAQ,MAAM,KAAG,MAA4C,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2
|
+
const invalidResult = (detail) => new Error(`AGY CLI returned no publishable terminal response: ${detail}`);
|
|
3
|
+
/**
|
|
4
|
+
* The three token buckets AGY emits on `result.usage`. All three must be
|
|
5
|
+
* present and be non-negative safe integers; a renamed, stringified, negative,
|
|
6
|
+
* or fractional field rejects the whole block rather than silently contributing
|
|
7
|
+
* a zero, because a zero bucket is byte-indistinguishable from a real one.
|
|
8
|
+
*/
|
|
9
|
+
const USAGE_TOKEN_FIELDS = ["input_tokens", "output_tokens", "cache_read_tokens"];
|
|
10
|
+
const tokenCount = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0 ? value : undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Extract per-turn usage from the terminal `result` frame.
|
|
13
|
+
*
|
|
14
|
+
* Advisory: a malformed or absent usage block yields `undefined` rather than
|
|
15
|
+
* failing a turn that published correctly, and never throws.
|
|
16
|
+
*
|
|
17
|
+
* `complete` follows exactly the honesty rule the Grok decoder states: AGY's
|
|
18
|
+
* envelope has no marker for incomplete or absent usage either, so an all-zero
|
|
19
|
+
* block reads as "unknown", not "free". It cannot catch a *partially*
|
|
20
|
+
* zero-filled turn, so every count this decoder produces is a lower bound.
|
|
21
|
+
*
|
|
22
|
+
* AGY additionally reports its own `total_tokens`. Neither side is trusted
|
|
23
|
+
* blindly: the derived sum `input + cacheRead + output` is compared against it,
|
|
24
|
+
* `total` is the larger of the two so a reconciliation failure can never
|
|
25
|
+
* under-report, and any disagreement clears `complete` so the record is
|
|
26
|
+
* rendered as an incomplete turn rather than a verified count. A `total_tokens`
|
|
27
|
+
* that is not a non-negative safe integer rejects the block outright, because
|
|
28
|
+
* an unreadable total is a total that cannot be reconciled.
|
|
29
|
+
*/
|
|
30
|
+
const decodeAgyTurnUsage = (result) => {
|
|
31
|
+
if (!isRecord(result.usage))
|
|
32
|
+
return undefined;
|
|
33
|
+
const usage = result.usage;
|
|
34
|
+
const counts = USAGE_TOKEN_FIELDS.map((field) => tokenCount(usage[field]));
|
|
35
|
+
if (counts.some((count) => count === undefined))
|
|
36
|
+
return undefined;
|
|
37
|
+
const [input, output, cacheRead] = counts;
|
|
38
|
+
const reported = usage.total_tokens === undefined ? undefined : tokenCount(usage.total_tokens);
|
|
39
|
+
if (usage.total_tokens !== undefined && reported === undefined)
|
|
40
|
+
return undefined;
|
|
41
|
+
const derived = input + cacheRead + output;
|
|
42
|
+
return {
|
|
43
|
+
input,
|
|
44
|
+
output,
|
|
45
|
+
cacheRead,
|
|
46
|
+
cacheWrite: 0,
|
|
47
|
+
total: reported === undefined ? derived : Math.max(derived, reported),
|
|
48
|
+
calls: tokenCount(result.num_turns) ?? 0,
|
|
49
|
+
notionalUsd: 0,
|
|
50
|
+
complete: derived > 0 && (reported === undefined || reported === derived)
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Decode AGY's `stream-json` NDJSON without treating a progress frame as a
|
|
55
|
+
* reply, and extract the turn's own token accounting from the same frame.
|
|
56
|
+
*
|
|
57
|
+
* Frames before the terminal one are `{"event":"init"|"step_update", …}`.
|
|
58
|
+
* Unrecognized `event` values are skipped rather than rejected: AGY owns this
|
|
59
|
+
* stream and a frame kind added later must not fail a turn that published.
|
|
60
|
+
* The terminal `result` frame must be the last line, exactly as with Grok.
|
|
61
|
+
*/
|
|
62
|
+
export const decodeAgyHeadlessTurn = (output) => {
|
|
63
|
+
const lines = output.split(/\r?\n/).filter((line) => line.length > 0);
|
|
64
|
+
if (lines.length === 0)
|
|
65
|
+
throw invalidResult("empty stream");
|
|
66
|
+
let result;
|
|
67
|
+
for (const [index, line] of lines.entries()) {
|
|
68
|
+
let frame;
|
|
69
|
+
try {
|
|
70
|
+
frame = JSON.parse(line);
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
throw invalidResult("invalid JSON");
|
|
74
|
+
}
|
|
75
|
+
if (!isRecord(frame) || typeof frame.event !== "string")
|
|
76
|
+
throw invalidResult("invalid event");
|
|
77
|
+
if (frame.event !== "result")
|
|
78
|
+
continue;
|
|
79
|
+
if (index !== lines.length - 1)
|
|
80
|
+
throw invalidResult("non-terminal result");
|
|
81
|
+
if (!isRecord(frame.result))
|
|
82
|
+
throw invalidResult("invalid result event");
|
|
83
|
+
result = frame.result;
|
|
84
|
+
}
|
|
85
|
+
if (result === undefined)
|
|
86
|
+
throw invalidResult("no result frame");
|
|
87
|
+
if (result.status !== "SUCCESS")
|
|
88
|
+
throw invalidResult("unsuccessful result");
|
|
89
|
+
if (typeof result.response !== "string" || result.response.trim().length === 0)
|
|
90
|
+
throw invalidResult("empty response");
|
|
91
|
+
const usage = decodeAgyTurnUsage(result);
|
|
92
|
+
return usage === undefined ? { text: result.response.trim() } : { text: result.response.trim(), usage };
|
|
93
|
+
};
|
|
94
|
+
/** Text-only view of {@link decodeAgyHeadlessTurn}, for callers that do not meter. */
|
|
95
|
+
export const decodeAgyHeadlessResult = (output) => decodeAgyHeadlessTurn(output).text;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { ChildProcess } from "node:child_process";
|
|
2
|
+
import type { TurnUsageFailureReason } from "../runtime/turnUsageLedger.js";
|
|
3
|
+
import { type CodexTurnUsage } from "./codexHeadlessResult.js";
|
|
4
|
+
/** Maximum assistant reply bytes retained from stdout. */
|
|
5
|
+
export declare const CLI_ENGINE_MAX_OUTPUT_BYTES: number;
|
|
6
|
+
/** Diagnostic bytes retained from stderr for a failed child: its head and its tail together. */
|
|
7
|
+
export declare const CLI_ENGINE_MAX_DIAGNOSTIC_BYTES = 768;
|
|
8
|
+
export declare const tagCliChildFailure: <T>(error: T, reason: TurnUsageFailureReason) => T;
|
|
9
|
+
export declare const cliChildFailureReason: (error: unknown) => TurnUsageFailureReason | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* One bounded window over a failed child's own output: its head AND its tail,
|
|
12
|
+
* with an explicit marker naming the bytes elided between them.
|
|
13
|
+
*
|
|
14
|
+
* A pure tail is the wrong end for the process this exists for. A worker that
|
|
15
|
+
* dies early prints its error first and then echoes its own input, so the tail
|
|
16
|
+
* is the echo: one live brokered turn reported 512 bytes of its own prompt
|
|
17
|
+
* read back, with the actual error already off the front and discarded. Both
|
|
18
|
+
* ends cost the same window, and the marker is the one oversized tool results
|
|
19
|
+
* already use (`toolResultSpill.ts`), so a reader meets one shape everywhere.
|
|
20
|
+
*
|
|
21
|
+
* The marker is paid for out of the same budget — it is sized against the
|
|
22
|
+
* largest count it could carry — so the result never exceeds `maxBytes`, and
|
|
23
|
+
* output that fits is returned byte-identical with no marker at all.
|
|
24
|
+
*/
|
|
25
|
+
export declare const boundedDiagnosticWindow: (value: string, maxBytes: number) => string;
|
|
26
|
+
export declare const readChild: (child: ChildProcess, timeoutMs: number | undefined, secretValues: readonly string[], options?: Readonly<{
|
|
27
|
+
failureClassifier?: (diagnostic: string) => Error | undefined;
|
|
28
|
+
retainNdjson?: "codex";
|
|
29
|
+
retainStdoutTail?: boolean;
|
|
30
|
+
/** Overrides the generic wall-clock-timeout message so the caller can name which bound was hit. */
|
|
31
|
+
timeoutErrorMessage?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Per-wake token ceiling for a Codex turn (`retainNdjson: "codex"` only).
|
|
34
|
+
* Codex's `--json` stream reports usage exactly once, on `turn.completed`
|
|
35
|
+
* — there is no incremental total to watch mid-turn — so this is
|
|
36
|
+
* enforced at the earliest and only moment the crossing is observable:
|
|
37
|
+
* the instant that frame is parsed off the stream. Crossing it kills the
|
|
38
|
+
* child immediately (rather than letting an over-budget turn resolve as
|
|
39
|
+
* a normal success) and fails the wake with a bound-named error.
|
|
40
|
+
*/
|
|
41
|
+
codexTokenCeiling?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Called once per parsed `turn.completed` frame (`retainNdjson: "codex"`
|
|
44
|
+
* only), with that frame's decoded usage — or `undefined` when the usage
|
|
45
|
+
* block is absent or malformed, which is never substituted with zeros.
|
|
46
|
+
*
|
|
47
|
+
* This is the only point at which a wake that is about to be killed — by
|
|
48
|
+
* the ceiling, by the wall clock, or by a non-zero exit — can still hand
|
|
49
|
+
* over what Codex reported it spent. Every path downstream of here either
|
|
50
|
+
* rejects or discards the stream, which is how a breached wake's usage
|
|
51
|
+
* used to survive only inside an error message.
|
|
52
|
+
*/
|
|
53
|
+
onCodexTurnCompleted?: (usage: CodexTurnUsage | undefined) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Called with the thread id from Codex's `thread.started` frame
|
|
56
|
+
* (`retainNdjson: "codex"` only), the first line of every `codex exec
|
|
57
|
+
* --json` stream — verified live against codex-cli 0.153.4:
|
|
58
|
+
* `{"type":"thread.started","thread_id":"01a076d3-…"}`.
|
|
59
|
+
*
|
|
60
|
+
* That id is the only key that ties this wake to the rollout Codex writes
|
|
61
|
+
* under `$CODEX_HOME/sessions/**`, where the per-model-request accounting
|
|
62
|
+
* lives. The frame stays out of the retained stream: the decoder's
|
|
63
|
+
* vocabulary and the retained-output budget are unchanged by reading it.
|
|
64
|
+
*/
|
|
65
|
+
onCodexThreadStarted?: (threadId: string) => void;
|
|
66
|
+
}>) => Promise<string>;
|
|
67
|
+
//# sourceMappingURL=cliChildOutput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cliChildOutput.d.ts","sourceRoot":"","sources":["../../src/pi/cliChildOutput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGrF,0DAA0D;AAC1D,eAAO,MAAM,2BAA2B,QAAY,CAAC;AACrD,gGAAgG;AAChG,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAanD,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,QAAQ,sBAAsB,KAAG,CAOhF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,OAAO,KAAG,sBAAsB,GAAG,SAGjE,CAAC;AAMhB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,GAAI,OAAO,MAAM,EAAE,UAAU,MAAM,KAAG,MAQzE,CAAC;AAUF,eAAO,MAAM,SAAS,GACpB,OAAO,YAAY,EACnB,WAAW,MAAM,GAAG,SAAS,EAC7B,cAAc,SAAS,MAAM,EAAE,EAC/B,UAAS,QAAQ,CAAC;IAChB,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,KAAK,GAAG,SAAS,CAAC;IAC9D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mGAAmG;IACnG,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;;;;OAUG;IACH,oB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