@opengeni/contracts 5.5.0 → 5.5.2-canary.40656248492001
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 +148 -37
- package/dist/api-key-presets.d.ts +19 -0
- package/dist/app-action-catalog-types.d.ts +32 -0
- package/dist/app-action-catalog.gen.d.ts +2 -0
- package/dist/app-actions.d.ts +91 -0
- package/dist/app-actions.js +10130 -0
- package/dist/app-actions.js.map +1 -0
- package/dist/app-shot.d.ts +55 -0
- package/dist/artifact-catalog.d.ts +33 -0
- package/dist/artifacts.d.ts +166 -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.js +48 -23
- package/dist/automation-templates.d.ts +434 -0
- package/dist/automation-templates.js +31 -0
- package/dist/automation-templates.js.map +1 -0
- package/dist/billing-subscriptions.d.ts +61 -0
- package/dist/bots.d.ts +583 -0
- package/dist/bundled-skills.d.ts +58 -2
- package/dist/canonical-human-identities.js +3 -1
- package/dist/child-lifecycle-notice-protocol.d.ts +45 -0
- package/dist/chunk-2QKIEAGY.js +396 -0
- package/dist/chunk-2QKIEAGY.js.map +1 -0
- package/dist/chunk-2WOWEWXV.js +426 -0
- package/dist/chunk-2WOWEWXV.js.map +1 -0
- package/dist/chunk-2ZIHHL72.js +153 -0
- package/dist/chunk-2ZIHHL72.js.map +1 -0
- package/dist/chunk-32U6NKQQ.js +389 -0
- package/dist/chunk-32U6NKQQ.js.map +1 -0
- package/dist/chunk-4YDDHSO2.js +799 -0
- package/dist/chunk-4YDDHSO2.js.map +1 -0
- package/dist/chunk-56SNIMDO.js +9 -0
- package/dist/chunk-56SNIMDO.js.map +1 -0
- package/dist/chunk-5RWB6QVL.js +101 -0
- package/dist/chunk-5RWB6QVL.js.map +1 -0
- package/dist/chunk-5UGUOT3L.js +243 -0
- package/dist/chunk-5UGUOT3L.js.map +1 -0
- package/dist/chunk-6LAT33BH.js +130 -0
- package/dist/chunk-6LAT33BH.js.map +1 -0
- package/dist/chunk-7272KVWZ.js +60 -0
- package/dist/chunk-7272KVWZ.js.map +1 -0
- package/dist/chunk-72QC2GTL.js +36 -0
- package/dist/chunk-72QC2GTL.js.map +1 -0
- package/dist/chunk-7EQGGZBY.js +105 -0
- package/dist/chunk-7EQGGZBY.js.map +1 -0
- package/dist/chunk-A3LXWVYU.js +382 -0
- package/dist/chunk-A3LXWVYU.js.map +1 -0
- package/dist/chunk-AQYDZUJV.js +34 -0
- package/dist/chunk-AQYDZUJV.js.map +1 -0
- package/dist/chunk-BHCEVVUP.js +93 -0
- package/dist/chunk-BHCEVVUP.js.map +1 -0
- package/dist/chunk-BMUTAZX5.js +486 -0
- package/dist/chunk-BMUTAZX5.js.map +1 -0
- package/dist/chunk-DGG6IBBK.js +150 -0
- package/dist/chunk-DGG6IBBK.js.map +1 -0
- package/dist/{chunk-YBW5JSA3.js → chunk-FBCTUMHI.js} +123 -102
- package/dist/chunk-FBCTUMHI.js.map +1 -0
- package/dist/chunk-G2KJTFIC.js +97 -0
- package/dist/chunk-G2KJTFIC.js.map +1 -0
- package/dist/chunk-G4RKARXZ.js +1167 -0
- package/dist/chunk-G4RKARXZ.js.map +1 -0
- package/dist/chunk-H6UJJIUM.js +350 -0
- package/dist/chunk-H6UJJIUM.js.map +1 -0
- package/dist/chunk-JOTHDW4H.js +18 -0
- package/dist/chunk-JOTHDW4H.js.map +1 -0
- package/dist/chunk-L4GUEP7K.js +56480 -0
- package/dist/chunk-L4GUEP7K.js.map +1 -0
- package/dist/{chunk-SIOU2K4U.js → chunk-LJH2EYGT.js} +23 -23
- package/dist/chunk-MTJKSIGA.js +161 -0
- package/dist/chunk-MTJKSIGA.js.map +1 -0
- package/dist/chunk-MYHMB6GZ.js +202 -0
- package/dist/chunk-MYHMB6GZ.js.map +1 -0
- package/dist/chunk-PI5VIKJY.js +660 -0
- package/dist/chunk-PI5VIKJY.js.map +1 -0
- package/dist/{chunk-RIY7GYQS.js → chunk-PTSROVDG.js} +2 -2
- package/dist/chunk-PUIUXIOL.js +189 -0
- package/dist/chunk-PUIUXIOL.js.map +1 -0
- package/dist/chunk-R6VXJIMB.js +19 -0
- package/dist/chunk-R6VXJIMB.js.map +1 -0
- package/dist/chunk-RLJUNVAM.js +15 -0
- package/dist/chunk-RLJUNVAM.js.map +1 -0
- package/dist/chunk-RR6APCBK.js +213 -0
- package/dist/chunk-RR6APCBK.js.map +1 -0
- package/dist/{chunk-TXTQIYCV.js → chunk-RUQ4I6DO.js} +59 -13
- package/dist/chunk-RUQ4I6DO.js.map +1 -0
- package/dist/{chunk-WYBDERIY.js → chunk-RWEEUDHD.js} +53 -42
- package/dist/chunk-RWEEUDHD.js.map +1 -0
- package/dist/chunk-S7MSQQL6.js +158 -0
- package/dist/chunk-S7MSQQL6.js.map +1 -0
- package/dist/{chunk-5Q54VCCH.js → chunk-SHO4YO4B.js} +20 -36
- package/dist/chunk-SHO4YO4B.js.map +1 -0
- package/dist/{chunk-HHZSZYYF.js → chunk-T3HSWMA5.js} +20 -4
- package/dist/chunk-T3HSWMA5.js.map +1 -0
- package/dist/{chunk-YRKRZ6OF.js → chunk-TOOJIBJC.js} +2 -2
- package/dist/chunk-UCUOTRS6.js +431 -0
- package/dist/chunk-UCUOTRS6.js.map +1 -0
- package/dist/chunk-UH4K7GP7.js +424 -0
- package/dist/chunk-UH4K7GP7.js.map +1 -0
- package/dist/chunk-UIZWGPHV.js +120 -0
- package/dist/chunk-UIZWGPHV.js.map +1 -0
- package/dist/chunk-VLUKBV6Y.js +1170 -0
- package/dist/chunk-VLUKBV6Y.js.map +1 -0
- package/dist/chunk-W2QQ5Y6K.js +55 -0
- package/dist/chunk-W2QQ5Y6K.js.map +1 -0
- package/dist/{chunk-Y3KNXVTD.js → chunk-W3NBPR4E.js} +131 -31
- package/dist/chunk-W3NBPR4E.js.map +1 -0
- package/dist/{chunk-NRMCVHAU.js → chunk-WMGO4HJU.js} +11 -9
- package/dist/chunk-WMGO4HJU.js.map +1 -0
- package/dist/{chunk-MYBZRDTY.js → chunk-WQI7VNN4.js} +19 -9
- package/dist/chunk-WQI7VNN4.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-XB6GQLBH.js +76 -0
- package/dist/chunk-XB6GQLBH.js.map +1 -0
- package/dist/{chunk-D2HKF2EF.js → chunk-XP5M3IKT.js} +2 -2
- package/dist/{chunk-O77VSFYZ.js → chunk-ZMPU5BWE.js} +12 -2
- package/dist/chunk-ZMPU5BWE.js.map +1 -0
- package/dist/{chunk-3SIZGL3O.js → chunk-ZYVEJFNU.js} +22 -18
- package/dist/chunk-ZYVEJFNU.js.map +1 -0
- package/dist/claude-provider-account-authority.d.ts +18 -0
- package/dist/claude-subscription-oauth.d.ts +25 -0
- package/dist/claude-subscription-usage.d.ts +95 -1
- package/dist/client-error-report.d.ts +154 -8
- package/dist/client-error-report.js +157 -2
- package/dist/client-error-report.js.map +1 -1
- package/dist/code-search.d.ts +1 -1
- package/dist/code-search.js.map +1 -1
- package/dist/codex-provider-account-authority.js +23 -12
- package/dist/codex-provider-account-authority.js.map +1 -1
- package/dist/company-profile.d.ts +144 -0
- package/dist/connect.d.ts +38 -0
- package/dist/connect.js +244 -164
- package/dist/connect.js.map +1 -1
- package/dist/connection-account-label.d.ts +2 -0
- package/dist/connection-account-label.js +34 -0
- package/dist/connection-account-label.js.map +1 -0
- package/dist/connection-authority.js +49 -24
- package/dist/connector-attachments.js +3 -1
- package/dist/connector-destinations.js +3 -1
- package/dist/connector-tool-permissions.d.ts +68 -4
- package/dist/credential-profiles.d.ts +166 -0
- package/dist/cua-desktop-tools.d.ts +19 -0
- package/dist/define-schema.d.ts +8 -0
- package/dist/desktop-app.d.ts +28 -0
- package/dist/direct-model-provider.d.ts +38 -0
- package/dist/document-artifact-commands.js +2 -2
- package/dist/document-artifact-query.js +2 -2
- package/dist/editable-artifact-binary.d.ts +7 -0
- package/dist/editable-artifact-causal-frontier.js +2 -2
- package/dist/editable-artifact-codec-registry.js +7 -7
- package/dist/editable-artifact-committed-transaction.js +4 -2
- package/dist/editable-artifact-live.js +8 -8
- package/dist/editable-artifact-serialized-commit.js +9 -9
- package/dist/editable-artifact-versions.d.ts +7 -1
- package/dist/editable-artifact-versions.js +1 -1
- package/dist/editable-artifacts.js +49 -43
- package/dist/event-preview.d.ts +22 -0
- package/dist/event-triggers.d.ts +1253 -0
- package/dist/event-triggers.js +148 -0
- package/dist/event-triggers.js.map +1 -0
- package/dist/external-identities.d.ts +34 -0
- package/dist/external-identities.js +4 -2
- package/dist/feedback.d.ts +181 -0
- package/dist/file-access.d.ts +23 -0
- package/dist/first-party-tool-authorization.d.ts +852 -0
- package/dist/github-repository-contracts.js +64 -43
- package/dist/github-repository-contracts.js.map +1 -1
- package/dist/google-drive-native-retirement.d.ts +12 -0
- package/dist/google-drive-native-retirement.js +20 -0
- package/dist/google-drive-native-retirement.js.map +1 -0
- package/dist/google-drive.d.ts +1 -1
- package/dist/google-drive.js +323 -239
- package/dist/google-drive.js.map +1 -1
- package/dist/host-mcp-bindings.js +250 -198
- package/dist/host-mcp-bindings.js.map +1 -1
- package/dist/index.d.ts +29072 -20593
- package/dist/index.js +2432 -366
- package/dist/inference-residency.d.ts +22 -0
- package/dist/insights-usage.d.ts +948 -0
- package/dist/insights-usage.js +608 -0
- package/dist/insights-usage.js.map +1 -0
- package/dist/integration-capability-id.d.ts +8 -0
- package/dist/interaction-action-deadline.d.ts +48 -0
- package/dist/interaction-driver-diagnostic.d.ts +28 -0
- package/dist/interaction.d.ts +2126 -881
- package/dist/knowledge-entries.d.ts +38 -0
- package/dist/knowledge-preparation.d.ts +4 -0
- package/dist/learning-refusal.d.ts +43 -0
- package/dist/learning-refusal.js +49 -0
- package/dist/learning-refusal.js.map +1 -0
- package/dist/managed-auth-session-sets.d.ts +1 -0
- package/dist/managed-auth-session-sets.js +207 -146
- package/dist/managed-auth-session-sets.js.map +1 -1
- package/dist/managed-sign-in-methods.d.ts +96 -0
- package/dist/managed-sign-in-methods.js +157 -35
- package/dist/managed-sign-in-methods.js.map +1 -1
- package/dist/mcp-structured-content.d.ts +25 -0
- package/dist/message-time-zone.d.ts +38 -0
- package/dist/message-time-zone.js +19 -0
- package/dist/message-time-zone.js.map +1 -0
- package/dist/modal-native-proof-v2.d.ts +587 -0
- package/dist/modal-native-proof-v2.js +39 -0
- package/dist/modal-native-proof-v2.js.map +1 -0
- package/dist/model-account-choice.d.ts +237 -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 +8 -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.js.map +1 -1
- package/dist/model-residency.d.ts +304 -0
- package/dist/organization-access.d.ts +416 -0
- package/dist/organization-access.js +40 -0
- package/dist/organization-access.js.map +1 -0
- package/dist/organization-integration-policy.d.ts +18 -0
- package/dist/organization-membership-lifecycle.d.ts +66 -0
- package/dist/organization-model-usage.d.ts +146 -0
- package/dist/organization-model-usage.js +87 -0
- package/dist/organization-model-usage.js.map +1 -0
- package/dist/organization-recovery.js +3 -1
- package/dist/organization-usage.d.ts +12 -0
- package/dist/passkey-only-account.d.ts +14 -0
- package/dist/passkey-only-account.js +13 -0
- package/dist/passkey-only-account.js.map +1 -0
- package/dist/permissions.d.ts +19 -0
- package/dist/personal-github.js +220 -148
- package/dist/personal-github.js.map +1 -1
- package/dist/personal-integration-setup.d.ts +81 -0
- package/dist/personal-integration-setup.js +42 -0
- package/dist/personal-integration-setup.js.map +1 -0
- package/dist/prepared-mcp-setup.d.ts +54 -0
- package/dist/prepared-mcp-setup.js +13 -0
- package/dist/prepared-mcp-setup.js.map +1 -0
- package/dist/presentation-artifact-commands.js +2 -2
- package/dist/presentation-artifact-query.js +2 -2
- package/dist/primitives.d.ts +18 -0
- package/dist/product-analytics.d.ts +27 -10
- package/dist/product-lifecycle-facts.d.ts +26 -3
- package/dist/prompt-cache-diagnostics.d.ts +92 -0
- package/dist/recordings.d.ts +1371 -0
- package/dist/remember.d.ts +98 -2
- package/dist/retained-output.d.ts +4 -2
- package/dist/sandbox-file-artifacts.d.ts +19 -2
- package/dist/sandbox-provider-command.d.ts +5 -44
- package/dist/sandbox-recovery.d.ts +139 -8
- package/dist/secret-generator.d.ts +44 -0
- package/dist/secret-mask-strings.d.ts +32 -0
- package/dist/secret-references.d.ts +90 -0
- package/dist/secret-resolution.d.ts +143 -0
- package/dist/secret-shape-masking.d.ts +52 -0
- package/dist/secret-shape-masking.js +19 -0
- package/dist/secret-shape-masking.js.map +1 -0
- package/dist/secret-totp.d.ts +41 -0
- package/dist/secret-use-approval-question.d.ts +11 -0
- package/dist/secret-use-approval-question.js +11 -0
- package/dist/secret-use-approval-question.js.map +1 -0
- package/dist/secret-use-approvals.d.ts +106 -0
- package/dist/secret-value-masking.d.ts +299 -0
- package/dist/secret-value-masking.js +62 -0
- package/dist/secret-value-masking.js.map +1 -0
- package/dist/secret-value.d.ts +19 -0
- package/dist/session-history-import.d.ts +444 -8
- package/dist/session-history.d.ts +111 -0
- package/dist/session-history.js +35 -0
- package/dist/session-history.js.map +1 -0
- package/dist/session-list-entries.d.ts +8 -0
- package/dist/session-list-entries.js +61 -0
- package/dist/session-list-entries.js.map +1 -0
- package/dist/session-mcp-projections.d.ts +13 -1
- package/dist/session-mcp-tool-permissions.d.ts +62 -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 +43 -0
- package/dist/session-usage-limits.js.map +1 -0
- package/dist/site-data.d.ts +286 -0
- package/dist/site-operations.d.ts +39 -0
- package/dist/site-publishing.d.ts +813 -0
- package/dist/site-session-http.d.ts +103 -4
- package/dist/site-session-http.js +27 -1
- package/dist/site-sql.d.ts +425 -0
- package/dist/skills.d.ts +38 -0
- package/dist/slack-bot-scopes.d.ts +9 -7
- package/dist/slack-bot-scopes.js +6 -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 +9 -2
- package/dist/spreadsheet-artifact-query.d.ts +13 -6
- package/dist/spreadsheet-artifact-query.js +4 -3
- package/dist/subscription-account-actions.d.ts +83 -0
- package/dist/subscription-account-pools.d.ts +326 -0
- package/dist/subscription-personal-authority-v2.d.ts +28 -0
- package/dist/subscription-personal-authority-v2.js +13 -0
- package/dist/subscription-personal-authority-v2.js.map +1 -0
- package/dist/subscription-plans.d.ts +38 -0
- package/dist/subscription-usage-pool.d.ts +89 -0
- package/dist/tool-action-review.d.ts +141 -0
- package/dist/tool-catalog.d.ts +479 -0
- package/dist/tool-policy.d.ts +5 -0
- package/dist/tool-review-presentation.d.ts +29 -0
- package/dist/tool-review-presentation.js +21 -0
- package/dist/tool-review-presentation.js.map +1 -0
- package/dist/turn-serving-policy.d.ts +223 -0
- package/dist/usage-allowances.d.ts +30 -0
- package/dist/usage-allowances.js +5 -1
- package/dist/values.d.ts +11 -0
- package/dist/values.js +19 -0
- package/dist/values.js.map +1 -0
- package/dist/vault-provider-wire.d.ts +907 -0
- package/dist/vault-provider-wire.js +74 -0
- package/dist/vault-provider-wire.js.map +1 -0
- package/dist/vaults.d.ts +2185 -0
- package/dist/video-generation.d.ts +75 -0
- package/dist/video-generation.js +8 -1
- package/dist/workspace-control-event.d.ts +18 -0
- package/dist/workspace-control-event.js +18 -0
- package/dist/workspace-control-event.js.map +1 -0
- package/dist/workspace-governance-context.d.ts +18 -0
- package/dist/workspace-integration-wire.d.ts +1 -1
- package/dist/workspace-integration-wire.js +1 -1
- package/dist/workspace-integrations.d.ts +212 -12
- package/dist/xai-provider-account-authority.js +3 -1
- package/package.json +121 -4
- package/src/agent-authored-durable-text.ts +14 -11
- package/src/agent-config.ts +382 -203
- package/src/agent-instruction-changes.ts +94 -74
- package/src/agent-learning.ts +94 -66
- package/src/agent-topology.ts +58 -52
- package/src/api-key-presets.ts +28 -0
- package/src/app-action-catalog-types.ts +32 -0
- package/src/app-action-catalog.gen.ts +9905 -0
- package/src/app-actions.ts +365 -0
- package/src/app-shot.ts +176 -0
- package/src/artifact-catalog.ts +81 -46
- package/src/artifacts.ts +360 -227
- package/src/atlassian-native-retirement.ts +33 -0
- package/src/atlassian.ts +136 -108
- package/src/automation-templates.ts +201 -0
- package/src/billing-subscriptions.ts +48 -0
- package/src/bots.ts +238 -0
- package/src/bundled-skills.ts +79 -22
- package/src/canonical-human-identities.ts +65 -62
- package/src/child-lifecycle-notice-protocol.gen.json +1310 -0
- package/src/child-lifecycle-notice-protocol.ts +224 -0
- package/src/claude-provider-account-authority.ts +12 -0
- package/src/claude-subscription-oauth.ts +61 -19
- package/src/claude-subscription-usage.ts +64 -35
- package/src/client-error-report.ts +344 -9
- package/src/code-search.ts +1 -1
- package/src/codex-provider-account-authority.ts +22 -16
- package/src/company-brain-governed-writes.ts +265 -244
- package/src/company-brain.ts +165 -154
- package/src/company-profile.ts +362 -297
- package/src/connect.ts +222 -173
- package/src/connection-account-label.ts +45 -0
- package/src/connection-authority.ts +172 -152
- package/src/connector-attachments.ts +139 -123
- package/src/connector-destinations.ts +48 -43
- package/src/connector-tool-permissions.ts +104 -46
- package/src/credential-profiles.ts +161 -0
- package/src/cua-desktop-tools.gen.json +6722 -0
- package/src/cua-desktop-tools.linux.gen.json +6798 -0
- package/src/cua-desktop-tools.ts +42 -0
- package/src/cua-desktop-tools.windows.gen.json +6739 -0
- package/src/define-schema.ts +10 -0
- package/src/desktop-app.ts +50 -0
- package/src/direct-model-provider.ts +112 -0
- package/src/editable-artifact-binary.ts +29 -8
- package/src/editable-artifact-committed-transaction.ts +19 -18
- package/src/editable-artifact-serialized-commit.ts +8 -2
- package/src/editable-artifact-versions.ts +7 -1
- package/src/event-preview.ts +53 -3
- package/src/event-triggers.ts +891 -0
- package/src/external-identities.ts +239 -195
- package/src/feedback.ts +125 -30
- package/src/file-access.ts +26 -0
- package/src/first-party-tool-authorization.ts +383 -0
- package/src/github-repository-contracts.ts +78 -64
- package/src/google-drive-native-retirement.ts +20 -0
- package/src/google-drive.ts +286 -234
- package/src/governed-learning-activation.ts +159 -137
- package/src/governed-learning-evaluator.ts +141 -133
- package/src/host-mcp-bindings.ts +244 -221
- package/src/image-generation.ts +105 -95
- package/src/index.ts +13928 -9899
- package/src/inference-residency.ts +36 -0
- package/src/insights-usage.ts +774 -0
- package/src/integration-capability-id.ts +16 -0
- package/src/interaction-action-deadline.ts +143 -0
- package/src/interaction-driver-diagnostic.ts +89 -0
- package/src/interaction.ts +3527 -2427
- package/src/knowledge-entries.ts +386 -299
- package/src/knowledge-preparation.ts +49 -41
- package/src/knowledge.ts +242 -213
- package/src/learning-refusal.ts +90 -0
- package/src/managed-auth-session-sets.ts +180 -133
- package/src/managed-sign-in-methods.ts +156 -34
- package/src/mcp-oauth.ts +58 -46
- package/src/mcp-receipts.ts +199 -194
- package/src/mcp-structured-content.ts +81 -0
- package/src/memory-slack-delivery.ts +172 -142
- package/src/message-time-zone.ts +109 -0
- package/src/modal-native-proof-v2.ts +430 -0
- package/src/model-account-choice.ts +178 -0
- package/src/model-account-settings.ts +210 -0
- package/src/model-availability.ts +22 -0
- package/src/model-connection-access.ts +62 -14
- package/src/model-context-inspector.ts +130 -109
- package/src/model-display.ts +221 -0
- package/src/model-picker-order.ts +1 -1
- package/src/model-residency.ts +535 -0
- package/src/organization-access.ts +216 -0
- package/src/organization-integration-policy.ts +47 -28
- package/src/organization-membership-lifecycle.ts +558 -384
- package/src/organization-model-usage.ts +82 -0
- package/src/organization-recovery.ts +148 -135
- package/src/organization-usage.ts +84 -52
- package/src/passkey-only-account.ts +29 -0
- package/src/permissions.ts +94 -52
- package/src/personal-github.ts +211 -171
- package/src/personal-integration-setup.ts +150 -0
- package/src/preference-registry.ts +319 -263
- package/src/prepared-mcp-setup.ts +190 -0
- package/src/primitives.ts +22 -0
- package/src/product-analytics.ts +40 -15
- package/src/product-lifecycle-facts.ts +50 -20
- package/src/prompt-cache-diagnostics.ts +212 -0
- package/src/recordings.ts +1153 -0
- package/src/remember.ts +184 -172
- package/src/retained-output.ts +181 -168
- package/src/sandbox-file-artifacts.ts +78 -57
- package/src/sandbox-provider-command.ts +55 -72
- package/src/sandbox-recovery.ts +163 -77
- package/src/scoped-knowledge.ts +62 -43
- package/src/secret-generator.ts +156 -0
- package/src/secret-mask-strings.ts +175 -0
- package/src/secret-references.ts +414 -0
- package/src/secret-resolution.ts +322 -0
- package/src/secret-shape-masking.ts +573 -0
- package/src/secret-totp.ts +188 -0
- package/src/secret-use-approval-question.ts +22 -0
- package/src/secret-use-approvals.ts +219 -0
- package/src/secret-value-masking.ts +1283 -0
- package/src/secret-value.ts +22 -0
- package/src/session-goal-reports.ts +55 -49
- package/src/session-history-import.ts +84 -68
- package/src/session-history.ts +197 -0
- package/src/session-list-entries.ts +106 -0
- package/src/session-mcp-projections.ts +21 -3
- package/src/session-mcp-tool-permissions.ts +109 -0
- package/src/session-message-search.ts +46 -38
- package/src/session-target.ts +58 -0
- package/src/session-titles.ts +40 -4
- package/src/session-topology-primitives.ts +20 -12
- package/src/session-usage-limit-refusal.ts +101 -0
- package/src/session-usage-limits.ts +169 -0
- package/src/signup-attribution.ts +20 -15
- package/src/site-data.ts +337 -0
- package/src/site-operations.ts +154 -0
- package/src/site-publishing.ts +903 -0
- package/src/site-session-http.ts +344 -16
- package/src/site-sql.ts +1120 -0
- package/src/skill-use.ts +18 -17
- package/src/skills.ts +105 -50
- package/src/slack-bot-scopes.ts +18 -35
- package/src/slack-rest-mcp.ts +222 -0
- package/src/slack-task-policy.ts +97 -73
- package/src/spreadsheet-artifact-commands.ts +74 -13
- package/src/spreadsheet-artifact-query.ts +188 -50
- package/src/subscription-account-actions.ts +103 -0
- package/src/subscription-account-pools.ts +74 -0
- package/src/subscription-personal-authority-v2.ts +69 -0
- package/src/subscription-plans.ts +51 -0
- package/src/subscription-usage-pool.ts +44 -0
- package/src/task-notes.ts +70 -68
- package/src/tool-action-review.ts +271 -0
- package/src/tool-catalog.ts +694 -379
- package/src/tool-policy.ts +82 -0
- package/src/tool-result-spill.ts +13 -9
- package/src/tool-review-presentation.ts +643 -0
- package/src/turn-serving-policy.ts +167 -0
- package/src/usage-allowances.ts +212 -136
- package/src/values.ts +25 -0
- package/src/vault-provider-wire.ts +580 -0
- package/src/vaults.ts +1296 -0
- package/src/video-generation.ts +430 -361
- package/src/work-claims.ts +183 -166
- package/src/workspace-control-event.ts +134 -0
- package/src/workspace-governance-context.ts +63 -0
- package/src/workspace-instruction-policies.ts +346 -279
- package/src/workspace-integration-wire.ts +10 -0
- package/src/workspace-integrations.ts +488 -398
- package/src/workspace-learning-administration.ts +58 -44
- package/src/workspace-learning-policy.ts +126 -99
- package/src/workspace-state.ts +239 -220
- package/src/xai-provider-account-authority.ts +23 -17
- package/dist/chunk-3SIZGL3O.js.map +0 -1
- package/dist/chunk-566IFOVP.js +0 -26133
- package/dist/chunk-566IFOVP.js.map +0 -1
- package/dist/chunk-5IXYF6XN.js +0 -728
- package/dist/chunk-5IXYF6XN.js.map +0 -1
- package/dist/chunk-5Q54VCCH.js.map +0 -1
- package/dist/chunk-BCS7WHCK.js +0 -139
- package/dist/chunk-BCS7WHCK.js.map +0 -1
- package/dist/chunk-EK7NDGFR.js +0 -128
- package/dist/chunk-EK7NDGFR.js.map +0 -1
- package/dist/chunk-GRG7PHWQ.js +0 -25
- package/dist/chunk-GRG7PHWQ.js.map +0 -1
- package/dist/chunk-HHZSZYYF.js.map +0 -1
- package/dist/chunk-ICDZGUX2.js +0 -186
- package/dist/chunk-ICDZGUX2.js.map +0 -1
- package/dist/chunk-JUFK3T4Q.js +0 -80
- package/dist/chunk-JUFK3T4Q.js.map +0 -1
- package/dist/chunk-MYBZRDTY.js.map +0 -1
- package/dist/chunk-NRMCVHAU.js.map +0 -1
- package/dist/chunk-O77VSFYZ.js.map +0 -1
- package/dist/chunk-P3HLDT77.js +0 -59
- package/dist/chunk-P3HLDT77.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/chunk-YWMOIZ6A.js +0 -185
- package/dist/chunk-YWMOIZ6A.js.map +0 -1
- package/dist/site-request-headers.test.d.ts +0 -1
- package/dist/transcription-recordings.d.ts +0 -300
- package/src/transcription-recordings.ts +0 -169
- /package/dist/{chunk-SIOU2K4U.js.map → chunk-LJH2EYGT.js.map} +0 -0
- /package/dist/{chunk-RIY7GYQS.js.map → chunk-PTSROVDG.js.map} +0 -0
- /package/dist/{chunk-YRKRZ6OF.js.map → chunk-TOOJIBJC.js.map} +0 -0
- /package/dist/{chunk-D2HKF2EF.js.map → chunk-XP5M3IKT.js.map} +0 -0
|
@@ -6,17 +6,172 @@ var CLIENT_ERROR_KINDS = [
|
|
|
6
6
|
"window_error",
|
|
7
7
|
"chunk_load"
|
|
8
8
|
];
|
|
9
|
-
var
|
|
9
|
+
var CLIENT_ERROR_DETAIL_MAX_BYTES = {
|
|
10
|
+
name: 128,
|
|
11
|
+
message: 1024,
|
|
12
|
+
stack: 4096,
|
|
13
|
+
componentStack: 4096
|
|
14
|
+
};
|
|
15
|
+
var CLIENT_ERROR_DETAIL_FIELDS = Object.keys(
|
|
16
|
+
CLIENT_ERROR_DETAIL_MAX_BYTES
|
|
17
|
+
);
|
|
18
|
+
var CLIENT_ERROR_REPORT_MAX_BYTES = 20 * 1024;
|
|
10
19
|
var ROUTE_SEGMENT = String.raw`(?:[a-z]+(?:-[a-z]+)*|\$[A-Za-z][A-Za-z0-9]{0,31})`;
|
|
11
20
|
var CLIENT_ERROR_ROUTE_PATTERN = new RegExp(
|
|
12
21
|
String.raw`^(?=.{1,160}$)(?:unknown|/|(?:/${ROUTE_SEGMENT}){1,12})$`
|
|
13
22
|
);
|
|
14
23
|
var CLIENT_ERROR_REVISION_PATTERN = /^[A-Za-z0-9._-]{1,64}$/;
|
|
24
|
+
var REDACTED = "[redacted]";
|
|
25
|
+
var TRUNCATED = "\u2026[truncated]";
|
|
26
|
+
var ERROR_DECODER_URL = /^https?:\/\/(?:react\.dev\/errors\/|reactjs\.org\/docs\/error-decoder)/i;
|
|
27
|
+
var LONE_SURROGATE = /[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/g;
|
|
28
|
+
var CONTROL_CHARACTERS = /[\u0000-\u0008\u000B-\u001F\u007F]/g;
|
|
29
|
+
var URL_WITH_QUERY = /\bhttps?:\/\/[^\s?#"'<>()`]*[?#][^\s"'<>()`]*/gi;
|
|
30
|
+
var LINE_AND_COLUMN_SUFFIX = /(?::\d+){1,2}$/;
|
|
31
|
+
var AUTHORIZATION_VALUE = /\b(Bearer|Basic|Token)\s+(?=[A-Za-z._~+/=-]*[0-9])[A-Za-z0-9._~+/=-]{8,}/gi;
|
|
32
|
+
var JWT = /\beyJ[A-Za-z0-9_-]{5,}\.[A-Za-z0-9_-]{5,}(?:\.[A-Za-z0-9_-]*)?/g;
|
|
33
|
+
var KNOWN_TOKEN = /\b(?:sk-(?:proj-|ant-)?|sk_(?:live|test)_|rk_(?:live|test)_|gh[pousr]_|github_pat_|glpat-|npm_|xox[abposr]-|ops_|AKIA|ASIA|AIza)[A-Za-z0-9_-]{12,}/g;
|
|
34
|
+
var SECRET_ASSIGNMENT = /\b((?:access[_-]?token|refresh[_-]?token|id[_-]?token|session[_-]?token|token|client[_-]?secret|secret|password|passwd|api[_-]?key|apikey|authorization|cookie|private[_-]?key)["']?\s*[:=]\s*["']?)[^\s"'&,;}[…][^\s"'&,;}]*/gi;
|
|
35
|
+
var OPAQUE_RUN = /[A-Za-z0-9+=_-]{32,}/g;
|
|
36
|
+
function isOpaqueCredential(run) {
|
|
37
|
+
return /[0-9]/.test(run) && /[A-Za-z]/.test(run) && run.split(/[-_]/).some((stretch) => stretch.length >= 24);
|
|
38
|
+
}
|
|
39
|
+
function scrubClientErrorText(text) {
|
|
40
|
+
return text.replace(LONE_SURROGATE, "\uFFFD").replace(/\r\n?/g, "\n").replace(CONTROL_CHARACTERS, " ").replace(URL_WITH_QUERY, (url) => {
|
|
41
|
+
if (ERROR_DECODER_URL.test(url)) return url;
|
|
42
|
+
const cut = url.search(/[?#]/);
|
|
43
|
+
const suffix = url.slice(cut).match(LINE_AND_COLUMN_SUFFIX)?.[0] ?? "";
|
|
44
|
+
return url.slice(0, cut) + suffix;
|
|
45
|
+
}).replace(AUTHORIZATION_VALUE, `$1 ${REDACTED}`).replace(JWT, REDACTED).replace(KNOWN_TOKEN, REDACTED).replace(SECRET_ASSIGNMENT, `$1${REDACTED}`).replace(OPAQUE_RUN, (run) => isOpaqueCredential(run) ? REDACTED : run);
|
|
46
|
+
}
|
|
47
|
+
function utf8ByteLength(text) {
|
|
48
|
+
return new TextEncoder().encode(text).byteLength;
|
|
49
|
+
}
|
|
50
|
+
function boundClientErrorText(text, maxBytes) {
|
|
51
|
+
if (utf8ByteLength(text) <= maxBytes) return text;
|
|
52
|
+
const budget = maxBytes - utf8ByteLength(TRUNCATED);
|
|
53
|
+
let bytes = 0;
|
|
54
|
+
let end = 0;
|
|
55
|
+
for (const character of text) {
|
|
56
|
+
const size = utf8ByteLength(character);
|
|
57
|
+
if (bytes + size > budget) break;
|
|
58
|
+
bytes += size;
|
|
59
|
+
end += character.length;
|
|
60
|
+
}
|
|
61
|
+
return text.slice(0, end) + TRUNCATED;
|
|
62
|
+
}
|
|
63
|
+
function isProjectedClientErrorText(text, field) {
|
|
64
|
+
return text.length > 0 && utf8ByteLength(text) <= CLIENT_ERROR_DETAIL_MAX_BYTES[field] && scrubClientErrorText(text) === text;
|
|
65
|
+
}
|
|
66
|
+
function projectClientErrorDetail(raw) {
|
|
67
|
+
if (!raw) return void 0;
|
|
68
|
+
const detail = {};
|
|
69
|
+
for (const field of CLIENT_ERROR_DETAIL_FIELDS) {
|
|
70
|
+
const value = raw[field];
|
|
71
|
+
if (typeof value !== "string") continue;
|
|
72
|
+
const projected = boundClientErrorText(
|
|
73
|
+
scrubClientErrorText(value).trim(),
|
|
74
|
+
CLIENT_ERROR_DETAIL_MAX_BYTES[field]
|
|
75
|
+
);
|
|
76
|
+
if (projected) detail[field] = projected;
|
|
77
|
+
}
|
|
78
|
+
return Object.keys(detail).length > 0 ? detail : void 0;
|
|
79
|
+
}
|
|
80
|
+
var CLIENT_SIGNALS = [
|
|
81
|
+
"request_failure",
|
|
82
|
+
"stream",
|
|
83
|
+
"web_vital",
|
|
84
|
+
"desktop_bridge_missing"
|
|
85
|
+
];
|
|
86
|
+
var CLIENT_REQUEST_ACTIONS = [
|
|
87
|
+
"create_session",
|
|
88
|
+
"send_message",
|
|
89
|
+
"steer_message",
|
|
90
|
+
"composer_submit",
|
|
91
|
+
"retry_turn",
|
|
92
|
+
"connect_integration",
|
|
93
|
+
"connect_model",
|
|
94
|
+
"checkout_start"
|
|
95
|
+
];
|
|
96
|
+
var CLIENT_REQUEST_FAILURE_REASONS = ["network", "timeout", "offline"];
|
|
97
|
+
var CLIENT_STREAMS = ["session", "workspace"];
|
|
98
|
+
var CLIENT_STREAM_EVENTS = [
|
|
99
|
+
"reconnect",
|
|
100
|
+
"reconnect_exhausted",
|
|
101
|
+
"long_disconnect"
|
|
102
|
+
];
|
|
103
|
+
var CLIENT_WEB_VITAL_METRICS = ["lcp", "inp", "cls", "ttfb"];
|
|
104
|
+
var CLIENT_WEB_VITAL_MAX_VALUE = {
|
|
105
|
+
lcp: 600,
|
|
106
|
+
inp: 600,
|
|
107
|
+
cls: 100,
|
|
108
|
+
ttfb: 600
|
|
109
|
+
};
|
|
110
|
+
var CLIENT_PAGES = [
|
|
111
|
+
"sessions",
|
|
112
|
+
"priority",
|
|
113
|
+
"plugins",
|
|
114
|
+
"capabilities",
|
|
115
|
+
"documents",
|
|
116
|
+
"state",
|
|
117
|
+
"memory",
|
|
118
|
+
"schedules",
|
|
119
|
+
"automations",
|
|
120
|
+
"bot-templates",
|
|
121
|
+
"artifacts",
|
|
122
|
+
"settings",
|
|
123
|
+
"organization",
|
|
124
|
+
"insights",
|
|
125
|
+
"machines",
|
|
126
|
+
"computer-use",
|
|
127
|
+
"files",
|
|
128
|
+
"agents",
|
|
129
|
+
"secrets",
|
|
130
|
+
"rigs",
|
|
131
|
+
"playground",
|
|
132
|
+
"read-only-chats",
|
|
133
|
+
"inbox",
|
|
134
|
+
"sites",
|
|
135
|
+
"meetings",
|
|
136
|
+
"home",
|
|
137
|
+
"session-link",
|
|
138
|
+
"identity-link",
|
|
139
|
+
"checkout-return",
|
|
140
|
+
"integration-return",
|
|
141
|
+
"teams-connect",
|
|
142
|
+
"device",
|
|
143
|
+
"connect-agent",
|
|
144
|
+
"native-sign-in",
|
|
145
|
+
"reset-password",
|
|
146
|
+
"setup-account",
|
|
147
|
+
"account-auth",
|
|
148
|
+
"site-auth",
|
|
149
|
+
"personal-security",
|
|
150
|
+
"other"
|
|
151
|
+
];
|
|
152
|
+
var CLIENT_DESKTOP_PLATFORMS = ["macos", "windows", "linux"];
|
|
153
|
+
var CLIENT_DESKTOP_APP_VERSION_PATTERN = /^\d{1,4}\.\d{1,4}\.\d{1,6}(?:-[0-9A-Za-z.]{1,24})?$/;
|
|
15
154
|
export {
|
|
155
|
+
CLIENT_DESKTOP_APP_VERSION_PATTERN,
|
|
156
|
+
CLIENT_DESKTOP_PLATFORMS,
|
|
16
157
|
CLIENT_ERRORS_PATH,
|
|
158
|
+
CLIENT_ERROR_DETAIL_FIELDS,
|
|
159
|
+
CLIENT_ERROR_DETAIL_MAX_BYTES,
|
|
17
160
|
CLIENT_ERROR_KINDS,
|
|
18
161
|
CLIENT_ERROR_REPORT_MAX_BYTES,
|
|
19
162
|
CLIENT_ERROR_REVISION_PATTERN,
|
|
20
|
-
CLIENT_ERROR_ROUTE_PATTERN
|
|
163
|
+
CLIENT_ERROR_ROUTE_PATTERN,
|
|
164
|
+
CLIENT_PAGES,
|
|
165
|
+
CLIENT_REQUEST_ACTIONS,
|
|
166
|
+
CLIENT_REQUEST_FAILURE_REASONS,
|
|
167
|
+
CLIENT_SIGNALS,
|
|
168
|
+
CLIENT_STREAMS,
|
|
169
|
+
CLIENT_STREAM_EVENTS,
|
|
170
|
+
CLIENT_WEB_VITAL_MAX_VALUE,
|
|
171
|
+
CLIENT_WEB_VITAL_METRICS,
|
|
172
|
+
boundClientErrorText,
|
|
173
|
+
isProjectedClientErrorText,
|
|
174
|
+
projectClientErrorDetail,
|
|
175
|
+
scrubClientErrorText
|
|
21
176
|
};
|
|
22
177
|
//# sourceMappingURL=client-error-report.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/client-error-report.ts"],"sourcesContent":["/**\n * Wire grammar of the content-free web client error beacon\n * (`POST /v1/client-errors`).\n *\n * A report is only a closed error kind, the matched route PATTERN (never a\n * concrete URL), and the bundle revision. The web client that projects a\n * report, the API route that admits it, and the public structured-log\n * projection that prints it all validate against these exact values, so the\n * browser can only send what the API accepts and logs.\n */\nexport const CLIENT_ERRORS_PATH = \"/v1/client-errors\";\n\nexport const CLIENT_ERROR_KINDS = [\n \"route_error\",\n \"unhandled_rejection\",\n \"window_error\",\n \"chunk_load\",\n] as const;\nexport type ClientErrorKind = (typeof CLIENT_ERROR_KINDS)[number];\n\n/** Largest accepted report body. A valid report is well under 256 bytes. */\nexport const CLIENT_ERROR_REPORT_MAX_BYTES = 512;\n\nconst ROUTE_SEGMENT = String.raw`(?:[a-z]+(?:-[a-z]+)*|\\$[A-Za-z][A-Za-z0-9]{0,31})`;\n\n/**\n * A route pattern of at most 160 characters that is `/`, `unknown`, or up to\n * twelve `/`-separated segments that are each either a lowercase literal\n * (`variable-sets`) or a `$param` placeholder. The grammar excludes digits in\n * literals, so a concrete id cannot pass as one.\n */\nexport const CLIENT_ERROR_ROUTE_PATTERN = new RegExp(\n String.raw`^(?=.{1,160}$)(?:unknown|/|(?:/${ROUTE_SEGMENT}){1,12})$`,\n);\n\n/** The bundle revision token (a commit SHA, `dev`, or `unknown`). */\nexport const CLIENT_ERROR_REVISION_PATTERN = /^[A-Za-z0-9._-]{1,64}$/;\n\nexport type ClientErrorReport = { kind: ClientErrorKind; route: string; revision: string };\n"],"mappings":";AAUO,IAAM,qBAAqB;AAE3B,IAAM,qBAAqB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,gCAAgC;AAE7C,IAAM,gBAAgB,OAAO;AAQtB,IAAM,6BAA6B,IAAI;AAAA,EAC5C,OAAO,qCAAqC,aAAa;AAC3D;AAGO,IAAM,gCAAgC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/client-error-report.ts"],"sourcesContent":["/**\n * Wire grammar of the web client error beacon (`POST /v1/client-errors`).\n *\n * A report is a closed error kind, the matched route PATTERN (never a concrete\n * URL), the bundle revision, and optional error diagnostics: the error's name,\n * message and stack, plus React's component stack for a render failure. The\n * diagnostics are error text, not analytics. They can occasionally contain a\n * fragment of user content (an error message that quotes a value), so they are\n * scrubbed of obvious credentials and query strings by\n * {@link scrubClientErrorText} and bounded per field by\n * {@link CLIENT_ERROR_DETAIL_MAX_BYTES} in the browser, and the API re-applies\n * the same projection to whatever it receives. The web client that projects a\n * report, the API route that admits it, and the public structured-log\n * projection that prints it all validate against these exact rules, so the\n * browser can only send what the API accepts and logs.\n *\n * The same route also admits the closed operational signals below (requests\n * that never reached the server, live-stream health, and web vitals). They\n * follow the same rules: closed values only, a route pattern or page label,\n * never a URL, message, identifier, or user content.\n */\nexport const CLIENT_ERRORS_PATH = \"/v1/client-errors\";\n\nexport const CLIENT_ERROR_KINDS = [\n \"route_error\",\n \"unhandled_rejection\",\n \"window_error\",\n \"chunk_load\",\n] as const;\nexport type ClientErrorKind = (typeof CLIENT_ERROR_KINDS)[number];\n\n/**\n * Largest UTF-8 byte length of each error diagnostic field. A longer value is\n * cut at the end, so a stack keeps its innermost frames.\n */\nexport const CLIENT_ERROR_DETAIL_MAX_BYTES = {\n name: 128,\n message: 1024,\n stack: 4096,\n componentStack: 4096,\n} as const;\nexport type ClientErrorDetailField = keyof typeof CLIENT_ERROR_DETAIL_MAX_BYTES;\nexport const CLIENT_ERROR_DETAIL_FIELDS = Object.keys(\n CLIENT_ERROR_DETAIL_MAX_BYTES,\n) as ClientErrorDetailField[];\n\n/**\n * Largest accepted report body. The detail fields total 9,344 bytes; JSON\n * escaping at most doubles that, which leaves room for the closed fields.\n */\nexport const CLIENT_ERROR_REPORT_MAX_BYTES = 20 * 1024;\n\nconst ROUTE_SEGMENT = String.raw`(?:[a-z]+(?:-[a-z]+)*|\\$[A-Za-z][A-Za-z0-9]{0,31})`;\n\n/**\n * A route pattern of at most 160 characters that is `/`, `unknown`, or up to\n * twelve `/`-separated segments that are each either a lowercase literal\n * (`rigs`) or a `$param` placeholder. The grammar excludes digits in\n * literals, so a concrete id cannot pass as one.\n */\nexport const CLIENT_ERROR_ROUTE_PATTERN = new RegExp(\n String.raw`^(?=.{1,160}$)(?:unknown|/|(?:/${ROUTE_SEGMENT}){1,12})$`,\n);\n\n/** The bundle revision token (a commit SHA, `dev`, or `unknown`). */\nexport const CLIENT_ERROR_REVISION_PATTERN = /^[A-Za-z0-9._-]{1,64}$/;\n\n/** Error diagnostics. Every field is optional and already scrubbed and bounded. */\nexport type ClientErrorDetail = Partial<Record<ClientErrorDetailField, string>>;\n\nexport type ClientErrorReport = {\n kind: ClientErrorKind;\n route: string;\n revision: string;\n error?: ClientErrorDetail;\n};\n\nconst REDACTED = \"[redacted]\";\nconst TRUNCATED = \"…[truncated]\";\n\n// Hosts whose error URLs carry the error's arguments in the query string, and\n// nothing else (React's production error decoder links).\nconst ERROR_DECODER_URL = /^https?:\\/\\/(?:react\\.dev\\/errors\\/|reactjs\\.org\\/docs\\/error-decoder)/i;\n\nconst LONE_SURROGATE = /[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?<![\\uD800-\\uDBFF])[\\uDC00-\\uDFFF]/g;\n// Every control character except tab and newline.\n// oxlint-disable-next-line no-control-regex\nconst CONTROL_CHARACTERS = /[\\u0000-\\u0008\\u000B-\\u001F\\u007F]/g;\nconst URL_WITH_QUERY = /\\bhttps?:\\/\\/[^\\s?#\"'<>()`]*[?#][^\\s\"'<>()`]*/gi;\nconst LINE_AND_COLUMN_SUFFIX = /(?::\\d+){1,2}$/;\n// A credential, not prose such as \"Basic authentication\": it contains a digit.\nconst AUTHORIZATION_VALUE =\n /\\b(Bearer|Basic|Token)\\s+(?=[A-Za-z._~+/=-]*[0-9])[A-Za-z0-9._~+/=-]{8,}/gi;\nconst JWT = /\\beyJ[A-Za-z0-9_-]{5,}\\.[A-Za-z0-9_-]{5,}(?:\\.[A-Za-z0-9_-]*)?/g;\nconst KNOWN_TOKEN =\n /\\b(?:sk-(?:proj-|ant-)?|sk_(?:live|test)_|rk_(?:live|test)_|gh[pousr]_|github_pat_|glpat-|npm_|xox[abposr]-|ops_|AKIA|ASIA|AIza)[A-Za-z0-9_-]{12,}/g;\n// The value never starts with `[` or `…`, so an already redacted value and a\n// truncation marker are left alone and the scrubber stays idempotent.\nconst SECRET_ASSIGNMENT =\n /\\b((?:access[_-]?token|refresh[_-]?token|id[_-]?token|session[_-]?token|token|client[_-]?secret|secret|password|passwd|api[_-]?key|apikey|authorization|cookie|private[_-]?key)[\"']?\\s*[:=]\\s*[\"']?)[^\\s\"'&,;}[…][^\\s\"'&,;}]*/gi;\nconst OPAQUE_RUN = /[A-Za-z0-9+=_-]{32,}/g;\n\n/**\n * A long run that looks like a credential rather than a word, chunk name,\n * path or UUID: it mixes letters and digits and has an unbroken stretch of at\n * least 24 characters between `-`/`_` separators. Content-hashed asset names\n * (`artifact-page-chrome-DkF3x9aB`) and UUIDs have no stretch that long.\n */\nfunction isOpaqueCredential(run: string): boolean {\n return (\n /[0-9]/.test(run) &&\n /[A-Za-z]/.test(run) &&\n run.split(/[-_]/).some((stretch) => stretch.length >= 24)\n );\n}\n\n/**\n * Remove what an error text must never carry while keeping what makes it\n * useful. Query strings and fragments are dropped from http(s) URLs (keeping a\n * stack frame's `:line:column`); authorization values, JWTs, well-known API\n * token formats, the values of `token=`/`password:`-style assignments, and\n * long opaque letter-and-digit runs become `[redacted]`; control characters\n * other than tab and newline become spaces. Messages, file names, route paths,\n * UUIDs and stack frames survive. Applying it twice changes nothing.\n */\nexport function scrubClientErrorText(text: string): string {\n return text\n .replace(LONE_SURROGATE, \"\\uFFFD\")\n .replace(/\\r\\n?/g, \"\\n\")\n .replace(CONTROL_CHARACTERS, \" \")\n .replace(URL_WITH_QUERY, (url) => {\n if (ERROR_DECODER_URL.test(url)) return url;\n const cut = url.search(/[?#]/);\n const suffix = url.slice(cut).match(LINE_AND_COLUMN_SUFFIX)?.[0] ?? \"\";\n return url.slice(0, cut) + suffix;\n })\n .replace(AUTHORIZATION_VALUE, `$1 ${REDACTED}`)\n .replace(JWT, REDACTED)\n .replace(KNOWN_TOKEN, REDACTED)\n .replace(SECRET_ASSIGNMENT, `$1${REDACTED}`)\n .replace(OPAQUE_RUN, (run) => (isOpaqueCredential(run) ? REDACTED : run));\n}\n\nfunction utf8ByteLength(text: string): number {\n return new TextEncoder().encode(text).byteLength;\n}\n\n/**\n * Cut `text` to at most `maxBytes` UTF-8 bytes on a character boundary, ending\n * with a truncation marker when anything was removed.\n */\nexport function boundClientErrorText(text: string, maxBytes: number): string {\n if (utf8ByteLength(text) <= maxBytes) return text;\n const budget = maxBytes - utf8ByteLength(TRUNCATED);\n let bytes = 0;\n let end = 0;\n for (const character of text) {\n const size = utf8ByteLength(character);\n if (bytes + size > budget) break;\n bytes += size;\n end += character.length;\n }\n return text.slice(0, end) + TRUNCATED;\n}\n\n/** Whether `text` is already exactly what the projection would produce for it. */\nexport function isProjectedClientErrorText(text: string, field: ClientErrorDetailField): boolean {\n return (\n text.length > 0 &&\n utf8ByteLength(text) <= CLIENT_ERROR_DETAIL_MAX_BYTES[field] &&\n scrubClientErrorText(text) === text\n );\n}\n\n/**\n * Project raw diagnostics into a {@link ClientErrorDetail}: non-string and\n * blank fields are dropped, the rest scrubbed and then bounded. Returns\n * `undefined` when nothing remains. Bounding after scrubbing keeps a cut from\n * splitting a credential into a fragment the scrubber no longer recognizes;\n * the marker cannot form one, so the result is stable under re-projection.\n */\nexport function projectClientErrorDetail(\n raw: Partial<Record<ClientErrorDetailField, unknown>> | null | undefined,\n): ClientErrorDetail | undefined {\n if (!raw) return undefined;\n const detail: ClientErrorDetail = {};\n for (const field of CLIENT_ERROR_DETAIL_FIELDS) {\n const value = raw[field];\n if (typeof value !== \"string\") continue;\n const projected = boundClientErrorText(\n scrubClientErrorText(value).trim(),\n CLIENT_ERROR_DETAIL_MAX_BYTES[field],\n );\n if (projected) detail[field] = projected;\n }\n return Object.keys(detail).length > 0 ? detail : undefined;\n}\n\n/**\n * Content-free operational signals that share the error beacon route. A\n * signal report carries a `signal` discriminator and only closed values; a\n * report without `signal` is a {@link ClientErrorReport}. Older API servers\n * reject signal reports as invalid, so the extension is backward compatible in\n * both directions.\n */\nexport const CLIENT_SIGNALS = [\n \"request_failure\",\n \"stream\",\n \"web_vital\",\n \"desktop_bridge_missing\",\n] as const;\nexport type ClientSignal = (typeof CLIENT_SIGNALS)[number];\n\n/**\n * Key product mutations whose failure before any HTTP response is counted.\n * `send_message` includes sends the server queues behind an active turn.\n */\nexport const CLIENT_REQUEST_ACTIONS = [\n \"create_session\",\n \"send_message\",\n \"steer_message\",\n \"composer_submit\",\n \"retry_turn\",\n \"connect_integration\",\n \"connect_model\",\n \"checkout_start\",\n] as const;\nexport type ClientRequestAction = (typeof CLIENT_REQUEST_ACTIONS)[number];\n\n/**\n * Why a request never produced an HTTP response: the browser reported no\n * connectivity (`offline`), the client's own deadline expired (`timeout`), or\n * the transport failed (`network`). Cancellations the user or the app\n * initiated are never reported.\n */\nexport const CLIENT_REQUEST_FAILURE_REASONS = [\"network\", \"timeout\", \"offline\"] as const;\nexport type ClientRequestFailureReason = (typeof CLIENT_REQUEST_FAILURE_REASONS)[number];\n\n/** Browser live streams: one session's event stream, or the workspace live stream. */\nexport const CLIENT_STREAMS = [\"session\", \"workspace\"] as const;\nexport type ClientStream = (typeof CLIENT_STREAMS)[number];\n\n/**\n * Live stream health: a live stream dropped and started reconnecting\n * (`reconnect`), stopped reconnecting (`reconnect_exhausted`), or stayed\n * disconnected for longer than the long-disconnect threshold while the tab\n * was visible (`long_disconnect`).\n */\nexport const CLIENT_STREAM_EVENTS = [\n \"reconnect\",\n \"reconnect_exhausted\",\n \"long_disconnect\",\n] as const;\nexport type ClientStreamEvent = (typeof CLIENT_STREAM_EVENTS)[number];\n\n/** Core Web Vitals plus time to first byte, measured once per document. */\nexport const CLIENT_WEB_VITAL_METRICS = [\"lcp\", \"inp\", \"cls\", \"ttfb\"] as const;\nexport type ClientWebVitalMetric = (typeof CLIENT_WEB_VITAL_METRICS)[number];\n\n/**\n * Largest accepted value: seconds for the timing metrics, the unitless layout\n * shift score for `cls`.\n */\nexport const CLIENT_WEB_VITAL_MAX_VALUE: Readonly<Record<ClientWebVitalMetric, number>> = {\n lcp: 600,\n inp: 600,\n cls: 100,\n ttfb: 600,\n};\n\n/**\n * The closed page labels of the web console's product-journey projection\n * (`journeyPage` in apps/web/src/lib/analytics-journey.ts; a drift test keeps\n * the two identical). Workspace pages are the first path segment after\n * `/workspaces/<id>/`; the rest are exact top-level routes.\n */\nexport const CLIENT_PAGES = [\n \"sessions\",\n \"priority\",\n \"plugins\",\n \"capabilities\",\n \"documents\",\n \"state\",\n \"memory\",\n \"schedules\",\n \"automations\",\n \"bot-templates\",\n \"artifacts\",\n \"settings\",\n \"organization\",\n \"insights\",\n \"machines\",\n \"computer-use\",\n \"files\",\n \"agents\",\n \"secrets\",\n \"rigs\",\n \"playground\",\n \"read-only-chats\",\n \"inbox\",\n \"sites\",\n \"meetings\",\n \"home\",\n \"session-link\",\n \"identity-link\",\n \"checkout-return\",\n \"integration-return\",\n \"teams-connect\",\n \"device\",\n \"connect-agent\",\n \"native-sign-in\",\n \"reset-password\",\n \"setup-account\",\n \"account-auth\",\n \"site-auth\",\n \"personal-security\",\n \"other\",\n] as const;\nexport type ClientPage = (typeof CLIENT_PAGES)[number];\n\nexport type ClientRequestFailureReport = {\n signal: \"request_failure\";\n action: ClientRequestAction;\n reason: ClientRequestFailureReason;\n route: string;\n revision: string;\n};\n\nexport type ClientStreamReport = {\n signal: \"stream\";\n stream: ClientStream;\n event: ClientStreamEvent;\n route: string;\n revision: string;\n};\n\nexport type ClientWebVitalReport = {\n signal: \"web_vital\";\n metric: ClientWebVitalMetric;\n page: ClientPage;\n /** Seconds for timing metrics, the unitless score for `cls`. */\n value: number;\n revision: string;\n};\n\n/** Desktop app platforms, as the desktop bridge names them. */\nexport const CLIENT_DESKTOP_PLATFORMS = [\"macos\", \"windows\", \"linux\"] as const;\nexport type ClientDesktopPlatform = (typeof CLIENT_DESKTOP_PLATFORMS)[number];\n\n/** A desktop app version as its user agent writes it (`Opengeni/<version>`). */\nexport const CLIENT_DESKTOP_APP_VERSION_PATTERN =\n /^\\d{1,4}\\.\\d{1,4}\\.\\d{1,6}(?:-[0-9A-Za-z.]{1,24})?$/;\n\n/**\n * The page runs in the Opengeni desktop app's own window (its user agent says\n * so) but the shell's bridge is missing. Sent at most once per page load.\n */\nexport type ClientDesktopBridgeMissingReport = {\n signal: \"desktop_bridge_missing\";\n platform: ClientDesktopPlatform;\n /** The app version from the user agent, or `unknown`. */\n appVersion: string;\n route: string;\n revision: string;\n};\n\nexport type ClientSignalReport =\n | ClientRequestFailureReport\n | ClientStreamReport\n | ClientWebVitalReport\n | ClientDesktopBridgeMissingReport;\n\n/** Every body the beacon route accepts. */\nexport type ClientBeaconReport = ClientErrorReport | ClientSignalReport;\n"],"mappings":";AAqBO,IAAM,qBAAqB;AAE3B,IAAM,qBAAqB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAOO,IAAM,gCAAgC;AAAA,EAC3C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AAAA,EACP,gBAAgB;AAClB;AAEO,IAAM,6BAA6B,OAAO;AAAA,EAC/C;AACF;AAMO,IAAM,gCAAgC,KAAK;AAElD,IAAM,gBAAgB,OAAO;AAQtB,IAAM,6BAA6B,IAAI;AAAA,EAC5C,OAAO,qCAAqC,aAAa;AAC3D;AAGO,IAAM,gCAAgC;AAY7C,IAAM,WAAW;AACjB,IAAM,YAAY;AAIlB,IAAM,oBAAoB;AAE1B,IAAM,iBAAiB;AAGvB,IAAM,qBAAqB;AAC3B,IAAM,iBAAiB;AACvB,IAAM,yBAAyB;AAE/B,IAAM,sBACJ;AACF,IAAM,MAAM;AACZ,IAAM,cACJ;AAGF,IAAM,oBACJ;AACF,IAAM,aAAa;AAQnB,SAAS,mBAAmB,KAAsB;AAChD,SACE,QAAQ,KAAK,GAAG,KAChB,WAAW,KAAK,GAAG,KACnB,IAAI,MAAM,MAAM,EAAE,KAAK,CAAC,YAAY,QAAQ,UAAU,EAAE;AAE5D;AAWO,SAAS,qBAAqB,MAAsB;AACzD,SAAO,KACJ,QAAQ,gBAAgB,QAAQ,EAChC,QAAQ,UAAU,IAAI,EACtB,QAAQ,oBAAoB,GAAG,EAC/B,QAAQ,gBAAgB,CAAC,QAAQ;AAChC,QAAI,kBAAkB,KAAK,GAAG,EAAG,QAAO;AACxC,UAAM,MAAM,IAAI,OAAO,MAAM;AAC7B,UAAM,SAAS,IAAI,MAAM,GAAG,EAAE,MAAM,sBAAsB,IAAI,CAAC,KAAK;AACpE,WAAO,IAAI,MAAM,GAAG,GAAG,IAAI;AAAA,EAC7B,CAAC,EACA,QAAQ,qBAAqB,MAAM,QAAQ,EAAE,EAC7C,QAAQ,KAAK,QAAQ,EACrB,QAAQ,aAAa,QAAQ,EAC7B,QAAQ,mBAAmB,KAAK,QAAQ,EAAE,EAC1C,QAAQ,YAAY,CAAC,QAAS,mBAAmB,GAAG,IAAI,WAAW,GAAI;AAC5E;AAEA,SAAS,eAAe,MAAsB;AAC5C,SAAO,IAAI,YAAY,EAAE,OAAO,IAAI,EAAE;AACxC;AAMO,SAAS,qBAAqB,MAAc,UAA0B;AAC3E,MAAI,eAAe,IAAI,KAAK,SAAU,QAAO;AAC7C,QAAM,SAAS,WAAW,eAAe,SAAS;AAClD,MAAI,QAAQ;AACZ,MAAI,MAAM;AACV,aAAW,aAAa,MAAM;AAC5B,UAAM,OAAO,eAAe,SAAS;AACrC,QAAI,QAAQ,OAAO,OAAQ;AAC3B,aAAS;AACT,WAAO,UAAU;AAAA,EACnB;AACA,SAAO,KAAK,MAAM,GAAG,GAAG,IAAI;AAC9B;AAGO,SAAS,2BAA2B,MAAc,OAAwC;AAC/F,SACE,KAAK,SAAS,KACd,eAAe,IAAI,KAAK,8BAA8B,KAAK,KAC3D,qBAAqB,IAAI,MAAM;AAEnC;AASO,SAAS,yBACd,KAC+B;AAC/B,MAAI,CAAC,IAAK,QAAO;AACjB,QAAM,SAA4B,CAAC;AACnC,aAAW,SAAS,4BAA4B;AAC9C,UAAM,QAAQ,IAAI,KAAK;AACvB,QAAI,OAAO,UAAU,SAAU;AAC/B,UAAM,YAAY;AAAA,MAChB,qBAAqB,KAAK,EAAE,KAAK;AAAA,MACjC,8BAA8B,KAAK;AAAA,IACrC;AACA,QAAI,UAAW,QAAO,KAAK,IAAI;AAAA,EACjC;AACA,SAAO,OAAO,KAAK,MAAM,EAAE,SAAS,IAAI,SAAS;AACnD;AASO,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAOO,IAAM,yBAAyB;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AASO,IAAM,iCAAiC,CAAC,WAAW,WAAW,SAAS;AAIvE,IAAM,iBAAiB,CAAC,WAAW,WAAW;AAS9C,IAAM,uBAAuB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,2BAA2B,CAAC,OAAO,OAAO,OAAO,MAAM;AAO7D,IAAM,6BAA6E;AAAA,EACxF,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,MAAM;AACR;AAQO,IAAM,eAAe;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AA6BO,IAAM,2BAA2B,CAAC,SAAS,WAAW,OAAO;AAI7D,IAAM,qCACX;","names":[]}
|
package/dist/code-search.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Directories holding platform credential material that `code_search` never
|
|
3
|
-
* searches or reads, as path segments matched at any depth:
|
|
3
|
+
* searches or reads, as path segments matched at any depth: Opengeni's
|
|
4
4
|
* sandbox state (`.opengeni/`: Codemode bearer tokens, Git credential files
|
|
5
5
|
* and bindings), the Azure CLI login cache (`.azure/`, from the sandbox's
|
|
6
6
|
* service-principal login with HOME=/workspace) and a Connected Machine
|
package/dist/code-search.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/code-search.ts"],"sourcesContent":["// Resolvers for the optional Jev-backed `code_search` agent tool. A separate\n// subpath keeps them out of browser bundles; only server code decides.\n\n/**\n * Directories holding platform credential material that `code_search` never\n * searches or reads, as path segments matched at any depth:
|
|
1
|
+
{"version":3,"sources":["../src/code-search.ts"],"sourcesContent":["// Resolvers for the optional Jev-backed `code_search` agent tool. A separate\n// subpath keeps them out of browser bundles; only server code decides.\n\n/**\n * Directories holding platform credential material that `code_search` never\n * searches or reads, as path segments matched at any depth: Opengeni's\n * sandbox state (`.opengeni/`: Codemode bearer tokens, Git credential files\n * and bindings), the Azure CLI login cache (`.azure/`, from the sandbox's\n * service-principal login with HOME=/workspace) and a Connected Machine\n * agent's enrollment credentials (`.config/opengeni/`). The sandbox channel\n * enforces this list; `@opengeni/jev` keeps the same list for its engine, and\n * a worker test pins that the two agree.\n */\nexport const CODE_SEARCH_CREDENTIAL_DIRS: readonly (readonly string[])[] = [\n [\".opengeni\"],\n [\".azure\"],\n [\".config\", \"opengeni\"],\n];\n\n/**\n * The deployment half of the `code_search` decision. `split` gives the tool to\n * a fixed half of sessions (see `codeSearchSessionInExperiment`) so staging can\n * compare sessions with and without it.\n */\nexport type CodeSearchWorkspaceDefault = \"off\" | \"on\" | \"split\";\nexport type CodeSearchDeploymentPolicy = {\n available: boolean;\n workspaceDefault: CodeSearchWorkspaceDefault;\n};\n\n/**\n * What a workspace gets: the deployment decides first, so nothing enables the\n * tool where the deployment does not offer it. Otherwise an explicit workspace\n * choice wins, and an absent, null or malformed setting follows the deployment\n * default. Only this field is read, so an invalid sibling setting cannot turn\n * an explicit Off back into the deployment default.\n */\nexport function resolveWorkspaceCodeSearchMode(\n settings: unknown,\n deployment: CodeSearchDeploymentPolicy,\n): CodeSearchWorkspaceDefault {\n if (!deployment.available) return \"off\";\n const explicit = explicitWorkspaceCodeSearchSetting(settings);\n if (explicit === true) return \"on\";\n if (explicit === false) return \"off\";\n return deployment.workspaceDefault;\n}\n\nfunction explicitWorkspaceCodeSearchSetting(settings: unknown): boolean | undefined {\n const explicit =\n typeof settings === \"object\" && settings !== null\n ? (settings as { codeSearchEnabled?: unknown }).codeSearchEnabled\n : undefined;\n return typeof explicit === \"boolean\" ? explicit : undefined;\n}\n\n/**\n * Fixed per-session half for the `split` experiment: 32-bit FNV-1a of the\n * session id, low bit 0 gets the tool. Deterministic and dependency-free, so\n * a root session's arm can be recomputed from its id. Child sessions inherit\n * their parent's decision instead.\n */\nexport function codeSearchSessionInExperiment(sessionId: string): boolean {\n let hash = 0x811c9dc5;\n for (let index = 0; index < sessionId.length; index++) {\n hash ^= sessionId.charCodeAt(index);\n hash = Math.imul(hash, 0x01000193) >>> 0;\n }\n return (hash & 1) === 0;\n}\n\n/**\n * The decision frozen on a new root session when it is created. Later changes\n * to the workspace setting or the deployment mode never turn the tool on for a\n * session that was created without it.\n */\nexport function resolveSessionCodeSearchEnabled(\n settings: unknown,\n deployment: CodeSearchDeploymentPolicy,\n sessionId: string,\n): boolean {\n const mode = resolveWorkspaceCodeSearchMode(settings, deployment);\n return mode === \"on\" || (mode === \"split\" && codeSearchSessionInExperiment(sessionId));\n}\n\n/**\n * Whether a turn of this session gets `code_search`. Only a session frozen on\n * at creation can have it. The deployment (mode off or no usable key) and an\n * explicit workspace Off still pause it in running sessions, because they stop\n * repository content going to Jev; undoing that switch-off gives it back to\n * sessions frozen on. Each such change costs every affected session one\n * prompt-cache miss, which is accepted for a deliberate switch. Nothing else\n * changes the tool list of a running session.\n */\nexport function codeSearchEnabledForTurn(\n frozen: boolean | null | undefined,\n settings: unknown,\n deployment: CodeSearchDeploymentPolicy,\n): boolean {\n return (\n frozen === true &&\n deployment.available &&\n explicitWorkspaceCodeSearchSetting(settings) !== false\n );\n}\n"],"mappings":";AAaO,IAAM,8BAA8D;AAAA,EACzE,CAAC,WAAW;AAAA,EACZ,CAAC,QAAQ;AAAA,EACT,CAAC,WAAW,UAAU;AACxB;AAoBO,SAAS,+BACd,UACA,YAC4B;AAC5B,MAAI,CAAC,WAAW,UAAW,QAAO;AAClC,QAAM,WAAW,mCAAmC,QAAQ;AAC5D,MAAI,aAAa,KAAM,QAAO;AAC9B,MAAI,aAAa,MAAO,QAAO;AAC/B,SAAO,WAAW;AACpB;AAEA,SAAS,mCAAmC,UAAwC;AAClF,QAAM,WACJ,OAAO,aAAa,YAAY,aAAa,OACxC,SAA6C,oBAC9C;AACN,SAAO,OAAO,aAAa,YAAY,WAAW;AACpD;AAQO,SAAS,8BAA8B,WAA4B;AACxE,MAAI,OAAO;AACX,WAAS,QAAQ,GAAG,QAAQ,UAAU,QAAQ,SAAS;AACrD,YAAQ,UAAU,WAAW,KAAK;AAClC,WAAO,KAAK,KAAK,MAAM,QAAU,MAAM;AAAA,EACzC;AACA,UAAQ,OAAO,OAAO;AACxB;AAOO,SAAS,gCACd,UACA,YACA,WACS;AACT,QAAM,OAAO,+BAA+B,UAAU,UAAU;AAChE,SAAO,SAAS,QAAS,SAAS,WAAW,8BAA8B,SAAS;AACtF;AAWO,SAAS,yBACd,QACA,UACA,YACS;AACT,SACE,WAAW,QACX,WAAW,aACX,mCAAmC,QAAQ,MAAM;AAErD;","names":[]}
|
|
@@ -1,17 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
positiveInteger
|
|
3
|
+
} from "./chunk-AQYDZUJV.js";
|
|
4
|
+
import {
|
|
5
|
+
defineSchema
|
|
6
|
+
} from "./chunk-56SNIMDO.js";
|
|
7
|
+
|
|
1
8
|
// src/codex-provider-account-authority.ts
|
|
2
9
|
import { z } from "zod";
|
|
3
|
-
var PositiveSafeInteger =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
var PositiveSafeInteger = /* @__PURE__ */ defineSchema(
|
|
11
|
+
() => positiveInteger.max(Number.MAX_SAFE_INTEGER)
|
|
12
|
+
);
|
|
13
|
+
var CodexProviderAccountAuthoritySnapshotV1 = /* @__PURE__ */ defineSchema(
|
|
14
|
+
() => z.discriminatedUnion("scope", [
|
|
15
|
+
z.object({
|
|
16
|
+
version: z.literal(1),
|
|
17
|
+
scope: z.literal("workspace")
|
|
18
|
+
}).strict(),
|
|
19
|
+
z.object({
|
|
20
|
+
version: z.literal(1),
|
|
21
|
+
scope: z.literal("user"),
|
|
22
|
+
authorityGeneration: PositiveSafeInteger
|
|
23
|
+
}).strict()
|
|
24
|
+
])
|
|
25
|
+
);
|
|
15
26
|
var LEGACY_WORKSPACE_CODEX_PROVIDER_ACCOUNT_AUTHORITY_SNAPSHOT_V1 = {
|
|
16
27
|
version: 1,
|
|
17
28
|
scope: "workspace"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/codex-provider-account-authority.ts"],"sourcesContent":["import { z } from \"zod\";\n\nconst PositiveSafeInteger =
|
|
1
|
+
{"version":3,"sources":["../src/codex-provider-account-authority.ts"],"sourcesContent":["import * as primitives from \"./primitives\";\nimport { defineSchema } from \"./define-schema\";\nimport { z } from \"zod\";\n\nconst PositiveSafeInteger = /* @__PURE__ */ defineSchema(() =>\n primitives.positiveInteger.max(Number.MAX_SAFE_INTEGER),\n);\n\n/**\n * Opaque authority frozen at a Codex provider-account acceptance boundary.\n *\n * The snapshot deliberately carries no organization, membership, credential,\n * provider-account, subject, label, quota, token, or plan identity. A later\n * activation slice may use the user generation only together with separately\n * authorized durable state; this value is never sufficient authority alone.\n */\nexport const CodexProviderAccountAuthoritySnapshotV1 = /* @__PURE__ */ defineSchema(() =>\n z.discriminatedUnion(\"scope\", [\n z\n .object({\n version: z.literal(1),\n scope: z.literal(\"workspace\"),\n })\n .strict(),\n z\n .object({\n version: z.literal(1),\n scope: z.literal(\"user\"),\n authorityGeneration: PositiveSafeInteger,\n })\n .strict(),\n ]),\n);\n\nexport type CodexProviderAccountAuthoritySnapshotV1 = z.infer<\n typeof CodexProviderAccountAuthoritySnapshotV1\n>;\n\n/** Explicit compatibility value for all pre-foundation accepted work. */\nexport const LEGACY_WORKSPACE_CODEX_PROVIDER_ACCOUNT_AUTHORITY_SNAPSHOT_V1 = {\n version: 1,\n scope: \"workspace\",\n} as const satisfies CodexProviderAccountAuthoritySnapshotV1;\n"],"mappings":";;;;;;;;AAEA,SAAS,SAAS;AAElB,IAAM,sBAAsC;AAAA,EAAa,MAC5C,gBAAgB,IAAI,OAAO,gBAAgB;AACxD;AAUO,IAAM,0CAA0D;AAAA,EAAa,MAClF,EAAE,mBAAmB,SAAS;AAAA,IAC5B,EACG,OAAO;AAAA,MACN,SAAS,EAAE,QAAQ,CAAC;AAAA,MACpB,OAAO,EAAE,QAAQ,WAAW;AAAA,IAC9B,CAAC,EACA,OAAO;AAAA,IACV,EACG,OAAO;AAAA,MACN,SAAS,EAAE,QAAQ,CAAC;AAAA,MACpB,OAAO,EAAE,QAAQ,MAAM;AAAA,MACvB,qBAAqB;AAAA,IACvB,CAAC,EACA,OAAO;AAAA,EACZ,CAAC;AACH;AAOO,IAAM,gEAAgE;AAAA,EAC3E,SAAS;AAAA,EACT,OAAO;AACT;","names":[]}
|
|
@@ -579,6 +579,7 @@ export declare const CompanyProfileAgentHumanInputPrompt: z.ZodObject<{
|
|
|
579
579
|
id: z.ZodString;
|
|
580
580
|
kind: z.ZodEnum<{
|
|
581
581
|
multi_select: "multi_select";
|
|
582
|
+
secret: "secret";
|
|
582
583
|
single_select: "single_select";
|
|
583
584
|
text: "text";
|
|
584
585
|
}>;
|
|
@@ -598,6 +599,53 @@ export declare const CompanyProfileAgentHumanInputPrompt: z.ZodObject<{
|
|
|
598
599
|
label: z.ZodString;
|
|
599
600
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
600
601
|
}, z.core.$strip>>>;
|
|
602
|
+
secret: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
603
|
+
item: z.ZodString;
|
|
604
|
+
field: z.ZodDefault<z.ZodString>;
|
|
605
|
+
fieldKind: z.ZodDefault<z.ZodEnum<{
|
|
606
|
+
concealed: "concealed";
|
|
607
|
+
text: "text";
|
|
608
|
+
totp: "totp";
|
|
609
|
+
}>>;
|
|
610
|
+
itemType: z.ZodDefault<z.ZodEnum<{
|
|
611
|
+
api_key: "api_key";
|
|
612
|
+
card: "card";
|
|
613
|
+
identity: "identity";
|
|
614
|
+
login: "login";
|
|
615
|
+
note: "note";
|
|
616
|
+
ssh_key: "ssh_key";
|
|
617
|
+
}>>;
|
|
618
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
619
|
+
prompt: z.ZodString;
|
|
620
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
621
|
+
}, z.core.$strict>>>;
|
|
622
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
623
|
+
looksLike: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
624
|
+
pattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
625
|
+
saveTo: z.ZodDefault<z.ZodEnum<{
|
|
626
|
+
task: "task";
|
|
627
|
+
user: "user";
|
|
628
|
+
workspace: "workspace";
|
|
629
|
+
}>>;
|
|
630
|
+
vault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
631
|
+
allowGenerate: z.ZodDefault<z.ZodBoolean>;
|
|
632
|
+
generate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
633
|
+
length: z.ZodDefault<z.ZodNumber>;
|
|
634
|
+
lowercase: z.ZodDefault<z.ZodBoolean>;
|
|
635
|
+
uppercase: z.ZodDefault<z.ZodBoolean>;
|
|
636
|
+
digits: z.ZodDefault<z.ZodBoolean>;
|
|
637
|
+
symbols: z.ZodDefault<z.ZodBoolean>;
|
|
638
|
+
symbolSet: z.ZodDefault<z.ZodString>;
|
|
639
|
+
excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
|
|
640
|
+
requireEachClass: z.ZodDefault<z.ZodBoolean>;
|
|
641
|
+
}, z.core.$strict>>>;
|
|
642
|
+
autocomplete: z.ZodDefault<z.ZodEnum<{
|
|
643
|
+
"current-password": "current-password";
|
|
644
|
+
"new-password": "new-password";
|
|
645
|
+
off: "off";
|
|
646
|
+
"one-time-code": "one-time-code";
|
|
647
|
+
}>>;
|
|
648
|
+
}, z.core.$strict>>>;
|
|
601
649
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
602
650
|
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
603
651
|
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -661,6 +709,7 @@ export declare const CompanyProfileAgentReviewRequiredReceipt: z.ZodObject<{
|
|
|
661
709
|
id: z.ZodString;
|
|
662
710
|
kind: z.ZodEnum<{
|
|
663
711
|
multi_select: "multi_select";
|
|
712
|
+
secret: "secret";
|
|
664
713
|
single_select: "single_select";
|
|
665
714
|
text: "text";
|
|
666
715
|
}>;
|
|
@@ -680,6 +729,53 @@ export declare const CompanyProfileAgentReviewRequiredReceipt: z.ZodObject<{
|
|
|
680
729
|
label: z.ZodString;
|
|
681
730
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
682
731
|
}, z.core.$strip>>>;
|
|
732
|
+
secret: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
733
|
+
item: z.ZodString;
|
|
734
|
+
field: z.ZodDefault<z.ZodString>;
|
|
735
|
+
fieldKind: z.ZodDefault<z.ZodEnum<{
|
|
736
|
+
concealed: "concealed";
|
|
737
|
+
text: "text";
|
|
738
|
+
totp: "totp";
|
|
739
|
+
}>>;
|
|
740
|
+
itemType: z.ZodDefault<z.ZodEnum<{
|
|
741
|
+
api_key: "api_key";
|
|
742
|
+
card: "card";
|
|
743
|
+
identity: "identity";
|
|
744
|
+
login: "login";
|
|
745
|
+
note: "note";
|
|
746
|
+
ssh_key: "ssh_key";
|
|
747
|
+
}>>;
|
|
748
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
749
|
+
prompt: z.ZodString;
|
|
750
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
751
|
+
}, z.core.$strict>>>;
|
|
752
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
753
|
+
looksLike: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
754
|
+
pattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
755
|
+
saveTo: z.ZodDefault<z.ZodEnum<{
|
|
756
|
+
task: "task";
|
|
757
|
+
user: "user";
|
|
758
|
+
workspace: "workspace";
|
|
759
|
+
}>>;
|
|
760
|
+
vault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
761
|
+
allowGenerate: z.ZodDefault<z.ZodBoolean>;
|
|
762
|
+
generate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
763
|
+
length: z.ZodDefault<z.ZodNumber>;
|
|
764
|
+
lowercase: z.ZodDefault<z.ZodBoolean>;
|
|
765
|
+
uppercase: z.ZodDefault<z.ZodBoolean>;
|
|
766
|
+
digits: z.ZodDefault<z.ZodBoolean>;
|
|
767
|
+
symbols: z.ZodDefault<z.ZodBoolean>;
|
|
768
|
+
symbolSet: z.ZodDefault<z.ZodString>;
|
|
769
|
+
excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
|
|
770
|
+
requireEachClass: z.ZodDefault<z.ZodBoolean>;
|
|
771
|
+
}, z.core.$strict>>>;
|
|
772
|
+
autocomplete: z.ZodDefault<z.ZodEnum<{
|
|
773
|
+
"current-password": "current-password";
|
|
774
|
+
"new-password": "new-password";
|
|
775
|
+
off: "off";
|
|
776
|
+
"one-time-code": "one-time-code";
|
|
777
|
+
}>>;
|
|
778
|
+
}, z.core.$strict>>>;
|
|
683
779
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
684
780
|
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
685
781
|
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -831,6 +927,7 @@ export declare const CompanyProfileAgentProposalReceipt: z.ZodDiscriminatedUnion
|
|
|
831
927
|
id: z.ZodString;
|
|
832
928
|
kind: z.ZodEnum<{
|
|
833
929
|
multi_select: "multi_select";
|
|
930
|
+
secret: "secret";
|
|
834
931
|
single_select: "single_select";
|
|
835
932
|
text: "text";
|
|
836
933
|
}>;
|
|
@@ -850,6 +947,53 @@ export declare const CompanyProfileAgentProposalReceipt: z.ZodDiscriminatedUnion
|
|
|
850
947
|
label: z.ZodString;
|
|
851
948
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
852
949
|
}, z.core.$strip>>>;
|
|
950
|
+
secret: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
951
|
+
item: z.ZodString;
|
|
952
|
+
field: z.ZodDefault<z.ZodString>;
|
|
953
|
+
fieldKind: z.ZodDefault<z.ZodEnum<{
|
|
954
|
+
concealed: "concealed";
|
|
955
|
+
text: "text";
|
|
956
|
+
totp: "totp";
|
|
957
|
+
}>>;
|
|
958
|
+
itemType: z.ZodDefault<z.ZodEnum<{
|
|
959
|
+
api_key: "api_key";
|
|
960
|
+
card: "card";
|
|
961
|
+
identity: "identity";
|
|
962
|
+
login: "login";
|
|
963
|
+
note: "note";
|
|
964
|
+
ssh_key: "ssh_key";
|
|
965
|
+
}>>;
|
|
966
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
967
|
+
prompt: z.ZodString;
|
|
968
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
969
|
+
}, z.core.$strict>>>;
|
|
970
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
971
|
+
looksLike: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
972
|
+
pattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
973
|
+
saveTo: z.ZodDefault<z.ZodEnum<{
|
|
974
|
+
task: "task";
|
|
975
|
+
user: "user";
|
|
976
|
+
workspace: "workspace";
|
|
977
|
+
}>>;
|
|
978
|
+
vault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
979
|
+
allowGenerate: z.ZodDefault<z.ZodBoolean>;
|
|
980
|
+
generate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
981
|
+
length: z.ZodDefault<z.ZodNumber>;
|
|
982
|
+
lowercase: z.ZodDefault<z.ZodBoolean>;
|
|
983
|
+
uppercase: z.ZodDefault<z.ZodBoolean>;
|
|
984
|
+
digits: z.ZodDefault<z.ZodBoolean>;
|
|
985
|
+
symbols: z.ZodDefault<z.ZodBoolean>;
|
|
986
|
+
symbolSet: z.ZodDefault<z.ZodString>;
|
|
987
|
+
excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
|
|
988
|
+
requireEachClass: z.ZodDefault<z.ZodBoolean>;
|
|
989
|
+
}, z.core.$strict>>>;
|
|
990
|
+
autocomplete: z.ZodDefault<z.ZodEnum<{
|
|
991
|
+
"current-password": "current-password";
|
|
992
|
+
"new-password": "new-password";
|
|
993
|
+
off: "off";
|
|
994
|
+
"one-time-code": "one-time-code";
|
|
995
|
+
}>>;
|
|
996
|
+
}, z.core.$strict>>>;
|
|
853
997
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
854
998
|
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
855
999
|
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
package/dist/connect.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export { PreparedMcpSetup, preparedMcpHeaders } from "./prepared-mcp-setup.js";
|
|
2
3
|
export declare const ConnectOwnership: z.ZodEnum<{
|
|
3
4
|
personal: "personal";
|
|
4
5
|
workspace: "workspace";
|
|
@@ -258,6 +259,24 @@ export declare const ConnectAttempt: z.ZodObject<{
|
|
|
258
259
|
url: z.ZodString;
|
|
259
260
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
260
261
|
}, z.core.$strict>], "kind">>;
|
|
262
|
+
mcpSetup: z.ZodOptional<z.ZodObject<{
|
|
263
|
+
name: z.ZodString;
|
|
264
|
+
endpointUrl: z.ZodString;
|
|
265
|
+
headers: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
266
|
+
name: z.ZodString;
|
|
267
|
+
value: z.ZodString;
|
|
268
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
269
|
+
name: z.ZodString;
|
|
270
|
+
secret: z.ZodString;
|
|
271
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
272
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
273
|
+
}, z.core.$strict>]>>;
|
|
274
|
+
secretFields: z.ZodArray<z.ZodObject<{
|
|
275
|
+
id: z.ZodString;
|
|
276
|
+
label: z.ZodString;
|
|
277
|
+
}, z.core.$strict>>;
|
|
278
|
+
}, z.core.$strict>>;
|
|
279
|
+
mcpCapabilityId: z.ZodOptional<z.ZodString>;
|
|
261
280
|
error: z.ZodOptional<z.ZodObject<{
|
|
262
281
|
code: z.ZodString;
|
|
263
282
|
message: z.ZodString;
|
|
@@ -315,6 +334,7 @@ export declare const BeginConnectRequest: z.ZodObject<{
|
|
|
315
334
|
workspace: "workspace";
|
|
316
335
|
}>;
|
|
317
336
|
returnUrl: z.ZodString;
|
|
337
|
+
finishInPopup: z.ZodOptional<z.ZodLiteral<true>>;
|
|
318
338
|
idempotencyKey: z.ZodString;
|
|
319
339
|
reconnectAccountId: z.ZodOptional<z.ZodString>;
|
|
320
340
|
installationTarget: z.ZodOptional<z.ZodObject<{
|
|
@@ -322,4 +342,22 @@ export declare const BeginConnectRequest: z.ZodObject<{
|
|
|
322
342
|
displayName: z.ZodString;
|
|
323
343
|
expectedInstanceVersion: z.ZodOptional<z.ZodNumber>;
|
|
324
344
|
}, z.core.$strict>>;
|
|
345
|
+
mcpSetup: z.ZodOptional<z.ZodObject<{
|
|
346
|
+
name: z.ZodString;
|
|
347
|
+
endpointUrl: z.ZodString;
|
|
348
|
+
headers: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
349
|
+
name: z.ZodString;
|
|
350
|
+
value: z.ZodString;
|
|
351
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
352
|
+
name: z.ZodString;
|
|
353
|
+
secret: z.ZodString;
|
|
354
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
355
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
356
|
+
}, z.core.$strict>]>>;
|
|
357
|
+
secretFields: z.ZodArray<z.ZodObject<{
|
|
358
|
+
id: z.ZodString;
|
|
359
|
+
label: z.ZodString;
|
|
360
|
+
}, z.core.$strict>>;
|
|
361
|
+
}, z.core.$strict>>;
|
|
325
362
|
}, z.core.$strict>;
|
|
363
|
+
export type BeginConnectRequest = z.infer<typeof BeginConnectRequest>;
|