@f5-sales-demo/xcsh 21.19.3 → 21.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@f5-sales-demo/xcsh",
|
|
4
|
-
"version": "21.19.
|
|
4
|
+
"version": "21.19.4",
|
|
5
5
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
6
6
|
"homepage": "https://github.com/f5-sales-demo/xcsh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@agentclientprotocol/sdk": "1.3.0",
|
|
65
|
-
"@f5-sales-demo/pi-agent-core": "21.19.
|
|
66
|
-
"@f5-sales-demo/pi-ai": "21.19.
|
|
67
|
-
"@f5-sales-demo/pi-natives": "21.19.
|
|
68
|
-
"@f5-sales-demo/pi-resource-management": "21.19.
|
|
69
|
-
"@f5-sales-demo/pi-tui": "21.19.
|
|
70
|
-
"@f5-sales-demo/pi-utils": "21.19.
|
|
71
|
-
"@f5-sales-demo/xcsh-stats": "21.19.
|
|
65
|
+
"@f5-sales-demo/pi-agent-core": "21.19.4",
|
|
66
|
+
"@f5-sales-demo/pi-ai": "21.19.4",
|
|
67
|
+
"@f5-sales-demo/pi-natives": "21.19.4",
|
|
68
|
+
"@f5-sales-demo/pi-resource-management": "21.19.4",
|
|
69
|
+
"@f5-sales-demo/pi-tui": "21.19.4",
|
|
70
|
+
"@f5-sales-demo/pi-utils": "21.19.4",
|
|
71
|
+
"@f5-sales-demo/xcsh-stats": "21.19.4",
|
|
72
72
|
"@mozilla/readability": "^0.6",
|
|
73
73
|
"@sinclair/typebox": "^0.34",
|
|
74
74
|
"@xterm/headless": "^6.0",
|
|
@@ -72,6 +72,7 @@ const PHASE_LABEL_TTL_MS = 60_000;
|
|
|
72
72
|
const RESULT_MAX_CHARS = 80;
|
|
73
73
|
const SEMANTIC_RESULT_MAX_BYTES = 8_000;
|
|
74
74
|
const TURN_ENTRY_TYPE = "herdr.semantic-turn";
|
|
75
|
+
const EXECUTION_GENERATION_ENV = "HERDR_EXECUTION_GENERATION";
|
|
75
76
|
const SETTLED_TURN_RECONCILE_DELAY_MS = 25;
|
|
76
77
|
const PROMPT_BLOCKED_REASONS = {
|
|
77
78
|
select: "selection required",
|
|
@@ -100,6 +101,8 @@ function boundedSemanticResult(message: AssistantMessage | undefined): string {
|
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
interface PersistedTurn {
|
|
104
|
+
executionId: string;
|
|
105
|
+
paneId: string;
|
|
103
106
|
sessionId: string;
|
|
104
107
|
turnId: string;
|
|
105
108
|
generation: number;
|
|
@@ -111,6 +114,27 @@ interface PersistedTurn {
|
|
|
111
114
|
delivered?: boolean;
|
|
112
115
|
}
|
|
113
116
|
|
|
117
|
+
/**
|
|
118
|
+
* A journal event is authenticated to one execution generation. The execution
|
|
119
|
+
* backend, rather than the reporter, owns that value: guessing a generation
|
|
120
|
+
* would let an old process write into a continuation's journal. Keep ordinary
|
|
121
|
+
* pane reporting available when it is absent, but do not start semantic
|
|
122
|
+
* tracking until the backend has supplied a safe integer generation.
|
|
123
|
+
*/
|
|
124
|
+
function executionGeneration(): number | undefined {
|
|
125
|
+
const raw = process.env[EXECUTION_GENERATION_ENV];
|
|
126
|
+
if (raw === undefined || !/^(?:0|[1-9][0-9]*)$/.test(raw)) return undefined;
|
|
127
|
+
const generation = Number(raw);
|
|
128
|
+
return Number.isSafeInteger(generation) ? generation : undefined;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function executionBinding(paneId: string): { executionId: string; paneId: string; generation: number } | undefined {
|
|
132
|
+
const executionId = process.env.HERDR_EXECUTION_ID;
|
|
133
|
+
const generation = executionGeneration();
|
|
134
|
+
if (!executionId || generation === undefined) return undefined;
|
|
135
|
+
return { executionId, paneId, generation };
|
|
136
|
+
}
|
|
137
|
+
|
|
114
138
|
function persistedTurns(ctx: ExtensionContext): PersistedTurn[] {
|
|
115
139
|
try {
|
|
116
140
|
const entries = ctx.sessionManager?.getEntries?.() as unknown[] | undefined;
|
|
@@ -120,12 +144,22 @@ function persistedTurns(ctx: ExtensionContext): PersistedTurn[] {
|
|
|
120
144
|
if (record.type !== "custom" || record.customType !== TURN_ENTRY_TYPE) return [];
|
|
121
145
|
if (typeof record.data !== "object" || record.data === null) return [];
|
|
122
146
|
const turn = record.data as Record<string, unknown>;
|
|
123
|
-
if (
|
|
147
|
+
if (
|
|
148
|
+
typeof turn.executionId !== "string" ||
|
|
149
|
+
typeof turn.paneId !== "string" ||
|
|
150
|
+
typeof turn.sessionId !== "string" ||
|
|
151
|
+
typeof turn.turnId !== "string" ||
|
|
152
|
+
!Number.isSafeInteger(turn.generation) ||
|
|
153
|
+
(turn.generation as number) < 0
|
|
154
|
+
)
|
|
155
|
+
return [];
|
|
124
156
|
return [
|
|
125
157
|
{
|
|
158
|
+
executionId: turn.executionId,
|
|
159
|
+
paneId: turn.paneId,
|
|
126
160
|
sessionId: turn.sessionId,
|
|
127
161
|
turnId: turn.turnId,
|
|
128
|
-
generation:
|
|
162
|
+
generation: turn.generation as number,
|
|
129
163
|
eventRevision: typeof turn.eventRevision === "number" ? turn.eventRevision : undefined,
|
|
130
164
|
state: typeof turn.state === "string" ? (turn.state as PersistedTurn["state"]) : undefined,
|
|
131
165
|
result: typeof turn.result === "string" ? turn.result : undefined,
|
|
@@ -283,8 +317,7 @@ export default function herdrReporter(pi: ExtensionAPI): void {
|
|
|
283
317
|
state: "starting" | "working" | "waiting_input" | "completed" | "failed" | "cancelled" | "interrupted",
|
|
284
318
|
options: { result?: string; reason?: string } = {},
|
|
285
319
|
): Promise<void> => {
|
|
286
|
-
|
|
287
|
-
if (!executionId || !activeSemanticTurn) return Promise.resolve();
|
|
320
|
+
if (!executionBinding(paneId) || !activeSemanticTurn) return Promise.resolve();
|
|
288
321
|
const revision = ++semanticRevision;
|
|
289
322
|
const event: PersistedTurn = {
|
|
290
323
|
...activeSemanticTurn,
|
|
@@ -301,13 +334,21 @@ export default function herdrReporter(pi: ExtensionAPI): void {
|
|
|
301
334
|
|
|
302
335
|
const deliverSemanticEvent = (event: PersistedTurn): Promise<void> => {
|
|
303
336
|
const socketPath = process.env.HERDR_SOCKET_PATH;
|
|
304
|
-
const
|
|
305
|
-
if (
|
|
337
|
+
const binding = executionBinding(paneId);
|
|
338
|
+
if (
|
|
339
|
+
!socketPath ||
|
|
340
|
+
!binding ||
|
|
341
|
+
event.executionId !== binding.executionId ||
|
|
342
|
+
event.paneId !== binding.paneId ||
|
|
343
|
+
event.generation !== binding.generation ||
|
|
344
|
+
event.eventRevision === undefined ||
|
|
345
|
+
event.state === undefined
|
|
346
|
+
) {
|
|
306
347
|
return Promise.resolve();
|
|
307
348
|
}
|
|
308
349
|
const frame = {
|
|
309
|
-
execution_id: executionId,
|
|
310
|
-
pane_id: paneId,
|
|
350
|
+
execution_id: event.executionId,
|
|
351
|
+
pane_id: event.paneId,
|
|
311
352
|
producer: HERDR_AGENT_LABEL,
|
|
312
353
|
session_id: event.sessionId,
|
|
313
354
|
turn_id: event.turnId,
|
|
@@ -335,9 +376,11 @@ export default function herdrReporter(pi: ExtensionAPI): void {
|
|
|
335
376
|
};
|
|
336
377
|
|
|
337
378
|
const beginSemanticTurn = async (ctx: ExtensionContext): Promise<void> => {
|
|
379
|
+
const binding = executionBinding(paneId);
|
|
380
|
+
if (!binding) return;
|
|
338
381
|
const sessionId = ctx.sessionManager?.getSessionId?.();
|
|
339
382
|
if (typeof sessionId !== "string" || !sessionId) return;
|
|
340
|
-
activeSemanticTurn = { sessionId, turnId: randomUUID()
|
|
383
|
+
activeSemanticTurn = { ...binding, sessionId, turnId: randomUUID() };
|
|
341
384
|
semanticRevision = 0;
|
|
342
385
|
pendingSemanticResult = "";
|
|
343
386
|
pi.appendEntry(TURN_ENTRY_TYPE, { ...activeSemanticTurn, eventRevision: 0 });
|
|
@@ -509,7 +552,18 @@ export default function herdrReporter(pi: ExtensionAPI): void {
|
|
|
509
552
|
byRevision.set(`${event.sessionId}:${event.turnId}:${event.generation}:${event.eventRevision}`, event);
|
|
510
553
|
}
|
|
511
554
|
}
|
|
512
|
-
const
|
|
555
|
+
const binding = executionBinding(paneId);
|
|
556
|
+
if (!binding) return;
|
|
557
|
+
const events = [...byRevision.values()].filter(event => {
|
|
558
|
+
if (
|
|
559
|
+
event.executionId === binding.executionId &&
|
|
560
|
+
event.paneId === binding.paneId &&
|
|
561
|
+
event.generation === binding.generation
|
|
562
|
+
)
|
|
563
|
+
return true;
|
|
564
|
+
onError(new Error("Persisted Herdr turn binding does not match this execution"));
|
|
565
|
+
return false;
|
|
566
|
+
});
|
|
513
567
|
for (const event of events.filter(event => !event.delivered)) await deliverSemanticEvent(event);
|
|
514
568
|
const last = events.at(-1);
|
|
515
569
|
const terminal = last && ["completed", "failed", "cancelled", "interrupted"].includes(last.state ?? "");
|
|
@@ -17,17 +17,17 @@ export interface BuildInfo {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const BUILD_INFO: BuildInfo = {
|
|
20
|
-
"version": "21.19.
|
|
21
|
-
"commit": "
|
|
22
|
-
"shortCommit": "
|
|
20
|
+
"version": "21.19.4",
|
|
21
|
+
"commit": "b291e0bd13af2a6210f33dc820ce9a2ebf36419b",
|
|
22
|
+
"shortCommit": "b291e0b",
|
|
23
23
|
"branch": "main",
|
|
24
|
-
"tag": "v21.19.
|
|
25
|
-
"commitDate": "2026-09-
|
|
26
|
-
"buildDate": "2026-09-
|
|
24
|
+
"tag": "v21.19.4",
|
|
25
|
+
"commitDate": "2026-09-09T03:22:46+00:00",
|
|
26
|
+
"buildDate": "2026-09-09T04:17:49.325Z",
|
|
27
27
|
"dirty": true,
|
|
28
28
|
"prNumber": "",
|
|
29
29
|
"repoUrl": "https://github.com/f5-sales-demo/xcsh",
|
|
30
30
|
"repoSlug": "f5-sales-demo/xcsh",
|
|
31
|
-
"commitUrl": "https://github.com/f5-sales-demo/xcsh/commit/
|
|
32
|
-
"releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.19.
|
|
31
|
+
"commitUrl": "https://github.com/f5-sales-demo/xcsh/commit/b291e0bd13af2a6210f33dc820ce9a2ebf36419b",
|
|
32
|
+
"releaseUrl": "https://github.com/f5-sales-demo/xcsh/releases/tag/v21.19.4"
|
|
33
33
|
};
|
|
@@ -49,7 +49,7 @@ export const EMBEDDED_DOCS: Readonly<Record<string, string>> = {
|
|
|
49
49
|
"en/index.mdx": "---\ntitle: xcsh\ndescription: Independent open-source agentic shell for terminal work and F5 Distributed Cloud workflows.\ntemplate: splash\neditUrl: false\nhero:\n tagline: An agentic shell for terminal work, extensible automation, and reviewable F5 Distributed Cloud resource workflows.\n image:\n html: '<img src=\"/xcsh/images/xcsh-workflow.svg\" alt=\"Prompt, tools, and F5 Distributed Cloud workflow\" width=\"560\" height=\"360\" />'\n actions:\n - text: Install xcsh\n link: /xcsh/en/getting-started/installation/\n icon: right-arrow\n variant: primary\n - text: Run the quickstart\n link: /xcsh/en/getting-started/quickstart/\n icon: rocket\nsidebar:\n hidden: true\n order: 0\nhead:\n - tag: style\n content: >-\n .hero img { width: min(100%, 35rem); height: auto; filter: drop-shadow(0 1rem 2.5rem color-mix(in srgb, var(--sl-color-accent) 28%, transparent)); }\n .hero h1 { text-wrap: balance; }\n---\n\nxcsh combines an interactive coding agent with deterministic F5 Distributed Cloud resource commands. It is an independent open-source project, not an F5 product.\n\n## Where should I start?\n\n- New installation: [install xcsh](./getting-started/installation/), then run the [quickstart](./getting-started/quickstart/).\n- F5 Distributed Cloud change: select a [context and namespace](./f5-distributed-cloud/contexts-namespaces/), then [validate and diff](./f5-distributed-cloud/validate-diff/).\n- Existing session: review the [interactive shell](./use-xcsh/interactive-tui/) and [session controls](./use-xcsh/sessions-memory/).\n- Automation: choose a [headless mode](./automate-extend/headless-protocols/) or use the [software development kit (SDK)](./automate-extend/sdk/).\n",
|
|
50
50
|
"en/integrations-deployment/chrome.mdx": "---\ntitle: \"Chrome\"\ndescription: \"Use the xcsh Chrome extension and native host with an isolated automation profile.\"\nsidebar:\n order: 3\n label: \"Chrome\"\n---\n\nThe Chrome integration connects xcsh to a browser session for supported console automation. The installed `xcsh chrome --help` output is the command authority.\n\n## What is the safe operating boundary?\n\nUse a dedicated profile and an authorized target. Confirm the visible account, uniform resource locator (URL), and object before an action that changes state. Prefer deterministic F5 Distributed Cloud resource commands whenever they cover the same operation.\n\n## Which Chrome capabilities does xcsh expose?\n\nThe `chrome` command inspects and arranges browser sessions, and `chrome-host` runs the native messaging host that connects the extension to the executable. Page-level interaction is driven by the browser tool inside a session rather than by a subcommand, so scope it with `--tools` in the same way as any other tool.\n",
|
|
51
51
|
"en/integrations-deployment/containers.mdx": "---\ntitle: \"Containers\"\ndescription: \"Run the published multi-architecture Alpine image with explicit mounts and credentials.\"\nsidebar:\n order: 4\n label: \"Containers\"\n---\n\nThe published container packages xcsh for process isolation and repeatable deployment. It does not grant cloud credentials or filesystem access by itself.\n\n## How do I verify an image?\n\n```bash\ndocker pull ghcr.io/f5-sales-demo/xcsh:latest\ndocker run --rm ghcr.io/f5-sales-demo/xcsh:latest --version\n```\n\nPin a version tag or digest for automation. Mount only the task directory and inject credentials through the runtime's secret mechanism.\n\n## What must remain outside the image?\n\nKeep user contexts, provider tokens, and writable session data in explicit mounts or secret stores. Do not bake them into a derived layer.\n",
|
|
52
|
-
"en/integrations-deployment/herdr.mdx": "---\ntitle: \"Integrate with Herdr\"\ndescription: \"Understand Herdr workspace launch, terminal actions, protocol negotiation, and isolation.\"\nsidebar:\n order: 5\n label: \"Herdr\"\n---\n\nHerdr support is optional and host-dependent. When the host does not provide it, xcsh terminal operation is unaffected.\n\n## How is the host protocol negotiated?\n\nThe integration checks the available socket protocol and media or graphics capabilities before it requests a workspace. Missing negotiation support leaves ordinary xcsh terminal operation intact.\n\n## How is a conversation-owned workspace launched?\n\nA workspace is tied to the conversation identity supplied at startup. Terminal-management actions create or address panes within that workspace, and lifecycle reporting stays anchored to the same startup context. Do not reuse an unrelated workspace merely because its socket is reachable.\n\n## How do I recover from socket failure?\n\nConnection and framing failures surface as integration diagnostics. The client must not open an inbound listener as a fallback. Close conversation-owned resources through the supported lifecycle and preserve unrelated Herdr workspaces.\n\n## What lifecycle state does xcsh publish?\n\nXCSH publishes native turn phases rather than inferring completion from terminal idleness or process exit. With Herdr protocol 20 and the advertised `agent_turn_journal` capability, a tracked execution publishes a persisted session/turn identity and a bounded semantic result to Herdr's durable journal. The existing 80-character metadata preview remains display-only and is never completion evidence.\nCommentary, prompt content, tool data, and failed or cancelled partial output are excluded.\n\nSession shutdown releases pane authority. It does not convert an unfinished turn into a successful completion.\n\nThe verified contract is:\n\n| Concern | XCSH signal | Herdr disposition |\n| --- | --- | --- |\n| Session start and identity | Persisted native session ID/path | Herdr resume reference plus stable semantic session identity. |\n| Turn start/progress | Persisted UUID and normalized `turn_phase` | `starting`/`working` journal events with producer revision and server revision. |\n| Waiting for input/approval | `awaiting_user` and closed prompt kind | `waiting_input` with fixed safe reason; private prompt content is excluded. |\n| Successful completion | Settlement-aware `idle` after `agent_end` | `completed` with at most 8,000 UTF-8 bytes and a matching SHA-256 digest. |\n| Failure/cancellation | `error` or `cancelled` | Distinct terminal state and bounded safe reason; no partial result. |\n| Resume/fork | Session events and persisted custom turn entries | Resume preserves identity; unfinished recovered work becomes `interrupted`; fork has separate session lineage. |\n| Reconnect/order | Serialized queue and persisted event revision | Exact duplicates are idempotent; stale/conflicting revisions fail; terminal state is immutable. |\n| Application exit | `session_shutdown` | Active turn becomes `interrupted`, then pane authority is released; never success. |\n\nXCSH implementation is tracked by [issue #3768](https://github.com/f5-sales-demo/xcsh/issues/3768). The complete cross-project work packages and acceptance gates are in [Herdr native signaling gap-closing plan](../architecture-contribution/herdr-gap-closing-plan).\n\nHerdr lifecycle reconciliation is tracked by issue #5 in the F5 Herdr fork. Current source already recognizes the exact `(\"herdr:xcsh\", \"xcsh\")` resume pair; deployed build provenance and live resume/fork acceptance remain required before feature acceptance.\n",
|
|
52
|
+
"en/integrations-deployment/herdr.mdx": "---\ntitle: \"Integrate with Herdr\"\ndescription: \"Understand Herdr workspace launch, terminal actions, protocol negotiation, and isolation.\"\nsidebar:\n order: 5\n label: \"Herdr\"\n---\n\nHerdr support is optional and host-dependent. When the host does not provide it, xcsh terminal operation is unaffected.\n\n## How is the host protocol negotiated?\n\nThe integration checks the available socket protocol and media or graphics capabilities before it requests a workspace. Missing negotiation support leaves ordinary xcsh terminal operation intact.\n\n## How is a conversation-owned workspace launched?\n\nA workspace is tied to the conversation identity supplied at startup. Terminal-management actions create or address panes within that workspace, and lifecycle reporting stays anchored to the same startup context. Do not reuse an unrelated workspace merely because its socket is reachable.\n\n## How do I recover from socket failure?\n\nConnection and framing failures surface as integration diagnostics. The client must not open an inbound listener as a fallback. Close conversation-owned resources through the supported lifecycle and preserve unrelated Herdr workspaces.\n\n## What lifecycle state does xcsh publish?\n\nXCSH publishes native turn phases rather than inferring completion from terminal idleness or process exit. With Herdr protocol 20 and the advertised `agent_turn_journal` capability, a tracked execution publishes a persisted session/turn identity and a bounded semantic result to Herdr's durable journal. The existing 80-character metadata preview remains display-only and is never completion evidence.\nCommentary, prompt content, tool data, and failed or cancelled partial output are excluded.\n\n### External execution driver contract\n\nThe supported producer is the normal `xcsh` executable launched by Herdr's execution backend; it is not a mock or a no-provider/offline actor. For a journal-tracked invocation, that backend must inject the exact allocated `HERDR_EXECUTION_ID` and decimal safe-integer `HERDR_EXECUTION_GENERATION` into the child environment before it starts `xcsh`.\n\nXCSH never guesses a generation: without both values it retains ordinary pane lifecycle reporting but emits no semantic journal event. A continuation must be launched with its newly allocated generation.\n\nThe control/manager side owns translating `execution.cancel` to the child cancellation mechanism. XCSH then reports its native `cancelled` phase; asking a model to say it was cancelled is not a lifecycle event. Likewise, an input wait is only journaled after native `awaiting_user`, not from prose that asks a question.\n\nSession shutdown releases pane authority. It does not convert an unfinished turn into a successful completion.\n\nThe verified contract is:\n\n| Concern | XCSH signal | Herdr disposition |\n| --- | --- | --- |\n| Session start and identity | Persisted native session ID/path | Herdr resume reference plus stable semantic session identity. |\n| Turn start/progress | Persisted UUID and normalized `turn_phase` | `starting`/`working` journal events with producer revision and server revision. |\n| Waiting for input/approval | `awaiting_user` and closed prompt kind | `waiting_input` with fixed safe reason; private prompt content is excluded. |\n| Successful completion | Settlement-aware `idle` after `agent_end` | `completed` with at most 8,000 UTF-8 bytes and a matching SHA-256 digest. |\n| Failure/cancellation | `error` or `cancelled` | Distinct terminal state and bounded safe reason; no partial result. |\n| Resume/fork | Session events and persisted custom turn entries | Resume preserves identity; unfinished recovered work becomes `interrupted`; fork has separate session lineage. |\n| Reconnect/order | Serialized queue and persisted event revision | Exact duplicates are idempotent; stale/conflicting revisions fail; terminal state is immutable. |\n| Application exit | `session_shutdown` | Active turn becomes `interrupted`, then pane authority is released; never success. |\n\nXCSH implementation is tracked by [issue #3768](https://github.com/f5-sales-demo/xcsh/issues/3768). The complete cross-project work packages and acceptance gates are in [Herdr native signaling gap-closing plan](../architecture-contribution/herdr-gap-closing-plan).\n\nHerdr lifecycle reconciliation is tracked by issue #5 in the F5 Herdr fork. Current source already recognizes the exact `(\"herdr:xcsh\", \"xcsh\")` resume pair; deployed build provenance and live resume/fork acceptance remain required before feature acceptance.\n",
|
|
53
53
|
"en/integrations-deployment/index.mdx": "---\ntitle: \"Integrations and deployment\"\ndescription: \"Deploy xcsh in containers and connect the editor, browser, Office, and Herdr surfaces.\"\nsidebar:\n order: 0\n label: \"Overview\"\n---\n\nChoose an integration by host, authority, and lifecycle boundary.\n\n## Which integration fits?\n\n- [Containers](./containers/) for an isolated packaged runtime.\n- [VS Code](./vscode/), [Chrome](./chrome/), [Office](./office/), or [Herdr](./herdr/) only when that companion surface is installed and the task needs it.\n",
|
|
54
54
|
"en/integrations-deployment/office.mdx": "---\ntitle: \"Microsoft Office task pane\"\ndescription: \"Serve or sideload the embedded task pane for Excel, Word, and PowerPoint.\"\nsidebar:\n order: 2\n label: \"Microsoft Office task pane\"\n---\n\nThe Office pane packages an xcsh sidebar for supported Excel, Word, and PowerPoint hosts. `xcsh office --help` describes the installed serve, print, and sideload actions.\n\n## Who owns the test surface?\n\nPackage tests own pane components, bridge messages, and host-independent state. Office-host integration tests own document application programming interfaces (APIs), sideloading, and task-pane lifecycle. A change that crosses the bridge requires both suites; a passing browser-style component test does not prove Word, Excel, or PowerPoint host behavior.\n\n## What must be running?\n\nThe pane build and its local bridge server must match the xcsh version used for the session. One active sidebar binds to one server session at a time.\n\n## Which host steps vary by platform?\n\nRibbon placement, the sideload mechanism, and trust prompts differ across Office on Windows, Office on macOS, and Office on the web. Read the sideload action from `xcsh office --help`, then follow the Microsoft sideloading procedure for the specific host you are targeting.\n",
|
|
55
55
|
"en/integrations-deployment/vscode.mdx": "---\ntitle: \"VS Code\"\ndescription: \"Use the companion VS Code integration with the same xcsh model and session foundation.\"\nsidebar:\n order: 1\n label: \"VS Code\"\n---\n\nThe companion VS Code extension embeds an xcsh conversation in an editor workspace. Its extension manifest and source repository define the supported commands and distribution channel.\n\n## What carries over from the terminal?\n\nProvider configuration, model selection, session concepts, and workspace file boundaries follow the xcsh runtime. Open the intended workspace before starting a conversation.\n\n## Which behavior should I validate in the terminal?\n\nEditor menus and command palette entries belong to the extension host and change with its release. Reproduce runtime behavior with the command-line interface (CLI) first:\n\n1. Run the same prompt with `xcsh -p` in the workspace directory.\n2. Compare the model, provider, and tool set reported there with the editor session.\n3. Inspect the persisted session file rather than the editor transcript when an exact sequence matters.\n\nA difference between the two points at extension configuration, not at the agent loop.\n",
|