@tutti-os/agent-gui 0.0.57 → 0.0.58

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 (50) hide show
  1. package/dist/agent-conversation/index.js +9 -8
  2. package/dist/agent-conversation/index.js.map +1 -1
  3. package/dist/agent-env/index.d.ts +285 -0
  4. package/dist/agent-env/index.js +360 -0
  5. package/dist/agent-env/index.js.map +1 -0
  6. package/dist/agent-message-center/index.js +11 -11
  7. package/dist/app/renderer/agentactivity.css +8 -33
  8. package/dist/{chunk-RGVVHF7Q.js → chunk-2WUDORCV.js} +2 -2
  9. package/dist/{chunk-Z3AAQQFD.js → chunk-5SRRKWE4.js} +2 -2
  10. package/dist/{chunk-DZ76JPCV.js → chunk-BEFNWUOZ.js} +95 -154
  11. package/dist/chunk-BEFNWUOZ.js.map +1 -0
  12. package/dist/{chunk-IMZBRUP3.js → chunk-BT5WEZO5.js} +7 -7
  13. package/dist/{chunk-HFZOXSSQ.js → chunk-CEMXB7LA.js} +5 -5
  14. package/dist/{chunk-S6PCOX3S.js → chunk-HVU46DDA.js} +1 -1
  15. package/dist/chunk-HVU46DDA.js.map +1 -0
  16. package/dist/{chunk-33LWYV6O.js → chunk-IS6JUDDY.js} +9 -1
  17. package/dist/chunk-IS6JUDDY.js.map +1 -0
  18. package/dist/{chunk-VOXUYDQF.js → chunk-N756UO52.js} +11 -7
  19. package/dist/chunk-N756UO52.js.map +1 -0
  20. package/dist/{chunk-N37A5CJH.js → chunk-NX6T3DDS.js} +3 -3
  21. package/dist/{chunk-KOR6UVUJ.js → chunk-OFMORNBO.js} +5 -5
  22. package/dist/{chunk-QFHR527D.js → chunk-OLI2A3EM.js} +2 -2
  23. package/dist/chunk-PSLAWU25.js +145 -0
  24. package/dist/chunk-PSLAWU25.js.map +1 -0
  25. package/dist/{chunk-2VHP7KQ5.js → chunk-SLT5Q37C.js} +6 -6
  26. package/dist/{chunk-SZ7JGCS3.js → chunk-UCCUIUGK.js} +4 -4
  27. package/dist/context-mention-palette/index.js +7 -7
  28. package/dist/i18n/index.d.ts +8 -0
  29. package/dist/i18n/index.js +2 -2
  30. package/dist/index.d.ts +52 -0
  31. package/dist/index.js +570 -108
  32. package/dist/index.js.map +1 -1
  33. package/dist/workbench/contribution.js +2 -2
  34. package/dist/workbench/index.js +14 -14
  35. package/dist/workbench/sessionTitle.js +3 -3
  36. package/dist/workspace-agent-generated-files.js +3 -3
  37. package/package.json +19 -12
  38. package/dist/chunk-33LWYV6O.js.map +0 -1
  39. package/dist/chunk-DZ76JPCV.js.map +0 -1
  40. package/dist/chunk-S6PCOX3S.js.map +0 -1
  41. package/dist/chunk-VOXUYDQF.js.map +0 -1
  42. /package/dist/{chunk-RGVVHF7Q.js.map → chunk-2WUDORCV.js.map} +0 -0
  43. /package/dist/{chunk-Z3AAQQFD.js.map → chunk-5SRRKWE4.js.map} +0 -0
  44. /package/dist/{chunk-IMZBRUP3.js.map → chunk-BT5WEZO5.js.map} +0 -0
  45. /package/dist/{chunk-HFZOXSSQ.js.map → chunk-CEMXB7LA.js.map} +0 -0
  46. /package/dist/{chunk-N37A5CJH.js.map → chunk-NX6T3DDS.js.map} +0 -0
  47. /package/dist/{chunk-KOR6UVUJ.js.map → chunk-OFMORNBO.js.map} +0 -0
  48. /package/dist/{chunk-QFHR527D.js.map → chunk-OLI2A3EM.js.map} +0 -0
  49. /package/dist/{chunk-2VHP7KQ5.js.map → chunk-SLT5Q37C.js.map} +0 -0
  50. /package/dist/{chunk-SZ7JGCS3.js.map → chunk-UCCUIUGK.js.map} +0 -0
@@ -0,0 +1,145 @@
1
+ // shared/agentEnv/agentEnvPanelStore.ts
2
+ import { useSnapshot } from "valtio";
3
+ import { proxy } from "valtio/vanilla";
4
+ var agentEnvPanelStore = proxy({
5
+ open: false,
6
+ provider: null,
7
+ focus: null,
8
+ requestSequence: 0
9
+ });
10
+ function openAgentEnvPanel(input) {
11
+ agentEnvPanelStore.open = true;
12
+ agentEnvPanelStore.provider = input?.provider ?? null;
13
+ agentEnvPanelStore.focus = input?.focus ?? null;
14
+ agentEnvPanelStore.requestSequence += 1;
15
+ }
16
+ function closeAgentEnvPanel() {
17
+ agentEnvPanelStore.open = false;
18
+ }
19
+ function getAgentEnvPanelStore() {
20
+ return agentEnvPanelStore;
21
+ }
22
+ function useAgentEnvPanelRequest() {
23
+ return useSnapshot(agentEnvPanelStore);
24
+ }
25
+
26
+ // shared/agentEnv/agentErrorPresentation.ts
27
+ var NO_CTA = { focus: null, actionKey: null };
28
+ var SELF_DETECT = {
29
+ messageKey: null,
30
+ focus: "detect",
31
+ actionKey: "agentHost.agentGui.visibleErrorActionDetect"
32
+ };
33
+ var PRESENTATIONS = {
34
+ // Environment problems the wizard can detect or repair → route to its step.
35
+ auth_required: {
36
+ messageKey: "agentHost.agentGui.visibleErrorAuthRequired",
37
+ focus: "auth",
38
+ actionKey: "agentHost.agentGui.visibleErrorActionRelogin"
39
+ },
40
+ cli_not_found: {
41
+ messageKey: "agentHost.agentGui.visibleErrorCliNotFound",
42
+ focus: "install",
43
+ actionKey: "agentHost.agentGui.visibleErrorActionInstall"
44
+ },
45
+ cli_version_unsupported: {
46
+ messageKey: "agentHost.agentGui.visibleErrorVersionUnsupported",
47
+ focus: "upgrade",
48
+ actionKey: "agentHost.agentGui.visibleErrorActionUpgrade"
49
+ },
50
+ network_error: {
51
+ messageKey: "agentHost.agentGui.visibleErrorNetwork",
52
+ focus: "network",
53
+ actionKey: "agentHost.agentGui.visibleErrorActionCheckNetwork"
54
+ },
55
+ runtime_unavailable: {
56
+ messageKey: "agentHost.agentGui.visibleErrorRuntimeUnavailable",
57
+ focus: "detect",
58
+ actionKey: "agentHost.agentGui.visibleErrorActionDetect"
59
+ },
60
+ // Transient / server-side failures: accurate copy, but no wizard CTA — it
61
+ // cannot fix a rate limit or a dropped stream.
62
+ request_timed_out: {
63
+ messageKey: "agentHost.agentGui.visibleErrorRequestTimedOut",
64
+ ...NO_CTA
65
+ },
66
+ provider_config_timeout: {
67
+ messageKey: "agentHost.agentGui.visibleErrorConfigTimeout",
68
+ ...NO_CTA
69
+ },
70
+ provider_stream_disconnected: {
71
+ messageKey: "agentHost.agentGui.visibleErrorStreamDisconnected",
72
+ ...NO_CTA
73
+ },
74
+ provider_concurrency_limit: {
75
+ messageKey: "agentHost.agentGui.visibleErrorConcurrencyLimit",
76
+ ...NO_CTA
77
+ },
78
+ quota_or_rate_limit: {
79
+ messageKey: "agentHost.agentGui.visibleErrorQuotaOrRateLimit",
80
+ ...NO_CTA
81
+ },
82
+ // Ambiguous hard failures → generic message + self-detect escape hatch.
83
+ process_exited: SELF_DETECT,
84
+ provider_error: SELF_DETECT,
85
+ unknown: SELF_DETECT
86
+ };
87
+ function resolveAgentErrorPresentation(code) {
88
+ if (!code) {
89
+ return null;
90
+ }
91
+ return PRESENTATIONS[code] ?? null;
92
+ }
93
+ var FAILED_MESSAGE_CODE_MARKERS = [
94
+ [
95
+ "auth_required",
96
+ [
97
+ "authentication_failed",
98
+ "invalid authentication credentials",
99
+ "401 invalid authentication",
100
+ "unauthorized",
101
+ "not logged in",
102
+ "please run /login",
103
+ "invalid api key"
104
+ ]
105
+ ],
106
+ [
107
+ "cli_version_unsupported",
108
+ ["requires a newer version", "version is too old", "unsupported version"]
109
+ ],
110
+ [
111
+ "cli_not_found",
112
+ [
113
+ "no such file or directory",
114
+ "command not found",
115
+ "enoent",
116
+ "executable file not found"
117
+ ]
118
+ ],
119
+ [
120
+ "network_error",
121
+ ["enotfound", "econnrefused", "econnreset", "getaddrinfo", "socket hang up"]
122
+ ]
123
+ ];
124
+ function classifyFailedAgentMessage(body) {
125
+ if (!body) {
126
+ return null;
127
+ }
128
+ const lower = body.toLowerCase();
129
+ for (const [code, markers] of FAILED_MESSAGE_CODE_MARKERS) {
130
+ if (markers.some((marker) => lower.includes(marker))) {
131
+ return code;
132
+ }
133
+ }
134
+ return null;
135
+ }
136
+
137
+ export {
138
+ openAgentEnvPanel,
139
+ closeAgentEnvPanel,
140
+ getAgentEnvPanelStore,
141
+ useAgentEnvPanelRequest,
142
+ resolveAgentErrorPresentation,
143
+ classifyFailedAgentMessage
144
+ };
145
+ //# sourceMappingURL=chunk-PSLAWU25.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../shared/agentEnv/agentEnvPanelStore.ts","../shared/agentEnv/agentErrorPresentation.ts"],"sourcesContent":["import { useSnapshot } from \"valtio\";\nimport { proxy } from \"valtio/vanilla\";\n\n/**\n * Section the Agent Env panel (the片6 Setup Wizard / config panel) should scroll\n * to / emphasise when opened via a deep-link. The error card (片5) maps a domain\n * error code to one of these so the user lands on the relevant remediation.\n */\nexport type AgentEnvPanelFocus =\n | \"detect\"\n | \"install\"\n | \"repair\"\n | \"upgrade\"\n | \"auth\"\n | \"network\"\n | \"registry\";\n\nexport interface AgentEnvPanelRequest {\n open: boolean;\n provider: string | null;\n focus: AgentEnvPanelFocus | null;\n /**\n * Bumped on every openAgentEnvPanel() call. The host panel watches this to\n * re-run detection even when it is already open (e.g. a second deep-link).\n */\n requestSequence: number;\n}\n\nexport interface OpenAgentEnvPanelInput {\n provider?: string | null;\n focus?: AgentEnvPanelFocus | null;\n}\n\nconst agentEnvPanelStore = proxy<AgentEnvPanelRequest>({\n open: false,\n provider: null,\n focus: null,\n requestSequence: 0\n});\n\n/**\n * Open the agent environment panel. Safe to call from anywhere in the agent-gui\n * tree (rail footer entry, error-card deep-link). The host renders the actual\n * panel and reacts to this singleton store.\n */\nexport function openAgentEnvPanel(input?: OpenAgentEnvPanelInput): void {\n agentEnvPanelStore.open = true;\n agentEnvPanelStore.provider = input?.provider ?? null;\n agentEnvPanelStore.focus = input?.focus ?? null;\n agentEnvPanelStore.requestSequence += 1;\n}\n\nexport function closeAgentEnvPanel(): void {\n agentEnvPanelStore.open = false;\n}\n\n/** Imperative read, mainly for tests. Components should use the hook. */\nexport function getAgentEnvPanelStore(): AgentEnvPanelRequest {\n return agentEnvPanelStore;\n}\n\n/** Reactive snapshot of the panel request for the host renderer. */\nexport function useAgentEnvPanelRequest(): AgentEnvPanelRequest {\n return useSnapshot(agentEnvPanelStore);\n}\n","import type { AgentEnvPanelFocus } from \"./agentEnvPanelStore\";\n\n/**\n * Run-failure codes actually emitted by the daemon runtime classifier\n * (packages/agent/daemon/runtime/visible_error.go `visibleFailureCode`). These\n * are the codes the conversation error card really receives — unlike the\n * aspirational `CODEX_*` codes, which the run pipeline never produces.\n *\n * Keep this union aligned with the Go switch in `visibleFailureCode`.\n */\nexport type AgentRunErrorCode =\n | \"auth_required\"\n | \"cli_not_found\"\n | \"cli_version_unsupported\"\n | \"network_error\"\n | \"runtime_unavailable\"\n | \"request_timed_out\"\n | \"provider_config_timeout\"\n | \"provider_stream_disconnected\"\n | \"provider_concurrency_limit\"\n | \"quota_or_rate_limit\"\n | \"process_exited\"\n | \"provider_error\"\n | \"unknown\";\n\nexport interface AgentErrorPresentation {\n /**\n * i18n key for the one human sentence shown in the card, or null to let the\n * caller fall back to its phase-aware generic title.\n */\n messageKey: string | null;\n /**\n * Env-panel section the remediation button deep-links to, or null when the\n * failure is transient/server-side and the wizard cannot fix it — in which\n * case no call-to-action is shown (showing one would misrepresent reality).\n */\n focus: AgentEnvPanelFocus | null;\n /** i18n key for the remediation button. Only meaningful when `focus` is set. */\n actionKey: string | null;\n}\n\nconst NO_CTA = { focus: null, actionKey: null } as const;\n\n// The escape hatch for hard failures whose cause is ambiguous from the message\n// alone (a non-zero exit, an unclassified provider error): send the user into\n// the wizard to self-detect, but keep the generic message.\nconst SELF_DETECT = {\n messageKey: null,\n focus: \"detect\" as const,\n actionKey: \"agentHost.agentGui.visibleErrorActionDetect\"\n};\n\nconst PRESENTATIONS: Record<AgentRunErrorCode, AgentErrorPresentation> = {\n // Environment problems the wizard can detect or repair → route to its step.\n auth_required: {\n messageKey: \"agentHost.agentGui.visibleErrorAuthRequired\",\n focus: \"auth\",\n actionKey: \"agentHost.agentGui.visibleErrorActionRelogin\"\n },\n cli_not_found: {\n messageKey: \"agentHost.agentGui.visibleErrorCliNotFound\",\n focus: \"install\",\n actionKey: \"agentHost.agentGui.visibleErrorActionInstall\"\n },\n cli_version_unsupported: {\n messageKey: \"agentHost.agentGui.visibleErrorVersionUnsupported\",\n focus: \"upgrade\",\n actionKey: \"agentHost.agentGui.visibleErrorActionUpgrade\"\n },\n network_error: {\n messageKey: \"agentHost.agentGui.visibleErrorNetwork\",\n focus: \"network\",\n actionKey: \"agentHost.agentGui.visibleErrorActionCheckNetwork\"\n },\n runtime_unavailable: {\n messageKey: \"agentHost.agentGui.visibleErrorRuntimeUnavailable\",\n focus: \"detect\",\n actionKey: \"agentHost.agentGui.visibleErrorActionDetect\"\n },\n // Transient / server-side failures: accurate copy, but no wizard CTA — it\n // cannot fix a rate limit or a dropped stream.\n request_timed_out: {\n messageKey: \"agentHost.agentGui.visibleErrorRequestTimedOut\",\n ...NO_CTA\n },\n provider_config_timeout: {\n messageKey: \"agentHost.agentGui.visibleErrorConfigTimeout\",\n ...NO_CTA\n },\n provider_stream_disconnected: {\n messageKey: \"agentHost.agentGui.visibleErrorStreamDisconnected\",\n ...NO_CTA\n },\n provider_concurrency_limit: {\n messageKey: \"agentHost.agentGui.visibleErrorConcurrencyLimit\",\n ...NO_CTA\n },\n quota_or_rate_limit: {\n messageKey: \"agentHost.agentGui.visibleErrorQuotaOrRateLimit\",\n ...NO_CTA\n },\n // Ambiguous hard failures → generic message + self-detect escape hatch.\n process_exited: SELF_DETECT,\n provider_error: SELF_DETECT,\n unknown: SELF_DETECT\n};\n\n/**\n * Resolves the card presentation for a run-failure code. Returns null for codes\n * outside the known vocabulary so the caller renders its plain generic card with\n * no call-to-action.\n */\nexport function resolveAgentErrorPresentation(\n code: string | null | undefined\n): AgentErrorPresentation | null {\n if (!code) {\n return null;\n }\n return PRESENTATIONS[code as AgentRunErrorCode] ?? null;\n}\n\nconst FAILED_MESSAGE_CODE_MARKERS: ReadonlyArray<\n readonly [AgentRunErrorCode, readonly string[]]\n> = [\n [\n \"auth_required\",\n [\n \"authentication_failed\",\n \"invalid authentication credentials\",\n \"401 invalid authentication\",\n \"unauthorized\",\n \"not logged in\",\n \"please run /login\",\n \"invalid api key\"\n ]\n ],\n [\n \"cli_version_unsupported\",\n [\"requires a newer version\", \"version is too old\", \"unsupported version\"]\n ],\n [\n \"cli_not_found\",\n [\n \"no such file or directory\",\n \"command not found\",\n \"enoent\",\n \"executable file not found\"\n ]\n ],\n [\n \"network_error\",\n [\"enotfound\", \"econnrefused\", \"econnreset\", \"getaddrinfo\", \"socket hang up\"]\n ]\n];\n\n/**\n * Some providers (notably Claude Code) report an environment failure — e.g. a\n * dropped login (401) — as a plain failed assistant message rather than a\n * structured visibleError, so it never gets the remediation card. This recovers\n * the env-fixable code from that message's text so the caller can still route the\n * user to the wizard. Returns null when the text isn't a recognized env failure\n * (so transient/unknown failures stay plain).\n */\nexport function classifyFailedAgentMessage(\n body: string | null | undefined\n): AgentRunErrorCode | null {\n if (!body) {\n return null;\n }\n const lower = body.toLowerCase();\n for (const [code, markers] of FAILED_MESSAGE_CODE_MARKERS) {\n if (markers.some((marker) => lower.includes(marker))) {\n return code;\n }\n }\n return null;\n}\n"],"mappings":";AAAA,SAAS,mBAAmB;AAC5B,SAAS,aAAa;AAgCtB,IAAM,qBAAqB,MAA4B;AAAA,EACrD,MAAM;AAAA,EACN,UAAU;AAAA,EACV,OAAO;AAAA,EACP,iBAAiB;AACnB,CAAC;AAOM,SAAS,kBAAkB,OAAsC;AACtE,qBAAmB,OAAO;AAC1B,qBAAmB,WAAW,OAAO,YAAY;AACjD,qBAAmB,QAAQ,OAAO,SAAS;AAC3C,qBAAmB,mBAAmB;AACxC;AAEO,SAAS,qBAA2B;AACzC,qBAAmB,OAAO;AAC5B;AAGO,SAAS,wBAA8C;AAC5D,SAAO;AACT;AAGO,SAAS,0BAAgD;AAC9D,SAAO,YAAY,kBAAkB;AACvC;;;ACvBA,IAAM,SAAS,EAAE,OAAO,MAAM,WAAW,KAAK;AAK9C,IAAM,cAAc;AAAA,EAClB,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,WAAW;AACb;AAEA,IAAM,gBAAmE;AAAA;AAAA,EAEvE,eAAe;AAAA,IACb,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,WAAW;AAAA,EACb;AAAA,EACA,eAAe;AAAA,IACb,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,WAAW;AAAA,EACb;AAAA,EACA,yBAAyB;AAAA,IACvB,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,WAAW;AAAA,EACb;AAAA,EACA,eAAe;AAAA,IACb,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,WAAW;AAAA,EACb;AAAA,EACA,qBAAqB;AAAA,IACnB,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,WAAW;AAAA,EACb;AAAA;AAAA;AAAA,EAGA,mBAAmB;AAAA,IACjB,YAAY;AAAA,IACZ,GAAG;AAAA,EACL;AAAA,EACA,yBAAyB;AAAA,IACvB,YAAY;AAAA,IACZ,GAAG;AAAA,EACL;AAAA,EACA,8BAA8B;AAAA,IAC5B,YAAY;AAAA,IACZ,GAAG;AAAA,EACL;AAAA,EACA,4BAA4B;AAAA,IAC1B,YAAY;AAAA,IACZ,GAAG;AAAA,EACL;AAAA,EACA,qBAAqB;AAAA,IACnB,YAAY;AAAA,IACZ,GAAG;AAAA,EACL;AAAA;AAAA,EAEA,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,SAAS;AACX;AAOO,SAAS,8BACd,MAC+B;AAC/B,MAAI,CAAC,MAAM;AACT,WAAO;AAAA,EACT;AACA,SAAO,cAAc,IAAyB,KAAK;AACrD;AAEA,IAAM,8BAEF;AAAA,EACF;AAAA,IACE;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE;AAAA,IACA,CAAC,4BAA4B,sBAAsB,qBAAqB;AAAA,EAC1E;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE;AAAA,IACA,CAAC,aAAa,gBAAgB,cAAc,eAAe,gBAAgB;AAAA,EAC7E;AACF;AAUO,SAAS,2BACd,MAC0B;AAC1B,MAAI,CAAC,MAAM;AACT,WAAO;AAAA,EACT;AACA,QAAM,QAAQ,KAAK,YAAY;AAC/B,aAAW,CAAC,MAAM,OAAO,KAAK,6BAA6B;AACzD,QAAI,QAAQ,KAAK,CAAC,WAAW,MAAM,SAAS,MAAM,CAAC,GAAG;AACpD,aAAO;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;","names":[]}
@@ -3,14 +3,14 @@ import {
3
3
  getOptionalAgentHostApi,
4
4
  managedAgentRoundedIconUrl,
5
5
  useOptionalAgentHostApi
6
- } from "./chunk-S6PCOX3S.js";
7
- import {
8
- resolveAgentWorkspaceFileVisualKind
9
- } from "./chunk-PJP5BUU6.js";
6
+ } from "./chunk-HVU46DDA.js";
10
7
  import {
11
8
  translate,
12
9
  useTranslation
13
- } from "./chunk-Z3AAQQFD.js";
10
+ } from "./chunk-5SRRKWE4.js";
11
+ import {
12
+ resolveAgentWorkspaceFileVisualKind
13
+ } from "./chunk-PJP5BUU6.js";
14
14
 
15
15
  // app/renderer/lib/utils.ts
16
16
  import { clsx } from "clsx";
@@ -3657,4 +3657,4 @@ export {
3657
3657
  CustomScrollArea,
3658
3658
  MessageSquareMoreIcon
3659
3659
  };
3660
- //# sourceMappingURL=chunk-2VHP7KQ5.js.map
3660
+ //# sourceMappingURL=chunk-SLT5Q37C.js.map
@@ -1,9 +1,9 @@
1
+ import {
2
+ translateInUiLanguage
3
+ } from "./chunk-IS6JUDDY.js";
1
4
  import {
2
5
  normalizeAgentTitleText
3
6
  } from "./chunk-GCBDIQDX.js";
4
- import {
5
- translateInUiLanguage
6
- } from "./chunk-33LWYV6O.js";
7
7
 
8
8
  // shared/utils/agentSessionMentionText.ts
9
9
  import {
@@ -314,4 +314,4 @@ export {
314
314
  resolveAgentGUIProviderDisplayLabel,
315
315
  firstAgentGUIUserMessageTitle
316
316
  };
317
- //# sourceMappingURL=chunk-SZ7JGCS3.js.map
317
+ //# sourceMappingURL=chunk-UCCUIUGK.js.map
@@ -4,23 +4,23 @@ import {
4
4
  AgentMentionSearchController,
5
5
  flattenAgentMentionPaletteEntries,
6
6
  groupStartKeys
7
- } from "../chunk-IMZBRUP3.js";
8
- import "../chunk-HFZOXSSQ.js";
9
- import "../chunk-QFHR527D.js";
7
+ } from "../chunk-BT5WEZO5.js";
8
+ import "../chunk-CEMXB7LA.js";
9
+ import "../chunk-OLI2A3EM.js";
10
10
  import "../chunk-IBIMGLCD.js";
11
- import "../chunk-N37A5CJH.js";
11
+ import "../chunk-NX6T3DDS.js";
12
12
  import "../chunk-Y35GDLP2.js";
13
13
  import "../chunk-LUGELG5V.js";
14
- import "../chunk-S6PCOX3S.js";
14
+ import "../chunk-HVU46DDA.js";
15
15
  import "../chunk-TYGL25EL.js";
16
+ import "../chunk-5SRRKWE4.js";
16
17
  import "../chunk-PJP5BUU6.js";
17
18
  import "../chunk-MTFSQWZ6.js";
19
+ import "../chunk-IS6JUDDY.js";
18
20
  import {
19
21
  AGENT_CONTEXT_MENTION_PROVIDER_IDS
20
22
  } from "../chunk-JM24HADP.js";
21
23
  import "../chunk-GCBDIQDX.js";
22
- import "../chunk-Z3AAQQFD.js";
23
- import "../chunk-33LWYV6O.js";
24
24
  export {
25
25
  AGENT_CONTEXT_MENTION_PROVIDER_IDS,
26
26
  AgentContextMentionPalette,
@@ -732,6 +732,9 @@ declare const agentGuiI18nResources: {
732
732
  readonly systemNoticeTransportFallback: "Codex switched to HTTPS transport";
733
733
  readonly systemNoticeWarning: "Codex warning";
734
734
  readonly systemNoticeDefault: "Agent notice";
735
+ readonly contextCompactionInProgress: "Compacting context";
736
+ readonly contextCompactionCompleted: "Context compacted.";
737
+ readonly contextCompactionInterrupted: "Context compaction interrupted.";
735
738
  readonly turnSummary: "Changed files";
736
739
  readonly userMessageLocator: "User messages";
737
740
  readonly turnSummaryFilesChanged: "{{count}} files changed";
@@ -850,6 +853,7 @@ declare const agentGuiI18nResources: {
850
853
  readonly fileMentionTabHint: "Tab switch category | ←→ enter/leave folder | ↑↓ switch selection";
851
854
  readonly mentionPalette: "Mention context";
852
855
  readonly addReference: "Add reference";
856
+ readonly addContent: "Add files and more";
853
857
  readonly referenceWorkspaceFiles: "Reference workspace files";
854
858
  readonly referencePicker: {
855
859
  readonly clearFilter: "Clear filter";
@@ -3209,6 +3213,9 @@ declare const agentGuiI18nResources: {
3209
3213
  readonly systemNoticeTransportFallback: "Codex 已切换到 HTTPS 传输";
3210
3214
  readonly systemNoticeWarning: "Codex 警告";
3211
3215
  readonly systemNoticeDefault: "Agent 通知";
3216
+ readonly contextCompactionInProgress: "正在压缩上下文";
3217
+ readonly contextCompactionCompleted: "已压缩上下文";
3218
+ readonly contextCompactionInterrupted: "上下文压缩已中断";
3212
3219
  readonly turnSummary: "已变更文件";
3213
3220
  readonly userMessageLocator: "用户消息";
3214
3221
  readonly turnSummaryFilesChanged: "变更了 {{count}} 个文件";
@@ -3327,6 +3334,7 @@ declare const agentGuiI18nResources: {
3327
3334
  readonly fileMentionTabHint: "Tab 切换分类 | ←→ 进入/返回文件夹 | ↑↓ 切换选中";
3328
3335
  readonly mentionPalette: "提及上下文";
3329
3336
  readonly addReference: "添加引用";
3337
+ readonly addContent: "添加文件等内容";
3330
3338
  readonly referenceWorkspaceFiles: "引用空间文件";
3331
3339
  readonly referencePicker: {
3332
3340
  readonly clearFilter: "清除筛选";
@@ -6,8 +6,8 @@ import {
6
6
  translate,
7
7
  translateInUiLanguage,
8
8
  useTranslation
9
- } from "../chunk-Z3AAQQFD.js";
10
- import "../chunk-33LWYV6O.js";
9
+ } from "../chunk-5SRRKWE4.js";
10
+ import "../chunk-IS6JUDDY.js";
11
11
  export {
12
12
  AgentGuiI18nProvider,
13
13
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -199,6 +199,53 @@ interface AgentActivityRuntimeListGeneratedFilesInput {
199
199
  signal?: AbortSignal;
200
200
  workspaceId: string;
201
201
  }
202
+ interface AgentActivityRuntimeListSessionsPageInput {
203
+ limit?: number;
204
+ searchQuery?: string;
205
+ signal?: AbortSignal;
206
+ workspaceId: string;
207
+ }
208
+ interface AgentActivityRuntimeSessionPageResult {
209
+ hasMore: boolean;
210
+ nextCursor?: string;
211
+ sessions: AgentActivitySession[];
212
+ workspaceId: string;
213
+ }
214
+ interface AgentActivityRuntimeListSessionSectionsInput {
215
+ agentTargetId?: string | null;
216
+ limitPerSection?: number;
217
+ signal?: AbortSignal;
218
+ workspaceId: string;
219
+ }
220
+ interface AgentActivityRuntimeListSessionSectionPageInput {
221
+ agentTargetId?: string | null;
222
+ cursor?: string;
223
+ limit?: number;
224
+ sectionKey: string;
225
+ signal?: AbortSignal;
226
+ workspaceId: string;
227
+ }
228
+ interface AgentActivityRuntimeUserProject {
229
+ createdAtUnixMs: number;
230
+ id: string;
231
+ label: string;
232
+ lastUsedAtUnixMs?: number;
233
+ path: string;
234
+ sectionKey: string;
235
+ updatedAtUnixMs: number;
236
+ }
237
+ interface AgentActivityRuntimeSessionSection {
238
+ kind: "conversations" | "project";
239
+ sectionKey: string;
240
+ userProject?: AgentActivityRuntimeUserProject;
241
+ sessions: AgentActivitySession[];
242
+ hasMore: boolean;
243
+ nextCursor?: string;
244
+ }
245
+ interface AgentActivityRuntimeSessionSectionsResult {
246
+ sections: AgentActivityRuntimeSessionSection[];
247
+ workspaceId: string;
248
+ }
202
249
  interface AgentActivityRuntimeGeneratedFile {
203
250
  label: string;
204
251
  path: string;
@@ -351,6 +398,9 @@ interface AgentActivityRuntime {
351
398
  getSnapshot(workspaceId: string): AgentActivitySnapshot;
352
399
  listSessionMessages(input: AgentActivityRuntimeListSessionMessagesInput): Promise<AgentActivityMessagePage>;
353
400
  listAgentGeneratedFiles?(input: AgentActivityRuntimeListGeneratedFilesInput): Promise<AgentActivityRuntimeGeneratedFileList>;
401
+ listSessionsPage?(input: AgentActivityRuntimeListSessionsPageInput): Promise<AgentActivityRuntimeSessionPageResult>;
402
+ listSessionSections?(input: AgentActivityRuntimeListSessionSectionsInput): Promise<AgentActivityRuntimeSessionSectionsResult>;
403
+ listSessionSectionPage?(input: AgentActivityRuntimeListSessionSectionPageInput): Promise<AgentActivityRuntimeSessionSection>;
354
404
  load(workspaceId: string, signal?: AbortSignal): Promise<AgentActivitySnapshot>;
355
405
  ensureSessionSynchronized?(input: AgentActivityRuntimeEnsureSessionSynchronizedInput): () => void;
356
406
  /** @deprecated Use ensureSessionSynchronized. */
@@ -471,6 +521,7 @@ interface AgentComposerProps {
471
521
  uiLanguage?: UiLanguage;
472
522
  isActive?: boolean;
473
523
  previewMode?: boolean;
524
+ workspaceReferencePickerOpen?: boolean;
474
525
  promptImagesSupported?: boolean;
475
526
  composerFocusRequestSequence?: number | null;
476
527
  layoutMode?: "dock" | "hero";
@@ -613,6 +664,7 @@ interface AgentComposerProps {
613
664
  mentionPalette: string;
614
665
  removeMention: string;
615
666
  addReference: string;
667
+ addContent: string;
616
668
  referenceWorkspaceFiles: string;
617
669
  providerSwitchLabel: string;
618
670
  projectLocked: string;