@smthrs/control 0.0.0-stage → 1.0.0-rc.3
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/CHANGELOG.md +194 -0
- package/LICENSE +21 -0
- package/README.md +168 -2
- package/dist/cjs/ApprovalAuthority.d.ts +73 -0
- package/dist/cjs/ApprovalAuthority.d.ts.map +1 -0
- package/dist/cjs/ApprovalAuthority.js +62 -0
- package/dist/cjs/ApprovalAuthority.js.map +7 -0
- package/dist/cjs/Cancellation.d.ts +107 -0
- package/dist/cjs/Cancellation.d.ts.map +1 -0
- package/dist/cjs/Cancellation.js +72 -0
- package/dist/cjs/Cancellation.js.map +7 -0
- package/dist/cjs/Channels.d.ts +170 -0
- package/dist/cjs/Channels.d.ts.map +1 -0
- package/dist/cjs/Channels.js +278 -0
- package/dist/cjs/Channels.js.map +7 -0
- package/dist/cjs/Control.d.ts +202 -0
- package/dist/cjs/Control.d.ts.map +1 -0
- package/dist/cjs/Control.js +47 -0
- package/dist/cjs/Control.js.map +7 -0
- package/dist/cjs/ControlClient.d.ts +52 -0
- package/dist/cjs/ControlClient.d.ts.map +1 -0
- package/dist/cjs/ControlClient.js +191 -0
- package/dist/cjs/ControlClient.js.map +7 -0
- package/dist/cjs/ControlError.d.ts +318 -0
- package/dist/cjs/ControlError.d.ts.map +1 -0
- package/dist/cjs/ControlError.js +249 -0
- package/dist/cjs/ControlError.js.map +7 -0
- package/dist/cjs/ControlExecutor.d.ts +372 -0
- package/dist/cjs/ControlExecutor.d.ts.map +1 -0
- package/dist/cjs/ControlExecutor.js +123 -0
- package/dist/cjs/ControlExecutor.js.map +7 -0
- package/dist/cjs/ControlFacts.d.ts +454 -0
- package/dist/cjs/ControlFacts.d.ts.map +1 -0
- package/dist/cjs/ControlFacts.js +261 -0
- package/dist/cjs/ControlFacts.js.map +7 -0
- package/dist/cjs/ControlLive.d.ts +23 -0
- package/dist/cjs/ControlLive.d.ts.map +1 -0
- package/dist/cjs/ControlLive.js +1280 -0
- package/dist/cjs/ControlLive.js.map +7 -0
- package/dist/cjs/ControlRpcs.d.ts +1204 -0
- package/dist/cjs/ControlRpcs.d.ts.map +1 -0
- package/dist/cjs/ControlRpcs.js +247 -0
- package/dist/cjs/ControlRpcs.js.map +7 -0
- package/dist/cjs/ControlRuntime.d.ts +635 -0
- package/dist/cjs/ControlRuntime.d.ts.map +1 -0
- package/dist/cjs/ControlRuntime.js +740 -0
- package/dist/cjs/ControlRuntime.js.map +7 -0
- package/dist/cjs/ControlSchema.d.ts +2642 -0
- package/dist/cjs/ControlSchema.d.ts.map +1 -0
- package/dist/cjs/ControlSchema.js +634 -0
- package/dist/cjs/ControlSchema.js.map +7 -0
- package/dist/cjs/ControlServer.d.ts +51 -0
- package/dist/cjs/ControlServer.d.ts.map +1 -0
- package/dist/cjs/ControlServer.js +121 -0
- package/dist/cjs/ControlServer.js.map +7 -0
- package/dist/cjs/Credential.d.ts +136 -0
- package/dist/cjs/Credential.d.ts.map +1 -0
- package/dist/cjs/Credential.js +168 -0
- package/dist/cjs/Credential.js.map +7 -0
- package/dist/cjs/CredentialCipher.d.ts +90 -0
- package/dist/cjs/CredentialCipher.d.ts.map +1 -0
- package/dist/cjs/CredentialCipher.js +45 -0
- package/dist/cjs/CredentialCipher.js.map +7 -0
- package/dist/cjs/CredentialStore.d.ts +97 -0
- package/dist/cjs/CredentialStore.d.ts.map +1 -0
- package/dist/cjs/CredentialStore.js +81 -0
- package/dist/cjs/CredentialStore.js.map +7 -0
- package/dist/cjs/DispatchReader.d.ts +112 -0
- package/dist/cjs/DispatchReader.d.ts.map +1 -0
- package/dist/cjs/DispatchReader.js +45 -0
- package/dist/cjs/DispatchReader.js.map +7 -0
- package/dist/cjs/Health.d.ts +333 -0
- package/dist/cjs/Health.d.ts.map +1 -0
- package/dist/cjs/Health.js +311 -0
- package/dist/cjs/Health.js.map +7 -0
- package/dist/cjs/JevSessionChecker.d.ts +57 -0
- package/dist/cjs/JevSessionChecker.d.ts.map +1 -0
- package/dist/cjs/JevSessionChecker.js +113 -0
- package/dist/cjs/JevSessionChecker.js.map +7 -0
- package/dist/cjs/Lineage.d.ts +131 -0
- package/dist/cjs/Lineage.d.ts.map +1 -0
- package/dist/cjs/Lineage.js +81 -0
- package/dist/cjs/Lineage.js.map +7 -0
- package/dist/cjs/Migrations.d.ts +34 -0
- package/dist/cjs/Migrations.d.ts.map +1 -0
- package/dist/cjs/Migrations.js +60 -0
- package/dist/cjs/Migrations.js.map +7 -0
- package/dist/cjs/Monitor.d.ts +282 -0
- package/dist/cjs/Monitor.d.ts.map +1 -0
- package/dist/cjs/Monitor.js +283 -0
- package/dist/cjs/Monitor.js.map +7 -0
- package/dist/cjs/ScopedToken.d.ts +193 -0
- package/dist/cjs/ScopedToken.d.ts.map +1 -0
- package/dist/cjs/ScopedToken.js +135 -0
- package/dist/cjs/ScopedToken.js.map +7 -0
- package/dist/cjs/SqlControlRuntime.d.ts +161 -0
- package/dist/cjs/SqlControlRuntime.d.ts.map +1 -0
- package/dist/cjs/SqlControlRuntime.js +1521 -0
- package/dist/cjs/SqlControlRuntime.js.map +7 -0
- package/dist/cjs/SqlCredentialStore.d.ts +43 -0
- package/dist/cjs/SqlCredentialStore.d.ts.map +1 -0
- package/dist/cjs/SqlCredentialStore.js +113 -0
- package/dist/cjs/SqlCredentialStore.js.map +7 -0
- package/dist/cjs/Steering.d.ts +69 -0
- package/dist/cjs/Steering.d.ts.map +1 -0
- package/dist/cjs/Steering.js +49 -0
- package/dist/cjs/Steering.js.map +7 -0
- package/dist/cjs/SystemFlows.d.ts +223 -0
- package/dist/cjs/SystemFlows.d.ts.map +1 -0
- package/dist/cjs/SystemFlows.js +195 -0
- package/dist/cjs/SystemFlows.js.map +7 -0
- package/dist/cjs/WebCryptoCipher.d.ts +49 -0
- package/dist/cjs/WebCryptoCipher.d.ts.map +1 -0
- package/dist/cjs/WebCryptoCipher.js +129 -0
- package/dist/cjs/WebCryptoCipher.js.map +7 -0
- package/dist/cjs/WebhookChannel.d.ts +113 -0
- package/dist/cjs/WebhookChannel.d.ts.map +1 -0
- package/dist/cjs/WebhookChannel.js +98 -0
- package/dist/cjs/WebhookChannel.js.map +7 -0
- package/dist/cjs/index.d.ts +160 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +91 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/internal/MutationBoundary.d.ts +27 -0
- package/dist/cjs/internal/MutationBoundary.d.ts.map +1 -0
- package/dist/cjs/internal/MutationBoundary.js +50 -0
- package/dist/cjs/internal/MutationBoundary.js.map +7 -0
- package/dist/cjs/internal/activeFibers.d.ts +12 -0
- package/dist/cjs/internal/activeFibers.d.ts.map +1 -0
- package/dist/cjs/internal/activeFibers.js +30 -0
- package/dist/cjs/internal/activeFibers.js.map +7 -0
- package/dist/cjs/internal/issues.d.ts +28 -0
- package/dist/cjs/internal/issues.d.ts.map +1 -0
- package/dist/cjs/internal/issues.js +34 -0
- package/dist/cjs/internal/issues.js.map +7 -0
- package/dist/cjs/internal/planning.d.ts +347 -0
- package/dist/cjs/internal/planning.d.ts.map +1 -0
- package/dist/cjs/internal/planning.js +137 -0
- package/dist/cjs/internal/planning.js.map +7 -0
- package/dist/cjs/internal/sqlSchemaErrors.d.ts +18 -0
- package/dist/cjs/internal/sqlSchemaErrors.d.ts.map +1 -0
- package/dist/cjs/internal/sqlSchemaErrors.js +40 -0
- package/dist/cjs/internal/sqlSchemaErrors.js.map +7 -0
- package/dist/cjs/migrations/0001_control_tables.d.ts +18 -0
- package/dist/cjs/migrations/0001_control_tables.d.ts.map +1 -0
- package/dist/cjs/migrations/0001_control_tables.js +115 -0
- package/dist/cjs/migrations/0001_control_tables.js.map +7 -0
- package/dist/cjs/migrations/0002_run_keys.d.ts +15 -0
- package/dist/cjs/migrations/0002_run_keys.d.ts.map +1 -0
- package/dist/cjs/migrations/0002_run_keys.js +44 -0
- package/dist/cjs/migrations/0002_run_keys.js.map +7 -0
- package/dist/cjs/migrations/0003_signal_commands.d.ts +13 -0
- package/dist/cjs/migrations/0003_signal_commands.d.ts.map +1 -0
- package/dist/cjs/migrations/0003_signal_commands.js +50 -0
- package/dist/cjs/migrations/0003_signal_commands.js.map +7 -0
- package/dist/cjs/migrations/0004_approval_decisions.d.ts +13 -0
- package/dist/cjs/migrations/0004_approval_decisions.d.ts.map +1 -0
- package/dist/cjs/migrations/0004_approval_decisions.js +45 -0
- package/dist/cjs/migrations/0004_approval_decisions.js.map +7 -0
- package/dist/cjs/migrations/0005_signal_principals.d.ts +18 -0
- package/dist/cjs/migrations/0005_signal_principals.d.ts.map +1 -0
- package/dist/cjs/migrations/0005_signal_principals.js +45 -0
- package/dist/cjs/migrations/0005_signal_principals.js.map +7 -0
- package/dist/cjs/migrations/0006_run_principals.d.ts +18 -0
- package/dist/cjs/migrations/0006_run_principals.d.ts.map +1 -0
- package/dist/cjs/migrations/0006_run_principals.js +49 -0
- package/dist/cjs/migrations/0006_run_principals.js.map +7 -0
- package/dist/cjs/migrations/0007_resume_consent.d.ts +18 -0
- package/dist/cjs/migrations/0007_resume_consent.d.ts.map +1 -0
- package/dist/cjs/migrations/0007_resume_consent.js +46 -0
- package/dist/cjs/migrations/0007_resume_consent.js.map +7 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/test/TestControl.d.ts +19 -0
- package/dist/cjs/test/TestControl.d.ts.map +1 -0
- package/dist/cjs/test/TestControl.js +62 -0
- package/dist/cjs/test/TestControl.js.map +7 -0
- package/dist/esm/ApprovalAuthority.d.ts +73 -0
- package/dist/esm/ApprovalAuthority.d.ts.map +1 -0
- package/dist/esm/ApprovalAuthority.js +72 -0
- package/dist/esm/ApprovalAuthority.js.map +1 -0
- package/dist/esm/Cancellation.d.ts +107 -0
- package/dist/esm/Cancellation.d.ts.map +1 -0
- package/dist/esm/Cancellation.js +116 -0
- package/dist/esm/Cancellation.js.map +1 -0
- package/dist/esm/Channels.d.ts +170 -0
- package/dist/esm/Channels.d.ts.map +1 -0
- package/dist/esm/Channels.js +312 -0
- package/dist/esm/Channels.js.map +1 -0
- package/dist/esm/Control.d.ts +202 -0
- package/dist/esm/Control.d.ts.map +1 -0
- package/dist/esm/Control.js +42 -0
- package/dist/esm/Control.js.map +1 -0
- package/dist/esm/ControlClient.d.ts +52 -0
- package/dist/esm/ControlClient.d.ts.map +1 -0
- package/dist/esm/ControlClient.js +217 -0
- package/dist/esm/ControlClient.js.map +1 -0
- package/dist/esm/ControlError.d.ts +318 -0
- package/dist/esm/ControlError.d.ts.map +1 -0
- package/dist/esm/ControlError.js +359 -0
- package/dist/esm/ControlError.js.map +1 -0
- package/dist/esm/ControlExecutor.d.ts +372 -0
- package/dist/esm/ControlExecutor.d.ts.map +1 -0
- package/dist/esm/ControlExecutor.js +212 -0
- package/dist/esm/ControlExecutor.js.map +1 -0
- package/dist/esm/ControlFacts.d.ts +454 -0
- package/dist/esm/ControlFacts.d.ts.map +1 -0
- package/dist/esm/ControlFacts.js +324 -0
- package/dist/esm/ControlFacts.js.map +1 -0
- package/dist/esm/ControlLive.d.ts +23 -0
- package/dist/esm/ControlLive.d.ts.map +1 -0
- package/dist/esm/ControlLive.js +1585 -0
- package/dist/esm/ControlLive.js.map +1 -0
- package/dist/esm/ControlRpcs.d.ts +1204 -0
- package/dist/esm/ControlRpcs.d.ts.map +1 -0
- package/dist/esm/ControlRpcs.js +299 -0
- package/dist/esm/ControlRpcs.js.map +1 -0
- package/dist/esm/ControlRuntime.d.ts +635 -0
- package/dist/esm/ControlRuntime.d.ts.map +1 -0
- package/dist/esm/ControlRuntime.js +807 -0
- package/dist/esm/ControlRuntime.js.map +1 -0
- package/dist/esm/ControlSchema.d.ts +2642 -0
- package/dist/esm/ControlSchema.d.ts.map +1 -0
- package/dist/esm/ControlSchema.js +1030 -0
- package/dist/esm/ControlSchema.js.map +1 -0
- package/dist/esm/ControlServer.d.ts +51 -0
- package/dist/esm/ControlServer.d.ts.map +1 -0
- package/dist/esm/ControlServer.js +145 -0
- package/dist/esm/ControlServer.js.map +1 -0
- package/dist/esm/Credential.d.ts +136 -0
- package/dist/esm/Credential.d.ts.map +1 -0
- package/dist/esm/Credential.js +190 -0
- package/dist/esm/Credential.js.map +1 -0
- package/dist/esm/CredentialCipher.d.ts +90 -0
- package/dist/esm/CredentialCipher.d.ts.map +1 -0
- package/dist/esm/CredentialCipher.js +56 -0
- package/dist/esm/CredentialCipher.js.map +1 -0
- package/dist/esm/CredentialStore.d.ts +97 -0
- package/dist/esm/CredentialStore.d.ts.map +1 -0
- package/dist/esm/CredentialStore.js +101 -0
- package/dist/esm/CredentialStore.js.map +1 -0
- package/dist/esm/DispatchReader.d.ts +112 -0
- package/dist/esm/DispatchReader.d.ts.map +1 -0
- package/dist/esm/DispatchReader.js +76 -0
- package/dist/esm/DispatchReader.js.map +1 -0
- package/dist/esm/Health.d.ts +333 -0
- package/dist/esm/Health.d.ts.map +1 -0
- package/dist/esm/Health.js +400 -0
- package/dist/esm/Health.js.map +1 -0
- package/dist/esm/JevSessionChecker.d.ts +57 -0
- package/dist/esm/JevSessionChecker.d.ts.map +1 -0
- package/dist/esm/JevSessionChecker.js +108 -0
- package/dist/esm/JevSessionChecker.js.map +1 -0
- package/dist/esm/Lineage.d.ts +131 -0
- package/dist/esm/Lineage.d.ts.map +1 -0
- package/dist/esm/Lineage.js +174 -0
- package/dist/esm/Lineage.js.map +1 -0
- package/dist/esm/Migrations.d.ts +34 -0
- package/dist/esm/Migrations.d.ts.map +1 -0
- package/dist/esm/Migrations.js +53 -0
- package/dist/esm/Migrations.js.map +1 -0
- package/dist/esm/Monitor.d.ts +282 -0
- package/dist/esm/Monitor.d.ts.map +1 -0
- package/dist/esm/Monitor.js +415 -0
- package/dist/esm/Monitor.js.map +1 -0
- package/dist/esm/ScopedToken.d.ts +193 -0
- package/dist/esm/ScopedToken.d.ts.map +1 -0
- package/dist/esm/ScopedToken.js +224 -0
- package/dist/esm/ScopedToken.js.map +1 -0
- package/dist/esm/SqlControlRuntime.d.ts +161 -0
- package/dist/esm/SqlControlRuntime.d.ts.map +1 -0
- package/dist/esm/SqlControlRuntime.js +1756 -0
- package/dist/esm/SqlControlRuntime.js.map +1 -0
- package/dist/esm/SqlCredentialStore.d.ts +43 -0
- package/dist/esm/SqlCredentialStore.d.ts.map +1 -0
- package/dist/esm/SqlCredentialStore.js +97 -0
- package/dist/esm/SqlCredentialStore.js.map +1 -0
- package/dist/esm/Steering.d.ts +69 -0
- package/dist/esm/Steering.d.ts.map +1 -0
- package/dist/esm/Steering.js +89 -0
- package/dist/esm/Steering.js.map +1 -0
- package/dist/esm/SystemFlows.d.ts +223 -0
- package/dist/esm/SystemFlows.d.ts.map +1 -0
- package/dist/esm/SystemFlows.js +198 -0
- package/dist/esm/SystemFlows.js.map +1 -0
- package/dist/esm/WebCryptoCipher.d.ts +49 -0
- package/dist/esm/WebCryptoCipher.d.ts.map +1 -0
- package/dist/esm/WebCryptoCipher.js +123 -0
- package/dist/esm/WebCryptoCipher.js.map +1 -0
- package/dist/esm/WebhookChannel.d.ts +113 -0
- package/dist/esm/WebhookChannel.d.ts.map +1 -0
- package/dist/esm/WebhookChannel.js +109 -0
- package/dist/esm/WebhookChannel.js.map +1 -0
- package/dist/esm/index.d.ts +160 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +160 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/internal/MutationBoundary.d.ts +27 -0
- package/dist/esm/internal/MutationBoundary.d.ts.map +1 -0
- package/dist/esm/internal/MutationBoundary.js +40 -0
- package/dist/esm/internal/MutationBoundary.js.map +1 -0
- package/dist/esm/internal/activeFibers.d.ts +12 -0
- package/dist/esm/internal/activeFibers.d.ts.map +1 -0
- package/dist/esm/internal/activeFibers.js +17 -0
- package/dist/esm/internal/activeFibers.js.map +1 -0
- package/dist/esm/internal/issues.d.ts +28 -0
- package/dist/esm/internal/issues.d.ts.map +1 -0
- package/dist/esm/internal/issues.js +35 -0
- package/dist/esm/internal/issues.js.map +1 -0
- package/dist/esm/internal/planning.d.ts +347 -0
- package/dist/esm/internal/planning.d.ts.map +1 -0
- package/dist/esm/internal/planning.js +199 -0
- package/dist/esm/internal/planning.js.map +1 -0
- package/dist/esm/internal/sqlSchemaErrors.d.ts +18 -0
- package/dist/esm/internal/sqlSchemaErrors.d.ts.map +1 -0
- package/dist/esm/internal/sqlSchemaErrors.js +38 -0
- package/dist/esm/internal/sqlSchemaErrors.js.map +1 -0
- package/dist/esm/migrations/0001_control_tables.d.ts +18 -0
- package/dist/esm/migrations/0001_control_tables.d.ts.map +1 -0
- package/dist/esm/migrations/0001_control_tables.js +96 -0
- package/dist/esm/migrations/0001_control_tables.js.map +1 -0
- package/dist/esm/migrations/0002_run_keys.d.ts +15 -0
- package/dist/esm/migrations/0002_run_keys.d.ts.map +1 -0
- package/dist/esm/migrations/0002_run_keys.js +22 -0
- package/dist/esm/migrations/0002_run_keys.js.map +1 -0
- package/dist/esm/migrations/0003_signal_commands.d.ts +13 -0
- package/dist/esm/migrations/0003_signal_commands.d.ts.map +1 -0
- package/dist/esm/migrations/0003_signal_commands.js +26 -0
- package/dist/esm/migrations/0003_signal_commands.js.map +1 -0
- package/dist/esm/migrations/0004_approval_decisions.d.ts +13 -0
- package/dist/esm/migrations/0004_approval_decisions.d.ts.map +1 -0
- package/dist/esm/migrations/0004_approval_decisions.js +25 -0
- package/dist/esm/migrations/0004_approval_decisions.js.map +1 -0
- package/dist/esm/migrations/0005_signal_principals.d.ts +18 -0
- package/dist/esm/migrations/0005_signal_principals.d.ts.map +1 -0
- package/dist/esm/migrations/0005_signal_principals.js +27 -0
- package/dist/esm/migrations/0005_signal_principals.js.map +1 -0
- package/dist/esm/migrations/0006_run_principals.d.ts +18 -0
- package/dist/esm/migrations/0006_run_principals.d.ts.map +1 -0
- package/dist/esm/migrations/0006_run_principals.js +30 -0
- package/dist/esm/migrations/0006_run_principals.js.map +1 -0
- package/dist/esm/migrations/0007_resume_consent.d.ts +18 -0
- package/dist/esm/migrations/0007_resume_consent.d.ts.map +1 -0
- package/dist/esm/migrations/0007_resume_consent.js +27 -0
- package/dist/esm/migrations/0007_resume_consent.js.map +1 -0
- package/dist/esm/test/TestControl.d.ts +19 -0
- package/dist/esm/test/TestControl.d.ts.map +1 -0
- package/dist/esm/test/TestControl.js +30 -0
- package/dist/esm/test/TestControl.js.map +1 -0
- package/docs/README.md +189 -0
- package/docs/api.md +982 -0
- package/docs/concepts/authority.md +109 -0
- package/docs/concepts/cancellation.md +129 -0
- package/docs/concepts/lineage.md +132 -0
- package/docs/concepts/ownership.md +139 -0
- package/docs/concepts/projections.md +203 -0
- package/docs/concepts/receipts.md +128 -0
- package/docs/guides/approvals.md +284 -0
- package/docs/guides/cancel-and-resume.md +162 -0
- package/docs/guides/durable-storage.md +147 -0
- package/docs/guides/implement-an-executor.md +173 -0
- package/docs/guides/ingest-a-webhook.md +177 -0
- package/docs/guides/list-runs.md +160 -0
- package/docs/guides/monitor-runs.md +176 -0
- package/docs/guides/observe-health.md +147 -0
- package/docs/guides/postgres-tests.md +5 -0
- package/docs/guides/serve-over-rpc.md +220 -0
- package/docs/guides/signal-a-run.md +53 -0
- package/docs/guides/steer-a-run.md +138 -0
- package/docs/guides/store-credentials.md +164 -0
- package/docs/guides/testing.md +139 -0
- package/docs/guides/watch-a-run.md +154 -0
- package/docs/installation.md +106 -0
- package/docs/quickstart.md +163 -0
- package/docs/troubleshooting.md +208 -0
- package/package.json +405 -3
- package/src/ApprovalAuthority.ts +114 -0
- package/src/Cancellation.ts +172 -0
- package/src/Channels.ts +493 -0
- package/src/Control.ts +337 -0
- package/src/ControlClient.ts +319 -0
- package/src/ControlError.ts +378 -0
- package/src/ControlExecutor.ts +490 -0
- package/src/ControlFacts.ts +383 -0
- package/src/ControlLive.ts +2113 -0
- package/src/ControlRpcs.ts +443 -0
- package/src/ControlRuntime.ts +1597 -0
- package/src/ControlSchema.ts +1380 -0
- package/src/ControlServer.ts +182 -0
- package/src/Credential.ts +310 -0
- package/src/CredentialCipher.ts +110 -0
- package/src/CredentialStore.ts +152 -0
- package/src/DispatchReader.ts +122 -0
- package/src/Health.ts +591 -0
- package/src/JevSessionChecker.ts +127 -0
- package/src/Lineage.ts +203 -0
- package/src/Migrations.ts +56 -0
- package/src/Monitor.ts +600 -0
- package/src/ScopedToken.ts +306 -0
- package/src/SqlControlRuntime.ts +2476 -0
- package/src/SqlCredentialStore.ts +148 -0
- package/src/Steering.ts +96 -0
- package/src/SystemFlows.ts +225 -0
- package/src/WebCryptoCipher.ts +169 -0
- package/src/WebhookChannel.ts +166 -0
- package/src/index.ts +188 -0
- package/src/internal/MutationBoundary.ts +46 -0
- package/src/internal/activeFibers.ts +22 -0
- package/src/internal/issues.ts +40 -0
- package/src/internal/planning.ts +262 -0
- package/src/internal/sqlSchemaErrors.ts +37 -0
- package/src/migrations/0001_control_tables.ts +99 -0
- package/src/migrations/0002_run_keys.ts +23 -0
- package/src/migrations/0003_signal_commands.ts +27 -0
- package/src/migrations/0004_approval_decisions.ts +25 -0
- package/src/migrations/0005_signal_principals.ts +27 -0
- package/src/migrations/0006_run_principals.ts +31 -0
- package/src/migrations/0007_resume_consent.ts +28 -0
- package/src/test/TestControl.ts +47 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Troubleshooting"
|
|
3
|
+
description: "The refusals @smthrs/control reports, the symptom each one shows up as, what causes it, and what to change: typed failures, unexpected receipts, and empty projections."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Every failure this package reports is a typed class with a stable `code` a
|
|
7
|
+
client may branch on. `ControlError.ControlErrorSchema` is the single
|
|
8
|
+
membership list, and `ControlClient.isControlError` is derived from it.
|
|
9
|
+
|
|
10
|
+
## Typed failures
|
|
11
|
+
|
|
12
|
+
### `PlanNotFound` (`plan_not_found`)
|
|
13
|
+
|
|
14
|
+
No plan or node approval token with this id. The message names the next action:
|
|
15
|
+
create the plan again before approving or launching it.
|
|
16
|
+
|
|
17
|
+
A common cause is a plane that restarted on `ControlRuntime.layerMemory`.
|
|
18
|
+
Nothing that runtime decides survives the process. Move to
|
|
19
|
+
[`SqlControlRuntime`](./guides/durable-storage.md).
|
|
20
|
+
|
|
21
|
+
### `PlanDenied` (`plan_denied`)
|
|
22
|
+
|
|
23
|
+
The plan was denied and cannot be launched. A denial is terminal: create and
|
|
24
|
+
approve a new plan rather than trying to revive this one.
|
|
25
|
+
|
|
26
|
+
### `PlanDigestMismatch` (`plan_digest_mismatch`)
|
|
27
|
+
|
|
28
|
+
The submitted digest is not the stored one, and the failure carries both.
|
|
29
|
+
Resubmit the card unchanged: `card.approval` and `card.digest` are the exact
|
|
30
|
+
values the plan phase produced. Rebuilding an approval payload on the client is
|
|
31
|
+
how the two drift apart.
|
|
32
|
+
|
|
33
|
+
If the digests differ for the _same_ input, something in the plan changed:
|
|
34
|
+
the envelope, the deploy-class flag, or the keyed node graph. That is the check
|
|
35
|
+
working.
|
|
36
|
+
|
|
37
|
+
### `EnvelopeMismatch` (`envelope_mismatch`)
|
|
38
|
+
|
|
39
|
+
The submitted envelope is not the stored one. Envelopes are compared by
|
|
40
|
+
canonical bytes, so key order does not matter but a missing or extra capability
|
|
41
|
+
does. Pass `card.envelope` through unchanged.
|
|
42
|
+
|
|
43
|
+
### `AlreadyResolved` (`already_resolved`)
|
|
44
|
+
|
|
45
|
+
This approval token already carries a terminal decision. A second decision is
|
|
46
|
+
refused rather than overwriting the first, so this is also the durable evidence
|
|
47
|
+
that the first decision stuck.
|
|
48
|
+
|
|
49
|
+
### `FlowNotFound` (`flow_not_found`)
|
|
50
|
+
|
|
51
|
+
The runtime has no flow with this id. The control plane's catalog and the
|
|
52
|
+
engine's registrations are separate on purpose: one is what may be planned, the
|
|
53
|
+
other is what may be executed. Add the flow to the runtime's `flows` option, or
|
|
54
|
+
to the registry the plane lists from.
|
|
55
|
+
|
|
56
|
+
### `RunNotFound` (`run_not_found`)
|
|
57
|
+
|
|
58
|
+
This plane has no such run. Two causes are worth separating:
|
|
59
|
+
|
|
60
|
+
- The run id is wrong. Confirm it with [`list`](./guides/list-runs.md).
|
|
61
|
+
- The run exists in the _engine's_ database and this plane keeps its own. See
|
|
62
|
+
[two run tables, one journal](./concepts/authority.md).
|
|
63
|
+
|
|
64
|
+
### `ClaimLost` (`claim_lost`)
|
|
65
|
+
|
|
66
|
+
A live peer holds the run, or the fence you presented has been superseded. A
|
|
67
|
+
run at `running`, or at the `accepted` a claim writes, is being driven by
|
|
68
|
+
another process, so there is nothing to restart.
|
|
69
|
+
|
|
70
|
+
Do not retry in a loop. Read the run's `ownerId` and `parkedBy`, and see
|
|
71
|
+
[Ownership, fences, and claims](./concepts/ownership.md).
|
|
72
|
+
|
|
73
|
+
### `NoMatchingWait` (`no_matching_wait`)
|
|
74
|
+
|
|
75
|
+
The signal named a wait point the run does not have open. The message says
|
|
76
|
+
which run and which name; `smthrs runs show <run>` shows what it waits for. The run is
|
|
77
|
+
parked on something else, so completing this wait would deliver nothing.
|
|
78
|
+
|
|
79
|
+
### `InvalidInput` (`invalid_input`)
|
|
80
|
+
|
|
81
|
+
The request did not satisfy its schema or a stated precondition. The `issue`
|
|
82
|
+
field names the path. The ones you will actually meet:
|
|
83
|
+
|
|
84
|
+
| `issue` | Fix |
|
|
85
|
+
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
|
|
86
|
+
| `afterSequence: a watch cursor resumes one run, so it requires runId` | Scope the watch. Sequences are partition-local. |
|
|
87
|
+
| `limit: must be an integer between 1 and 500, received 0` | Use a page size in range, or omit it for 100. |
|
|
88
|
+
| `cursor: must be a cursor this listing returned, received "..."` | Pass back `nextCursor` verbatim. |
|
|
89
|
+
| `message.runId: must be "run-17", received "run-18"` | The steer's envelope and the call must name one run. |
|
|
90
|
+
| `<operation>: contains an accessor` (or a cycle, a non-plain object, a non-finite number) | Pass plain JSON data. The identity boundary refuses anything it cannot copy inertly. |
|
|
91
|
+
| `<operation>.idempotencyKey: must be 1 to 1024 well-formed characters` | Shorten the key, or remove the lone surrogate or NUL. |
|
|
92
|
+
| `webhook body: declared N bytes exceeds the M byte limit` | Raise the mount's ceiling, or send less. |
|
|
93
|
+
|
|
94
|
+
### `Unauthorized` (`unauthorized`)
|
|
95
|
+
|
|
96
|
+
No usable credential. The bearer authenticator fails closed the same way for a
|
|
97
|
+
missing, malformed, empty, or incorrect token, so the response never says which.
|
|
98
|
+
Check that the client's `credential` and the server's `token` are the same
|
|
99
|
+
string.
|
|
100
|
+
|
|
101
|
+
`Credential` also reports `Unauthorized` for a credential that does not exist,
|
|
102
|
+
deliberately indistinguishable from one the caller may not have.
|
|
103
|
+
|
|
104
|
+
### `Unavailable` (`unavailable`)
|
|
105
|
+
|
|
106
|
+
The operation is not implemented in this composition. `feature` names the verb
|
|
107
|
+
or capability that is missing, and `ticket` is a constant identifier for the
|
|
108
|
+
integration behind it, stable enough to group reports by.
|
|
109
|
+
|
|
110
|
+
| `feature` | Cause |
|
|
111
|
+
| --------------------------------------------- | ------------------------------------------------------------------ |
|
|
112
|
+
| any `Control` verb | `Control.layerNoop` is provided. Provide `ControlLive.layer`. |
|
|
113
|
+
| `watch` | The composition has no open journal. |
|
|
114
|
+
| `credential storage`, `credential encryption` | A noop store or cipher is provided, or the host has no Web Crypto. |
|
|
115
|
+
| `channel "<name>" is not registered` | Call `channels.register` before the first request arrives. |
|
|
116
|
+
|
|
117
|
+
### `CredentialConflict` (`credential_conflict`)
|
|
118
|
+
|
|
119
|
+
Two rotations raced, and this one read the older version. The failure carries
|
|
120
|
+
`expectedVersion` and `actualVersion`. Re-read the record and rotate again.
|
|
121
|
+
|
|
122
|
+
A `rotate` with `expected` also fails this way, with both versions equal, when
|
|
123
|
+
the stored secret is no longer `expected`: another writer already replaced it.
|
|
124
|
+
|
|
125
|
+
### `LaunchFailed` (`launch_failed`)
|
|
126
|
+
|
|
127
|
+
The executor refused or could not start the run. The plane settles the run row
|
|
128
|
+
as `failed` and journals `control.run.failed` with the cause, so the run does
|
|
129
|
+
not survive as an unlaunched row no verb can end. The admission receipt remains;
|
|
130
|
+
inspect that run before an explicit retry with a new idempotency key.
|
|
131
|
+
|
|
132
|
+
### `PersistenceError` (`persistence_failed`)
|
|
133
|
+
|
|
134
|
+
A store operation failed. `operation` names what was being attempted and
|
|
135
|
+
`cause` keeps the driver's own error. A `<operation>.idempotency` operation
|
|
136
|
+
means the mutation and its receipt could not be committed atomically.
|
|
137
|
+
|
|
138
|
+
Operation `watch` means a journal read failed while serving a watch.
|
|
139
|
+
Operation `credential.open` means a stored credential did not open: its nonce
|
|
140
|
+
is malformed, or its ciphertext failed authentication because the key is not
|
|
141
|
+
the one that sealed it, its metadata changed, or its bytes were tampered with.
|
|
142
|
+
|
|
143
|
+
### `TransportError` (`transport_error`)
|
|
144
|
+
|
|
145
|
+
The request failed before a declared control response reached the caller. Only
|
|
146
|
+
`retryable` transport phases are worth resending, and only when the mutation
|
|
147
|
+
carries an idempotency key that makes replay safe. See
|
|
148
|
+
[Serve the control plane over RPC](./guides/serve-over-rpc.md).
|
|
149
|
+
|
|
150
|
+
## Receipts that surprise people
|
|
151
|
+
|
|
152
|
+
### `run` answered `Parked`, and nothing started
|
|
153
|
+
|
|
154
|
+
The plan is undecided. That is the approval gate working: approve
|
|
155
|
+
`card.approval` and call `run` again with the same key. See
|
|
156
|
+
[Gate work behind an approval](./guides/approvals.md).
|
|
157
|
+
|
|
158
|
+
### `cancel` answered `Terminal`, not `Accepted`
|
|
159
|
+
|
|
160
|
+
The run settled. Either it had already finished, or this call interrupted it
|
|
161
|
+
and it is now `cancelled`. Both are the true answer about the run;
|
|
162
|
+
`Accepted` is what you get when a live peer will act on the durable request
|
|
163
|
+
instead.
|
|
164
|
+
|
|
165
|
+
### A retry answered `Conflict`
|
|
166
|
+
|
|
167
|
+
The key already names a different mutation. The fingerprint is a digest of the
|
|
168
|
+
operation, the actor, and the decoded request, so any change to the request
|
|
169
|
+
under one key is a conflict. Use a new key for a new intent.
|
|
170
|
+
|
|
171
|
+
### `resume` answered `Terminal` for a run that looks parked
|
|
172
|
+
|
|
173
|
+
The plane read the run's terminality before the idempotency replay, so this is
|
|
174
|
+
the run's current state rather than a recorded answer. If the plane's row
|
|
175
|
+
disagrees with what you see elsewhere, the two are different databases.
|
|
176
|
+
|
|
177
|
+
## Projections that come back empty
|
|
178
|
+
|
|
179
|
+
### `waitingReason`, `origin`, and `cancellation` are always absent
|
|
180
|
+
|
|
181
|
+
Those fields are read from the engine's own columns and journal entries, so
|
|
182
|
+
they need the control runtime and the engine to share one database. The
|
|
183
|
+
[`smthrs` CLI](/api/cli) keeps `.flows/control.db` and `.flows/engine.db`
|
|
184
|
+
apart, and the fields are empty there by design. See
|
|
185
|
+
[Store control state in a database](./guides/durable-storage.md).
|
|
186
|
+
|
|
187
|
+
They are also absent on `ControlRuntime.layerMemory`, which has no engine to
|
|
188
|
+
read.
|
|
189
|
+
|
|
190
|
+
### `steering.pending` is absent
|
|
191
|
+
|
|
192
|
+
The notification queue could not answer. The field is left absent rather than
|
|
193
|
+
guessed, because "not known" is representable and it is the truth.
|
|
194
|
+
|
|
195
|
+
### `watch` returned nothing for a run that exists
|
|
196
|
+
|
|
197
|
+
A watch of an empty partition is empty, not an error. Check that the run id is
|
|
198
|
+
the _execution_ id the engine journals under, which is the id the `Accepted`
|
|
199
|
+
receipt carried.
|
|
200
|
+
|
|
201
|
+
## Where to go next
|
|
202
|
+
|
|
203
|
+
- [Receipts and idempotency](./concepts/receipts.md): why a second ask answers
|
|
204
|
+
what it answers.
|
|
205
|
+
- [Ownership, fences, and claims](./concepts/ownership.md): the model behind
|
|
206
|
+
`ClaimLost` and `parkedBy`.
|
|
207
|
+
- [Errors on smithers.sh](/docs/reference/errors/): the same codes as an
|
|
208
|
+
operator meets them.
|
package/package.json
CHANGED
|
@@ -1,6 +1,408 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smthrs/control",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.0-rc.3",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"smthrs": {
|
|
7
|
+
"group": "agent"
|
|
8
|
+
},
|
|
9
|
+
"description": "Control services and RPC projections for flows",
|
|
10
|
+
"homepage": "https://github.com/smithersai/smithers",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/smithersai/smithers.git",
|
|
14
|
+
"directory": "packages/smithers/control"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/smithersai/smithers/issues"
|
|
18
|
+
},
|
|
19
|
+
"tags": [
|
|
20
|
+
"typescript",
|
|
21
|
+
"effect",
|
|
22
|
+
"control",
|
|
23
|
+
"flow"
|
|
24
|
+
],
|
|
25
|
+
"keywords": [
|
|
26
|
+
"typescript",
|
|
27
|
+
"effect",
|
|
28
|
+
"control",
|
|
29
|
+
"flow"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=26.4.0"
|
|
33
|
+
},
|
|
34
|
+
"sideEffects": [],
|
|
35
|
+
"exports": {
|
|
36
|
+
"./package.json": "./package.json",
|
|
37
|
+
".": {
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/esm/index.d.ts",
|
|
40
|
+
"default": "./dist/esm/index.js"
|
|
41
|
+
},
|
|
42
|
+
"require": {
|
|
43
|
+
"types": "./dist/cjs/index.d.ts",
|
|
44
|
+
"default": "./dist/cjs/index.js"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"./internal/*": null,
|
|
48
|
+
"./migrations/*": null,
|
|
49
|
+
"./*/index": null,
|
|
50
|
+
"./ApprovalAuthority": {
|
|
51
|
+
"import": {
|
|
52
|
+
"types": "./dist/esm/ApprovalAuthority.d.ts",
|
|
53
|
+
"default": "./dist/esm/ApprovalAuthority.js"
|
|
54
|
+
},
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./dist/cjs/ApprovalAuthority.d.ts",
|
|
57
|
+
"default": "./dist/cjs/ApprovalAuthority.js"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"./Cancellation": {
|
|
61
|
+
"import": {
|
|
62
|
+
"types": "./dist/esm/Cancellation.d.ts",
|
|
63
|
+
"default": "./dist/esm/Cancellation.js"
|
|
64
|
+
},
|
|
65
|
+
"require": {
|
|
66
|
+
"types": "./dist/cjs/Cancellation.d.ts",
|
|
67
|
+
"default": "./dist/cjs/Cancellation.js"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"./Channels": {
|
|
71
|
+
"import": {
|
|
72
|
+
"types": "./dist/esm/Channels.d.ts",
|
|
73
|
+
"default": "./dist/esm/Channels.js"
|
|
74
|
+
},
|
|
75
|
+
"require": {
|
|
76
|
+
"types": "./dist/cjs/Channels.d.ts",
|
|
77
|
+
"default": "./dist/cjs/Channels.js"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"./Control": {
|
|
81
|
+
"import": {
|
|
82
|
+
"types": "./dist/esm/Control.d.ts",
|
|
83
|
+
"default": "./dist/esm/Control.js"
|
|
84
|
+
},
|
|
85
|
+
"require": {
|
|
86
|
+
"types": "./dist/cjs/Control.d.ts",
|
|
87
|
+
"default": "./dist/cjs/Control.js"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"./ControlClient": {
|
|
91
|
+
"import": {
|
|
92
|
+
"types": "./dist/esm/ControlClient.d.ts",
|
|
93
|
+
"default": "./dist/esm/ControlClient.js"
|
|
94
|
+
},
|
|
95
|
+
"require": {
|
|
96
|
+
"types": "./dist/cjs/ControlClient.d.ts",
|
|
97
|
+
"default": "./dist/cjs/ControlClient.js"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"./ControlError": {
|
|
101
|
+
"import": {
|
|
102
|
+
"types": "./dist/esm/ControlError.d.ts",
|
|
103
|
+
"default": "./dist/esm/ControlError.js"
|
|
104
|
+
},
|
|
105
|
+
"require": {
|
|
106
|
+
"types": "./dist/cjs/ControlError.d.ts",
|
|
107
|
+
"default": "./dist/cjs/ControlError.js"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"./ControlExecutor": {
|
|
111
|
+
"import": {
|
|
112
|
+
"types": "./dist/esm/ControlExecutor.d.ts",
|
|
113
|
+
"default": "./dist/esm/ControlExecutor.js"
|
|
114
|
+
},
|
|
115
|
+
"require": {
|
|
116
|
+
"types": "./dist/cjs/ControlExecutor.d.ts",
|
|
117
|
+
"default": "./dist/cjs/ControlExecutor.js"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"./ControlLive": {
|
|
121
|
+
"import": {
|
|
122
|
+
"types": "./dist/esm/ControlLive.d.ts",
|
|
123
|
+
"default": "./dist/esm/ControlLive.js"
|
|
124
|
+
},
|
|
125
|
+
"require": {
|
|
126
|
+
"types": "./dist/cjs/ControlLive.d.ts",
|
|
127
|
+
"default": "./dist/cjs/ControlLive.js"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"./ControlRpcs": {
|
|
131
|
+
"import": {
|
|
132
|
+
"types": "./dist/esm/ControlRpcs.d.ts",
|
|
133
|
+
"default": "./dist/esm/ControlRpcs.js"
|
|
134
|
+
},
|
|
135
|
+
"require": {
|
|
136
|
+
"types": "./dist/cjs/ControlRpcs.d.ts",
|
|
137
|
+
"default": "./dist/cjs/ControlRpcs.js"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"./ControlRuntime": {
|
|
141
|
+
"import": {
|
|
142
|
+
"types": "./dist/esm/ControlRuntime.d.ts",
|
|
143
|
+
"default": "./dist/esm/ControlRuntime.js"
|
|
144
|
+
},
|
|
145
|
+
"require": {
|
|
146
|
+
"types": "./dist/cjs/ControlRuntime.d.ts",
|
|
147
|
+
"default": "./dist/cjs/ControlRuntime.js"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"./ControlSchema": {
|
|
151
|
+
"import": {
|
|
152
|
+
"types": "./dist/esm/ControlSchema.d.ts",
|
|
153
|
+
"default": "./dist/esm/ControlSchema.js"
|
|
154
|
+
},
|
|
155
|
+
"require": {
|
|
156
|
+
"types": "./dist/cjs/ControlSchema.d.ts",
|
|
157
|
+
"default": "./dist/cjs/ControlSchema.js"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"./ControlServer": {
|
|
161
|
+
"import": {
|
|
162
|
+
"types": "./dist/esm/ControlServer.d.ts",
|
|
163
|
+
"default": "./dist/esm/ControlServer.js"
|
|
164
|
+
},
|
|
165
|
+
"require": {
|
|
166
|
+
"types": "./dist/cjs/ControlServer.d.ts",
|
|
167
|
+
"default": "./dist/cjs/ControlServer.js"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"./Credential": {
|
|
171
|
+
"import": {
|
|
172
|
+
"types": "./dist/esm/Credential.d.ts",
|
|
173
|
+
"default": "./dist/esm/Credential.js"
|
|
174
|
+
},
|
|
175
|
+
"require": {
|
|
176
|
+
"types": "./dist/cjs/Credential.d.ts",
|
|
177
|
+
"default": "./dist/cjs/Credential.js"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"./CredentialCipher": {
|
|
181
|
+
"import": {
|
|
182
|
+
"types": "./dist/esm/CredentialCipher.d.ts",
|
|
183
|
+
"default": "./dist/esm/CredentialCipher.js"
|
|
184
|
+
},
|
|
185
|
+
"require": {
|
|
186
|
+
"types": "./dist/cjs/CredentialCipher.d.ts",
|
|
187
|
+
"default": "./dist/cjs/CredentialCipher.js"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"./CredentialStore": {
|
|
191
|
+
"import": {
|
|
192
|
+
"types": "./dist/esm/CredentialStore.d.ts",
|
|
193
|
+
"default": "./dist/esm/CredentialStore.js"
|
|
194
|
+
},
|
|
195
|
+
"require": {
|
|
196
|
+
"types": "./dist/cjs/CredentialStore.d.ts",
|
|
197
|
+
"default": "./dist/cjs/CredentialStore.js"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"./DispatchReader": {
|
|
201
|
+
"import": {
|
|
202
|
+
"types": "./dist/esm/DispatchReader.d.ts",
|
|
203
|
+
"default": "./dist/esm/DispatchReader.js"
|
|
204
|
+
},
|
|
205
|
+
"require": {
|
|
206
|
+
"types": "./dist/cjs/DispatchReader.d.ts",
|
|
207
|
+
"default": "./dist/cjs/DispatchReader.js"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"./Lineage": {
|
|
211
|
+
"import": {
|
|
212
|
+
"types": "./dist/esm/Lineage.d.ts",
|
|
213
|
+
"default": "./dist/esm/Lineage.js"
|
|
214
|
+
},
|
|
215
|
+
"require": {
|
|
216
|
+
"types": "./dist/cjs/Lineage.d.ts",
|
|
217
|
+
"default": "./dist/cjs/Lineage.js"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"./Migrations": {
|
|
221
|
+
"import": {
|
|
222
|
+
"types": "./dist/esm/Migrations.d.ts",
|
|
223
|
+
"default": "./dist/esm/Migrations.js"
|
|
224
|
+
},
|
|
225
|
+
"require": {
|
|
226
|
+
"types": "./dist/cjs/Migrations.d.ts",
|
|
227
|
+
"default": "./dist/cjs/Migrations.js"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"./Monitor": {
|
|
231
|
+
"import": {
|
|
232
|
+
"types": "./dist/esm/Monitor.d.ts",
|
|
233
|
+
"default": "./dist/esm/Monitor.js"
|
|
234
|
+
},
|
|
235
|
+
"require": {
|
|
236
|
+
"types": "./dist/cjs/Monitor.d.ts",
|
|
237
|
+
"default": "./dist/cjs/Monitor.js"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"./ScopedToken": {
|
|
241
|
+
"import": {
|
|
242
|
+
"types": "./dist/esm/ScopedToken.d.ts",
|
|
243
|
+
"default": "./dist/esm/ScopedToken.js"
|
|
244
|
+
},
|
|
245
|
+
"require": {
|
|
246
|
+
"types": "./dist/cjs/ScopedToken.d.ts",
|
|
247
|
+
"default": "./dist/cjs/ScopedToken.js"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"./SqlControlRuntime": {
|
|
251
|
+
"import": {
|
|
252
|
+
"types": "./dist/esm/SqlControlRuntime.d.ts",
|
|
253
|
+
"default": "./dist/esm/SqlControlRuntime.js"
|
|
254
|
+
},
|
|
255
|
+
"require": {
|
|
256
|
+
"types": "./dist/cjs/SqlControlRuntime.d.ts",
|
|
257
|
+
"default": "./dist/cjs/SqlControlRuntime.js"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"./SqlCredentialStore": {
|
|
261
|
+
"import": {
|
|
262
|
+
"types": "./dist/esm/SqlCredentialStore.d.ts",
|
|
263
|
+
"default": "./dist/esm/SqlCredentialStore.js"
|
|
264
|
+
},
|
|
265
|
+
"require": {
|
|
266
|
+
"types": "./dist/cjs/SqlCredentialStore.d.ts",
|
|
267
|
+
"default": "./dist/cjs/SqlCredentialStore.js"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"./Steering": {
|
|
271
|
+
"import": {
|
|
272
|
+
"types": "./dist/esm/Steering.d.ts",
|
|
273
|
+
"default": "./dist/esm/Steering.js"
|
|
274
|
+
},
|
|
275
|
+
"require": {
|
|
276
|
+
"types": "./dist/cjs/Steering.d.ts",
|
|
277
|
+
"default": "./dist/cjs/Steering.js"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"./SystemFlows": {
|
|
281
|
+
"import": {
|
|
282
|
+
"types": "./dist/esm/SystemFlows.d.ts",
|
|
283
|
+
"default": "./dist/esm/SystemFlows.js"
|
|
284
|
+
},
|
|
285
|
+
"require": {
|
|
286
|
+
"types": "./dist/cjs/SystemFlows.d.ts",
|
|
287
|
+
"default": "./dist/cjs/SystemFlows.js"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"./WebCryptoCipher": {
|
|
291
|
+
"import": {
|
|
292
|
+
"types": "./dist/esm/WebCryptoCipher.d.ts",
|
|
293
|
+
"default": "./dist/esm/WebCryptoCipher.js"
|
|
294
|
+
},
|
|
295
|
+
"require": {
|
|
296
|
+
"types": "./dist/cjs/WebCryptoCipher.d.ts",
|
|
297
|
+
"default": "./dist/cjs/WebCryptoCipher.js"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"./WebhookChannel": {
|
|
301
|
+
"import": {
|
|
302
|
+
"types": "./dist/esm/WebhookChannel.d.ts",
|
|
303
|
+
"default": "./dist/esm/WebhookChannel.js"
|
|
304
|
+
},
|
|
305
|
+
"require": {
|
|
306
|
+
"types": "./dist/cjs/WebhookChannel.d.ts",
|
|
307
|
+
"default": "./dist/cjs/WebhookChannel.js"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"./index": {
|
|
311
|
+
"import": {
|
|
312
|
+
"types": "./dist/esm/index.d.ts",
|
|
313
|
+
"default": "./dist/esm/index.js"
|
|
314
|
+
},
|
|
315
|
+
"require": {
|
|
316
|
+
"types": "./dist/cjs/index.d.ts",
|
|
317
|
+
"default": "./dist/cjs/index.js"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"./test/TestControl": {
|
|
321
|
+
"import": {
|
|
322
|
+
"types": "./dist/esm/test/TestControl.d.ts",
|
|
323
|
+
"default": "./dist/esm/test/TestControl.js"
|
|
324
|
+
},
|
|
325
|
+
"require": {
|
|
326
|
+
"types": "./dist/cjs/test/TestControl.d.ts",
|
|
327
|
+
"default": "./dist/cjs/test/TestControl.js"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"./Health": {
|
|
331
|
+
"import": {
|
|
332
|
+
"types": "./dist/esm/Health.d.ts",
|
|
333
|
+
"default": "./dist/esm/Health.js"
|
|
334
|
+
},
|
|
335
|
+
"require": {
|
|
336
|
+
"types": "./dist/cjs/Health.d.ts",
|
|
337
|
+
"default": "./dist/cjs/Health.js"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"files": [
|
|
342
|
+
"src/**/*.ts",
|
|
343
|
+
"dist/**/*.js",
|
|
344
|
+
"dist/**/*.js.map",
|
|
345
|
+
"dist/**/*.d.ts",
|
|
346
|
+
"dist/**/*.d.ts.map",
|
|
347
|
+
"dist/**/package.json",
|
|
348
|
+
"LICENSE",
|
|
349
|
+
"README.md",
|
|
350
|
+
"CHANGELOG.md",
|
|
351
|
+
"docs/"
|
|
352
|
+
],
|
|
353
|
+
"publishConfig": {
|
|
354
|
+
"access": "public",
|
|
355
|
+
"provenance": true,
|
|
356
|
+
"tag": "next"
|
|
357
|
+
},
|
|
358
|
+
"dependencies": {
|
|
359
|
+
"@smthrs/model": "1.0.0-rc.3",
|
|
360
|
+
"@smthrs/canonical": "1.0.0-rc.3",
|
|
361
|
+
"@smthrs/crypto": "1.0.0-rc.3",
|
|
362
|
+
"@smthrs/database": "1.0.0-rc.3",
|
|
363
|
+
"@smthrs/journal": "1.0.0-rc.3",
|
|
364
|
+
"@smthrs/notifications": "1.0.0-rc.3",
|
|
365
|
+
"@smthrs/plan": "1.0.0-rc.3",
|
|
366
|
+
"@smthrs/registry": "1.0.0-rc.3",
|
|
367
|
+
"@smthrs/run-store": "1.0.0-rc.3",
|
|
368
|
+
"@smthrs/flow": "1.0.0-rc.3"
|
|
369
|
+
},
|
|
370
|
+
"devDependencies": {
|
|
371
|
+
"@effect/language-service": "0.87.2",
|
|
372
|
+
"@effect/vitest": "4.0.0-rc.115",
|
|
373
|
+
"@eslint/js": "9.39.5",
|
|
374
|
+
"@smthrs/core": "1.0.0-rc.3",
|
|
375
|
+
"@smthrs/engine-store": "1.0.0-rc.3",
|
|
376
|
+
"@smthrs/jj": "1.0.0-rc.3",
|
|
377
|
+
"@smthrs/plan-store": "1.0.0-rc.3",
|
|
378
|
+
"@smthrs/step-cache": "1.0.0-rc.3",
|
|
379
|
+
"@smthrs/time-travel": "1.0.0-rc.3",
|
|
380
|
+
"@types/node": "26.4.1",
|
|
381
|
+
"@vitest/coverage-v8": "5.0.0",
|
|
382
|
+
"dprint": "0.57.1",
|
|
383
|
+
"effect": "4.0.0-rc.115",
|
|
384
|
+
"esbuild": "0.28.2",
|
|
385
|
+
"eslint": "9.39.5",
|
|
386
|
+
"eslint-import-resolver-typescript": "4.4.5",
|
|
387
|
+
"eslint-plugin-import": "2.32.0",
|
|
388
|
+
"eslint-plugin-jsdoc": "64.3.4",
|
|
389
|
+
"eslint-plugin-unicorn": "65.0.0",
|
|
390
|
+
"madge": "8.0.0",
|
|
391
|
+
"typescript": "5.9.3",
|
|
392
|
+
"typescript-eslint": "8.69.0",
|
|
393
|
+
"vitest": "5.0.0"
|
|
394
|
+
},
|
|
395
|
+
"peerDependencies": {
|
|
396
|
+
"effect": "4.0.0-rc.115"
|
|
397
|
+
},
|
|
398
|
+
"scripts": {
|
|
399
|
+
"lint": "eslint src --max-warnings=0 && dprint check",
|
|
400
|
+
"format": "dprint fmt",
|
|
401
|
+
"build": "node scripts/build.mjs",
|
|
402
|
+
"check": "tsc -b tsconfig.json && tsc -p tsconfig.test.json --noEmit",
|
|
403
|
+
"circular": "node scripts/circular.mjs",
|
|
404
|
+
"test": "vitest",
|
|
405
|
+
"coverage": "node ../flows/database/scripts/test-matrix.mjs",
|
|
406
|
+
"test:matrix": "node ../flows/database/scripts/test-matrix.mjs"
|
|
407
|
+
}
|
|
6
408
|
}
|