@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
package/src/task-notes.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { defineSchema } from "./define-schema";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
export const TASK_NOTE_TEXT_MAX_BYTES = 4_096;
|
|
@@ -36,70 +37,73 @@ export const TaskNoteReason = boundedTaskNoteText(
|
|
|
36
37
|
"task note archive reason",
|
|
37
38
|
);
|
|
38
39
|
|
|
39
|
-
export const TaskNoteKind =
|
|
40
|
-
"finding",
|
|
41
|
-
|
|
42
|
-
"blocker",
|
|
43
|
-
"ownership",
|
|
44
|
-
"artifact",
|
|
45
|
-
"handoff",
|
|
46
|
-
]);
|
|
40
|
+
export const TaskNoteKind = /* @__PURE__ */ defineSchema(() =>
|
|
41
|
+
z.enum(["finding", "decision", "blocker", "ownership", "artifact", "handoff"]),
|
|
42
|
+
);
|
|
47
43
|
export type TaskNoteKind = z.infer<typeof TaskNoteKind>;
|
|
48
44
|
|
|
49
|
-
export const TaskNoteStatus = z.enum(["active", "archived"]);
|
|
45
|
+
export const TaskNoteStatus = /* @__PURE__ */ defineSchema(() => z.enum(["active", "archived"]));
|
|
50
46
|
export type TaskNoteStatus = z.infer<typeof TaskNoteStatus>;
|
|
51
47
|
|
|
52
|
-
export const TaskNoteActorKind = z.enum(["human", "service"]);
|
|
48
|
+
export const TaskNoteActorKind = /* @__PURE__ */ defineSchema(() => z.enum(["human", "service"]));
|
|
53
49
|
export type TaskNoteActorKind = z.infer<typeof TaskNoteActorKind>;
|
|
54
50
|
|
|
55
|
-
export const TaskNote =
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
51
|
+
export const TaskNote = /* @__PURE__ */ defineSchema(() =>
|
|
52
|
+
z.object({
|
|
53
|
+
id: z.string().uuid(),
|
|
54
|
+
rootSessionId: z.string().uuid(),
|
|
55
|
+
kind: TaskNoteKind,
|
|
56
|
+
text: TaskNoteText,
|
|
57
|
+
status: TaskNoteStatus,
|
|
58
|
+
version: z.number().int().positive(),
|
|
59
|
+
expiresAt: z.string().datetime({ offset: true }),
|
|
60
|
+
createdAt: z.string().datetime({ offset: true }),
|
|
61
|
+
updatedAt: z.string().datetime({ offset: true }),
|
|
62
|
+
archivedAt: z.string().datetime({ offset: true }).nullable(),
|
|
63
|
+
provenance: z.object({
|
|
64
|
+
actorKind: TaskNoteActorKind,
|
|
65
|
+
sourceSessionId: z.string().uuid(),
|
|
66
|
+
sourceTurnId: z.string().uuid(),
|
|
67
|
+
}),
|
|
70
68
|
}),
|
|
71
|
-
|
|
69
|
+
);
|
|
72
70
|
export type TaskNote = z.infer<typeof TaskNote>;
|
|
73
71
|
|
|
74
|
-
export const TaskNoteMutationResult =
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
export const TaskNoteMutationResult = /* @__PURE__ */ defineSchema(() =>
|
|
73
|
+
z.object({
|
|
74
|
+
note: TaskNote,
|
|
75
|
+
replayed: z.boolean(),
|
|
76
|
+
}),
|
|
77
|
+
);
|
|
78
78
|
export type TaskNoteMutationResult = z.infer<typeof TaskNoteMutationResult>;
|
|
79
79
|
|
|
80
80
|
/** Atomic correction lineage: archive one exact v1 note and create one v1 replacement. */
|
|
81
|
-
export const TaskNoteReplacementResult =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
export const TaskNoteReplacementResult = /* @__PURE__ */ defineSchema(() =>
|
|
82
|
+
z.object({
|
|
83
|
+
operationId: z.string().uuid(),
|
|
84
|
+
inputHash: z.string().regex(/^[0-9a-f]{64}$/),
|
|
85
|
+
replaces: z.object({
|
|
86
|
+
noteId: z.string().uuid(),
|
|
87
|
+
archivedVersion: z.literal(2),
|
|
88
|
+
}),
|
|
89
|
+
replacement: TaskNote,
|
|
90
|
+
replayed: z.boolean(),
|
|
87
91
|
}),
|
|
88
|
-
|
|
89
|
-
replayed: z.boolean(),
|
|
90
|
-
});
|
|
92
|
+
);
|
|
91
93
|
export type TaskNoteReplacementResult = z.infer<typeof TaskNoteReplacementResult>;
|
|
92
94
|
|
|
93
|
-
export const TaskNoteListResponse =
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
95
|
+
export const TaskNoteListResponse = /* @__PURE__ */ defineSchema(() =>
|
|
96
|
+
z
|
|
97
|
+
.object({
|
|
98
|
+
notes: z.array(TaskNote).max(TASK_NOTE_LIST_MAX_LIMIT),
|
|
99
|
+
})
|
|
100
|
+
.superRefine((value, ctx) => {
|
|
101
|
+
if (utf8Bytes(JSON.stringify(value)) > TASK_NOTE_LIST_RESPONSE_MAX_BYTES) {
|
|
102
|
+
ctx.addIssue({
|
|
103
|
+
code: z.ZodIssueCode.custom,
|
|
104
|
+
message: `task note list response must be at most ${TASK_NOTE_LIST_RESPONSE_MAX_BYTES} UTF-8 bytes`,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}),
|
|
108
|
+
);
|
|
105
109
|
export type TaskNoteListResponse = z.infer<typeof TaskNoteListResponse>;
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { defineSchema } from "./define-schema";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
/** Trusted adapter hints, never read from agent arguments or tool output. */
|
|
5
|
+
export const ToolReviewContext = /* @__PURE__ */ defineSchema(() =>
|
|
6
|
+
z
|
|
7
|
+
.object({
|
|
8
|
+
kind: z.enum(["generic", "gmail"]).default("generic"),
|
|
9
|
+
title: z.string().max(256).optional(),
|
|
10
|
+
accountLabel: z.string().max(256).optional(),
|
|
11
|
+
fieldLabels: z.record(z.string(), z.string().max(256)).optional(),
|
|
12
|
+
protectedFields: z.array(z.string()).optional(),
|
|
13
|
+
email: z
|
|
14
|
+
.object({
|
|
15
|
+
from: z.string().max(4096),
|
|
16
|
+
to: z.string().max(32768),
|
|
17
|
+
cc: z.string().max(32768),
|
|
18
|
+
bcc: z.string().max(32768),
|
|
19
|
+
subject: z.string().max(32768),
|
|
20
|
+
textBody: z.string().max(262144),
|
|
21
|
+
htmlBody: z.string().max(262144),
|
|
22
|
+
contentSha256: z.string().regex(/^[0-9a-f]{64}$/),
|
|
23
|
+
attachments: z
|
|
24
|
+
.array(
|
|
25
|
+
z
|
|
26
|
+
.object({
|
|
27
|
+
name: z.string().max(1024),
|
|
28
|
+
mediaType: z.string().max(256),
|
|
29
|
+
bytes: z.number().int().nonnegative(),
|
|
30
|
+
})
|
|
31
|
+
.strict(),
|
|
32
|
+
)
|
|
33
|
+
.max(100),
|
|
34
|
+
})
|
|
35
|
+
.strict()
|
|
36
|
+
.optional(),
|
|
37
|
+
samples: z
|
|
38
|
+
.array(
|
|
39
|
+
z
|
|
40
|
+
.object({
|
|
41
|
+
id: z.string().max(256),
|
|
42
|
+
title: z.string().max(256),
|
|
43
|
+
subtitle: z.string().max(256).optional(),
|
|
44
|
+
provenance: z.literal("provider_metadata"),
|
|
45
|
+
})
|
|
46
|
+
.strict(),
|
|
47
|
+
)
|
|
48
|
+
.max(3)
|
|
49
|
+
.optional(),
|
|
50
|
+
})
|
|
51
|
+
.strict(),
|
|
52
|
+
);
|
|
53
|
+
export type ToolReviewContext = z.infer<typeof ToolReviewContext>;
|
|
54
|
+
|
|
55
|
+
// Names are exact saved identities, never display labels. A name protected by
|
|
56
|
+
// any reachable schema stays protected at every depth (conservative for sibling
|
|
57
|
+
// properties with the same name). Never truncate this set and expose its tail.
|
|
58
|
+
function schemaProtectedFields(root: Record<string, unknown>): string[] {
|
|
59
|
+
const protectedFields = new Set<string>();
|
|
60
|
+
const seen = new WeakMap<object, Set<string | undefined>>();
|
|
61
|
+
let visited = 0;
|
|
62
|
+
const object = (value: unknown): value is Record<string, unknown> =>
|
|
63
|
+
value !== null && typeof value === "object" && !Array.isArray(value);
|
|
64
|
+
const refuse = () => {
|
|
65
|
+
throw new Error("Tool review schema cannot be safely displayed");
|
|
66
|
+
};
|
|
67
|
+
const visit = (node: unknown, owner?: string, depth = 0): void => {
|
|
68
|
+
if (!object(node)) return;
|
|
69
|
+
const owners = seen.get(node) ?? new Set<string | undefined>();
|
|
70
|
+
if (owners.has(owner)) return;
|
|
71
|
+
owners.add(owner);
|
|
72
|
+
seen.set(node, owners);
|
|
73
|
+
if (++visited > 20000 || depth > 100) refuse();
|
|
74
|
+
if (node.$dynamicRef !== undefined || node.$recursiveRef !== undefined) refuse();
|
|
75
|
+
// A nested resource identifier changes the resolution base of local refs.
|
|
76
|
+
if (node !== root && node.$id !== undefined) refuse();
|
|
77
|
+
if (node.writeOnly === true) {
|
|
78
|
+
if (owner === undefined) refuse();
|
|
79
|
+
protectedFields.add(owner!);
|
|
80
|
+
}
|
|
81
|
+
if (node.contentSchema !== undefined) {
|
|
82
|
+
// Encoded content is one opaque argument value. Nested privacy annotations
|
|
83
|
+
// cannot be applied to its string without decoding and changing the bytes.
|
|
84
|
+
if (owner === undefined) refuse();
|
|
85
|
+
protectedFields.add(owner!);
|
|
86
|
+
}
|
|
87
|
+
if (typeof node.$ref === "string") {
|
|
88
|
+
if (node.$ref !== "#" && !node.$ref.startsWith("#/")) refuse();
|
|
89
|
+
let target: unknown = root;
|
|
90
|
+
if (node.$ref !== "#")
|
|
91
|
+
for (const part of node.$ref.slice(2).split("/")) {
|
|
92
|
+
const key = part.replaceAll("~1", "/").replaceAll("~0", "~");
|
|
93
|
+
if (!object(target) || !Object.hasOwn(target, key)) refuse();
|
|
94
|
+
target = (target as Record<string, unknown>)[key];
|
|
95
|
+
}
|
|
96
|
+
if (!object(target) && typeof target !== "boolean") refuse();
|
|
97
|
+
visit(target, owner, depth + 1);
|
|
98
|
+
}
|
|
99
|
+
if (object(node.properties))
|
|
100
|
+
for (const [key, schema] of Object.entries(node.properties)) visit(schema, key, depth + 1);
|
|
101
|
+
for (const key of [
|
|
102
|
+
"items",
|
|
103
|
+
"additionalItems",
|
|
104
|
+
"additionalProperties",
|
|
105
|
+
"unevaluatedItems",
|
|
106
|
+
"unevaluatedProperties",
|
|
107
|
+
"contains",
|
|
108
|
+
"if",
|
|
109
|
+
"then",
|
|
110
|
+
"else",
|
|
111
|
+
"not",
|
|
112
|
+
]) {
|
|
113
|
+
const value = node[key];
|
|
114
|
+
if (Array.isArray(value)) for (const child of value) visit(child, owner, depth + 1);
|
|
115
|
+
else visit(value, owner, depth + 1);
|
|
116
|
+
}
|
|
117
|
+
for (const key of ["allOf", "anyOf", "oneOf", "prefixItems"]) {
|
|
118
|
+
if (Array.isArray(node[key])) for (const child of node[key]) visit(child, owner, depth + 1);
|
|
119
|
+
}
|
|
120
|
+
// A pattern cannot be represented by this exact-name privacy contract.
|
|
121
|
+
// Protect its containing object if any branch declares a private value.
|
|
122
|
+
for (const key of ["patternProperties", "dependentSchemas", "dependencies"]) {
|
|
123
|
+
if (object(node[key]))
|
|
124
|
+
for (const child of Object.values(node[key])) visit(child, owner, depth + 1);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
try {
|
|
128
|
+
visit(root);
|
|
129
|
+
return [...protectedFields];
|
|
130
|
+
} catch {
|
|
131
|
+
// Review formatting must not change Allow/Block execution. Unsupported
|
|
132
|
+
// schema privacy is conservative: display no values, never guess a key.
|
|
133
|
+
return ["*"];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function toolReviewContextFromSchema(
|
|
138
|
+
inputSchema: unknown,
|
|
139
|
+
hints: Omit<ToolReviewContext, "fieldLabels" | "protectedFields">,
|
|
140
|
+
): ToolReviewContext {
|
|
141
|
+
const schema =
|
|
142
|
+
inputSchema && typeof inputSchema === "object" ? (inputSchema as Record<string, unknown>) : {};
|
|
143
|
+
const properties =
|
|
144
|
+
schema.properties && typeof schema.properties === "object"
|
|
145
|
+
? Object.entries(schema.properties)
|
|
146
|
+
: [];
|
|
147
|
+
const clean = (text: string) =>
|
|
148
|
+
text
|
|
149
|
+
.replaceAll("\u0000", "")
|
|
150
|
+
.replace(/\p{Surrogate}/gu, "�")
|
|
151
|
+
.slice(0, 256);
|
|
152
|
+
return {
|
|
153
|
+
kind: hints.kind,
|
|
154
|
+
...(hints.title ? { title: clean(hints.title) } : {}),
|
|
155
|
+
...(hints.accountLabel ? { accountLabel: clean(hints.accountLabel) } : {}),
|
|
156
|
+
fieldLabels: Object.fromEntries(
|
|
157
|
+
properties
|
|
158
|
+
.slice(0, 128)
|
|
159
|
+
.flatMap(([key, value]) =>
|
|
160
|
+
value && typeof value === "object" && typeof value.title === "string"
|
|
161
|
+
? [[key, clean(value.title)]]
|
|
162
|
+
: [],
|
|
163
|
+
),
|
|
164
|
+
),
|
|
165
|
+
protectedFields: schemaProtectedFields(schema),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export const ToolReviewStatus = /* @__PURE__ */ defineSchema(() =>
|
|
170
|
+
z.enum([
|
|
171
|
+
"pending",
|
|
172
|
+
"approved",
|
|
173
|
+
"executing",
|
|
174
|
+
"completed",
|
|
175
|
+
"partial",
|
|
176
|
+
"unknown",
|
|
177
|
+
"rejected",
|
|
178
|
+
"cancelled",
|
|
179
|
+
"expired",
|
|
180
|
+
"revoked",
|
|
181
|
+
"blocked",
|
|
182
|
+
"stale",
|
|
183
|
+
"failed",
|
|
184
|
+
"unavailable",
|
|
185
|
+
]),
|
|
186
|
+
);
|
|
187
|
+
export type ToolReviewStatus = z.infer<typeof ToolReviewStatus>;
|
|
188
|
+
export const ToolReviewField = /* @__PURE__ */ defineSchema(() =>
|
|
189
|
+
z
|
|
190
|
+
.object({
|
|
191
|
+
path: z.string(),
|
|
192
|
+
label: z.string(),
|
|
193
|
+
preview: z.string(),
|
|
194
|
+
count: z.number().int().nonnegative().optional(),
|
|
195
|
+
truncated: z.boolean(),
|
|
196
|
+
protected: z.boolean().optional(),
|
|
197
|
+
})
|
|
198
|
+
.strict(),
|
|
199
|
+
);
|
|
200
|
+
export const ToolActionReview = /* @__PURE__ */ defineSchema(() =>
|
|
201
|
+
z
|
|
202
|
+
.object({
|
|
203
|
+
version: z.literal(1),
|
|
204
|
+
id: z.string(),
|
|
205
|
+
actionDigest: z.string(),
|
|
206
|
+
revision: z.string(),
|
|
207
|
+
status: ToolReviewStatus,
|
|
208
|
+
title: z.string(),
|
|
209
|
+
accountLabel: z.string().optional(),
|
|
210
|
+
consequence: z.string().optional(),
|
|
211
|
+
effects: z.array(z.string()),
|
|
212
|
+
selectionCount: z.number().int().nonnegative().optional(),
|
|
213
|
+
selectionKind: z.enum(["messages", "threads"]).optional(),
|
|
214
|
+
samples: ToolReviewContext.shape.samples,
|
|
215
|
+
fields: z.array(ToolReviewField),
|
|
216
|
+
moreFields: z.number().int().nonnegative(),
|
|
217
|
+
reason: z.string(),
|
|
218
|
+
createdAt: z.string(),
|
|
219
|
+
updatedAt: z.string(),
|
|
220
|
+
approveLabel: z.string(),
|
|
221
|
+
availableActions: z.array(z.enum(["approve", "reject"])),
|
|
222
|
+
detailsAvailable: z.boolean(),
|
|
223
|
+
})
|
|
224
|
+
.strict(),
|
|
225
|
+
);
|
|
226
|
+
export type ToolActionReview = z.infer<typeof ToolActionReview>;
|
|
227
|
+
export const ToolReviewDetailsPage = /* @__PURE__ */ defineSchema(() =>
|
|
228
|
+
z
|
|
229
|
+
.object({
|
|
230
|
+
version: z.literal(1),
|
|
231
|
+
id: z.string(),
|
|
232
|
+
actionDigest: z.string(),
|
|
233
|
+
path: z.string(),
|
|
234
|
+
items: z.array(
|
|
235
|
+
z
|
|
236
|
+
.object({
|
|
237
|
+
label: z.string(),
|
|
238
|
+
value: z.string(),
|
|
239
|
+
path: z.string().optional(),
|
|
240
|
+
truncated: z.boolean().optional(),
|
|
241
|
+
})
|
|
242
|
+
.strict(),
|
|
243
|
+
),
|
|
244
|
+
total: z.number().int().nonnegative(),
|
|
245
|
+
nextOffset: z.number().int().nonnegative().nullable(),
|
|
246
|
+
})
|
|
247
|
+
.strict(),
|
|
248
|
+
);
|
|
249
|
+
export type ToolReviewDetailsPage = z.infer<typeof ToolReviewDetailsPage>;
|
|
250
|
+
|
|
251
|
+
export {
|
|
252
|
+
decodeReviewArguments,
|
|
253
|
+
safeReviewValue,
|
|
254
|
+
toolReviewAction,
|
|
255
|
+
toolReviewDetails,
|
|
256
|
+
toolReviewFieldLabel,
|
|
257
|
+
toolReviewFields,
|
|
258
|
+
} from "./tool-review-presentation";
|