@opengeni/contracts 3.1.0-canary.2 → 3.1.2
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/dist/agent-authored-durable-text.d.ts +9 -9
- package/dist/agent-config.d.ts +971 -0
- package/dist/agent-instruction-changes.d.ts +0 -2
- package/dist/allowance-refusal.d.ts +9 -0
- package/dist/allowance-refusal.js +50 -0
- package/dist/allowance-refusal.js.map +1 -0
- package/dist/analytics-consent-report.d.ts +19 -0
- package/dist/analytics-consent-report.js +10 -0
- package/dist/analytics-consent-report.js.map +1 -0
- package/dist/api-key-presets.d.ts +19 -0
- package/dist/artifact-catalog.d.ts +188 -0
- package/dist/artifacts.d.ts +86 -0
- package/dist/atlassian-native-retirement.d.ts +16 -0
- package/dist/atlassian-native-retirement.js +30 -0
- package/dist/atlassian-native-retirement.js.map +1 -0
- package/dist/atlassian.d.ts +1 -0
- package/dist/atlassian.js +34 -19
- package/dist/browser-storage.d.ts +5 -0
- package/dist/browser-storage.js +9 -0
- package/dist/browser-storage.js.map +1 -0
- package/dist/bundled-skills.d.ts +24 -1
- package/dist/canonical-human-identities.js +2 -1
- package/dist/chunk-2ZIHHL72.js +153 -0
- package/dist/chunk-2ZIHHL72.js.map +1 -0
- package/dist/{chunk-5LYFSZ7O.js → chunk-352X6ENP.js} +31 -31
- package/dist/chunk-4JGHSSB7.js +11 -0
- package/dist/chunk-4JGHSSB7.js.map +1 -0
- package/dist/chunk-4QO6GJUX.js +85 -0
- package/dist/chunk-4QO6GJUX.js.map +1 -0
- package/dist/chunk-4VDMHLLL.js +49 -0
- package/dist/chunk-4VDMHLLL.js.map +1 -0
- package/dist/chunk-56SNIMDO.js +9 -0
- package/dist/chunk-56SNIMDO.js.map +1 -0
- package/dist/chunk-6C2HKFTU.js +207 -0
- package/dist/chunk-6C2HKFTU.js.map +1 -0
- package/dist/chunk-6IXO76Z6.js +72 -0
- package/dist/chunk-6IXO76Z6.js.map +1 -0
- package/dist/chunk-7272KVWZ.js +60 -0
- package/dist/chunk-7272KVWZ.js.map +1 -0
- package/dist/{chunk-7ABONTXE.js → chunk-E3GGUBHS.js} +49 -5
- package/dist/chunk-E3GGUBHS.js.map +1 -0
- package/dist/chunk-EFZYKUE2.js +767 -0
- package/dist/chunk-EFZYKUE2.js.map +1 -0
- package/dist/chunk-EKWNTOG3.js +154 -0
- package/dist/chunk-EKWNTOG3.js.map +1 -0
- package/dist/chunk-HABQ7ADB.js +234 -0
- package/dist/chunk-HABQ7ADB.js.map +1 -0
- package/dist/chunk-HRRU4QPI.js +91 -0
- package/dist/chunk-HRRU4QPI.js.map +1 -0
- package/dist/{chunk-3SIZGL3O.js → chunk-IK36LXKC.js} +18 -2
- package/dist/chunk-IK36LXKC.js.map +1 -0
- package/dist/{chunk-TXTQIYCV.js → chunk-ILJ72KPO.js} +56 -3
- package/dist/chunk-ILJ72KPO.js.map +1 -0
- package/dist/chunk-J4HQ3UKY.js +93 -0
- package/dist/chunk-J4HQ3UKY.js.map +1 -0
- package/dist/chunk-KHHZTBP7.js +11 -0
- package/dist/chunk-KHHZTBP7.js.map +1 -0
- package/dist/{chunk-WYBDERIY.js → chunk-LZ2LAHIX.js} +47 -41
- package/dist/chunk-LZ2LAHIX.js.map +1 -0
- package/dist/chunk-NDZHPTCL.js +400 -0
- package/dist/chunk-NDZHPTCL.js.map +1 -0
- package/dist/chunk-OF6OKOBF.js +54793 -0
- package/dist/chunk-OF6OKOBF.js.map +1 -0
- package/dist/chunk-OL23ARTF.js +94 -0
- package/dist/chunk-OL23ARTF.js.map +1 -0
- package/dist/chunk-PUIUXIOL.js +189 -0
- package/dist/chunk-PUIUXIOL.js.map +1 -0
- package/dist/{chunk-Y3KNXVTD.js → chunk-RMWXDZEO.js} +128 -21
- package/dist/chunk-RMWXDZEO.js.map +1 -0
- package/dist/{chunk-MRWYRAS5.js → chunk-SHO4YO4B.js} +27 -35
- package/dist/chunk-SHO4YO4B.js.map +1 -0
- package/dist/chunk-SWRN2DJ3.js +153 -0
- package/dist/chunk-SWRN2DJ3.js.map +1 -0
- package/dist/chunk-TCXCRBPF.js +267 -0
- package/dist/chunk-TCXCRBPF.js.map +1 -0
- package/dist/chunk-TLU3UEMD.js +324 -0
- package/dist/chunk-TLU3UEMD.js.map +1 -0
- package/dist/chunk-TSWWZMUS.js +186 -0
- package/dist/chunk-TSWWZMUS.js.map +1 -0
- package/dist/{chunk-PX3VCKAU.js → chunk-WVCFSOUZ.js} +1 -1
- package/dist/{chunk-PX3VCKAU.js.map → chunk-WVCFSOUZ.js.map} +1 -1
- package/dist/chunk-XDLAGX66.js +127 -0
- package/dist/chunk-XDLAGX66.js.map +1 -0
- package/dist/chunk-YKZ4WU4P.js +33 -0
- package/dist/chunk-YKZ4WU4P.js.map +1 -0
- package/dist/{chunk-O5LEQHDM.js → chunk-Z7WEVGCL.js} +3 -3
- package/dist/{chunk-YBW5JSA3.js → chunk-ZDCRWCGZ.js} +119 -101
- package/dist/chunk-ZDCRWCGZ.js.map +1 -0
- package/dist/claude-provider-account-authority.d.ts +18 -0
- package/dist/claude-subscription-oauth.d.ts +42 -0
- package/dist/claude-subscription-usage.d.ts +159 -0
- package/dist/client-error-report.d.ts +158 -0
- package/dist/client-error-report.js +164 -0
- package/dist/client-error-report.js.map +1 -0
- package/dist/code-search.d.ts +52 -0
- package/dist/code-search.js +40 -0
- package/dist/code-search.js.map +1 -0
- package/dist/codex-provider-account-authority.js +20 -12
- package/dist/codex-provider-account-authority.js.map +1 -1
- package/dist/company-profile.d.ts +144 -6
- package/dist/connect.d.ts +37 -0
- package/dist/connect.js +216 -159
- package/dist/connect.js.map +1 -1
- package/dist/connection-account-label.d.ts +2 -0
- package/dist/connection-account-label.js +35 -0
- package/dist/connection-account-label.js.map +1 -0
- package/dist/connection-authority.d.ts +9 -317
- package/dist/connection-authority.js +37 -42
- package/dist/connector-attachments.js +2 -1
- package/dist/connector-destinations.js +2 -1
- package/dist/connector-tool-permissions.d.ts +137 -0
- package/dist/cua-desktop-tools.d.ts +17 -0
- package/dist/define-schema.d.ts +8 -0
- package/dist/direct-model-provider.d.ts +36 -0
- package/dist/editable-artifact-codec-registry.js +5 -5
- package/dist/editable-artifact-committed-transaction.js +3 -2
- package/dist/editable-artifact-live.js +5 -5
- package/dist/editable-artifact-serialized-commit.js +6 -6
- package/dist/editable-artifact-versions.d.ts +7 -1
- package/dist/editable-artifact-versions.js +1 -1
- package/dist/editable-artifacts.js +62 -56
- package/dist/event-preview.d.ts +22 -0
- package/dist/external-identities.d.ts +138 -0
- package/dist/external-identities.js +9 -4
- package/dist/first-party-tool-authorization.d.ts +815 -0
- package/dist/github-repository-contracts.js +60 -43
- package/dist/github-repository-contracts.js.map +1 -1
- package/dist/google-drive.d.ts +2 -1
- package/dist/google-drive.js +305 -238
- package/dist/google-drive.js.map +1 -1
- package/dist/host-mcp-bindings.d.ts +5 -0
- package/dist/host-mcp-bindings.js +233 -170
- package/dist/host-mcp-bindings.js.map +1 -1
- package/dist/image-generation.d.ts +1 -0
- package/dist/index.d.ts +16761 -5946
- package/dist/index.js +1973 -260
- package/dist/insights-usage.d.ts +877 -0
- package/dist/insights-usage.js +559 -0
- package/dist/insights-usage.js.map +1 -0
- package/dist/interaction.d.ts +1176 -829
- package/dist/knowledge-entries.d.ts +81 -2
- package/dist/knowledge-preparation.d.ts +239 -0
- package/dist/managed-auth-session-sets.d.ts +7 -0
- package/dist/managed-auth-session-sets.js +198 -132
- package/dist/managed-auth-session-sets.js.map +1 -1
- package/dist/managed-sign-in-methods.d.ts +56 -0
- package/dist/managed-sign-in-methods.js +64 -0
- package/dist/managed-sign-in-methods.js.map +1 -0
- package/dist/mcp-catalog-limits.d.ts +2 -0
- package/dist/mcp-oauth.d.ts +2 -2
- package/dist/mcp-structured-content.d.ts +25 -0
- package/dist/modal-native-proof-v2.d.ts +587 -0
- package/dist/modal-native-proof-v2.js +38 -0
- package/dist/modal-native-proof-v2.js.map +1 -0
- package/dist/model-account-choice.d.ts +235 -0
- package/dist/model-account-settings.d.ts +422 -0
- package/dist/model-availability.d.ts +15 -0
- package/dist/model-connection-access.d.ts +13 -0
- package/dist/model-context-inspector.d.ts +98 -0
- package/dist/model-display.d.ts +43 -0
- package/dist/model-display.js +17 -0
- package/dist/model-display.js.map +1 -0
- package/dist/model-picker-order.d.ts +3 -1
- package/dist/model-picker-order.js +3 -0
- package/dist/model-picker-order.js.map +1 -1
- package/dist/organization-access.d.ts +412 -0
- package/dist/organization-access.js +39 -0
- package/dist/organization-access.js.map +1 -0
- package/dist/organization-integration-policy.d.ts +27 -0
- package/dist/organization-membership-lifecycle.d.ts +38 -0
- package/dist/organization-model-usage.d.ts +146 -0
- package/dist/organization-model-usage.js +78 -0
- package/dist/organization-model-usage.js.map +1 -0
- package/dist/organization-recovery.js +2 -1
- package/dist/organization-usage.d.ts +138 -0
- package/dist/permissions.d.ts +18 -0
- package/dist/personal-github.d.ts +1 -0
- package/dist/personal-github.js +199 -144
- package/dist/personal-github.js.map +1 -1
- package/dist/prepared-mcp-setup.d.ts +54 -0
- package/dist/prepared-mcp-setup.js +12 -0
- package/dist/prepared-mcp-setup.js.map +1 -0
- package/dist/product-analytics.d.ts +116 -0
- package/dist/product-lifecycle-facts.d.ts +73 -0
- package/dist/remember.d.ts +98 -6
- package/dist/retained-output.d.ts +8 -0
- package/dist/sandbox-file-artifacts.d.ts +1 -0
- package/dist/sandbox-provider-command.d.ts +91 -1
- package/dist/sandbox-recovery.d.ts +146 -0
- package/dist/secret-generator.d.ts +44 -0
- package/dist/secret-references.d.ts +90 -0
- package/dist/secret-resolution.d.ts +111 -0
- package/dist/secret-totp.d.ts +41 -0
- package/dist/session-final-reply.d.ts +6 -0
- package/dist/session-final-reply.js +9 -0
- package/dist/session-final-reply.js.map +1 -0
- package/dist/session-goal-reports.d.ts +21 -0
- package/dist/session-history-import.d.ts +1272 -0
- package/dist/session-list-entries.d.ts +4 -0
- package/dist/session-list-entries.js +56 -0
- package/dist/session-list-entries.js.map +1 -0
- package/dist/session-mcp-projections.d.ts +6 -0
- package/dist/session-mcp-tool-permissions.d.ts +62 -0
- package/dist/session-message-search.d.ts +68 -0
- package/dist/session-target.d.ts +18 -0
- package/dist/session-titles.d.ts +8 -0
- package/dist/session-titles.js +5 -1
- package/dist/session-usage-limit-refusal.d.ts +34 -0
- package/dist/session-usage-limit-refusal.js +15 -0
- package/dist/session-usage-limit-refusal.js.map +1 -0
- package/dist/session-usage-limits.d.ts +127 -0
- package/dist/session-usage-limits.js +41 -0
- package/dist/session-usage-limits.js.map +1 -0
- package/dist/signup-attribution.d.ts +39 -0
- package/dist/site-data.d.ts +286 -0
- package/dist/site-operations.d.ts +39 -0
- package/dist/site-publishing.d.ts +778 -0
- package/dist/site-session-http.d.ts +89 -4
- package/dist/site-session-http.js +25 -1
- package/dist/site-sql.d.ts +421 -0
- package/dist/skill-catalog-context.d.ts +7 -0
- package/dist/skill-files.d.ts +1 -1
- package/dist/skill-use.d.ts +61 -0
- package/dist/skills.d.ts +15 -0
- package/dist/slack-bot-scopes.d.ts +17 -12
- package/dist/slack-bot-scopes.js +10 -3
- package/dist/slack-rest-mcp.d.ts +36 -0
- package/dist/slack-rest-mcp.js +25 -0
- package/dist/slack-rest-mcp.js.map +1 -0
- package/dist/spreadsheet-artifact-commands.d.ts +14 -1
- package/dist/spreadsheet-artifact-commands.js +8 -2
- package/dist/spreadsheet-artifact-query.d.ts +13 -6
- package/dist/spreadsheet-artifact-query.js +3 -3
- package/dist/subscription-account-actions.d.ts +64 -0
- package/dist/subscription-account-pools.d.ts +292 -0
- package/dist/subscription-personal-authority-v2.d.ts +28 -0
- package/dist/subscription-personal-authority-v2.js +12 -0
- package/dist/subscription-personal-authority-v2.js.map +1 -0
- package/dist/tool-action-review.d.ts +132 -0
- package/dist/tool-catalog.d.ts +408 -0
- package/dist/tool-policy.d.ts +5 -0
- package/dist/tool-review-presentation.d.ts +12 -0
- package/dist/tool-review-presentation.js +17 -0
- package/dist/tool-review-presentation.js.map +1 -0
- package/dist/transcription-recordings.d.ts +21 -0
- package/dist/turn-serving-policy.d.ts +221 -0
- package/dist/usage-allowances.d.ts +314 -0
- package/dist/usage-allowances.js +52 -0
- package/dist/usage-allowances.js.map +1 -0
- package/dist/vaults.d.ts +1286 -0
- package/dist/video-generation.d.ts +3 -0
- package/dist/video-generation.js +2 -1
- package/dist/workspace-integration-wire.d.ts +36 -0
- package/dist/workspace-integration-wire.js +23 -0
- package/dist/workspace-integration-wire.js.map +1 -0
- package/dist/workspace-integrations.d.ts +1028 -0
- package/dist/xai-provider-account-authority.js +2 -1
- package/package.json +93 -5
- package/src/agent-authored-durable-text.ts +14 -11
- package/src/agent-config.ts +1698 -0
- package/src/agent-instruction-changes.ts +91 -74
- package/src/agent-learning.ts +94 -67
- package/src/agent-topology.ts +57 -52
- package/src/allowance-refusal.ts +81 -0
- package/src/analytics-consent-report.ts +20 -0
- package/src/api-key-presets.ts +28 -0
- package/src/artifact-catalog.ts +82 -0
- package/src/artifacts.ts +299 -227
- package/src/atlassian-native-retirement.ts +33 -0
- package/src/atlassian.ts +135 -108
- package/src/browser-storage.ts +10 -0
- package/src/bundled-skills.ts +60 -17
- package/src/canonical-human-identities.ts +60 -58
- package/src/claude-provider-account-authority.ts +12 -0
- package/src/claude-subscription-oauth.ts +73 -0
- package/src/claude-subscription-usage.ts +68 -0
- package/src/client-error-report.ts +343 -0
- package/src/code-search.ts +105 -0
- package/src/codex-provider-account-authority.ts +21 -16
- package/src/company-brain-governed-writes.ts +255 -233
- package/src/company-brain.ts +164 -153
- package/src/company-profile.ts +365 -292
- package/src/connect.ts +212 -173
- package/src/connection-account-label.ts +46 -0
- package/src/connection-authority.ts +183 -364
- package/src/connector-attachments.ts +137 -122
- package/src/connector-destinations.ts +46 -42
- package/src/connector-tool-permissions.ts +117 -0
- package/src/cua-desktop-tools.gen.json +6512 -0
- package/src/cua-desktop-tools.linux.gen.json +6600 -0
- package/src/cua-desktop-tools.ts +36 -0
- package/src/cua-desktop-tools.windows.gen.json +6353 -0
- package/src/define-schema.ts +10 -0
- package/src/direct-model-provider.ts +108 -0
- package/src/editable-artifact-committed-transaction.ts +17 -0
- package/src/editable-artifact-versions.ts +7 -1
- package/src/event-preview.ts +53 -3
- package/src/external-identities.ts +249 -176
- package/src/feedback.ts +43 -30
- package/src/first-party-tool-authorization.ts +356 -0
- package/src/github-repository-contracts.ts +78 -64
- package/src/google-drive.ts +285 -234
- package/src/governed-learning-activation.ts +152 -131
- package/src/governed-learning-evaluator.ts +140 -133
- package/src/host-mcp-bindings.ts +252 -198
- package/src/image-generation.ts +104 -95
- package/src/index.ts +13235 -8687
- package/src/insights-usage.ts +727 -0
- package/src/interaction.ts +3070 -2326
- package/src/knowledge-entries.ts +361 -276
- package/src/knowledge-preparation.ts +57 -0
- package/src/knowledge.ts +246 -213
- package/src/managed-auth-session-sets.ts +220 -144
- package/src/managed-sign-in-methods.ts +52 -0
- package/src/mcp-catalog-limits.ts +2 -0
- package/src/mcp-oauth.ts +43 -34
- package/src/mcp-receipts.ts +192 -192
- package/src/mcp-structured-content.ts +81 -0
- package/src/memory-slack-delivery.ts +171 -142
- package/src/modal-native-proof-v2.ts +429 -0
- package/src/model-account-choice.ts +177 -0
- package/src/model-account-settings.ts +210 -0
- package/src/model-availability.ts +22 -0
- package/src/model-connection-access.ts +61 -14
- package/src/model-context-inspector.ts +133 -99
- package/src/model-display.ts +221 -0
- package/src/model-picker-order.ts +12 -1
- package/src/organization-access.ts +217 -0
- package/src/organization-integration-policy.ts +63 -0
- package/src/organization-membership-lifecycle.ts +528 -382
- package/src/organization-model-usage.ts +81 -0
- package/src/organization-recovery.ts +147 -135
- package/src/organization-usage.ts +94 -0
- package/src/permissions.ts +88 -52
- package/src/personal-github.ts +210 -171
- package/src/preference-registry.ts +314 -258
- package/src/prepared-mcp-setup.ts +189 -0
- package/src/product-analytics.ts +261 -0
- package/src/product-lifecycle-facts.ts +122 -0
- package/src/remember.ts +181 -167
- package/src/retained-output.ts +194 -165
- package/src/sandbox-file-artifacts.ts +60 -47
- package/src/sandbox-provider-command.ts +88 -20
- package/src/sandbox-recovery.ts +129 -0
- package/src/scoped-knowledge.ts +61 -43
- package/src/secret-generator.ts +155 -0
- package/src/secret-references.ts +414 -0
- package/src/secret-resolution.ts +274 -0
- package/src/secret-totp.ts +188 -0
- package/src/session-final-reply.ts +16 -0
- package/src/session-goal-reports.ts +64 -0
- package/src/session-history-import.ts +177 -0
- package/src/session-list-entries.ts +96 -0
- package/src/session-mcp-projections.ts +11 -0
- package/src/session-mcp-tool-permissions.ts +108 -0
- package/src/session-message-search.ts +61 -0
- package/src/session-target.ts +57 -0
- package/src/session-titles.ts +80 -10
- package/src/session-topology-primitives.ts +19 -12
- package/src/session-usage-limit-refusal.ts +101 -0
- package/src/session-usage-limits.ts +171 -0
- package/src/signup-attribution.ts +86 -0
- package/src/site-data.ts +339 -0
- package/src/site-operations.ts +154 -0
- package/src/site-publishing.ts +876 -0
- package/src/site-session-http.ts +294 -16
- package/src/site-sql.ts +1123 -0
- package/src/skill-catalog-context.ts +50 -0
- package/src/skill-files.ts +3 -3
- package/src/skill-use.ts +80 -0
- package/src/skills.ts +82 -54
- package/src/slack-bot-scopes.ts +31 -39
- package/src/slack-rest-mcp.ts +222 -0
- package/src/slack-task-policy.ts +96 -73
- package/src/spreadsheet-artifact-commands.ts +73 -2
- package/src/spreadsheet-artifact-query.ts +187 -39
- package/src/subscription-account-actions.ts +84 -0
- package/src/subscription-account-pools.ts +53 -0
- package/src/subscription-personal-authority-v2.ts +66 -0
- package/src/task-notes.ts +55 -51
- package/src/tool-action-review.ts +258 -0
- package/src/tool-catalog.ts +609 -372
- package/src/tool-policy.ts +82 -0
- package/src/tool-result-spill.ts +12 -9
- package/src/tool-review-presentation.ts +385 -0
- package/src/transcription-recordings.ts +145 -131
- package/src/turn-serving-policy.ts +166 -0
- package/src/usage-allowances.ts +248 -0
- package/src/vaults.ts +850 -0
- package/src/video-generation.ts +385 -360
- package/src/work-claims.ts +173 -149
- package/src/workspace-instruction-policies.ts +349 -276
- package/src/workspace-integration-wire.ts +101 -0
- package/src/workspace-integrations.ts +724 -0
- package/src/workspace-learning-administration.ts +57 -44
- package/src/workspace-learning-policy.ts +127 -96
- package/src/workspace-state.ts +250 -220
- package/src/xai-provider-account-authority.ts +22 -17
- package/dist/chunk-2AC63F4S.js +0 -171
- package/dist/chunk-2AC63F4S.js.map +0 -1
- package/dist/chunk-3SIZGL3O.js.map +0 -1
- package/dist/chunk-7ABONTXE.js.map +0 -1
- package/dist/chunk-BCS7WHCK.js +0 -139
- package/dist/chunk-BCS7WHCK.js.map +0 -1
- package/dist/chunk-GRG7PHWQ.js +0 -25
- package/dist/chunk-GRG7PHWQ.js.map +0 -1
- package/dist/chunk-JUFK3T4Q.js +0 -80
- package/dist/chunk-JUFK3T4Q.js.map +0 -1
- package/dist/chunk-M5ZGRVIQ.js +0 -719
- package/dist/chunk-M5ZGRVIQ.js.map +0 -1
- package/dist/chunk-MRWYRAS5.js.map +0 -1
- package/dist/chunk-OVFORMPW.js +0 -348
- package/dist/chunk-OVFORMPW.js.map +0 -1
- package/dist/chunk-P3HLDT77.js +0 -59
- package/dist/chunk-P3HLDT77.js.map +0 -1
- package/dist/chunk-QQUJ6NPW.js +0 -23093
- package/dist/chunk-QQUJ6NPW.js.map +0 -1
- package/dist/chunk-TXTQIYCV.js.map +0 -1
- package/dist/chunk-WYBDERIY.js.map +0 -1
- package/dist/chunk-Y3KNXVTD.js.map +0 -1
- package/dist/chunk-YBW5JSA3.js.map +0 -1
- package/dist/chunk-YRXAWWCU.js +0 -45
- package/dist/chunk-YRXAWWCU.js.map +0 -1
- package/dist/host-mcp-resolvers.d.ts +0 -32
- package/dist/host-mcp-resolvers.js +0 -34
- package/dist/host-mcp-resolvers.js.map +0 -1
- package/src/host-mcp-resolvers.ts +0 -50
- /package/dist/{chunk-5LYFSZ7O.js.map → chunk-352X6ENP.js.map} +0 -0
- /package/dist/{chunk-O5LEQHDM.js.map → chunk-Z7WEVGCL.js.map} +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content-free per-person product lifecycle facts.
|
|
3
|
+
*
|
|
4
|
+
* Migration `0532_product_lifecycle_fact_export.sql` captures one fact per
|
|
5
|
+
* product change with row triggers and writes it to the durable host export as
|
|
6
|
+
* the `lifecycle_fact` kind; `0565_usage_analytics_presence_and_facts.sql` adds
|
|
7
|
+
* `user.active`, `credits.granted` and `connection.revoked`. Every value is drawn from a fixed list; the
|
|
8
|
+
* database function `opengeni_private.product_lifecycle_fact_valid` enforces
|
|
9
|
+
* the same lists and a test keeps the two copies identical.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Closed class of a positive credit grant (`grant` or `manual_credit_grant`
|
|
13
|
+
* ledger row). `opengeni_private.credit_grant_class` mirrors this mapping:
|
|
14
|
+
* - `signup_trial`: the one-time verified-signup trial (source `verified_signup_trial`).
|
|
15
|
+
* - `coupon`: a fully discounted Stripe checkout (source `stripe_checkout_coupon`).
|
|
16
|
+
* - `manual`: an operator grant (`manual_credit_grant` or source `operator_adjustment`).
|
|
17
|
+
* - `other`: any other grant source.
|
|
18
|
+
*/
|
|
19
|
+
export declare const CREDIT_GRANT_CLASSES: readonly ["signup_trial", "coupon", "manual", "other"];
|
|
20
|
+
export type CreditGrantClass = (typeof CREDIT_GRANT_CLASSES)[number];
|
|
21
|
+
/** Each fact type and the fixed values its `attribute` may carry. */
|
|
22
|
+
export declare const PRODUCT_LIFECYCLE_FACT_ATTRIBUTES: {
|
|
23
|
+
/** A managed account was created. Attribute: first sign-in method. */
|
|
24
|
+
readonly "auth.sign_up": readonly ["email", "google", "github", "other"];
|
|
25
|
+
/**
|
|
26
|
+
* The account email became verified: by the verification link, or at
|
|
27
|
+
* creation when a social provider already verified it.
|
|
28
|
+
*/
|
|
29
|
+
readonly "auth.email_verified": readonly [];
|
|
30
|
+
/** A live sign-in session was created. Attribute: method of that session. */
|
|
31
|
+
readonly "auth.sign_in": readonly ["email", "google", "github", "other"];
|
|
32
|
+
/** An organization was created by self-service setup or as an additional one. */
|
|
33
|
+
readonly "organization.setup": readonly ["created", "additional"];
|
|
34
|
+
/** A model subscription or organization model provider was connected. */
|
|
35
|
+
readonly "model.connected": readonly ["codex", "supergrok", "vercel_gateway", "openrouter", "anthropic", "claude_subscription", "opper"];
|
|
36
|
+
/** A credit top-up payment was granted. */
|
|
37
|
+
readonly "credits.purchased": readonly [];
|
|
38
|
+
/** Credits were granted without a purchase. Attribute: grant class. */
|
|
39
|
+
readonly "credits.granted": readonly ["signup_trial", "coupon", "manual", "other"];
|
|
40
|
+
/** An integration connection was created. Attribute: provider class. */
|
|
41
|
+
readonly "connection.created": readonly ["slack", "github", "gitlab", "azure_devops", "bitbucket", "google", "microsoft", "linear", "atlassian", "notion", "supabase", "datadog", "posthog", "openai", "x", "other"];
|
|
42
|
+
/**
|
|
43
|
+
* An integration connection was revoked, or deleted while still live.
|
|
44
|
+
* Attribute: provider class, the same list as `connection.created`.
|
|
45
|
+
*/
|
|
46
|
+
readonly "connection.revoked": readonly ["slack", "github", "gitlab", "azure_devops", "bitbucket", "google", "microsoft", "linear", "atlassian", "notion", "supabase", "datadog", "posthog", "openai", "x", "other"];
|
|
47
|
+
readonly "scheduled_task.created": readonly [];
|
|
48
|
+
/** A catalog Skill was installed into a workspace. */
|
|
49
|
+
readonly "skill.installed": readonly [];
|
|
50
|
+
/** A Slack user was linked to an Opengeni user. */
|
|
51
|
+
readonly "slack.user_linked": readonly [];
|
|
52
|
+
/** A new Connected Machine was enrolled. */
|
|
53
|
+
readonly "machine.enrolled": readonly [];
|
|
54
|
+
/** A person became an active member of an organization that already had one. */
|
|
55
|
+
readonly "member.joined": readonly [];
|
|
56
|
+
/**
|
|
57
|
+
* A managed person was active in an authenticated browser session on a new
|
|
58
|
+
* UTC day: at most one fact per person per UTC day, with no organization.
|
|
59
|
+
*/
|
|
60
|
+
readonly "user.active": readonly [];
|
|
61
|
+
};
|
|
62
|
+
export type ProductLifecycleFactType = keyof typeof PRODUCT_LIFECYCLE_FACT_ATTRIBUTES;
|
|
63
|
+
export declare const PRODUCT_LIFECYCLE_FACT_TYPES: ProductLifecycleFactType[];
|
|
64
|
+
/**
|
|
65
|
+
* What kind of subject caused the fact. Only `user` and `api_key` facts carry
|
|
66
|
+
* their opaque subject id; every other subject string is reduced to its kind
|
|
67
|
+
* because embedded hosts may put their own identifiers in it.
|
|
68
|
+
*/
|
|
69
|
+
export declare const PRODUCT_LIFECYCLE_SUBJECT_KINDS: readonly ["user", "api_key", "service", "other", "none"];
|
|
70
|
+
export type ProductLifecycleSubjectKind = (typeof PRODUCT_LIFECYCLE_SUBJECT_KINDS)[number];
|
|
71
|
+
/** Pseudonymous subject ids that may leave the database. */
|
|
72
|
+
export declare const PRODUCT_LIFECYCLE_SUBJECT_ID_PATTERN: RegExp;
|
|
73
|
+
export declare function isProductLifecycleFact(type: string, attribute: string | null): boolean;
|
package/dist/remember.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export declare const RememberScope: z.ZodEnum<{
|
|
|
22
22
|
export type RememberScope = z.infer<typeof RememberScope>;
|
|
23
23
|
/**
|
|
24
24
|
* Ceiling for the Knowledge lane, which is retrieval evidence rather than
|
|
25
|
-
* always-composed prompt text.
|
|
26
|
-
*
|
|
25
|
+
* always-composed prompt text. Other lanes have their own destination bounds:
|
|
26
|
+
* see `AGENT_AUTHORED_INSTRUCTION_POLICY_CONTENT_MAX_CHARS` and
|
|
27
27
|
* `AGENT_AUTHORED_PREFERENCE_CONTENT_MAX_CHARS`.
|
|
28
28
|
*/
|
|
29
29
|
export declare const REMEMBER_CONTENT_MAX_CHARS = 4000;
|
|
@@ -82,24 +82,70 @@ export declare const RememberHumanInputPrompt: z.ZodObject<{
|
|
|
82
82
|
id: z.ZodString;
|
|
83
83
|
kind: z.ZodEnum<{
|
|
84
84
|
multi_select: "multi_select";
|
|
85
|
+
secret: "secret";
|
|
85
86
|
single_select: "single_select";
|
|
86
87
|
text: "text";
|
|
87
88
|
}>;
|
|
88
89
|
prompt: z.ZodString;
|
|
89
90
|
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
91
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
-
skillReview: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
skillReview: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
93
|
+
removalOperationId: z.ZodOptional<z.ZodUUID>;
|
|
92
94
|
sourceOperationId: z.ZodUUID;
|
|
93
95
|
skillId: z.ZodUUID;
|
|
94
96
|
revisionId: z.ZodUUID;
|
|
95
97
|
expectedRevisionId: z.ZodNullable<z.ZodUUID>;
|
|
96
98
|
expectedScopeVersion: z.ZodNumber;
|
|
97
|
-
}, z.core.$strip
|
|
99
|
+
}, z.core.$strip>>>;
|
|
98
100
|
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
99
101
|
id: z.ZodString;
|
|
100
102
|
label: z.ZodString;
|
|
101
103
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
104
|
}, z.core.$strip>>>;
|
|
105
|
+
secret: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
106
|
+
item: z.ZodString;
|
|
107
|
+
field: z.ZodDefault<z.ZodString>;
|
|
108
|
+
fieldKind: z.ZodDefault<z.ZodEnum<{
|
|
109
|
+
concealed: "concealed";
|
|
110
|
+
text: "text";
|
|
111
|
+
totp: "totp";
|
|
112
|
+
}>>;
|
|
113
|
+
itemType: z.ZodDefault<z.ZodEnum<{
|
|
114
|
+
api_key: "api_key";
|
|
115
|
+
login: "login";
|
|
116
|
+
note: "note";
|
|
117
|
+
}>>;
|
|
118
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
119
|
+
prompt: z.ZodString;
|
|
120
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
}, z.core.$strict>>>;
|
|
122
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
looksLike: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
pattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
saveTo: z.ZodDefault<z.ZodEnum<{
|
|
126
|
+
task: "task";
|
|
127
|
+
user: "user";
|
|
128
|
+
workspace: "workspace";
|
|
129
|
+
}>>;
|
|
130
|
+
vault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
+
allowGenerate: z.ZodDefault<z.ZodBoolean>;
|
|
132
|
+
generate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
133
|
+
length: z.ZodDefault<z.ZodNumber>;
|
|
134
|
+
lowercase: z.ZodDefault<z.ZodBoolean>;
|
|
135
|
+
uppercase: z.ZodDefault<z.ZodBoolean>;
|
|
136
|
+
digits: z.ZodDefault<z.ZodBoolean>;
|
|
137
|
+
symbols: z.ZodDefault<z.ZodBoolean>;
|
|
138
|
+
symbolSet: z.ZodDefault<z.ZodString>;
|
|
139
|
+
excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
|
|
140
|
+
requireEachClass: z.ZodDefault<z.ZodBoolean>;
|
|
141
|
+
}, z.core.$strict>>>;
|
|
142
|
+
autocomplete: z.ZodDefault<z.ZodEnum<{
|
|
143
|
+
"current-password": "current-password";
|
|
144
|
+
"new-password": "new-password";
|
|
145
|
+
off: "off";
|
|
146
|
+
"one-time-code": "one-time-code";
|
|
147
|
+
}>>;
|
|
148
|
+
}, z.core.$strict>>>;
|
|
103
149
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
104
150
|
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
105
151
|
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -272,24 +318,70 @@ export declare const RememberReceipt: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
272
318
|
id: z.ZodString;
|
|
273
319
|
kind: z.ZodEnum<{
|
|
274
320
|
multi_select: "multi_select";
|
|
321
|
+
secret: "secret";
|
|
275
322
|
single_select: "single_select";
|
|
276
323
|
text: "text";
|
|
277
324
|
}>;
|
|
278
325
|
prompt: z.ZodString;
|
|
279
326
|
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
327
|
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
|
-
skillReview: z.ZodOptional<z.ZodObject<{
|
|
328
|
+
skillReview: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
329
|
+
removalOperationId: z.ZodOptional<z.ZodUUID>;
|
|
282
330
|
sourceOperationId: z.ZodUUID;
|
|
283
331
|
skillId: z.ZodUUID;
|
|
284
332
|
revisionId: z.ZodUUID;
|
|
285
333
|
expectedRevisionId: z.ZodNullable<z.ZodUUID>;
|
|
286
334
|
expectedScopeVersion: z.ZodNumber;
|
|
287
|
-
}, z.core.$strip
|
|
335
|
+
}, z.core.$strip>>>;
|
|
288
336
|
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
289
337
|
id: z.ZodString;
|
|
290
338
|
label: z.ZodString;
|
|
291
339
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
340
|
}, z.core.$strip>>>;
|
|
341
|
+
secret: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
342
|
+
item: z.ZodString;
|
|
343
|
+
field: z.ZodDefault<z.ZodString>;
|
|
344
|
+
fieldKind: z.ZodDefault<z.ZodEnum<{
|
|
345
|
+
concealed: "concealed";
|
|
346
|
+
text: "text";
|
|
347
|
+
totp: "totp";
|
|
348
|
+
}>>;
|
|
349
|
+
itemType: z.ZodDefault<z.ZodEnum<{
|
|
350
|
+
api_key: "api_key";
|
|
351
|
+
login: "login";
|
|
352
|
+
note: "note";
|
|
353
|
+
}>>;
|
|
354
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
355
|
+
prompt: z.ZodString;
|
|
356
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
|
+
}, z.core.$strict>>>;
|
|
358
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
359
|
+
looksLike: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
360
|
+
pattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
361
|
+
saveTo: z.ZodDefault<z.ZodEnum<{
|
|
362
|
+
task: "task";
|
|
363
|
+
user: "user";
|
|
364
|
+
workspace: "workspace";
|
|
365
|
+
}>>;
|
|
366
|
+
vault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
367
|
+
allowGenerate: z.ZodDefault<z.ZodBoolean>;
|
|
368
|
+
generate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
369
|
+
length: z.ZodDefault<z.ZodNumber>;
|
|
370
|
+
lowercase: z.ZodDefault<z.ZodBoolean>;
|
|
371
|
+
uppercase: z.ZodDefault<z.ZodBoolean>;
|
|
372
|
+
digits: z.ZodDefault<z.ZodBoolean>;
|
|
373
|
+
symbols: z.ZodDefault<z.ZodBoolean>;
|
|
374
|
+
symbolSet: z.ZodDefault<z.ZodString>;
|
|
375
|
+
excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
|
|
376
|
+
requireEachClass: z.ZodDefault<z.ZodBoolean>;
|
|
377
|
+
}, z.core.$strict>>>;
|
|
378
|
+
autocomplete: z.ZodDefault<z.ZodEnum<{
|
|
379
|
+
"current-password": "current-password";
|
|
380
|
+
"new-password": "new-password";
|
|
381
|
+
off: "off";
|
|
382
|
+
"one-time-code": "one-time-code";
|
|
383
|
+
}>>;
|
|
384
|
+
}, z.core.$strict>>>;
|
|
293
385
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
294
386
|
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
295
387
|
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -19,6 +19,7 @@ export declare const GENERATED_IMAGE_MAX_BYTES: number;
|
|
|
19
19
|
export declare const GENERATED_VIDEO_MAX_BYTES: number;
|
|
20
20
|
export declare const RetainedOutputKind: z.ZodEnum<{
|
|
21
21
|
assistant_completion: "assistant_completion";
|
|
22
|
+
browser_screenshot: "browser_screenshot";
|
|
22
23
|
computer_screenshot: "computer_screenshot";
|
|
23
24
|
event_media: "event_media";
|
|
24
25
|
file: "file";
|
|
@@ -47,6 +48,7 @@ export declare const RetainedArtifactReferenceSchema: z.ZodObject<{
|
|
|
47
48
|
artifactId: z.ZodString;
|
|
48
49
|
kind: z.ZodEnum<{
|
|
49
50
|
assistant_completion: "assistant_completion";
|
|
51
|
+
browser_screenshot: "browser_screenshot";
|
|
50
52
|
computer_screenshot: "computer_screenshot";
|
|
51
53
|
event_media: "event_media";
|
|
52
54
|
file: "file";
|
|
@@ -104,6 +106,7 @@ export declare const RetainedOutputEvidenceSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
104
106
|
artifactId: z.ZodString;
|
|
105
107
|
kind: z.ZodEnum<{
|
|
106
108
|
assistant_completion: "assistant_completion";
|
|
109
|
+
browser_screenshot: "browser_screenshot";
|
|
107
110
|
computer_screenshot: "computer_screenshot";
|
|
108
111
|
event_media: "event_media";
|
|
109
112
|
file: "file";
|
|
@@ -162,6 +165,7 @@ export declare const RetainedArtifactMetadataSchema: z.ZodUnion<readonly [z.ZodO
|
|
|
162
165
|
artifactId: z.ZodString;
|
|
163
166
|
kind: z.ZodEnum<{
|
|
164
167
|
assistant_completion: "assistant_completion";
|
|
168
|
+
browser_screenshot: "browser_screenshot";
|
|
165
169
|
computer_screenshot: "computer_screenshot";
|
|
166
170
|
event_media: "event_media";
|
|
167
171
|
file: "file";
|
|
@@ -223,7 +227,11 @@ export type RetainedScreenshotArtifactInput = RetainedArtifactFileInput & {
|
|
|
223
227
|
width: number;
|
|
224
228
|
height: number;
|
|
225
229
|
expiresAt: string;
|
|
230
|
+
kind?: "computer_screenshot" | "browser_screenshot";
|
|
226
231
|
};
|
|
232
|
+
export type RetainedSessionScreenshotKind = "computer_screenshot" | "browser_screenshot";
|
|
233
|
+
/** The persisted, server-authored storage key distinguishes browser captures from legacy computer captures. */
|
|
234
|
+
export declare function retainedSessionScreenshotKindFromObjectKey(objectKey: string): RetainedSessionScreenshotKind | null;
|
|
227
235
|
export type RetainedGeneratedImageArtifactInput = RetainedArtifactFileInput & {
|
|
228
236
|
width: number;
|
|
229
237
|
height: number;
|
|
@@ -22,6 +22,7 @@ export declare const SandboxFileArtifactReceipt: z.ZodObject<{
|
|
|
22
22
|
artifactId: z.ZodString;
|
|
23
23
|
kind: z.ZodEnum<{
|
|
24
24
|
assistant_completion: "assistant_completion";
|
|
25
|
+
browser_screenshot: "browser_screenshot";
|
|
25
26
|
computer_screenshot: "computer_screenshot";
|
|
26
27
|
event_media: "event_media";
|
|
27
28
|
file: "file";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/** Provider-owned execution identity and acknowledged output cursors. These
|
|
3
3
|
* values are retained by the control plane, never recovered from sandbox files. */
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const ModalLegacyProviderCommand: z.ZodObject<{
|
|
5
5
|
kind: z.ZodLiteral<"modal-control-v1">;
|
|
6
6
|
sandboxId: z.ZodString;
|
|
7
7
|
taskId: z.ZodString;
|
|
@@ -20,4 +20,94 @@ export declare const SandboxProviderCommand: z.ZodObject<{
|
|
|
20
20
|
}, z.core.$strict>;
|
|
21
21
|
}, z.core.$strict>;
|
|
22
22
|
}, z.core.$strict>;
|
|
23
|
+
export type ModalLegacyProviderCommand = z.infer<typeof ModalLegacyProviderCommand>;
|
|
24
|
+
export declare const CommandSupervisionDescriptor: z.ZodObject<{
|
|
25
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
26
|
+
invocationId: z.ZodString;
|
|
27
|
+
nonce: z.ZodString;
|
|
28
|
+
controlPath: z.ZodString;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
export type CommandSupervisionDescriptor = z.infer<typeof CommandSupervisionDescriptor>;
|
|
31
|
+
export declare const CommandSupervisionReceipt: z.ZodObject<{
|
|
32
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
33
|
+
invocationId: z.ZodString;
|
|
34
|
+
receiptId: z.ZodString;
|
|
35
|
+
leaderExitCode: z.ZodNumber;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export type CommandSupervisionReceipt = z.infer<typeof CommandSupervisionReceipt>;
|
|
38
|
+
export declare const ModalRouterProviderCommand: z.ZodObject<{
|
|
39
|
+
kind: z.ZodLiteral<"modal-router-v1">;
|
|
40
|
+
sandboxId: z.ZodString;
|
|
41
|
+
taskId: z.ZodString;
|
|
42
|
+
execId: z.ZodString;
|
|
43
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
supervision: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
46
|
+
invocationId: z.ZodString;
|
|
47
|
+
nonce: z.ZodString;
|
|
48
|
+
controlPath: z.ZodString;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
streams: z.ZodObject<{
|
|
51
|
+
stdout: z.ZodObject<{
|
|
52
|
+
byteOffset: z.ZodNumber;
|
|
53
|
+
utf8Remainder: z.ZodString;
|
|
54
|
+
eof: z.ZodBoolean;
|
|
55
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
stderr: z.ZodObject<{
|
|
58
|
+
byteOffset: z.ZodNumber;
|
|
59
|
+
utf8Remainder: z.ZodString;
|
|
60
|
+
eof: z.ZodBoolean;
|
|
61
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
export type ModalRouterProviderCommand = z.infer<typeof ModalRouterProviderCommand>;
|
|
66
|
+
/** Legacy locators are read-only compatibility for already launched commands;
|
|
67
|
+
* new starts use authenticated task-router byte offsets, never batch indices. */
|
|
68
|
+
export declare const SandboxProviderCommand: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"modal-control-v1">;
|
|
70
|
+
sandboxId: z.ZodString;
|
|
71
|
+
taskId: z.ZodString;
|
|
72
|
+
execId: z.ZodString;
|
|
73
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
streams: z.ZodObject<{
|
|
75
|
+
stdout: z.ZodObject<{
|
|
76
|
+
batchIndex: z.ZodNumber;
|
|
77
|
+
utf8Remainder: z.ZodString;
|
|
78
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
stderr: z.ZodObject<{
|
|
81
|
+
batchIndex: z.ZodNumber;
|
|
82
|
+
utf8Remainder: z.ZodString;
|
|
83
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
kind: z.ZodLiteral<"modal-router-v1">;
|
|
88
|
+
sandboxId: z.ZodString;
|
|
89
|
+
taskId: z.ZodString;
|
|
90
|
+
execId: z.ZodString;
|
|
91
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
supervision: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
94
|
+
invocationId: z.ZodString;
|
|
95
|
+
nonce: z.ZodString;
|
|
96
|
+
controlPath: z.ZodString;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
streams: z.ZodObject<{
|
|
99
|
+
stdout: z.ZodObject<{
|
|
100
|
+
byteOffset: z.ZodNumber;
|
|
101
|
+
utf8Remainder: z.ZodString;
|
|
102
|
+
eof: z.ZodBoolean;
|
|
103
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
104
|
+
}, z.core.$strict>;
|
|
105
|
+
stderr: z.ZodObject<{
|
|
106
|
+
byteOffset: z.ZodNumber;
|
|
107
|
+
utf8Remainder: z.ZodString;
|
|
108
|
+
eof: z.ZodBoolean;
|
|
109
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
}, z.core.$strict>], "kind">;
|
|
23
113
|
export type SandboxProviderCommand = z.infer<typeof SandboxProviderCommand>;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Public, content-free selection. Never include native provider bindings. */
|
|
3
|
+
export declare const SandboxRecoverySelection: z.ZodObject<{
|
|
4
|
+
version: z.ZodLiteral<1>;
|
|
5
|
+
sessionId: z.ZodString;
|
|
6
|
+
sandboxGroupId: z.ZodString;
|
|
7
|
+
leaseId: z.ZodString;
|
|
8
|
+
routeEpoch: z.ZodNumber;
|
|
9
|
+
authorityEpoch: z.ZodNumber;
|
|
10
|
+
leaseEpoch: z.ZodNumber;
|
|
11
|
+
workspaceGeneration: z.ZodNumber;
|
|
12
|
+
archiveGeneration: z.ZodNumber;
|
|
13
|
+
artifactId: z.ZodString;
|
|
14
|
+
revision: z.ZodString;
|
|
15
|
+
capturedAt: z.ZodString;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
export type SandboxRecoverySelection = z.infer<typeof SandboxRecoverySelection>;
|
|
18
|
+
export declare const SandboxRecoveryProjection: z.ZodObject<{
|
|
19
|
+
version: z.ZodLiteral<1>;
|
|
20
|
+
status: z.ZodEnum<{
|
|
21
|
+
blocked: "blocked";
|
|
22
|
+
consent_accepted: "consent_accepted";
|
|
23
|
+
eligible: "eligible";
|
|
24
|
+
restored: "restored";
|
|
25
|
+
restoring: "restoring";
|
|
26
|
+
unsupported: "unsupported";
|
|
27
|
+
}>;
|
|
28
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
29
|
+
checkpoint: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
version: z.ZodLiteral<1>;
|
|
31
|
+
sessionId: z.ZodString;
|
|
32
|
+
sandboxGroupId: z.ZodString;
|
|
33
|
+
leaseId: z.ZodString;
|
|
34
|
+
routeEpoch: z.ZodNumber;
|
|
35
|
+
authorityEpoch: z.ZodNumber;
|
|
36
|
+
leaseEpoch: z.ZodNumber;
|
|
37
|
+
workspaceGeneration: z.ZodNumber;
|
|
38
|
+
archiveGeneration: z.ZodNumber;
|
|
39
|
+
artifactId: z.ZodString;
|
|
40
|
+
revision: z.ZodString;
|
|
41
|
+
capturedAt: z.ZodString;
|
|
42
|
+
}, z.core.$strict>>;
|
|
43
|
+
operationId: z.ZodNullable<z.ZodString>;
|
|
44
|
+
automaticAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
automaticLane: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
checkpoint: "checkpoint";
|
|
47
|
+
fresh_workspace: "fresh_workspace";
|
|
48
|
+
}>>;
|
|
49
|
+
availableAt: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strict>;
|
|
51
|
+
export type SandboxRecoveryProjection = z.infer<typeof SandboxRecoveryProjection>;
|
|
52
|
+
/** Why a definitively lost managed sandbox continues on an empty workspace. */
|
|
53
|
+
export declare const SandboxFreshWorkspaceReason: z.ZodEnum<{
|
|
54
|
+
archive_unavailable: "archive_unavailable";
|
|
55
|
+
archive_unverified: "archive_unverified";
|
|
56
|
+
checkpoint_restore_failed: "checkpoint_restore_failed";
|
|
57
|
+
checkpoint_unrestorable: "checkpoint_unrestorable";
|
|
58
|
+
}>;
|
|
59
|
+
export type SandboxFreshWorkspaceReason = z.infer<typeof SandboxFreshWorkspaceReason>;
|
|
60
|
+
/** Durable, content-free fresh-workspace decision for one group member. */
|
|
61
|
+
export declare const SandboxFreshWorkspaceRecovery: z.ZodObject<{
|
|
62
|
+
version: z.ZodLiteral<1>;
|
|
63
|
+
sessionId: z.ZodString;
|
|
64
|
+
sandboxGroupId: z.ZodString;
|
|
65
|
+
leaseId: z.ZodString;
|
|
66
|
+
leaseEpoch: z.ZodNumber;
|
|
67
|
+
workspaceGeneration: z.ZodNumber;
|
|
68
|
+
archiveGeneration: z.ZodNullable<z.ZodNumber>;
|
|
69
|
+
lostAt: z.ZodString;
|
|
70
|
+
reason: z.ZodEnum<{
|
|
71
|
+
archive_unavailable: "archive_unavailable";
|
|
72
|
+
archive_unverified: "archive_unverified";
|
|
73
|
+
checkpoint_restore_failed: "checkpoint_restore_failed";
|
|
74
|
+
checkpoint_unrestorable: "checkpoint_unrestorable";
|
|
75
|
+
}>;
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
export type SandboxFreshWorkspaceRecovery = z.infer<typeof SandboxFreshWorkspaceRecovery>;
|
|
78
|
+
export declare const SandboxRecoveryRequest: z.ZodObject<{
|
|
79
|
+
operationId: z.ZodString;
|
|
80
|
+
acceptHistoricalCheckpoint: z.ZodLiteral<true>;
|
|
81
|
+
selection: z.ZodObject<{
|
|
82
|
+
version: z.ZodLiteral<1>;
|
|
83
|
+
sessionId: z.ZodString;
|
|
84
|
+
sandboxGroupId: z.ZodString;
|
|
85
|
+
leaseId: z.ZodString;
|
|
86
|
+
routeEpoch: z.ZodNumber;
|
|
87
|
+
authorityEpoch: z.ZodNumber;
|
|
88
|
+
leaseEpoch: z.ZodNumber;
|
|
89
|
+
workspaceGeneration: z.ZodNumber;
|
|
90
|
+
archiveGeneration: z.ZodNumber;
|
|
91
|
+
artifactId: z.ZodString;
|
|
92
|
+
revision: z.ZodString;
|
|
93
|
+
capturedAt: z.ZodString;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
export type SandboxRecoveryRequest = z.infer<typeof SandboxRecoveryRequest>;
|
|
97
|
+
export declare const SandboxRecoveryResponse: z.ZodObject<{
|
|
98
|
+
outcome: z.ZodEnum<{
|
|
99
|
+
accepted: "accepted";
|
|
100
|
+
replayed: "replayed";
|
|
101
|
+
}>;
|
|
102
|
+
operationId: z.ZodString;
|
|
103
|
+
recovery: z.ZodObject<{
|
|
104
|
+
version: z.ZodLiteral<1>;
|
|
105
|
+
status: z.ZodEnum<{
|
|
106
|
+
blocked: "blocked";
|
|
107
|
+
consent_accepted: "consent_accepted";
|
|
108
|
+
eligible: "eligible";
|
|
109
|
+
restored: "restored";
|
|
110
|
+
restoring: "restoring";
|
|
111
|
+
unsupported: "unsupported";
|
|
112
|
+
}>;
|
|
113
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
114
|
+
checkpoint: z.ZodNullable<z.ZodObject<{
|
|
115
|
+
version: z.ZodLiteral<1>;
|
|
116
|
+
sessionId: z.ZodString;
|
|
117
|
+
sandboxGroupId: z.ZodString;
|
|
118
|
+
leaseId: z.ZodString;
|
|
119
|
+
routeEpoch: z.ZodNumber;
|
|
120
|
+
authorityEpoch: z.ZodNumber;
|
|
121
|
+
leaseEpoch: z.ZodNumber;
|
|
122
|
+
workspaceGeneration: z.ZodNumber;
|
|
123
|
+
archiveGeneration: z.ZodNumber;
|
|
124
|
+
artifactId: z.ZodString;
|
|
125
|
+
revision: z.ZodString;
|
|
126
|
+
capturedAt: z.ZodString;
|
|
127
|
+
}, z.core.$strict>>;
|
|
128
|
+
operationId: z.ZodNullable<z.ZodString>;
|
|
129
|
+
automaticAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
+
automaticLane: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
checkpoint: "checkpoint";
|
|
132
|
+
fresh_workspace: "fresh_workspace";
|
|
133
|
+
}>>;
|
|
134
|
+
availableAt: z.ZodOptional<z.ZodString>;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
}, z.core.$strict>;
|
|
137
|
+
export type SandboxRecoveryResponse = z.infer<typeof SandboxRecoveryResponse>;
|
|
138
|
+
/** Re-injected from durable receipts on every attempt, not lossy transcript state. */
|
|
139
|
+
export declare function sandboxRecoveryDiscontinuity(selection: SandboxRecoverySelection): string;
|
|
140
|
+
/** Stable tail instructions, sourced from a durable system recovery receipt.
|
|
141
|
+
* `shared` names the sandbox this session shares with other sessions; every
|
|
142
|
+
* member of that group receives its own receipt for the same selection. */
|
|
143
|
+
export declare function automaticSandboxRecoveryDiscontinuity(selection: SandboxRecoverySelection, scope?: "session" | "shared"): string;
|
|
144
|
+
/** Stable tail instructions for continuing on a new empty workspace. The text
|
|
145
|
+
* is true on every later turn too: it names the loss, not the current tree. */
|
|
146
|
+
export declare function freshWorkspaceSandboxRecoveryDiscontinuity(recovery: SandboxFreshWorkspaceRecovery): string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one password generator shared by agents (`secret_save` with
|
|
3
|
+
* `generate`), the ask card's server-side generate, and the web/mobile UI.
|
|
4
|
+
*
|
|
5
|
+
* Isomorphic and dependency-free: randomness comes from
|
|
6
|
+
* `crypto.getRandomValues` unless a test injects `random`. Output is ASCII
|
|
7
|
+
* only, and every character is drawn uniformly from the selected alphabet by
|
|
8
|
+
* rejection sampling, so no modulo bias is introduced. When
|
|
9
|
+
* `requireEachClass` is set, whole candidates lacking an enabled class are
|
|
10
|
+
* rejected and redrawn, which keeps the result uniform over all compliant
|
|
11
|
+
* passwords.
|
|
12
|
+
*/
|
|
13
|
+
import { z } from "zod";
|
|
14
|
+
export declare const SECRET_GENERATOR_DEFAULT_SYMBOLS = "!#%+-.:=?@_";
|
|
15
|
+
/** Characters that are easy to confuse when a person reads them. */
|
|
16
|
+
export declare const SECRET_GENERATOR_AMBIGUOUS_CHARACTERS = "0O1lI|";
|
|
17
|
+
export declare const GeneratePasswordSpec: z.ZodObject<{
|
|
18
|
+
length: z.ZodDefault<z.ZodNumber>;
|
|
19
|
+
lowercase: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
uppercase: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
digits: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
symbols: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
symbolSet: z.ZodDefault<z.ZodString>;
|
|
24
|
+
excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
requireEachClass: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
export type GeneratePasswordSpec = z.infer<typeof GeneratePasswordSpec>;
|
|
28
|
+
export type GeneratePasswordSpecInput = z.input<typeof GeneratePasswordSpec>;
|
|
29
|
+
export declare class PasswordGeneratorError extends Error {
|
|
30
|
+
constructor(message: string);
|
|
31
|
+
}
|
|
32
|
+
/** The enabled character classes after exclusions; empty classes are dropped. */
|
|
33
|
+
export declare function passwordCharacterClasses(spec: GeneratePasswordSpec): string[];
|
|
34
|
+
/** Generate a password. The spec input is parsed (defaults applied) first. */
|
|
35
|
+
export declare function generatePassword(spec?: GeneratePasswordSpecInput, random?: (n: number) => Uint8Array): string;
|
|
36
|
+
export type PasswordStrengthLabel = "weak" | "fair" | "strong" | "very_strong";
|
|
37
|
+
/**
|
|
38
|
+
* Estimated entropy from length and the character pools the password uses.
|
|
39
|
+
* A display hint for the UI, not a security decision.
|
|
40
|
+
*/
|
|
41
|
+
export declare function passwordStrength(password: string): {
|
|
42
|
+
bits: number;
|
|
43
|
+
label: PasswordStrengthLabel;
|
|
44
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export type SecretReferenceKind = "secret" | "secretfile";
|
|
2
|
+
export type SecretReferenceTarget = {
|
|
3
|
+
form: "id";
|
|
4
|
+
itemId: string;
|
|
5
|
+
field: string | null;
|
|
6
|
+
} | {
|
|
7
|
+
form: "path";
|
|
8
|
+
segments: [string] | [string, string] | [string, string, string];
|
|
9
|
+
};
|
|
10
|
+
export interface SecretReference {
|
|
11
|
+
kind: SecretReferenceKind;
|
|
12
|
+
raw: string;
|
|
13
|
+
/** Offsets in the source text; `end` is exclusive. */
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
target: SecretReferenceTarget;
|
|
17
|
+
otp: boolean;
|
|
18
|
+
previous: boolean;
|
|
19
|
+
}
|
|
20
|
+
export type SecretTextToken =
|
|
21
|
+
/** Escapes already unescaped. */
|
|
22
|
+
{
|
|
23
|
+
type: "text";
|
|
24
|
+
value: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: "reference";
|
|
27
|
+
reference: SecretReference;
|
|
28
|
+
} | {
|
|
29
|
+
type: "invalid";
|
|
30
|
+
raw: string;
|
|
31
|
+
start: number;
|
|
32
|
+
end: number;
|
|
33
|
+
reason: string;
|
|
34
|
+
};
|
|
35
|
+
/** Fast-path needle; also matches `{{secretfile:`. */
|
|
36
|
+
export declare const SECRET_REFERENCE_MARKER = "{{secret";
|
|
37
|
+
export declare class SecretReferenceSyntaxError extends Error {
|
|
38
|
+
readonly reason: string;
|
|
39
|
+
constructor(reason: string, message?: string);
|
|
40
|
+
}
|
|
41
|
+
export declare function containsSecretReference(text: string): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Split text into literal text, references and invalid candidates. Adjacent
|
|
44
|
+
* text is merged; an escaped reference (`\{{secret:…}}`) becomes literal
|
|
45
|
+
* text without the backslash. Never throws.
|
|
46
|
+
*/
|
|
47
|
+
export declare function tokenizeSecretText(text: string): SecretTextToken[];
|
|
48
|
+
/** Valid references only, in text order. */
|
|
49
|
+
export declare function findSecretReferences(text: string): SecretReference[];
|
|
50
|
+
/** Invalid candidates only, in text order. */
|
|
51
|
+
export declare function findInvalidSecretReferences(text: string): Array<Extract<SecretTextToken, {
|
|
52
|
+
type: "invalid";
|
|
53
|
+
}>>;
|
|
54
|
+
/** Parse exactly one reference (`{{…}}`). Throws SecretReferenceSyntaxError. */
|
|
55
|
+
export declare function parseSecretReference(raw: string): SecretReference;
|
|
56
|
+
export type FormatSecretReferenceInput = {
|
|
57
|
+
kind?: SecretReferenceKind;
|
|
58
|
+
vault?: string;
|
|
59
|
+
item: string;
|
|
60
|
+
field?: string;
|
|
61
|
+
otp?: boolean;
|
|
62
|
+
previous?: boolean;
|
|
63
|
+
} | {
|
|
64
|
+
kind?: SecretReferenceKind;
|
|
65
|
+
itemId: string;
|
|
66
|
+
field?: string;
|
|
67
|
+
otp?: boolean;
|
|
68
|
+
previous?: boolean;
|
|
69
|
+
};
|
|
70
|
+
/** Build a reference. Throws SecretReferenceSyntaxError when a name cannot be referenced. */
|
|
71
|
+
export declare function formatSecretReference(input: FormatSecretReferenceInput): string;
|
|
72
|
+
/** NFC + trim + lowercase. For UI and dedupe only; SQL `vault_name_key` is authoritative. */
|
|
73
|
+
export declare function secretNameKey(name: string): string;
|
|
74
|
+
/** Canonical dedupe key within one call (same target and modifiers → same key). */
|
|
75
|
+
export declare function referenceKey(ref: SecretReference): string;
|
|
76
|
+
/** Remove escapes (`\{{secret:…}}` → `{{secret:…}}`); references stay as written. */
|
|
77
|
+
export declare function unescapeSecretText(text: string): string;
|
|
78
|
+
/** Every valid reference in every string value of a JSON-like structure. */
|
|
79
|
+
export declare function collectReferencesDeep(value: unknown): SecretReference[];
|
|
80
|
+
/** Every invalid candidate in every string value of a JSON-like structure. */
|
|
81
|
+
export declare function collectInvalidReferencesDeep(value: unknown): Array<Extract<SecretTextToken, {
|
|
82
|
+
type: "invalid";
|
|
83
|
+
}>>;
|
|
84
|
+
/**
|
|
85
|
+
* Deep copy with each reference replaced by `replace(ref)` and escapes
|
|
86
|
+
* removed. Strings without the marker are copied unchanged; invalid
|
|
87
|
+
* candidates are kept verbatim (callers reject them before replacing).
|
|
88
|
+
* Object keys are not rewritten.
|
|
89
|
+
*/
|
|
90
|
+
export declare function replaceReferencesDeep<T>(value: T, replace: (ref: SecretReference) => string): T;
|