@prismshadow/penguin-server 0.2.16 → 0.2.17

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.
Files changed (108) hide show
  1. package/README.md +1 -1
  2. package/dist/api/types.d.ts +233 -47
  3. package/dist/api/types.js +9 -3
  4. package/dist/auth-token.js +1 -1
  5. package/dist/{chunk-HMTT2PX4.js → chunk-2LZDP26O.js} +8 -5
  6. package/dist/chunk-2LZDP26O.js.map +1 -0
  7. package/dist/{chunk-LPPVGHYD.js → chunk-BL4U7GYY.js} +2 -2
  8. package/dist/chunk-BL4U7GYY.js.map +1 -0
  9. package/dist/chunk-GGIINEEK.js +3401 -0
  10. package/dist/chunk-GGIINEEK.js.map +1 -0
  11. package/dist/chunk-HDBZRVA5.js +29 -0
  12. package/dist/chunk-HDBZRVA5.js.map +1 -0
  13. package/dist/{chunk-3SFJKLQU.js → chunk-HPOHMZCH.js} +679 -559
  14. package/dist/chunk-HPOHMZCH.js.map +1 -0
  15. package/dist/{chunk-QFV3ERQO.js → chunk-OQZDL3TR.js} +2 -2
  16. package/dist/hmr/manifest.js +1 -1
  17. package/dist/index.js +7701 -4814
  18. package/dist/index.js.map +1 -1
  19. package/dist/machine-status.js +2 -2
  20. package/dist/model-catalog.d.ts +610 -0
  21. package/dist/model-catalog.js +108 -0
  22. package/dist/model-catalog.js.map +1 -0
  23. package/dist/plugin/index.d.ts +113 -58
  24. package/dist/reset-admin-password.js +1 -1
  25. package/dist/version-report.js +2 -2
  26. package/package.json +14 -9
  27. package/web-dist/assets/{abnfDiagram-VCTEODGH-0AKFiyig.js → abnfDiagram-VCTEODGH-DMzkb4l4.js} +1 -1
  28. package/web-dist/assets/{addon-clipboard-BovFnNVg.js → addon-clipboard-BtD2BVSi.js} +1 -1
  29. package/web-dist/assets/{addon-fit-B1npgxQk.js → addon-fit-Dr6HWsi_.js} +1 -1
  30. package/web-dist/assets/{addon-web-links-D88QHj7A.js → addon-web-links-VEE3YLzQ.js} +1 -1
  31. package/web-dist/assets/{arc-Beox1Cgf.js → arc-CvMPOU_B.js} +1 -1
  32. package/web-dist/assets/{architectureDiagram-5GKGNRK7-CC1sLMY1.js → architectureDiagram-5GKGNRK7-Bk65mIBz.js} +1 -1
  33. package/web-dist/assets/{blockDiagram-I7D4REHJ-B8BY1PkZ.js → blockDiagram-I7D4REHJ-D54-XSNs.js} +1 -1
  34. package/web-dist/assets/{c4Diagram-7LVT6UL2-yjY0BkxQ.js → c4Diagram-7LVT6UL2-Dm954LSt.js} +1 -1
  35. package/web-dist/assets/channel-CVHI75kz.js +1 -0
  36. package/web-dist/assets/{chunk-2Q5K7J3B-DdgIvETg.js → chunk-2Q5K7J3B-D_LJ_7Cn.js} +1 -1
  37. package/web-dist/assets/{chunk-5VM5RSS4-BE38k1Rs.js → chunk-5VM5RSS4-B8RI4tl3.js} +1 -1
  38. package/web-dist/assets/{chunk-F27PBJKO-D4YXmaqQ.js → chunk-F27PBJKO-aVSYH9JV.js} +1 -1
  39. package/web-dist/assets/{chunk-IMKFNOWR-CyJFdThc.js → chunk-IMKFNOWR-DnkdWeq2.js} +1 -1
  40. package/web-dist/assets/{chunk-JWPE2WC7-BAM_oEUU.js → chunk-JWPE2WC7-C2pJzKuW.js} +1 -1
  41. package/web-dist/assets/{chunk-POPQ4Y6H-BP3D0FVi.js → chunk-POPQ4Y6H-Bx7Iikzx.js} +1 -1
  42. package/web-dist/assets/{chunk-SVP7TREG-Clk8PdKZ.js → chunk-SVP7TREG-qJC2SMqr.js} +1 -1
  43. package/web-dist/assets/{chunk-TICWLB2K-EvWPnEGg.js → chunk-TICWLB2K-Crl_BgKI.js} +1 -1
  44. package/web-dist/assets/{chunk-XXDRQBXY-6p5D0UB1.js → chunk-XXDRQBXY-BFFemuGm.js} +1 -1
  45. package/web-dist/assets/classDiagram-ZZMXUADV-CBdzAPFu.js +1 -0
  46. package/web-dist/assets/classDiagram-v2-VYDZK3BY-CBdzAPFu.js +1 -0
  47. package/web-dist/assets/{cose-bilkent-JH36ORCC-bpkI-tLJ.js → cose-bilkent-JH36ORCC-Bmh2Kx7h.js} +1 -1
  48. package/web-dist/assets/{cynefin-OW5HDTMX-srLaqJ4e.js → cynefin-OW5HDTMX-BveNWnUV.js} +1 -1
  49. package/web-dist/assets/{cynefinDiagram-5FMLGOSQ-BPfpHSPc.js → cynefinDiagram-5FMLGOSQ-85itazbJ.js} +1 -1
  50. package/web-dist/assets/{dagre-GXQ25YYZ-C4fF5-j7.js → dagre-GXQ25YYZ-DIZT-KY_.js} +1 -1
  51. package/web-dist/assets/{diagram-S7CK7UJ4-BzBLb_9-.js → diagram-S7CK7UJ4-Dum-g63f.js} +1 -1
  52. package/web-dist/assets/{diagram-UQ7AKVKN-BJuJ1o_T.js → diagram-UQ7AKVKN-DallMKJl.js} +1 -1
  53. package/web-dist/assets/{diagram-VSXAHHWV-DFelN9i9.js → diagram-VSXAHHWV-DWELqxfN.js} +1 -1
  54. package/web-dist/assets/{diagram-VX7I27RA-BgrEoPyp.js → diagram-VX7I27RA-BNs0gB9E.js} +1 -1
  55. package/web-dist/assets/{diagram-Z3DM3KII-C71KiMiX.js → diagram-Z3DM3KII-C9mF9xAd.js} +1 -1
  56. package/web-dist/assets/{ebnfDiagram-PWID7BFC-EYteyp1b.js → ebnfDiagram-PWID7BFC-D_Diy9HH.js} +1 -1
  57. package/web-dist/assets/{erDiagram-RLTQ6QDP-B6n6-sz6.js → erDiagram-RLTQ6QDP-4QTS5VIh.js} +1 -1
  58. package/web-dist/assets/{flowDiagram-HODETNUW-BtoMTdyT.js → flowDiagram-HODETNUW-CliTRrtV.js} +1 -1
  59. package/web-dist/assets/{ganttDiagram-EL5Y4UJY-CbOAa3vS.js → ganttDiagram-EL5Y4UJY-DCRd-Ss4.js} +1 -1
  60. package/web-dist/assets/{gitGraphDiagram-WWUBYQGX-B7-8sszH.js → gitGraphDiagram-WWUBYQGX-CTz13GjS.js} +1 -1
  61. package/web-dist/assets/highlighter-BScH1Ud3.js +2 -0
  62. package/web-dist/assets/{highlighter-core-CMXoD8ze.js → highlighter-core-DKz8Z6-I.js} +1 -1
  63. package/web-dist/assets/{highlighter.worker-D6D9fPma.js → highlighter.worker-CKF6ok1g.js} +1 -1
  64. package/web-dist/assets/index-BUvJ5Ctt.js +1299 -0
  65. package/web-dist/assets/index-DRj7nvPY.css +1 -0
  66. package/web-dist/assets/{infoDiagram-27XIBGKW-BBjf6pkP.js → infoDiagram-27XIBGKW-DNfTEPAV.js} +1 -1
  67. package/web-dist/assets/{ishikawaDiagram-5VMMS53U-BBSvCv45.js → ishikawaDiagram-5VMMS53U-B7aCjjG1.js} +1 -1
  68. package/web-dist/assets/{journeyDiagram-3NMN7TZE-CuHHl5zk.js → journeyDiagram-3NMN7TZE-COmDALVr.js} +1 -1
  69. package/web-dist/assets/{kanban-definition-UXKFOSKX-DJyP4Myw.js → kanban-definition-UXKFOSKX-BzUfPINh.js} +1 -1
  70. package/web-dist/assets/{layout-Bqqhdwtt.js → layout-BwzuPU4M.js} +1 -1
  71. package/web-dist/assets/{linear-BZfUSIf8.js → linear-WPZTYjz3.js} +1 -1
  72. package/web-dist/assets/mermaid.core-zKzlwpkw.js +310 -0
  73. package/web-dist/assets/{mindmap-definition-YA3MSWOX-BtyMD4wz.js → mindmap-definition-YA3MSWOX-DCRg7eAx.js} +1 -1
  74. package/web-dist/assets/{pegDiagram-XKGWAZYB-BUF_GJ0B.js → pegDiagram-XKGWAZYB-DyphzDLU.js} +1 -1
  75. package/web-dist/assets/{pieDiagram-E7YTZNPT-nweubbsU.js → pieDiagram-E7YTZNPT-BI5DueGA.js} +1 -1
  76. package/web-dist/assets/powershell-DXrKVo3G.js +1 -0
  77. package/web-dist/assets/powershell-Dpen1YoG.js +1 -0
  78. package/web-dist/assets/{quadrantDiagram-AXDQQJYC-B_r4Wkxy.js → quadrantDiagram-AXDQQJYC-GZxSMY2Z.js} +1 -1
  79. package/web-dist/assets/{railroadDiagram-O6MQD6OU-Dn7nm0MX.js → railroadDiagram-O6MQD6OU-DEFCigBf.js} +1 -1
  80. package/web-dist/assets/{requirementDiagram-BXWQKSXE-DaagYJ49.js → requirementDiagram-BXWQKSXE-Br0thc4j.js} +1 -1
  81. package/web-dist/assets/{sankeyDiagram-P5KCCOFB-CqEX6H-B.js → sankeyDiagram-P5KCCOFB-DYf0pY67.js} +1 -1
  82. package/web-dist/assets/{sequenceDiagram-WJ2MYXX4-BzLfQO55.js → sequenceDiagram-WJ2MYXX4-1EFMboX4.js} +1 -1
  83. package/web-dist/assets/{sizeCapture-INFHLROL-BcUuVH2L.js → sizeCapture-INFHLROL-BuOFv-5q.js} +1 -1
  84. package/web-dist/assets/{stateDiagram-D77RDMKH-BO3LWLvT.js → stateDiagram-D77RDMKH-Bg3H1tjX.js} +1 -1
  85. package/web-dist/assets/stateDiagram-v2-MP3YSRHH-DfaDaPAd.js +1 -0
  86. package/web-dist/assets/{swimlanes-42K2YHIH-etP_hkIB.js → swimlanes-42K2YHIH-BuOa6Osb.js} +1 -1
  87. package/web-dist/assets/swimlanesDiagram-VR7AAH4N-BopAC7b8.js +8 -0
  88. package/web-dist/assets/{timeline-definition-24CTP7MA-CTLt2XCT.js → timeline-definition-24CTP7MA-BDekfdDT.js} +1 -1
  89. package/web-dist/assets/{vennDiagram-4TSXK5OY-DPO6ZSvH.js → vennDiagram-4TSXK5OY-DnC09UI4.js} +1 -1
  90. package/web-dist/assets/{wardleyDiagram-VM6X3IG4-DFofGg8b.js → wardleyDiagram-VM6X3IG4-BXKvxuZQ.js} +1 -1
  91. package/web-dist/assets/{xterm-RdyTuaAH.js → xterm-oY4DYg5s.js} +1 -1
  92. package/web-dist/assets/{xychartDiagram-S5SC5T6Z-Bgtb34Gu.js → xychartDiagram-S5SC5T6Z-DdDC1VLb.js} +1 -1
  93. package/web-dist/index.html +6 -5
  94. package/dist/chunk-3SFJKLQU.js.map +0 -1
  95. package/dist/chunk-HMTT2PX4.js.map +0 -1
  96. package/dist/chunk-LPPVGHYD.js.map +0 -1
  97. package/dist/chunk-W7JNIJ25.js +0 -19
  98. package/dist/chunk-W7JNIJ25.js.map +0 -1
  99. package/web-dist/assets/channel-mfsAVJLE.js +0 -1
  100. package/web-dist/assets/classDiagram-ZZMXUADV-BPVO1m8i.js +0 -1
  101. package/web-dist/assets/classDiagram-v2-VYDZK3BY-BPVO1m8i.js +0 -1
  102. package/web-dist/assets/highlighter-Bj5l2XH_.js +0 -2
  103. package/web-dist/assets/index-BOCqRT4e.css +0 -1
  104. package/web-dist/assets/index-BrMpjp2s.js +0 -1286
  105. package/web-dist/assets/mermaid.core-BlUspEsI.js +0 -310
  106. package/web-dist/assets/stateDiagram-v2-MP3YSRHH-B-EuucjM.js +0 -1
  107. package/web-dist/assets/swimlanesDiagram-VR7AAH4N-0JbFdDbQ.js +0 -8
  108. /package/dist/{chunk-QFV3ERQO.js.map → chunk-OQZDL3TR.js.map} +0 -0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @prismshadow/penguin-server
2
2
 
3
- The PenguinHarness Web backend — the Web implementation of the SDK's Human boundary. HTTP carries Prompt input, approvals and interrupts; Server-Sent Events stream the OmniMessage output. Adds multi-user auth, Project authorization, Session runtime, scheduling and usage accounting on top of `@prismshadow/penguin-core`.
3
+ The PenguinHarness Web backend — the Web implementation of the SDK's Human boundary. HTTP carries Prompt input, approvals and interrupts; Server-Sent Events stream the output as AMSP records. Adds multi-user auth, Project authorization, Session runtime, scheduling and usage accounting on top of `@prismshadow/penguin-core`.
4
4
 
5
5
  ## Architecture
6
6
 
@@ -1,5 +1,5 @@
1
- import { SessionSource, OmniMessage, ToolCallPayload, CompactionMode } from '@prismshadow/penguin-core/omnimessage';
2
- export { SessionSource } from '@prismshadow/penguin-core/omnimessage';
1
+ import { SessionSource, AmspRecord, ToolCallPayload, CompactionMode } from '@prismshadow/amsp';
2
+ export { SessionSource } from '@prismshadow/amsp';
3
3
  import { ThinkingLevelName, ToolDefinitionConfig, MCPServerConfig } from '@prismshadow/penguin-core/interfaces';
4
4
  import { HarnessHistory, VersionReport } from '@prismshadow/penguin-core';
5
5
  export { HarnessHistoryEntry, IfacesSummary } from '@prismshadow/penguin-core';
@@ -97,11 +97,11 @@ interface WorkbenchVersion {
97
97
  * frontend SPA (single source of truth).
98
98
  *
99
99
  * These field definitions are authoritative for the Web API contract. Conventions:
100
- * - DTO fields use camelCase; OmniMessage keeps the core protocol as-is (snake_case shell),
100
+ * - DTO fields use camelCase; an AMSP record keeps its own shape as-is (snake_case envelope),
101
101
  * no conversion;
102
102
  * - This file holds only types, no implementation; exposed to the frontend via package
103
103
  * exports `"./api"` for type-only import;
104
- * - Types are taken only from core's pure subpaths (omnimessage / interfaces), so the
104
+ * - Types are taken only from `@prismshadow/amsp` and core's pure `interfaces` subpath, so the
105
105
  * frontend can safely reference them.
106
106
  *
107
107
  * Docs: packages/docs/content/server-api.{zh,en}.md (site path /docs/server-api) is the
@@ -455,6 +455,13 @@ interface UiPrefs {
455
455
  * shallow, so this whole map is one field.
456
456
  */
457
457
  todoDismissed?: Record<string, Record<string, string>>;
458
+ /**
459
+ * Notices the user closed, by notice id (a machine's model keys only this server's environment
460
+ * holds: `machine-env-only:<machine id>`), each the SIGNATURE of what it named when closed — its
461
+ * items sorted, one per line — so it comes back when a new item appears (web's
462
+ * `lib/notice-dismissals.ts`). Replaced whole on every write, like `todoDismissed`.
463
+ */
464
+ noticesDismissed?: Record<string, string>;
458
465
  /**
459
466
  * The draft screen's user-defined shortcuts, in display order. Replaced whole on every write
460
467
  * (the merge is shallow, so the array is one field like any other) and bounded on write by
@@ -577,7 +584,11 @@ interface ModelEffectiveConnection {
577
584
  baseUrlSource: ConnectionSourceDto;
578
585
  clientType?: string;
579
586
  clientTypeSource: ConnectionSourceDto;
580
- /** `env` = no row or group key, and the environment lends one on the effective endpoint (modelEnvFallback). */
587
+ /**
588
+ * `env` = no key in the file, and MMSP's routed client reads its own variable for the row's
589
+ * endpoint (no base URL, or the client's default endpoint) — reported when that variable
590
+ * holds a value here (`envKeyMasked`), `none` otherwise.
591
+ */
581
592
  apiKeySource: "model" | "provider" | "env" | "none";
582
593
  /** Mask of the key the row would use, whichever source; absent when none. */
583
594
  apiKeyMasked?: string;
@@ -631,21 +642,18 @@ interface ModelInfo {
631
642
  discount?: number;
632
643
  /**
633
644
  * Environment variable name the entry falls back to when api_key is empty (e.g.
634
- * ANTHROPIC_API_KEY); unset when it gets no fallback — an id nothing routes, or an entry
635
- * whose base URL is not the vendor's own official endpoint (a gateway preset, a custom /
636
- * vLLM / user-created row with its own endpoint, a vendor row re-pointed at a proxy).
645
+ * ANTHROPIC_API_KEY): only for a row with no key in the file whose routed MMSP client reads
646
+ * that variable for its endpoint — no base URL on the row or its group, or the client's own
647
+ * default endpoint. Unset for a row with a key (its own or a group key that reaches it), a row
648
+ * sent to any other base URL (a gateway, Penguin Go, ModelScope, a vendor's second host or a
649
+ * proxy), or an id nothing routes.
637
650
  */
638
651
  envKey?: string;
639
652
  /**
640
653
  * Masked preview (same rule as `credential.apiKeyMasked`) of the value the server process
641
- * currently holds for `envKey` — the plaintext is never serialized. Reported only where the
642
- * fallback may be presented as covering the entry (core's modelEnvPreviewKey): a row whose
643
- * effective base URL is a vendor endpoint (or the Penguin Go relay), or a row with no base URL
644
- * in a built-in group other than custom, on the client its id's family names. Gateway rows
645
- * never carry it, and neither do custom / vLLM / user-defined rows with no base URL,
646
- * although those do fall back. Absent = the variable is unset or empty, or the entry is not
647
- * previewable. Computed on the effective shape, and only when no row or group key reaches
648
- * the row.
654
+ * currently holds for `envKey` — the plaintext is never serialized. Absent = the variable is
655
+ * unset or empty, or the entry gets no fallback. Reported only when no row or group key
656
+ * reaches the row.
649
657
  */
650
658
  envKeyMasked?: string;
651
659
  /** The row's OWN key (masked) and base URL — overrides of its group's; see `effective`. */
@@ -951,17 +959,17 @@ interface ModelBalanceAmount {
951
959
  /**
952
960
  * Why a group's balance could not be read:
953
961
  * - `unsupported`: the group publishes no balance endpoint (no `balance` descriptor in the catalog);
954
- * - `no_key`: the group has no API key to ask with — none stored, and no environment variable
955
- * the credential rule lends its rows for the balance endpoint's host;
962
+ * - `no_key`: the group has no API key to ask with — none stored, and no vendor variable that
963
+ * MMSP's vendor client reads for the group's base URL;
956
964
  * - `upstream_failed`: the vendor could not be reached in time, refused the request, or answered
957
965
  * without a readable balance.
958
966
  */
959
967
  type ModelBalanceErrorCode = "unsupported" | "no_key" | "upstream_failed";
960
968
  /**
961
969
  * GET /api/projects/:p/models/balance?provider=<group>[&force=1] (Project member): the account
962
- * balance behind the group's API key — the stored one, or else the environment key its rows
963
- * fall back to under the credential rule (DeepSeek's DEEPSEEK_API_KEY) — read server-side from
964
- * the endpoint the catalog's `balance` descriptor names. The key never reaches the browser, and
970
+ * balance behind the group's API key — the stored one, or else the environment key MMSP's
971
+ * vendor client reads for the group's base URL (DeepSeek's DEEPSEEK_API_KEY) — read server-side
972
+ * from the endpoint the catalog's `balance` descriptor names. The key never reaches the browser, and
965
973
  * neither does the vendor's own text. Like the connectivity test, a balance that cannot be read is an answer
966
974
  * (`ok: false` with a code), not a failed request. Readings and vendor failures are cached for
967
975
  * 60 s per Project and group, for as long as the group's key is the same; `force=1` skips the
@@ -992,7 +1000,8 @@ interface ModelBalanceFailure {
992
1000
  /**
993
1001
  * How the authorization code travels back. `callback` sends the browser to a harness URL
994
1002
  * the provider redirects to; `manual` asks the provider for a one-time code the user copies
995
- * back by hand, for the case where that redirect cannot reach the harness.
1003
+ * back by hand, for the case where that redirect cannot reach the harness — or where the
1004
+ * provider would refuse it: only an HTTPS or loopback HTTP origin can be redirected to.
996
1005
  */
997
1006
  type ModelOAuthMode = "callback" | "manual";
998
1007
  /**
@@ -1003,13 +1012,19 @@ type ModelOAuthMode = "callback" | "manual";
1003
1012
  interface ModelOAuthStartRequest {
1004
1013
  /** Provider group id (must be a catalog group that publishes a key-minting flow). */
1005
1014
  provider: string;
1006
- /** Defaults to `callback`. */
1015
+ /** Defaults to `callback`; the response says which mode the flow was opened in. */
1007
1016
  mode?: ModelOAuthMode;
1008
1017
  }
1009
1018
  /** The opaque flow handle plus the page to send the user to. No secret of the flow's is included. */
1010
1019
  interface ModelOAuthStartResponse {
1011
1020
  flowId: string;
1012
1021
  authorizeUrl: string;
1022
+ /**
1023
+ * The mode the flow was opened in: `manual` for a `callback` request when the origin the
1024
+ * request reached this server on is neither HTTPS nor loopback HTTP, which the provider's
1025
+ * authorization page refuses as a callback.
1026
+ */
1027
+ mode: ModelOAuthMode;
1013
1028
  }
1014
1029
  /** Why a flow failed, as a code the frontend phrases; never carries a code, a verifier or a key. */
1015
1030
  type ModelOAuthErrorCode = "invalid_request" | "code_rejected" | "upstream_failed" | "unreachable" | "apply_failed";
@@ -1178,7 +1193,7 @@ interface AgentSummary {
1178
1193
  kernelOutdated: boolean;
1179
1194
  /** Vault key count (number of keys in agent_state/.vault.toml). */
1180
1195
  vaultKeyCount: number;
1181
- /** Schedule count (number of .toml files under agent_state/schedule/, including invalid ones). */
1196
+ /** Schedule count (number of .toml files directly under agent_state/schedule/, including invalid ones; archived files under schedule/expired/ are not counted). */
1182
1197
  scheduleCount: number;
1183
1198
  /** Workbench folders with a manifest, including ones with a load error. */
1184
1199
  workbenchCount: number;
@@ -1883,7 +1898,7 @@ interface ArchivedSessionsQuery {
1883
1898
  /** One Project the user can open (404 `project_not_found` otherwise); absent = every Project they own or are a member of. */
1884
1899
  projectId?: string;
1885
1900
  }
1886
- /** One group of the archive page: one Workspace of one Project. */
1901
+ /** One group of the archive page: one Workspace of one Project, on this server or on one machine. */
1887
1902
  interface ArchivedSessionGroup {
1888
1903
  projectId: string;
1889
1904
  projectName: string;
@@ -1893,6 +1908,12 @@ interface ArchivedSessionGroup {
1893
1908
  count: number;
1894
1909
  /** The newest `lastActiveAt` in the group — the order the groups come in, newest first. */
1895
1910
  latest: string;
1911
+ /** The machine the group's Sessions live on (its own id); absent on this server's groups. */
1912
+ machineId?: string;
1913
+ /** That machine's ssh alias, for the group's header. */
1914
+ machineAlias?: string;
1915
+ /** That machine's own time when it counted the group: a batch on the whole group passes it as `until`. */
1916
+ asOf?: string;
1896
1917
  }
1897
1918
  /** GET /api/me/archived-sessions/groups. */
1898
1919
  interface ArchivedSessionGroupsResponse {
@@ -1904,6 +1925,11 @@ interface ArchivedSessionGroupsResponse {
1904
1925
  * filter's `until`, so it acts on the Sessions the count saw and on none that came after.
1905
1926
  */
1906
1927
  asOf: string;
1928
+ /** Machines the user's Projects use whose archive could not be read (not connected, or no answer). */
1929
+ unreachable?: Array<{
1930
+ machineId: string;
1931
+ alias: string;
1932
+ }>;
1907
1933
  }
1908
1934
  /** Query of GET /api/me/archived-sessions: one group's page, newest activity first. */
1909
1935
  interface ArchivedSessionsRowsQuery extends ArchivedSessionsQuery {
@@ -1914,6 +1940,8 @@ interface ArchivedSessionsRowsQuery extends ArchivedSessionsQuery {
1914
1940
  limit: number;
1915
1941
  /** `<lastActiveAt>,<sessionId>` of the last row held, as the Session list's cursor. */
1916
1942
  before?: string;
1943
+ /** The group's machine (`ArchivedSessionGroup.machineId`): the page is read from it. */
1944
+ machineId?: string;
1917
1945
  }
1918
1946
  /** GET /api/me/archived-sessions. */
1919
1947
  interface ArchivedSessionsResponse {
@@ -1921,11 +1949,16 @@ interface ArchivedSessionsResponse {
1921
1949
  sessions: SessionInfo[];
1922
1950
  hasMore: boolean;
1923
1951
  }
1924
- /** What an archive-page batch acts on: explicit ids (1–500), or every archived row a filter matches. */
1925
- type ArchivedSessionsBatch = {
1952
+ /**
1953
+ * What an archive-page batch acts on: explicit ids (1–500), or every archived row a filter
1954
+ * matches — on this server, or with `machineId` on that machine (the filter then names its Project).
1955
+ */
1956
+ type ArchivedSessionsBatch = ({
1926
1957
  sessionIds: string[];
1927
1958
  } | {
1928
1959
  filter: ArchivedSessionsBatchFilter;
1960
+ }) & {
1961
+ machineId?: string;
1929
1962
  };
1930
1963
  /** A batch's filter: the archive query, one group's Workspace, and the snapshot it was counted at. */
1931
1964
  interface ArchivedSessionsBatchFilter extends ArchivedSessionsQuery {
@@ -2103,7 +2136,7 @@ interface TracePosition {
2103
2136
  ordinal: number;
2104
2137
  }
2105
2138
  /** History-only transport metadata; `tracePosition` is never persisted into Trace JSONL. */
2106
- type HistoryMessage = OmniMessage & {
2139
+ type HistoryMessage = AmspRecord & {
2107
2140
  tracePosition?: TracePosition;
2108
2141
  };
2109
2142
  interface SessionForkRequest {
@@ -2149,7 +2182,7 @@ interface SessionPatchRequest {
2149
2182
  * - `cursor`: the Session channel's most recently assigned SSE event id
2150
2183
  * (`<epoch>-<seq>`); every event published up to and including this id is already
2151
2184
  * reflected in `fragments`.
2152
- * - `fragments`: one synthetic `partial_* start` OmniMessage per open streaming
2185
+ * - `fragments`: one synthetic `partial_* start` AmspRecord per open streaming
2153
2186
  * fragment, whose payload carries the full accumulated content so far (text/thinking
2154
2187
  * prefix, tool-call name + accumulated arguments, tool-output prefix + images), with
2155
2188
  * the original `origin` chain preserved.
@@ -2164,7 +2197,7 @@ interface SessionPatchRequest {
2164
2197
  */
2165
2198
  interface MessagesLiveTail {
2166
2199
  cursor: string;
2167
- fragments: OmniMessage[];
2200
+ fragments: AmspRecord[];
2168
2201
  }
2169
2202
  /**
2170
2203
  * Pagination envelope of a windowed `GET /messages` (`tailLimit` / `before` requests
@@ -2994,6 +3027,50 @@ interface WeChatScanVerifyRequest {
2994
3027
  interface MessagingTestMessageResponse {
2995
3028
  ok: true;
2996
3029
  }
3030
+ /**
3031
+ * One bot account a server has enabled: the channel and its account id (Feishu `app_id`,
3032
+ * Telegram bot id, QQ App ID, WeChat bot id), which is public by design. Never a Session,
3033
+ * never a secret.
3034
+ */
3035
+ interface MessagingAccount {
3036
+ channel: MessagingChannel;
3037
+ accountId: string;
3038
+ }
3039
+ /**
3040
+ * GET /api/messaging/accounts (admin only) — every bot account this server has enabled,
3041
+ * across all its Projects. A server that connects machines asks each of them this when a
3042
+ * bot is about to be turned on, so that one account is enabled on one server at a time.
3043
+ */
3044
+ interface MessagingAccountsResponse {
3045
+ accounts: MessagingAccount[];
3046
+ }
3047
+ /** A server that has the asked-about bot enabled: a machine by id and alias, or this server (both null). */
3048
+ interface MessagingAccountHolder {
3049
+ machineId: string | null;
3050
+ alias: string | null;
3051
+ }
3052
+ /**
3053
+ * Why a machine could not be asked: no connection to it, a build without the accounts
3054
+ * route (it answered 404), or any other failed answer.
3055
+ */
3056
+ type MessagingUnreachableReason = "not_connected" | "older_build" | "failed";
3057
+ /** A machine of the Project that could not be asked whether it holds the bot. */
3058
+ interface MessagingUnreachableMachine {
3059
+ machineId: string;
3060
+ alias: string;
3061
+ reason: MessagingUnreachableReason;
3062
+ }
3063
+ /**
3064
+ * GET /api/projects/:projectId/messaging/account-holders?channel=&accountId= — which servers
3065
+ * have this bot enabled: this server, and each machine the Project uses that could be asked.
3066
+ * Machines that could not be asked are listed apart; the caller decides what to do about
3067
+ * them. Never names a Session. A caller who is not an admin is answered for this server
3068
+ * only, because machines are admins' (both lists then hold no machine).
3069
+ */
3070
+ interface MessagingAccountHoldersResponse {
3071
+ holders: MessagingAccountHolder[];
3072
+ unreachable: MessagingUnreachableMachine[];
3073
+ }
2997
3074
  /** Docs: /docs/server-api § "Streaming (SSE)". */
2998
3075
  type ServerEvent =
2999
3076
  /**
@@ -3002,7 +3079,7 @@ type ServerEvent =
3002
3079
  */
3003
3080
  {
3004
3081
  type: "approval_request";
3005
- toolCall: OmniMessage<ToolCallPayload>;
3082
+ toolCall: AmspRecord<ToolCallPayload>;
3006
3083
  origin?: string[];
3007
3084
  }
3008
3085
  /** Session run status flip (for toggling the input area and list); `queued` = queued follow-up count (see TaskCreateRequest.queueIfBusy). */
@@ -3110,6 +3187,17 @@ type ServerEvent =
3110
3187
  | {
3111
3188
  type: "hello";
3112
3189
  }
3190
+ /**
3191
+ * The stream's own beat, written by the endpoint's SSE writer every 20 seconds (http/sse.ts)
3192
+ * on `/api/events`, and by the hub on a machine's aggregate stream. The socket's ping and the
3193
+ * `: ping` comment line are invisible to a stream's consumer, so without this a stream that
3194
+ * stopped while its socket stayed healthy would look alive forever: the hub
3195
+ * (machines/event-hub.ts) and the browser (web api/socket.ts) each end a stream that misses
3196
+ * two beats and re-issue it with its last event id.
3197
+ */
3198
+ | {
3199
+ type: "heartbeat";
3200
+ }
3113
3201
  /** The served web assets were hot-swapped by a platform upgrade: clients reload to pick them up. */
3114
3202
  | {
3115
3203
  type: "web_updated";
@@ -3150,7 +3238,7 @@ type ServerEvent =
3150
3238
  projectId: string;
3151
3239
  } | ScheduleServerEvent | GoalServerEvent | CompanyServerEvent | BuiltinBrowserServerEvent | MachineServerEvent;
3152
3240
  /**
3153
- * The machines' two events on the user channel, published to admins only — the Machines page,
3241
+ * The machines' events on the user channel, published to admins only — the Machines page,
3154
3242
  * and the `/server/<id>` proxy everything else about a machine goes through, are admin-only.
3155
3243
  */
3156
3244
  type MachineServerEvent =
@@ -3165,11 +3253,13 @@ type MachineServerEvent =
3165
3253
  type: "machines_changed";
3166
3254
  }
3167
3255
  /**
3168
- * One of a connected machine's own user-channel events, relayed by this server from that
3169
- * machine's `GET /api/events` (machines/event-relay.ts). The page holds one event stream to
3170
- * this server whatever the number of machines: a stream per machine made five connected
3171
- * machines take the browser's whole HTTP/1.1 allowance of six connections to one origin, and
3172
- * every other request of the page then waited behind them for good.
3256
+ * One of a connected machine's own user-channel events, tagged with the machine it came
3257
+ * from. They ride the machines aggregate (event-hub.ts, `GET …/machines/events`) — ONE
3258
+ * stream for every connected machine, whose per-machine frames have this same shape; the
3259
+ * page that re-publishes them on its own channel wraps them this way too. One stream, not
3260
+ * a stream per machine: five of those once took the browser's whole HTTP/1.1 allowance of
3261
+ * six connections to one origin, and every other request of the page then waited behind
3262
+ * them for good.
3173
3263
  */
3174
3264
  | {
3175
3265
  type: "machine_event";
@@ -3311,7 +3401,7 @@ interface SessionContextResponse extends SessionContextParts {
3311
3401
  compactionThreshold: number | null;
3312
3402
  }
3313
3403
  interface TraceEventsResponse {
3314
- events: OmniMessage[];
3404
+ events: AmspRecord[];
3315
3405
  offset: number;
3316
3406
  limit: number;
3317
3407
  /**
@@ -3340,6 +3430,11 @@ interface RequestSpan {
3340
3430
  approvalWaitMs?: number;
3341
3431
  /** LLM generation duration = durationMs − approvalWaitMs (≥ 0): only this can be used as the TPS denominator, not durationMs. */
3342
3432
  activeMs?: number;
3433
+ /**
3434
+ * The thinking level this request went out at, as its `request_begin` records it. Absent
3435
+ * when no level was sent, and on Traces written before the field — unknown, not a level.
3436
+ */
3437
+ thinkingLevel?: string;
3343
3438
  }
3344
3439
  /**
3345
3440
  * Per-Task Token / duration figures (aggregated server-side over the **entire** Trace file,
@@ -3369,6 +3464,14 @@ interface TraceTaskStats {
3369
3464
  * mode; treat an absent value as `summarize`, which is what the badge said before the split.
3370
3465
  */
3371
3466
  compactionMode?: CompactionMode;
3467
+ /**
3468
+ * A short label for the round navigator: the first non-empty line of the user text that
3469
+ * started this turn, with harness marker blocks and attachment lines removed, whitespace
3470
+ * collapsed, at most 120 characters (the view truncates it further to fit). Absent when no
3471
+ * user text started the turn — a summarize compaction turn, an image-only send — or none of
3472
+ * its lines is left (only attachment lines).
3473
+ */
3474
+ prompt?: string;
3372
3475
  /**
3373
3476
  * This turn's message index range within the **entire file** (inclusive). A single
3374
3477
  * sequential scan on the server tells which turn each message belongs to; the frontend
@@ -3455,7 +3558,8 @@ interface ToolCallSpan {
3455
3558
  startTs: string;
3456
3559
  endTs?: string;
3457
3560
  durationMs?: number;
3458
- stopReason?: string;
3561
+ /** The paired tool_call_output's `status` (completed / aborted / fatal); absent while the call has no output. */
3562
+ status?: string;
3459
3563
  }
3460
3564
  /** Workspace file entry (Files tab). */
3461
3565
  interface WorkspaceFileEntry {
@@ -3577,7 +3681,8 @@ interface TraceToolSpan {
3577
3681
  approvalTs?: string;
3578
3682
  decision?: string;
3579
3683
  outputTs?: string;
3580
- stopReason?: string;
3684
+ /** The tool_call_output's `status` (completed / aborted / fatal); absent while unclosed. */
3685
+ status?: string;
3581
3686
  /** The Task that initiated this tool (grouped with its tool_call segment): async output belongs to this Task even if it arrives after request_end. */
3582
3687
  taskIndex: number;
3583
3688
  }
@@ -3950,7 +4055,11 @@ interface UsageResponse {
3950
4055
  /** List of Model paired references that have appeared in this Project (for the filter dropdown). */
3951
4056
  models: ModelRefDto[];
3952
4057
  }
3953
- /** Display-facing schedule status: the file's `enabled` only expresses intent; the rest is derived from runtime state. */
4058
+ /**
4059
+ * Display-facing schedule status: the file's `enabled` only expresses intent; the rest is derived from runtime state.
4060
+ * The scheduler archives an agent's settled tasks (done / missed / expired) into `schedule/expired/`, so the agent
4061
+ * listings show those three only while a queued fire is still to be sent or when the move failed.
4062
+ */
3954
4063
  type ScheduleStatus = "active" | "disabled" | "expired" | "done" | "missed" | "invalid";
3955
4064
  interface ScheduleItem {
3956
4065
  /** Filename (without .toml) is the identifier. */
@@ -4673,6 +4782,24 @@ interface DesktopTrayCommandMessage {
4673
4782
  showTrayIcon?: boolean;
4674
4783
  locale?: DesktopTrayLocale;
4675
4784
  }
4785
+ /**
4786
+ * The API socket (PRFC-0011): one WebSocket per tab, every frame a call to an existing
4787
+ * endpoint. It has its own upgrade route, {@link API_SOCKET_PATH}: the runtime's websocket
4788
+ * seam authenticates the cookie and the Origin there and hands the socket to the platform,
4789
+ * which serves the protocol as the signed-in user (server: socket/ref.ts). Shared so the Web
4790
+ * App and anything else that speaks to another server spell the address the same way.
4791
+ */
4792
+ declare const API_SOCKET_PATH = "/api/socket";
4793
+ /**
4794
+ * Paths whose answer depends on the KIND of session behind the request — the desktop shell's
4795
+ * own window (`sessionVia === "desktop"`: its update, tray and privacy relays, folder access,
4796
+ * revealing a file) or a first-login link (a password change without the old password). The
4797
+ * socket's handshake does not say how the cookie behind it was minted, so these are made over
4798
+ * HTTP: the socket answers them 421 `not_on_socket` and the Web App never sends them there.
4799
+ */
4800
+ declare function sessionKindPath(pathname: string): boolean;
4801
+ /** The API socket's address. No id is involved: the handshake's cookie names the user. */
4802
+ declare function apiSocketPath(): string;
4676
4803
  /** What the shell's read of one folder came to. */
4677
4804
  interface DesktopFolderAccessResult {
4678
4805
  /** The folder could be read. Always true off macOS, where the shell reads nothing. */
@@ -4763,6 +4890,34 @@ interface RestartResponse {
4763
4890
  restarting: boolean;
4764
4891
  reason?: "no_supervisor";
4765
4892
  }
4893
+ /**
4894
+ * What the API socket this server holds to one machine is doing (machines/machine-sockets.ts) —
4895
+ * the fact behind `MachineInfo.socket`. `since` is the instant the state was entered, so the
4896
+ * Machines page can say how long a machine has been dialling, failing or connected instead of
4897
+ * sending someone to the browser console for it.
4898
+ */
4899
+ interface MachineSocketFact {
4900
+ /**
4901
+ * `connected` once the handshake completed, `dialling` while a dial is outstanding, `refused`
4902
+ * when the machine answered the handshake with a status (a program predating the socket), and
4903
+ * `failed` when the dial did not complete or a socket that was up closed.
4904
+ */
4905
+ state: "connected" | "dialling" | "refused" | "failed";
4906
+ /** When that state was entered (ISO). */
4907
+ since: string;
4908
+ /** The transport's own words where there are any: a refusal's status, a dial's error. */
4909
+ detail?: string;
4910
+ }
4911
+ /**
4912
+ * One machine's event, as the machines aggregate stream carries it
4913
+ * (`GET /api/projects/:projectId/machines/events`): the machine's own `ServerEvent`, with the
4914
+ * machine it came from — one stream carries many machines, and the tag is what keeps their
4915
+ * events apart (docs: /docs/server-api § "One event stream per machine").
4916
+ */
4917
+ interface MachineEvent {
4918
+ machineId: string;
4919
+ event: ServerEvent;
4920
+ }
4766
4921
  /** One `Host` entry of the server's `~/.ssh/config`, as the Machines page lists it. */
4767
4922
  interface MachineInfo {
4768
4923
  /** `ssh:<alias>` — the id the install route is asked for. */
@@ -4848,6 +5003,15 @@ interface MachineInfo {
4848
5003
  * here, one that never got as far as a connection.
4849
5004
  */
4850
5005
  keepConnected?: true;
5006
+ /**
5007
+ * The API socket this server holds to that machine — connected, dialling, refused or failed,
5008
+ * and since when (machines/machine-sockets.ts). Null for `local`, and until a stream has
5009
+ * asked for a socket at all. A fact about one process on THIS side, like `connection` and
5010
+ * for the same reason: it says the socket exists and what it is doing, never that the far
5011
+ * side is answering. The Machines page reads it so a stuck stream does not have to be found
5012
+ * in the browser console.
5013
+ */
5014
+ socket: MachineSocketFact | null;
4851
5015
  /**
4852
5016
  * The machine's API as last seen by this server's proxy — stamped by traffic passing
4853
5017
  * through, never by a probe of its own. `answeredAt` when the last forwarded request got
@@ -4917,6 +5081,12 @@ interface MachineSkippedModel {
4917
5081
  /** The far side's error code (`model_not_addable`, `model_not_routable`). */
4918
5082
  code: string;
4919
5083
  reason: string;
5084
+ /**
5085
+ * The entry is one of this server's built-in models for its group, which the machine refused
5086
+ * as not addable: the machine's build does not list it yet, so updating the machine, then
5087
+ * syncing again, carries it. Absent for any other refusal.
5088
+ */
5089
+ builtInHere?: true;
4920
5090
  }
4921
5091
  /** A model entry that takes `variable` from this server's environment. */
4922
5092
  interface MachineEnvOnly {
@@ -4927,17 +5097,28 @@ interface MachineEnvOnly {
4927
5097
  }
4928
5098
  /**
4929
5099
  * A machine this server keeps connected, while it is being brought back. Attempts back off
4930
- * from 5 s, doubling to a 5-minute cap, so a machine that is down for a day costs a probe every
4931
- * five minutes; after three failures in a row the connection check runs on its own, and its
4932
- * answer is what the page shows as the explanation.
5100
+ * from 5 s, doubling to a 5-minute cap, and stop after `maxAttempts` failures in a row (about a
5101
+ * quarter of an hour) — or after the first, when ssh refused in a way no retry fixes — until a
5102
+ * person asks for a Retry (`POST …/machines/:machineId/reconnect`). After three failures in a
5103
+ * row the connection check runs on its own, and its answer is what the page shows as the
5104
+ * explanation.
4933
5105
  */
4934
5106
  interface MachineReconnect {
4935
- /** When this streak began: the moment the machine was found not connected. */
5107
+ /** When this streak began: the moment the machine was found not connected, or the Retry that began it again. */
4936
5108
  since: string;
4937
5109
  /** Attempts that failed in this streak; 0 while the first is still to run or running. */
4938
5110
  attempts: number;
4939
- /** When the next attempt runs; null while one is running. */
5111
+ /** How many failures in a row end the streak: the page says "attempt n of this". */
5112
+ maxAttempts: number;
5113
+ /** When the next attempt runs; null while one is running, and once the streak stopped. */
4940
5114
  nextAt: string | null;
5115
+ /**
5116
+ * The streak stopped, and nothing runs until a person asks for a Retry, which begins a new
5117
+ * one: `attempts` — `maxAttempts` failed in a row; `ssh` — ssh refused in a way retrying
5118
+ * cannot fix (a host key unknown or changed, an unusable key file, a key refused, a broken
5119
+ * ssh config), said by `sshReason`.
5120
+ */
5121
+ gaveUp?: "attempts" | "ssh";
4941
5122
  /** The last attempt's failure in the far side's words; null before the first one fails. */
4942
5123
  lastError: string | null;
4943
5124
  /** Why ssh refused, when the last failure was ssh's own — for the page to say in its language. */
@@ -5979,6 +6160,11 @@ interface OrgHandbookFile {
5979
6160
  updatedAt: string;
5980
6161
  }
5981
6162
  interface OrgHandbookFilesResponse {
6163
+ /**
6164
+ * The handbook directory's absolute path on this server: the Web App browses it with the Files
6165
+ * panel's own directory-addressed routes, which take the same Project access these do.
6166
+ */
6167
+ dir: string;
5982
6168
  /** The index first, then the other documents by path. */
5983
6169
  files: OrgHandbookFile[];
5984
6170
  }
@@ -6931,4 +7117,4 @@ interface DesktopBrowserEventMessage {
6931
7117
  event: DesktopBrowserEvent;
6932
7118
  }
6933
7119
 
6934
- export { type AdminPasswordResetRequest, type AdminUserCreateRequest, type AdminUserCreateResponse, type AdminUsersResponse, type AgentApiKeyCreateRequest, type AgentApiKeyCreateResponse, type AgentApiKeyInfo, type AgentApiResponse, type AgentApiSettings, type AgentApiUpdateRequest, type AgentCompactionConfigDto, type AgentConfigDto, type AgentConfigResponse, type AgentConfigUpdateRequest, type AgentCreateRequest, type AgentCreateResponse, type AgentHooksConfigDto, type AgentHooksResponse, type AgentImportRequest, type AgentImportResponse, type AgentKernelUpdateResponse, type AgentMcpServerItem, type AgentMcpServersResponse, type AgentMemoryConfigDto, type AgentModelConfigDto, type AgentPluginsInstallResponse, type AgentSchedulesConfigDto, type AgentSkillsConfigDto, type AgentSkillsResponse, type AgentSummary, type AgentTraceDateGroup, type AgentTraceFileRef, type AgentTraceSessionEntry, type AgentTraceSessionFile, type AgentTraceSessionGroup, type AgentTracesResponse, type AgentVaultConfigDto, type AgentsResponse, type ApprovalDecisionRequest, type ApprovalMode, type ArchivedSessionGroup, type ArchivedSessionGroupsResponse, type ArchivedSessionSource, type ArchivedSessionsBatch, type ArchivedSessionsBatchFilter, type ArchivedSessionsBatchResponse, type ArchivedSessionsQuery, type ArchivedSessionsResponse, type ArchivedSessionsRowsQuery, type AuthLoginRequest, type AuthResponse, type BenchmarkArchiveGitOrigin, type BenchmarkArchiveImportRequest, type BenchmarkArchiveImportResponse, type BenchmarkCaseScore, type BenchmarkCaseSummary, type BenchmarkCasesResponse, type BenchmarkCreateCase, type BenchmarkCreateRequest, type BenchmarkCreateResponse, type BenchmarkEvaluation, type BenchmarkManifestProblem, type BenchmarkOrigin, type BenchmarkOriginKind, type BenchmarkRunScore, type BenchmarkStatus, type BenchmarkSummary, type BenchmarksResponse, type BrowserBackend, type BrowserBackendInfo, type BrowserBackendResponse, type BrowserExtensionCloseCode, type BrowserExtensionPairRequest, type BrowserExtensionPairResponse, type BrowserExtensionPairingResponse, type BrowserExtensionRecord, type BrowserExtensionsResponse, type BrowserHello, type BrowserLinkCapabilities, type BuiltinBrowserAction, type BuiltinBrowserDialog, type BuiltinBrowserExecResult, type BuiltinBrowserHistoryEntry, type BuiltinBrowserHistoryResponse, type BuiltinBrowserImportBrowser, type BuiltinBrowserImportRequest, type BuiltinBrowserImportResult, type BuiltinBrowserImportSource, type BuiltinBrowserImportSourcesResponse, type BuiltinBrowserLoadWarning, type BuiltinBrowserMetrics, type BuiltinBrowserScanResult, type BuiltinBrowserScreenshot, type BuiltinBrowserServerEvent, type BuiltinBrowserSettings, type BuiltinBrowserStatus, type BuiltinBrowserTab, type BuiltinBrowserTabMetrics, type BuiltinBrowserTabsResponse, type BuiltinBrowserUnavailableReason, type CaseMaterial, type ChatDefaultsDto, type CommandPolicyDto, type CommandPolicyRuleDto, type CompanyServerEvent, type ConnectionSourceDto, type ContextFileShare, type ContextToolShare, type ContributionsResponse, type CostParts, type CredentialInfo, type DefaultModelResponse, type DefaultModelUpdateRequest, type DesktopBrowserCommand, type DesktopBrowserCommandMessage, type DesktopBrowserCookie, type DesktopBrowserEvent, type DesktopBrowserEventMessage, type DesktopBrowserReplyMessage, type DesktopFolderAccessMessage, type DesktopFolderAccessResult, type DesktopFolderAccessResultMessage, type DesktopOpenPrivacySettingsMessage, type DesktopPrivacyPane, type DesktopTrayCommandMessage, type DesktopTrayLocale, type DesktopTrayPatch, type DesktopTrayStatus, type DesktopTrayStatusMessage, type DesktopTrayStatusResponse, type DesktopUpdateStatus, type DesktopUpdateStatusResponse, type DesktopUpdaterCommandMessage, type DesktopUpdaterStatusMessage, type DirAccessResponse, type DirEntryInfo, type DirListResponse, type DirLocation, type DirStandardFolders, type DirectorySkillItem, type DirectorySkillsResponse, type DraftShortcut, type Employment, type EndpointModelListRequest, type EndpointModelListResponse, type ErrorBody, type ErrorDetails, type FeishuBindingInfo, type FeishuBindingPutRequest, type FeishuBindingResponse, type FeishuTestRequest, type FeishuTestResponse, type FilesCreateRequest, type FilesMoveRequest, type FilesStatRequest, type FilesStatResponse, type FilesWriteRequest, type GoalResponse, type GoalServerEvent, type GoalStateView, type HistoryMessage, type HookArchiveInstallRequest, type HookItem, type InstallResponse, type InstalledPlugin, type InstalledPluginsResponse, type LanguageIndexResponse, type LanguageSummary, MACHINE_PHASES, type MachineCheck, type MachineConfigSync, type MachineDiagnosis, type MachineEnvOnly, type MachineInfo, type MachineJob, type MachinePhase, type MachineReconnect, type MachineServerEvent, type MachineServerStatus, type MachineSkippedModel, type MachineSourceReach, type MachineSshFailure, type MachineUninstallRequest, type MachineUseRefusal, type MachinesAddRequest, type MachinesCheckoutImage, type MachinesResponse, type MachinesStopUsingRequest, type MachinesUseRequest, type MachinesUseResponse, type McpServerTestResponse, type McpTransport, type MeResponse, type MemberAddRequest, type MemberAddResponse, type MemberInfo, type MembersResponse, type MemoryFileInfo, type MemoryFileResponse, type MemoryFilesResponse, type MemoryImportMode, type MemoryImportRequest, type MemoryImportResponse, type MemoryOverviewResponse, type MemoryScopeExport, type MemoryScopeInfo, type MemoryTransferFile, type MessagesLiveTail, type MessagesPageInfo, type MessagesResponse, type MessagingBindingCommon, type MessagingBindingInfo, type MessagingBindingStateRequest, type MessagingBindingsResponse, type MessagingChannel, type MessagingChannelState, type MessagingDeliveryError, type MessagingDeliveryPatch, type MessagingRuntimeState, type MessagingRuntimeStatus, type MessagingTestMessageResponse, type ModelBalanceAmount, type ModelBalanceErrorCode, type ModelBalanceFailure, type ModelBalanceReading, type ModelBalanceResponse, type ModelEffectiveConnection, type ModelInfo, type ModelOAuthCodeRequest, type ModelOAuthCodeResponse, type ModelOAuthErrorCode, type ModelOAuthMode, type ModelOAuthStartRequest, type ModelOAuthStartResponse, type ModelOAuthStatusResponse, type ModelPricingDto, type ModelProtocolDetectRequest, type ModelProtocolDetectResponse, type ModelProtocolProbeDto, type ModelRefDto, type ModelScopeAuthFlowErrorCode, type ModelScopeAuthFlowStatusResponse, type ModelScopeAuthStartResponse, type ModelTestRequest, type ModelTestResponse, type ModelUpdateEntry, type ModelVisionDetectRequest, type ModelVisionDetectResponse, type ModelVisionOutcome, type ModelsResponse, type ModelsUpdateRequest, type OrgApprovalMode, type OrgBudgetAlert, type OrgCalendarItem, type OrgCalendarOutcome, type OrgCalendarResponse, type OrgCalendarUpsertRequest, type OrgCalendarWriteResponse, type OrgChannelCreateRequest, type OrgChannelDetail, type OrgChannelItem, type OrgChannelMember, type OrgChannelMemberRequest, type OrgChannelMessage, type OrgChannelMessageSendRequest, type OrgChannelMessagesResponse, type OrgChannelNotice, type OrgChannelNoticeKind, type OrgChannelPatchRequest, type OrgChannelReadRequest, type OrgChannelsResponse, type OrgChartResponse, type OrgDeskItem, type OrgDeskResponse, type OrgEmployeeItem, type OrgEmployeePatchRequest, type OrgEmployeeState, type OrgFinanceEmployee, type OrgFinanceResponse, type OrgFinanceTicket, type OrgHandbookFile, type OrgHandbookFileResponse, type OrgHandbookFileWriteRequest, type OrgHandbookFilesResponse, type OrgHandbookResponse, type OrgHireRequest, type OrgInbox, type OrgLanguage, type OrgSessionsResponse, type OrgSpendSummary, type OrgStatus, type OrgTicketAttachRequest, type OrgTicketBlockRequest, type OrgTicketChange, type OrgTicketCreateRequest, type OrgTicketDetail, type OrgTicketHistoryAction, type OrgTicketHistoryEntry, type OrgTicketItem, type OrgTicketMoveRequest, type OrgTicketPriority, type OrgTicketProgressRequest, type OrgTicketSessionItem, type OrgTicketStartRequest, type OrgTicketStartResponse, type OrgTicketStatus, type OrgTicketUpdateRequest, type OrgTicketsResponse, type OrgTriggerKind, type OrganizationCreateRequest, type OrganizationDetail, type OrganizationPatchRequest, type OrganizationSettings, type OrganizationSummary, type OrganizationsResponse, type PasswordChangeRequest, type PendingFollowUpInfo, type PendingSteeringInfo, type PinnedBalance, type PlatformAuthFlowErrorCode, type PlatformAuthFlowStatusResponse, type PlatformAuthStartResponse, type PlatformModelSyncResponse, type PluginArchiveImportRequest, type PluginConfigActionDecl, type PluginConfigActionResponse, type PluginConfigBackend, type PluginConfigColumnGroup, type PluginConfigEntry, type PluginConfigField, type PluginConfigNewRow, type PluginConfigNotice, type PluginConfigOption, type PluginConfigPinColumn, type PluginConfigResponse, type PluginConfigRowChoice, type PluginConfigTableColumn, type PluginConfigTableRow, type PluginConfigUnavailableDecl, type PluginConfigUpdateRequest, type PluginConfiguration, type PluginFilesResponse, type PluginGroupItem, type PluginIndexEntry, type PluginIndexResponse, type PluginInstallOutcome, type PluginInstallRequest, type PluginItem, type PluginLibraryResponse, type PluginMcpServerItem, type PluginReadmeResponse, type PluginSetupKeyItem, type PluginUpdateRef, type PrefsResponse, type PresetSyncMode, type PresetSyncRequest, type PresetSyncResponse, type ProjectCreateRequest, type ProjectCreateResponse, type ProjectRole, type ProjectScheduleItem, type ProjectSchedulesResponse, type ProjectSummary, type ProjectUpdateRequest, type ProjectUpdateResponse, type ProjectsResponse, type ProtocolProbeOutcome, type ProviderConnectionDto, type ProviderConnectionUpdate, type ProxyProbeDto, type ProxyProbeOutcome, type ProxyProbeProvider, type ProxyProbeResponse, type ProxyProbeTargetDto, type ProxyProbeTargetsResponse, type QQBindingInfo, type QQBindingPutRequest, type QQBindingResponse, type QQScanPollResponse, type QQScanStartResponse, type QQTestRequest, type QQTestResponse, type QuickStartItem, type RecalledMessageResponse, type RendererRef, type RequestSpan, type RestartResponse, type RetryNowResponse, type ScheduleItem, type ScheduleServerEvent, type ScheduleStatus, type ScheduleUpsertRequest, type SchedulesResponse, type SemanticIdKind, type SemanticIdSuggestReason, type SemanticIdSuggestRequest, type SemanticIdSuggestResponse, type ServerEvent, type ServerSettings, type ServerSettingsResponse, type ServerSettingsUpdateRequest, type SessionBackgroundTasks, type SessionBatchPageRequest, type SessionBatchResult, type SessionCategory, type SessionCategoryCounts, type SessionContextParts, type SessionContextResponse, type SessionCreateRequest, type SessionCreateResponse, type SessionForkRequest, type SessionForkResponse, type SessionInfo, type SessionPatchRequest, type SessionProcessInfo, type SessionProcessesResponse, type SessionResponse, type SessionSandbox, type SessionSandboxMode, type SessionSandboxNetwork, type SessionSandboxPreset, type SessionStatus, type SessionSwitchModelRequest, type SessionTracesResponse, type SessionsBatchRequest, type SessionsBatchResponse, type SessionsResponse, type SkillArchiveInstallRequest, type SkillMetadataItem, type SshHostRequest, type SshHostResponse, type SshHostSummary, type SshHostsResponse, type SteerRequest, type StoredKeybindings, type SubagentMessageResponse, type SubagentRuntimeInfo, TICKET_SLUG_PATTERN, type TaskCreateRequest, type TaskCreateResponse, type TaskInputPart, type TelegramBindingInfo, type TelegramBindingPutRequest, type TelegramBindingResponse, type TelegramTestRequest, type TelegramTestResponse, type ToolCallSpan, type TraceAnalysisResponse, type TraceEventsResponse, type TraceFileInfo, type TraceImportRequest, type TraceImportResponse, type TraceModelSegment, type TraceOtherSpan, type TracePosition, type TraceTaskStats, type TraceToolSpan, type UiPrefs, type UnavailableSandboxBackend, type UnsatisfiedPlugin, type UpdateCheckResponse, type UpdateJobPhase, type UpdateJobStatus, type UpdateProfileRequest, type UpdateProfileResponse, type UpdateRunResponse, type UploadLimits, type UsageAgentSeries, type UsageBucket, type UsageEntitySeriesCounts, type UsageErrorCount, type UsageErrorItem, type UsageErrorKind, type UsageErrors, type UsageErrorsClearResponse, type UsageErrorsPage, type UsageGranularity, type UsageGroupBy, type UsageGroupRow, type UsageModelSeries, type UsageModelTotal, type UsageModelTotals, type UsageResponse, type UsageSeriesPoint, type UsageTrendPointInTrace, type UserInfo, type VaultEntryInfo, type VaultEntryUpdate, type VaultResponse, type VaultUpdateRequest, type VersionHistoryDiffResponse, type VersionHistoryResponse, type VersionResponse, type VersionRollbackResponse, type WeChatBindingInfo, type WeChatBindingPutRequest, type WeChatBindingResponse, type WeChatScanPollResponse, type WeChatScanStartResponse, type WeChatScanStatus, type WeChatScanVerifyRequest, type WeChatTestResponse, type WebContribution, type WorkbenchInfo, type WorkbenchRequest, type WorkbenchResponse, type WorkbenchVersion, type WorkspaceFileEntry, type WorkspaceFilesResponse, type WorkspaceSearchHit, type WorkspaceSearchResponse };
7120
+ export { API_SOCKET_PATH, type AdminPasswordResetRequest, type AdminUserCreateRequest, type AdminUserCreateResponse, type AdminUsersResponse, type AgentApiKeyCreateRequest, type AgentApiKeyCreateResponse, type AgentApiKeyInfo, type AgentApiResponse, type AgentApiSettings, type AgentApiUpdateRequest, type AgentCompactionConfigDto, type AgentConfigDto, type AgentConfigResponse, type AgentConfigUpdateRequest, type AgentCreateRequest, type AgentCreateResponse, type AgentHooksConfigDto, type AgentHooksResponse, type AgentImportRequest, type AgentImportResponse, type AgentKernelUpdateResponse, type AgentMcpServerItem, type AgentMcpServersResponse, type AgentMemoryConfigDto, type AgentModelConfigDto, type AgentPluginsInstallResponse, type AgentSchedulesConfigDto, type AgentSkillsConfigDto, type AgentSkillsResponse, type AgentSummary, type AgentTraceDateGroup, type AgentTraceFileRef, type AgentTraceSessionEntry, type AgentTraceSessionFile, type AgentTraceSessionGroup, type AgentTracesResponse, type AgentVaultConfigDto, type AgentsResponse, type ApprovalDecisionRequest, type ApprovalMode, type ArchivedSessionGroup, type ArchivedSessionGroupsResponse, type ArchivedSessionSource, type ArchivedSessionsBatch, type ArchivedSessionsBatchFilter, type ArchivedSessionsBatchResponse, type ArchivedSessionsQuery, type ArchivedSessionsResponse, type ArchivedSessionsRowsQuery, type AuthLoginRequest, type AuthResponse, type BenchmarkArchiveGitOrigin, type BenchmarkArchiveImportRequest, type BenchmarkArchiveImportResponse, type BenchmarkCaseScore, type BenchmarkCaseSummary, type BenchmarkCasesResponse, type BenchmarkCreateCase, type BenchmarkCreateRequest, type BenchmarkCreateResponse, type BenchmarkEvaluation, type BenchmarkManifestProblem, type BenchmarkOrigin, type BenchmarkOriginKind, type BenchmarkRunScore, type BenchmarkStatus, type BenchmarkSummary, type BenchmarksResponse, type BrowserBackend, type BrowserBackendInfo, type BrowserBackendResponse, type BrowserExtensionCloseCode, type BrowserExtensionPairRequest, type BrowserExtensionPairResponse, type BrowserExtensionPairingResponse, type BrowserExtensionRecord, type BrowserExtensionsResponse, type BrowserHello, type BrowserLinkCapabilities, type BuiltinBrowserAction, type BuiltinBrowserDialog, type BuiltinBrowserExecResult, type BuiltinBrowserHistoryEntry, type BuiltinBrowserHistoryResponse, type BuiltinBrowserImportBrowser, type BuiltinBrowserImportRequest, type BuiltinBrowserImportResult, type BuiltinBrowserImportSource, type BuiltinBrowserImportSourcesResponse, type BuiltinBrowserLoadWarning, type BuiltinBrowserMetrics, type BuiltinBrowserScanResult, type BuiltinBrowserScreenshot, type BuiltinBrowserServerEvent, type BuiltinBrowserSettings, type BuiltinBrowserStatus, type BuiltinBrowserTab, type BuiltinBrowserTabMetrics, type BuiltinBrowserTabsResponse, type BuiltinBrowserUnavailableReason, type CaseMaterial, type ChatDefaultsDto, type CommandPolicyDto, type CommandPolicyRuleDto, type CompanyServerEvent, type ConnectionSourceDto, type ContextFileShare, type ContextToolShare, type ContributionsResponse, type CostParts, type CredentialInfo, type DefaultModelResponse, type DefaultModelUpdateRequest, type DesktopBrowserCommand, type DesktopBrowserCommandMessage, type DesktopBrowserCookie, type DesktopBrowserEvent, type DesktopBrowserEventMessage, type DesktopBrowserReplyMessage, type DesktopFolderAccessMessage, type DesktopFolderAccessResult, type DesktopFolderAccessResultMessage, type DesktopOpenPrivacySettingsMessage, type DesktopPrivacyPane, type DesktopTrayCommandMessage, type DesktopTrayLocale, type DesktopTrayPatch, type DesktopTrayStatus, type DesktopTrayStatusMessage, type DesktopTrayStatusResponse, type DesktopUpdateStatus, type DesktopUpdateStatusResponse, type DesktopUpdaterCommandMessage, type DesktopUpdaterStatusMessage, type DirAccessResponse, type DirEntryInfo, type DirListResponse, type DirLocation, type DirStandardFolders, type DirectorySkillItem, type DirectorySkillsResponse, type DraftShortcut, type Employment, type EndpointModelListRequest, type EndpointModelListResponse, type ErrorBody, type ErrorDetails, type FeishuBindingInfo, type FeishuBindingPutRequest, type FeishuBindingResponse, type FeishuTestRequest, type FeishuTestResponse, type FilesCreateRequest, type FilesMoveRequest, type FilesStatRequest, type FilesStatResponse, type FilesWriteRequest, type GoalResponse, type GoalServerEvent, type GoalStateView, type HistoryMessage, type HookArchiveInstallRequest, type HookItem, type InstallResponse, type InstalledPlugin, type InstalledPluginsResponse, type LanguageIndexResponse, type LanguageSummary, MACHINE_PHASES, type MachineCheck, type MachineConfigSync, type MachineDiagnosis, type MachineEnvOnly, type MachineEvent, type MachineInfo, type MachineJob, type MachinePhase, type MachineReconnect, type MachineServerEvent, type MachineServerStatus, type MachineSkippedModel, type MachineSocketFact, type MachineSourceReach, type MachineSshFailure, type MachineUninstallRequest, type MachineUseRefusal, type MachinesAddRequest, type MachinesCheckoutImage, type MachinesResponse, type MachinesStopUsingRequest, type MachinesUseRequest, type MachinesUseResponse, type McpServerTestResponse, type McpTransport, type MeResponse, type MemberAddRequest, type MemberAddResponse, type MemberInfo, type MembersResponse, type MemoryFileInfo, type MemoryFileResponse, type MemoryFilesResponse, type MemoryImportMode, type MemoryImportRequest, type MemoryImportResponse, type MemoryOverviewResponse, type MemoryScopeExport, type MemoryScopeInfo, type MemoryTransferFile, type MessagesLiveTail, type MessagesPageInfo, type MessagesResponse, type MessagingAccount, type MessagingAccountHolder, type MessagingAccountHoldersResponse, type MessagingAccountsResponse, type MessagingBindingCommon, type MessagingBindingInfo, type MessagingBindingStateRequest, type MessagingBindingsResponse, type MessagingChannel, type MessagingChannelState, type MessagingDeliveryError, type MessagingDeliveryPatch, type MessagingRuntimeState, type MessagingRuntimeStatus, type MessagingTestMessageResponse, type MessagingUnreachableMachine, type MessagingUnreachableReason, type ModelBalanceAmount, type ModelBalanceErrorCode, type ModelBalanceFailure, type ModelBalanceReading, type ModelBalanceResponse, type ModelEffectiveConnection, type ModelInfo, type ModelOAuthCodeRequest, type ModelOAuthCodeResponse, type ModelOAuthErrorCode, type ModelOAuthMode, type ModelOAuthStartRequest, type ModelOAuthStartResponse, type ModelOAuthStatusResponse, type ModelPricingDto, type ModelProtocolDetectRequest, type ModelProtocolDetectResponse, type ModelProtocolProbeDto, type ModelRefDto, type ModelScopeAuthFlowErrorCode, type ModelScopeAuthFlowStatusResponse, type ModelScopeAuthStartResponse, type ModelTestRequest, type ModelTestResponse, type ModelUpdateEntry, type ModelVisionDetectRequest, type ModelVisionDetectResponse, type ModelVisionOutcome, type ModelsResponse, type ModelsUpdateRequest, type OrgApprovalMode, type OrgBudgetAlert, type OrgCalendarItem, type OrgCalendarOutcome, type OrgCalendarResponse, type OrgCalendarUpsertRequest, type OrgCalendarWriteResponse, type OrgChannelCreateRequest, type OrgChannelDetail, type OrgChannelItem, type OrgChannelMember, type OrgChannelMemberRequest, type OrgChannelMessage, type OrgChannelMessageSendRequest, type OrgChannelMessagesResponse, type OrgChannelNotice, type OrgChannelNoticeKind, type OrgChannelPatchRequest, type OrgChannelReadRequest, type OrgChannelsResponse, type OrgChartResponse, type OrgDeskItem, type OrgDeskResponse, type OrgEmployeeItem, type OrgEmployeePatchRequest, type OrgEmployeeState, type OrgFinanceEmployee, type OrgFinanceResponse, type OrgFinanceTicket, type OrgHandbookFile, type OrgHandbookFileResponse, type OrgHandbookFileWriteRequest, type OrgHandbookFilesResponse, type OrgHandbookResponse, type OrgHireRequest, type OrgInbox, type OrgLanguage, type OrgSessionsResponse, type OrgSpendSummary, type OrgStatus, type OrgTicketAttachRequest, type OrgTicketBlockRequest, type OrgTicketChange, type OrgTicketCreateRequest, type OrgTicketDetail, type OrgTicketHistoryAction, type OrgTicketHistoryEntry, type OrgTicketItem, type OrgTicketMoveRequest, type OrgTicketPriority, type OrgTicketProgressRequest, type OrgTicketSessionItem, type OrgTicketStartRequest, type OrgTicketStartResponse, type OrgTicketStatus, type OrgTicketUpdateRequest, type OrgTicketsResponse, type OrgTriggerKind, type OrganizationCreateRequest, type OrganizationDetail, type OrganizationPatchRequest, type OrganizationSettings, type OrganizationSummary, type OrganizationsResponse, type PasswordChangeRequest, type PendingFollowUpInfo, type PendingSteeringInfo, type PinnedBalance, type PlatformAuthFlowErrorCode, type PlatformAuthFlowStatusResponse, type PlatformAuthStartResponse, type PlatformModelSyncResponse, type PluginArchiveImportRequest, type PluginConfigActionDecl, type PluginConfigActionResponse, type PluginConfigBackend, type PluginConfigColumnGroup, type PluginConfigEntry, type PluginConfigField, type PluginConfigNewRow, type PluginConfigNotice, type PluginConfigOption, type PluginConfigPinColumn, type PluginConfigResponse, type PluginConfigRowChoice, type PluginConfigTableColumn, type PluginConfigTableRow, type PluginConfigUnavailableDecl, type PluginConfigUpdateRequest, type PluginConfiguration, type PluginFilesResponse, type PluginGroupItem, type PluginIndexEntry, type PluginIndexResponse, type PluginInstallOutcome, type PluginInstallRequest, type PluginItem, type PluginLibraryResponse, type PluginMcpServerItem, type PluginReadmeResponse, type PluginSetupKeyItem, type PluginUpdateRef, type PrefsResponse, type PresetSyncMode, type PresetSyncRequest, type PresetSyncResponse, type ProjectCreateRequest, type ProjectCreateResponse, type ProjectRole, type ProjectScheduleItem, type ProjectSchedulesResponse, type ProjectSummary, type ProjectUpdateRequest, type ProjectUpdateResponse, type ProjectsResponse, type ProtocolProbeOutcome, type ProviderConnectionDto, type ProviderConnectionUpdate, type ProxyProbeDto, type ProxyProbeOutcome, type ProxyProbeProvider, type ProxyProbeResponse, type ProxyProbeTargetDto, type ProxyProbeTargetsResponse, type QQBindingInfo, type QQBindingPutRequest, type QQBindingResponse, type QQScanPollResponse, type QQScanStartResponse, type QQTestRequest, type QQTestResponse, type QuickStartItem, type RecalledMessageResponse, type RendererRef, type RequestSpan, type RestartResponse, type RetryNowResponse, type ScheduleItem, type ScheduleServerEvent, type ScheduleStatus, type ScheduleUpsertRequest, type SchedulesResponse, type SemanticIdKind, type SemanticIdSuggestReason, type SemanticIdSuggestRequest, type SemanticIdSuggestResponse, type ServerEvent, type ServerSettings, type ServerSettingsResponse, type ServerSettingsUpdateRequest, type SessionBackgroundTasks, type SessionBatchPageRequest, type SessionBatchResult, type SessionCategory, type SessionCategoryCounts, type SessionContextParts, type SessionContextResponse, type SessionCreateRequest, type SessionCreateResponse, type SessionForkRequest, type SessionForkResponse, type SessionInfo, type SessionPatchRequest, type SessionProcessInfo, type SessionProcessesResponse, type SessionResponse, type SessionSandbox, type SessionSandboxMode, type SessionSandboxNetwork, type SessionSandboxPreset, type SessionStatus, type SessionSwitchModelRequest, type SessionTracesResponse, type SessionsBatchRequest, type SessionsBatchResponse, type SessionsResponse, type SkillArchiveInstallRequest, type SkillMetadataItem, type SshHostRequest, type SshHostResponse, type SshHostSummary, type SshHostsResponse, type SteerRequest, type StoredKeybindings, type SubagentMessageResponse, type SubagentRuntimeInfo, TICKET_SLUG_PATTERN, type TaskCreateRequest, type TaskCreateResponse, type TaskInputPart, type TelegramBindingInfo, type TelegramBindingPutRequest, type TelegramBindingResponse, type TelegramTestRequest, type TelegramTestResponse, type ToolCallSpan, type TraceAnalysisResponse, type TraceEventsResponse, type TraceFileInfo, type TraceImportRequest, type TraceImportResponse, type TraceModelSegment, type TraceOtherSpan, type TracePosition, type TraceTaskStats, type TraceToolSpan, type UiPrefs, type UnavailableSandboxBackend, type UnsatisfiedPlugin, type UpdateCheckResponse, type UpdateJobPhase, type UpdateJobStatus, type UpdateProfileRequest, type UpdateProfileResponse, type UpdateRunResponse, type UploadLimits, type UsageAgentSeries, type UsageBucket, type UsageEntitySeriesCounts, type UsageErrorCount, type UsageErrorItem, type UsageErrorKind, type UsageErrors, type UsageErrorsClearResponse, type UsageErrorsPage, type UsageGranularity, type UsageGroupBy, type UsageGroupRow, type UsageModelSeries, type UsageModelTotal, type UsageModelTotals, type UsageResponse, type UsageSeriesPoint, type UsageTrendPointInTrace, type UserInfo, type VaultEntryInfo, type VaultEntryUpdate, type VaultResponse, type VaultUpdateRequest, type VersionHistoryDiffResponse, type VersionHistoryResponse, type VersionResponse, type VersionRollbackResponse, type WeChatBindingInfo, type WeChatBindingPutRequest, type WeChatBindingResponse, type WeChatScanPollResponse, type WeChatScanStartResponse, type WeChatScanStatus, type WeChatScanVerifyRequest, type WeChatTestResponse, type WebContribution, type WorkbenchInfo, type WorkbenchRequest, type WorkbenchResponse, type WorkbenchVersion, type WorkspaceFileEntry, type WorkspaceFilesResponse, type WorkspaceSearchHit, type WorkspaceSearchResponse, apiSocketPath, sessionKindPath };
package/dist/api/types.js CHANGED
@@ -1,10 +1,16 @@
1
1
  import {
2
+ API_SOCKET_PATH,
2
3
  MACHINE_PHASES,
3
- TICKET_SLUG_PATTERN
4
- } from "../chunk-W7JNIJ25.js";
4
+ TICKET_SLUG_PATTERN,
5
+ apiSocketPath,
6
+ sessionKindPath
7
+ } from "../chunk-HDBZRVA5.js";
5
8
  import "../chunk-B5IP37ZQ.js";
6
9
  export {
10
+ API_SOCKET_PATH,
7
11
  MACHINE_PHASES,
8
- TICKET_SLUG_PATTERN
12
+ TICKET_SLUG_PATTERN,
13
+ apiSocketPath,
14
+ sessionKindPath
9
15
  };
10
16
  //# sourceMappingURL=types.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-G7GY7PJU.js";
5
5
  import {
6
6
  openExistingDatabase
7
- } from "./chunk-3SFJKLQU.js";
7
+ } from "./chunk-HPOHMZCH.js";
8
8
  import "./chunk-B5IP37ZQ.js";
9
9
 
10
10
  // src/auth-token.ts