@opengeni/contracts 3.1.0-canary.1 → 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 +110 -0
- package/dist/agent-learning.d.ts +243 -0
- 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-WBYTNVIW.js → chunk-RKX3NQYS.js} +1 -1
- 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-brain.d.ts +19 -81
- 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 +174 -0
- package/dist/external-identities.js +15 -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 +39 -10
- package/dist/host-mcp-bindings.js +256 -171
- package/dist/host-mcp-bindings.js.map +1 -1
- package/dist/image-generation.d.ts +1 -0
- package/dist/index.d.ts +15715 -3850
- package/dist/index.js +2088 -289
- 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 +984 -0
- 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-endpoint.js +9 -0
- package/dist/mcp-endpoint.js.map +1 -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/plugin-discovery.js +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-instruction-policies.d.ts +13 -0
- 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/workspace-state.d.ts +85 -416
- package/dist/xai-provider-account-authority.js +2 -1
- package/package.json +98 -2
- package/src/agent-authored-durable-text.ts +14 -11
- package/src/agent-config.ts +1698 -0
- package/src/agent-instruction-changes.ts +115 -0
- package/src/agent-learning.ts +188 -0
- 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 +262 -145
- 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 +292 -198
- package/src/image-generation.ts +104 -95
- package/src/index.ts +13354 -8654
- package/src/insights-usage.ts +727 -0
- package/src/interaction.ts +3070 -2326
- package/src/knowledge-entries.ts +428 -0
- 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 -275
- 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 +253 -333
- package/src/xai-provider-account-authority.ts +22 -17
- 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-OSBYTE3O.js +0 -348
- package/dist/chunk-OSBYTE3O.js.map +0 -1
- package/dist/chunk-P3HLDT77.js +0 -59
- package/dist/chunk-P3HLDT77.js.map +0 -1
- package/dist/chunk-TEMFILR7.js +0 -143
- package/dist/chunk-TEMFILR7.js.map +0 -1
- package/dist/chunk-TXTQIYCV.js.map +0 -1
- package/dist/chunk-UR2GFYIE.js +0 -22598
- package/dist/chunk-UR2GFYIE.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/{chunk-5LYFSZ7O.js.map → chunk-352X6ENP.js.map} +0 -0
- /package/dist/{chunk-WBYTNVIW.js.map → chunk-RKX3NQYS.js.map} +0 -0
- /package/dist/{chunk-O5LEQHDM.js.map → chunk-Z7WEVGCL.js.map} +0 -0
|
@@ -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;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secret resolver contract (design §10B.1.3). Types live here; the hosted
|
|
3
|
+
* implementation is `createSecretResolver` in `@opengeni/core` and a static
|
|
4
|
+
* stub is `createStaticSecretResolver` in `@opengeni/vaults/testing`.
|
|
5
|
+
*
|
|
6
|
+
* Invariants: a call resolves all of its references or fails before
|
|
7
|
+
* dispatch (I2); plaintext only ever lives in `ResolvedSecretValue.material`
|
|
8
|
+
* and in delivery locals (I1); TOTP codes are computed at dispatch (I4).
|
|
9
|
+
*/
|
|
10
|
+
import type { RequestHumanInputToolInput } from "./index.js";
|
|
11
|
+
import { type SecretReference } from "./secret-references.js";
|
|
12
|
+
import { type SecretClock, type TotpParams } from "./secret-totp.js";
|
|
13
|
+
import type { VaultSource } from "./vaults.js";
|
|
14
|
+
export type SecretPrincipal = {
|
|
15
|
+
kind: "attempt";
|
|
16
|
+
accountId: string;
|
|
17
|
+
workspaceId: string;
|
|
18
|
+
sessionId: string;
|
|
19
|
+
turnId: string;
|
|
20
|
+
attemptId: string;
|
|
21
|
+
executionGeneration: number;
|
|
22
|
+
} | {
|
|
23
|
+
kind: "site_viewer";
|
|
24
|
+
accountId: string;
|
|
25
|
+
workspaceId: string;
|
|
26
|
+
subjectId: string;
|
|
27
|
+
siteId: string;
|
|
28
|
+
siteVersion: string;
|
|
29
|
+
} | {
|
|
30
|
+
kind: "human";
|
|
31
|
+
accountId: string;
|
|
32
|
+
workspaceId: string;
|
|
33
|
+
subjectId: string;
|
|
34
|
+
verifiedHuman: boolean;
|
|
35
|
+
viaApiKey: boolean;
|
|
36
|
+
};
|
|
37
|
+
export declare const SECRET_USE_SURFACES: readonly ["shell", "stdin", "file_write", "secretfile", "view_image", "run_on", "mcp", "codemode", "site", "browser", "desktop", "human_reveal"];
|
|
38
|
+
export type SecretUseSurface = (typeof SECRET_USE_SURFACES)[number];
|
|
39
|
+
export interface SecretUseContext {
|
|
40
|
+
surface: SecretUseSurface;
|
|
41
|
+
toolName: string;
|
|
42
|
+
operationId?: string;
|
|
43
|
+
sourceCallId?: string;
|
|
44
|
+
}
|
|
45
|
+
export type SecretMaterial = {
|
|
46
|
+
type: "text";
|
|
47
|
+
value: string;
|
|
48
|
+
}
|
|
49
|
+
/** File fields. */
|
|
50
|
+
| {
|
|
51
|
+
type: "bytes";
|
|
52
|
+
value: Uint8Array;
|
|
53
|
+
}
|
|
54
|
+
/** The code is computed at dispatch (I4). */
|
|
55
|
+
| {
|
|
56
|
+
type: "totp";
|
|
57
|
+
params: TotpParams;
|
|
58
|
+
};
|
|
59
|
+
export interface ResolvedSecretValue {
|
|
60
|
+
/** `referenceKey(reference)` */
|
|
61
|
+
key: string;
|
|
62
|
+
reference: SecretReference;
|
|
63
|
+
source: VaultSource;
|
|
64
|
+
vaultId: string;
|
|
65
|
+
vaultName: string;
|
|
66
|
+
itemId: string;
|
|
67
|
+
itemName: string;
|
|
68
|
+
fieldId: string | null;
|
|
69
|
+
fieldName: string;
|
|
70
|
+
version: number | null;
|
|
71
|
+
material: SecretMaterial;
|
|
72
|
+
}
|
|
73
|
+
export interface SecretResolver {
|
|
74
|
+
readonly principal: SecretPrincipal;
|
|
75
|
+
/** false when agent.capabilities.secrets is off: adapters must pass references through literally (Q-35). */
|
|
76
|
+
readonly enabled: boolean;
|
|
77
|
+
/** All-or-nothing (I2). Throws SecretReferenceError. Keys are referenceKey(ref). */
|
|
78
|
+
resolve(refs: readonly SecretReference[], use: SecretUseContext): Promise<Map<string, ResolvedSecretValue>>;
|
|
79
|
+
}
|
|
80
|
+
export declare const SECRET_REFERENCE_FAILURE_CODES: readonly ["invalid_reference", "not_found", "ambiguous", "denied", "no_primary_field", "provider_unavailable", "provider_rate_limited", "provider_auth_expired", "too_large", "binary_value", "unsupported_shell", "secretfile_not_allowed"];
|
|
81
|
+
export type SecretReferenceFailureCode = (typeof SECRET_REFERENCE_FAILURE_CODES)[number];
|
|
82
|
+
export interface SecretReferenceFailure {
|
|
83
|
+
raw: string;
|
|
84
|
+
code: SecretReferenceFailureCode;
|
|
85
|
+
message: string;
|
|
86
|
+
/** ambiguous: ready references to choose from (Q-49). */
|
|
87
|
+
candidates?: string[];
|
|
88
|
+
}
|
|
89
|
+
export declare const SECRET_REFERENCE_ERROR_CODE: "secret_reference_error";
|
|
90
|
+
/** Thrown by `SecretResolver.resolve` and by delivery adapters before dispatch. */
|
|
91
|
+
export declare class SecretReferenceError extends Error {
|
|
92
|
+
readonly code: "secret_reference_error";
|
|
93
|
+
readonly failures: SecretReferenceFailure[];
|
|
94
|
+
readonly askCard: RequestHumanInputToolInput | null;
|
|
95
|
+
constructor(failures: SecretReferenceFailure[], askCard?: RequestHumanInputToolInput | null);
|
|
96
|
+
/** JSON string for tool output: {error, failures, askCard, hint}. Never contains values. */
|
|
97
|
+
toModelOutput(): string;
|
|
98
|
+
}
|
|
99
|
+
export declare function isSecretReferenceError(error: unknown): error is SecretReferenceError;
|
|
100
|
+
/** Materialize at dispatch: text/bytes as-is; TOTP via totpCodeAtDispatch (waits when < 3 s remain). */
|
|
101
|
+
export declare function secretValueAtDispatch(v: ResolvedSecretValue, clock?: SecretClock): Promise<string | Uint8Array>;
|
|
102
|
+
/**
|
|
103
|
+
* The ready-made ask card for `not_found` failures (§10B.1.3, D11): one
|
|
104
|
+
* secret question per missing item. Path references name the item in their
|
|
105
|
+
* last item segment (`Item`, `Item/field` read as Item/field, `Vault/Item/field`);
|
|
106
|
+
* ID references cannot be asked for by name and are skipped. Returns null
|
|
107
|
+
* when nothing can be asked. The model submits it unchanged.
|
|
108
|
+
*/
|
|
109
|
+
export declare function buildMissingSecretAskCard(failures: readonly SecretReferenceFailure[], ctx: {
|
|
110
|
+
hasActingHuman: boolean;
|
|
111
|
+
}): RequestHumanInputToolInput | null;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface TotpParams {
|
|
2
|
+
secretBase32: string;
|
|
3
|
+
algorithm: "SHA1" | "SHA256" | "SHA512";
|
|
4
|
+
digits: 6 | 7 | 8;
|
|
5
|
+
periodSeconds: number;
|
|
6
|
+
}
|
|
7
|
+
export type SecretClock = {
|
|
8
|
+
now(): number;
|
|
9
|
+
sleep(ms: number): Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export declare const systemSecretClock: SecretClock;
|
|
12
|
+
/** Wait for the next window when fewer than this many ms remain (Q-33). */
|
|
13
|
+
export declare const TOTP_MIN_REMAINING_MS = 3000;
|
|
14
|
+
export declare class TotpInputError extends Error {
|
|
15
|
+
constructor(message: string);
|
|
16
|
+
}
|
|
17
|
+
/** Uppercase, strip spaces, dashes and padding. */
|
|
18
|
+
export declare function normalizeBase32Secret(input: string): string;
|
|
19
|
+
export declare function decodeBase32(input: string): Uint8Array;
|
|
20
|
+
/**
|
|
21
|
+
* Accepts an `otpauth://totp/...` URI or a bare Base32 seed (spaces, dashes,
|
|
22
|
+
* padding and lowercase tolerated). Throws `TotpInputError`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function parseTotpInput(input: string): TotpParams;
|
|
25
|
+
/** True when `input` parses as a TOTP seed or otpauth URI. */
|
|
26
|
+
export declare function isValidTotpInput(input: string): boolean;
|
|
27
|
+
/** Synchronous form of `totpCode` for UI rendering loops. */
|
|
28
|
+
export declare function totpCodeSync(params: TotpParams, atMs: number): string;
|
|
29
|
+
/** The code valid at `atMs` (Unix milliseconds). */
|
|
30
|
+
export declare function totpCode(params: TotpParams, atMs: number): Promise<string>;
|
|
31
|
+
/** Milliseconds left in the window containing `atMs`. */
|
|
32
|
+
export declare function totpRemainingMs(params: TotpParams, atMs: number): number;
|
|
33
|
+
/**
|
|
34
|
+
* The code to type or send right now. When fewer than 3 s remain in the
|
|
35
|
+
* current window, waits for the next window so the code is not stale on
|
|
36
|
+
* arrival (Q-33).
|
|
37
|
+
*/
|
|
38
|
+
export declare function totpCodeAtDispatch(params: TotpParams, clock?: SecretClock): Promise<{
|
|
39
|
+
code: string;
|
|
40
|
+
expiresAtMs: number;
|
|
41
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** A response-quality notice, not a failed turn or a completed deliverable. */
|
|
2
|
+
export declare const EMPTY_FINAL_REPLY_NOTICE = "The model returned no final reply after a reply reminder. Completed work is preserved; the goal and later updates are unaffected.";
|
|
3
|
+
export type EmptyFinalReplyCompletion = {
|
|
4
|
+
emptyFinalReply: true;
|
|
5
|
+
};
|
|
6
|
+
export declare function turnCompletedWithEmptyFinalReply(payload: unknown): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SessionGoalReportRequirement: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export type SessionGoalReportRequirement = z.infer<typeof SessionGoalReportRequirement>;
|
|
7
|
+
export declare const SessionGoalReportRequirements: z.ZodArray<z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
}, z.core.$strict>>;
|
|
11
|
+
export declare const SessionGoalReportDelivery: z.ZodObject<{
|
|
12
|
+
requirementId: z.ZodString;
|
|
13
|
+
artifactId: z.ZodString;
|
|
14
|
+
inspectionReceiptId: z.ZodString;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export type SessionGoalReportDelivery = z.infer<typeof SessionGoalReportDelivery>;
|
|
17
|
+
export declare const SessionGoalReportDeliveries: z.ZodArray<z.ZodObject<{
|
|
18
|
+
requirementId: z.ZodString;
|
|
19
|
+
artifactId: z.ZodString;
|
|
20
|
+
inspectionReceiptId: z.ZodString;
|
|
21
|
+
}, z.core.$strict>>;
|