@bastani/atomic 0.8.3-0 → 0.8.4-0

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 (174) hide show
  1. package/CHANGELOG.md +33 -17
  2. package/README.md +3 -3
  3. package/dist/builtin/intercom/index.ts +1 -1
  4. package/dist/builtin/intercom/package.json +1 -5
  5. package/dist/builtin/intercom/ui/compose.ts +1 -1
  6. package/dist/builtin/intercom/ui/inline-message.ts +1 -1
  7. package/dist/builtin/intercom/ui/session-list.ts +1 -1
  8. package/dist/builtin/mcp/commands.ts +1 -1
  9. package/dist/builtin/mcp/direct-tools.ts +1 -1
  10. package/dist/builtin/mcp/index.ts +1 -1
  11. package/dist/builtin/mcp/init.ts +1 -1
  12. package/dist/builtin/mcp/package.json +1 -5
  13. package/dist/builtin/mcp/proxy-modes.ts +1 -1
  14. package/dist/builtin/mcp/sampling-handler.ts +1 -1
  15. package/dist/builtin/mcp/state.ts +1 -1
  16. package/dist/builtin/mcp/tool-result-renderer.ts +1 -1
  17. package/dist/builtin/mcp/utils.ts +1 -1
  18. package/dist/builtin/subagents/CHANGELOG.md +3 -3
  19. package/dist/builtin/subagents/package.json +1 -5
  20. package/dist/builtin/subagents/src/agents/agent-management.ts +1 -1
  21. package/dist/builtin/subagents/src/extension/control-notices.ts +1 -1
  22. package/dist/builtin/subagents/src/extension/index.ts +1 -1
  23. package/dist/builtin/subagents/src/runs/background/async-execution.ts +1 -1
  24. package/dist/builtin/subagents/src/runs/background/async-job-tracker.ts +1 -1
  25. package/dist/builtin/subagents/src/runs/background/notify.ts +1 -1
  26. package/dist/builtin/subagents/src/runs/foreground/chain-clarify.ts +1 -1
  27. package/dist/builtin/subagents/src/runs/foreground/chain-execution.ts +1 -1
  28. package/dist/builtin/subagents/src/runs/foreground/subagent-executor.ts +1 -1
  29. package/dist/builtin/subagents/src/runs/shared/pi-spawn.ts +20 -17
  30. package/dist/builtin/subagents/src/runs/shared/subagent-prompt-runtime.ts +1 -1
  31. package/dist/builtin/subagents/src/shared/fork-context.ts +1 -1
  32. package/dist/builtin/subagents/src/shared/types.ts +1 -1
  33. package/dist/builtin/subagents/src/slash/slash-bridge.ts +1 -1
  34. package/dist/builtin/subagents/src/slash/slash-commands.ts +1 -1
  35. package/dist/builtin/subagents/src/tui/render-helpers.ts +1 -1
  36. package/dist/builtin/subagents/src/tui/render.ts +1 -1
  37. package/dist/builtin/web-access/index.ts +1 -1
  38. package/dist/builtin/web-access/package.json +1 -5
  39. package/dist/builtin/web-access/storage.ts +1 -1
  40. package/dist/builtin/web-access/summary-review.ts +1 -1
  41. package/dist/builtin/workflows/package.json +1 -5
  42. package/dist/builtin/workflows/src/extension/index.ts +1 -1
  43. package/dist/builtin/workflows/src/extension/wiring.ts +10 -10
  44. package/dist/builtin/workflows/src/runs/foreground/stage-control-registry.ts +1 -1
  45. package/dist/builtin/workflows/src/runs/foreground/stage-runner.ts +1 -1
  46. package/dist/builtin/workflows/src/runs/shared/model-fallback.ts +1 -1
  47. package/dist/builtin/workflows/src/runs/shared/workflow-runner.ts +1 -1
  48. package/dist/builtin/workflows/src/shared/types.ts +1 -1
  49. package/dist/builtin/workflows/src/tui/graph-theme.ts +2 -2
  50. package/dist/builtin/workflows/src/tui/overlay-adapter.ts +1 -1
  51. package/dist/builtin/workflows/src/tui/workflow-attach-pane.ts +1 -1
  52. package/dist/core/agent-session.d.ts +1 -0
  53. package/dist/core/agent-session.d.ts.map +1 -1
  54. package/dist/core/agent-session.js +9 -0
  55. package/dist/core/agent-session.js.map +1 -1
  56. package/dist/core/extensions/loader.d.ts.map +1 -1
  57. package/dist/core/extensions/loader.js +0 -4
  58. package/dist/core/extensions/loader.js.map +1 -1
  59. package/dist/core/extensions/types.d.ts +2 -2
  60. package/dist/core/extensions/types.d.ts.map +1 -1
  61. package/dist/core/extensions/types.js.map +1 -1
  62. package/dist/core/sdk.d.ts.map +1 -1
  63. package/dist/core/sdk.js +29 -12
  64. package/dist/core/sdk.js.map +1 -1
  65. package/dist/core/system-prompt.d.ts +10 -0
  66. package/dist/core/system-prompt.d.ts.map +1 -1
  67. package/dist/core/system-prompt.js +80 -8
  68. package/dist/core/system-prompt.js.map +1 -1
  69. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  70. package/dist/modes/interactive/theme/theme.js +2 -2
  71. package/dist/modes/interactive/theme/theme.js.map +1 -1
  72. package/dist/utils/tools-manager.d.ts.map +1 -1
  73. package/dist/utils/tools-manager.js +35 -9
  74. package/dist/utils/tools-manager.js.map +1 -1
  75. package/docs/compaction.md +2 -2
  76. package/docs/custom-provider.md +2 -2
  77. package/docs/extensions.md +17 -17
  78. package/docs/index.md +1 -1
  79. package/docs/packages.md +1 -1
  80. package/docs/quickstart.md +1 -1
  81. package/docs/rpc.md +1 -1
  82. package/docs/sdk.md +22 -22
  83. package/docs/session-format.md +1 -1
  84. package/docs/termux.md +1 -1
  85. package/docs/tui.md +6 -6
  86. package/examples/extensions/README.md +1 -1
  87. package/examples/extensions/auto-commit-on-exit.ts +1 -1
  88. package/examples/extensions/bash-spawn-hook.ts +2 -2
  89. package/examples/extensions/bookmark.ts +1 -1
  90. package/examples/extensions/border-status-editor.ts +1 -1
  91. package/examples/extensions/built-in-tool-renderer.ts +2 -2
  92. package/examples/extensions/claude-rules.ts +1 -1
  93. package/examples/extensions/commands.ts +1 -1
  94. package/examples/extensions/confirm-destructive.ts +1 -1
  95. package/examples/extensions/custom-compaction.ts +2 -2
  96. package/examples/extensions/custom-footer.ts +1 -1
  97. package/examples/extensions/custom-header.ts +2 -2
  98. package/examples/extensions/custom-provider-anthropic/index.ts +1 -1
  99. package/examples/extensions/custom-provider-gitlab-duo/index.ts +1 -1
  100. package/examples/extensions/dirty-repo-guard.ts +1 -1
  101. package/examples/extensions/doom-overlay/index.ts +1 -1
  102. package/examples/extensions/dynamic-resources/index.ts +1 -1
  103. package/examples/extensions/dynamic-tools.ts +1 -1
  104. package/examples/extensions/event-bus.ts +1 -1
  105. package/examples/extensions/file-trigger.ts +1 -1
  106. package/examples/extensions/git-checkpoint.ts +1 -1
  107. package/examples/extensions/github-issue-autocomplete.ts +1 -1
  108. package/examples/extensions/handoff.ts +2 -2
  109. package/examples/extensions/hello.ts +1 -1
  110. package/examples/extensions/hidden-thinking-label.ts +1 -1
  111. package/examples/extensions/inline-bash.ts +1 -1
  112. package/examples/extensions/input-transform.ts +1 -1
  113. package/examples/extensions/interactive-shell.ts +1 -1
  114. package/examples/extensions/mac-system-theme.ts +1 -1
  115. package/examples/extensions/message-renderer.ts +1 -1
  116. package/examples/extensions/minimal-mode.ts +2 -2
  117. package/examples/extensions/modal-editor.ts +1 -1
  118. package/examples/extensions/model-status.ts +1 -1
  119. package/examples/extensions/notify.ts +1 -1
  120. package/examples/extensions/overlay-qa-tests.ts +1 -1
  121. package/examples/extensions/overlay-test.ts +1 -1
  122. package/examples/extensions/permission-gate.ts +1 -1
  123. package/examples/extensions/pirate.ts +1 -1
  124. package/examples/extensions/plan-mode/index.ts +1 -1
  125. package/examples/extensions/preset.ts +2 -2
  126. package/examples/extensions/prompt-customizer.ts +1 -1
  127. package/examples/extensions/protected-paths.ts +1 -1
  128. package/examples/extensions/provider-payload.ts +1 -1
  129. package/examples/extensions/qna.ts +2 -2
  130. package/examples/extensions/question.ts +1 -1
  131. package/examples/extensions/questionnaire.ts +1 -1
  132. package/examples/extensions/rainbow-editor.ts +1 -1
  133. package/examples/extensions/reload-runtime.ts +1 -1
  134. package/examples/extensions/rpc-demo.ts +1 -1
  135. package/examples/extensions/sandbox/index.ts +2 -2
  136. package/examples/extensions/send-user-message.ts +1 -1
  137. package/examples/extensions/session-name.ts +1 -1
  138. package/examples/extensions/shutdown-command.ts +1 -1
  139. package/examples/extensions/snake.ts +1 -1
  140. package/examples/extensions/space-invaders.ts +1 -1
  141. package/examples/extensions/ssh.ts +2 -2
  142. package/examples/extensions/status-line.ts +1 -1
  143. package/examples/extensions/structured-output.ts +1 -1
  144. package/examples/extensions/subagent/agents.ts +1 -1
  145. package/examples/extensions/subagent/index.ts +1 -1
  146. package/examples/extensions/summarize.ts +2 -2
  147. package/examples/extensions/system-prompt-header.ts +1 -1
  148. package/examples/extensions/tic-tac-toe.ts +1 -1
  149. package/examples/extensions/timed-confirm.ts +1 -1
  150. package/examples/extensions/titlebar-spinner.ts +1 -1
  151. package/examples/extensions/todo.ts +1 -1
  152. package/examples/extensions/tool-override.ts +1 -1
  153. package/examples/extensions/tools.ts +2 -2
  154. package/examples/extensions/trigger-compact.ts +1 -1
  155. package/examples/extensions/truncated-tool.ts +2 -2
  156. package/examples/extensions/widget-placement.ts +1 -1
  157. package/examples/extensions/with-deps/index.ts +1 -1
  158. package/examples/extensions/working-indicator.ts +1 -1
  159. package/examples/extensions/working-message-test.ts +1 -1
  160. package/examples/sdk/01-minimal.ts +1 -1
  161. package/examples/sdk/02-custom-model.ts +1 -1
  162. package/examples/sdk/03-custom-prompt.ts +1 -1
  163. package/examples/sdk/04-skills.ts +1 -1
  164. package/examples/sdk/05-tools.ts +1 -1
  165. package/examples/sdk/06-extensions.ts +2 -2
  166. package/examples/sdk/07-context-files.ts +1 -1
  167. package/examples/sdk/08-prompt-templates.ts +1 -1
  168. package/examples/sdk/09-api-keys-and-oauth.ts +1 -1
  169. package/examples/sdk/10-settings.ts +1 -1
  170. package/examples/sdk/11-sessions.ts +1 -1
  171. package/examples/sdk/12-full-control.ts +1 -1
  172. package/examples/sdk/13-session-runtime.ts +1 -1
  173. package/examples/sdk/README.md +1 -1
  174. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { randomUUID } from "node:crypto";
2
2
  import * as fs from "node:fs";
3
3
  import * as path from "node:path";
4
- import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
4
+ import type { ExtensionAPI, ExtensionContext } from "@bastani/atomic";
5
5
  import { Key, matchesKey } from "@earendil-works/pi-tui";
6
6
  import { discoverAgents, discoverAgentsAll, type ChainConfig } from "../agents/agents.ts";
7
7
  import type { SubagentParamsLike } from "../runs/foreground/subagent-executor.ts";
@@ -1,4 +1,4 @@
1
- import type { Theme } from "@earendil-works/pi-coding-agent";
1
+ import type { Theme } from "@bastani/atomic";
2
2
  import { truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
3
3
 
4
4
  function fuzzyScore(query: string, text: string): number {
@@ -4,7 +4,7 @@
4
4
 
5
5
  import * as path from "node:path";
6
6
  import type { AgentToolResult } from "@earendil-works/pi-agent-core";
7
- import { getMarkdownTheme, type ExtensionContext } from "@earendil-works/pi-coding-agent";
7
+ import { getMarkdownTheme, type ExtensionContext } from "@bastani/atomic";
8
8
  import { Container, Markdown, Spacer, Text, visibleWidth, type Component } from "@earendil-works/pi-tui";
9
9
  import {
10
10
  type AgentProgress,
@@ -1,4 +1,4 @@
1
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
1
+ import type { ExtensionAPI, ExtensionContext } from "@bastani/atomic";
2
2
  import { Box, Text, truncateToWidth } from "@mariozechner/pi-tui";
3
3
  import { Type } from "typebox";
4
4
  import { StringEnum, complete, getModel, type Model } from "@mariozechner/pi-ai";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/web-access",
3
- "version": "0.8.3-0",
3
+ "version": "0.8.4-0",
4
4
  "private": true,
5
5
  "description": "Atomic extension for web search, URL fetching, GitHub repo cloning, PDF/video extraction.",
6
6
  "contributors": [
@@ -30,16 +30,12 @@
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@bastani/atomic": "*",
33
- "@earendil-works/pi-coding-agent": "*",
34
33
  "@earendil-works/pi-tui": "*"
35
34
  },
36
35
  "peerDependenciesMeta": {
37
36
  "@bastani/atomic": {
38
37
  "optional": true
39
38
  },
40
- "@earendil-works/pi-coding-agent": {
41
- "optional": true
42
- },
43
39
  "@earendil-works/pi-tui": {
44
40
  "optional": true
45
41
  }
@@ -1,4 +1,4 @@
1
- import type { ExtensionContext } from "@mariozechner/pi-coding-agent";
1
+ import type { ExtensionContext } from "@bastani/atomic";
2
2
  import type { ExtractedContent } from "./extract.js";
3
3
  import type { SearchResult } from "./perplexity.js";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { complete, getModel, type Message, type Model } from "@mariozechner/pi-ai";
2
- import type { ExtensionContext } from "@mariozechner/pi-coding-agent";
2
+ import type { ExtensionContext } from "@bastani/atomic";
3
3
  import type { QueryResultData } from "./storage.js";
4
4
 
5
5
  const PREFERRED_SUMMARY_MODELS = [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/workflows",
3
- "version": "0.8.3-0",
3
+ "version": "0.8.4-0",
4
4
  "private": true,
5
5
  "description": "pi extension for multi-stage workflow authoring and execution.",
6
6
  "contributors": [
@@ -72,16 +72,12 @@
72
72
  },
73
73
  "peerDependencies": {
74
74
  "@bastani/atomic": "*",
75
- "@earendil-works/pi-coding-agent": "*",
76
75
  "@earendil-works/pi-tui": "*"
77
76
  },
78
77
  "peerDependenciesMeta": {
79
78
  "@bastani/atomic": {
80
79
  "optional": true
81
80
  },
82
- "@earendil-works/pi-coding-agent": {
83
- "optional": true
84
- },
85
81
  "@earendil-works/pi-tui": {
86
82
  "optional": true
87
83
  }
@@ -79,7 +79,7 @@ import type { StatusWriter } from "./status-writer.js";
79
79
  import { setMcpScope, clearMcpScope } from "./mcp.js";
80
80
  import type { PiMcpExtensionAPI, PiEventBus } from "./mcp.js";
81
81
  import type { StageSessionRuntime } from "../runs/foreground/stage-runner.js";
82
- import type { CreateAgentSessionOptions } from "@earendil-works/pi-coding-agent";
82
+ import type { CreateAgentSessionOptions } from "@bastani/atomic";
83
83
 
84
84
  // ---------------------------------------------------------------------------
85
85
  // Minimal ExtensionAPI structural types
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * `buildRuntimeAdapters` uses pi's in-process SDK (`createAgentSession`)
6
6
  * for workflow stages. The factory is imported directly from
7
- * `@earendil-works/pi-coding-agent` (a peer dependency) because the
7
+ * `@bastani/atomic` (a peer dependency) because the
8
8
  * modern pi `ExtensionAPI` does NOT inject `createAgentSession` onto the
9
9
  * extension surface — it is a top-level package export. Workflow authors
10
10
  * can pass `createAgentSession` options directly to
@@ -21,7 +21,7 @@
21
21
  * pi docs/sdk.md createAgentSession
22
22
  */
23
23
 
24
- import type { CreateAgentSessionOptions } from "@earendil-works/pi-coding-agent";
24
+ import type { CreateAgentSessionOptions } from "@bastani/atomic";
25
25
  import type { ChatMessageRenderOptions } from "@bastani/atomic";
26
26
  import type { StageAdapters, StageSessionRuntime } from "../runs/foreground/stage-runner.js";
27
27
  import type { StageExecutionMeta, StageOptions } from "../shared/types.js";
@@ -34,7 +34,7 @@ import type { StageExecutionMeta, StageOptions } from "../shared/types.js";
34
34
  * Minimal pi runtime surface needed to build stage adapters.
35
35
  *
36
36
  * SDK stage creation imports `createAgentSession` directly from
37
- * `@earendil-works/pi-coding-agent` (≥ 0.74 — the pi SDK exposes it as a
37
+ * `@bastani/atomic` (≥ 0.74 — the pi SDK exposes it as a
38
38
  * top-level package export, NOT on the `ExtensionAPI` surface). The
39
39
  * optional `createAgentSession` field here is a test seam so callers can
40
40
  * inject a stub session factory; production code does not require it.
@@ -77,15 +77,15 @@ function isTestContext(): boolean {
77
77
 
78
78
  /**
79
79
  * Lazily-resolved pi SDK session factory. Imported from
80
- * `@earendil-works/pi-coding-agent` on first use so the heavy SDK module
80
+ * `@bastani/atomic` on first use so the heavy SDK module
81
81
  * (filesystem discovery, resource loader, model registry) is not loaded
82
82
  * until an actual workflow stage runs. This is the canonical production
83
83
  * default — the modern pi SDK (≥ 0.74) exposes `createAgentSession` as a
84
84
  * top-level package export and does NOT inject it onto the ExtensionAPI,
85
85
  * so the workflow extension must reach into the SDK directly.
86
86
  *
87
- * cross-ref: node_modules/@earendil-works/pi-coding-agent/docs/sdk.md
88
- * node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.d.ts
87
+ * cross-ref: node_modules/@bastani/atomic/docs/sdk.md
88
+ * node_modules/@bastani/atomic/dist/core/sdk.d.ts
89
89
  */
90
90
  interface PiSdkSettingsManager {}
91
91
  interface PiSdkResourceLoader {
@@ -250,7 +250,7 @@ function makeStageExtensionUiContext(ui: PiUISurface) {
250
250
  * 2. `pi.createAgentSession` — wiring-surface test seam.
251
251
  * 3. in-process test stub when running under `bun:test` / `node:test`.
252
252
  * 4. lazy dynamic import of `createAgentSession` from
253
- * `@earendil-works/pi-coding-agent` — the canonical production
253
+ * `@bastani/atomic` — the canonical production
254
254
  * default (pi SDK ≥ 0.74 exposes it as a top-level package export,
255
255
  * NOT on the `ExtensionAPI` surface).
256
256
  */
@@ -294,7 +294,7 @@ export function buildRuntimeAdapters(
294
294
 
295
295
  /**
296
296
  * Subset of pi's ExtensionUIDialogOptions consumed by the adapter.
297
- * Structurally matched against @earendil-works/pi-coding-agent
297
+ * Structurally matched against @bastani/atomic
298
298
  * ExtensionUIDialogOptions.
299
299
  */
300
300
  export interface PiUIDialogOptions {
@@ -362,7 +362,7 @@ export interface PiOverlayHandle {
362
362
  /**
363
363
  * Options accepted by Pi/pi's real `ctx.ui.custom(factory, options)`
364
364
  * overlay primitive. Aligned with the shape documented in
365
- * `@earendil-works/pi-coding-agent docs/tui.md` and
365
+ * `@bastani/atomic docs/tui.md` and
366
366
  * `@earendil-works/pi-tui dist/tui.d.ts`.
367
367
  *
368
368
  * Host-compatibility note: pi's interactive
@@ -488,7 +488,7 @@ export type PiEditorFactory = (
488
488
 
489
489
  /**
490
490
  * Structural type for the pi UI dialog surface.
491
- * Matches @earendil-works/pi-coding-agent ExtensionUIContext dialog methods.
491
+ * Matches @bastani/atomic ExtensionUIContext dialog methods.
492
492
  * All fields optional — presence is checked at runtime before building adapter.
493
493
  */
494
494
  export interface PiUISurface {
@@ -21,7 +21,7 @@
21
21
  * - pi docs/sdk.md (AgentSession.prompt/steer/followUp/abort)
22
22
  */
23
23
 
24
- import type { AgentSession, AgentSessionEvent } from "@earendil-works/pi-coding-agent";
24
+ import type { AgentSession, AgentSessionEvent } from "@bastani/atomic";
25
25
 
26
26
  export type StageControlStatus =
27
27
  | "pending"
@@ -9,7 +9,7 @@
9
9
 
10
10
  import { mkdir, writeFile } from "node:fs/promises";
11
11
  import { dirname, isAbsolute, resolve } from "node:path";
12
- import { SessionManager, type AgentSession, type CreateAgentSessionOptions, type PromptOptions } from "@earendil-works/pi-coding-agent";
12
+ import { SessionManager, type AgentSession, type CreateAgentSessionOptions, type PromptOptions } from "@bastani/atomic";
13
13
  import type {
14
14
  CompleteStageOpts,
15
15
  StageContext,
@@ -1,4 +1,4 @@
1
- import type { CreateAgentSessionOptions } from "@earendil-works/pi-coding-agent";
1
+ import type { CreateAgentSessionOptions } from "@bastani/atomic";
2
2
  import type {
3
3
  WorkflowModelCatalogPort,
4
4
  WorkflowModelInfo,
@@ -11,7 +11,7 @@ import { discoverWorkflows } from "../../extension/discovery.js";
11
11
  import { createStore } from "../../shared/store.js";
12
12
  import { renderInputsSchema } from "../../shared/render-inputs-schema.js";
13
13
  import { validateInputs, type ValidationError } from "./validate-inputs.js";
14
- import type { CreateAgentSessionOptions } from "@earendil-works/pi-coding-agent";
14
+ import type { CreateAgentSessionOptions } from "@bastani/atomic";
15
15
  import type { StageSessionRuntime } from "../foreground/stage-runner.js";
16
16
  import type {
17
17
  WorkflowDetails,
@@ -10,7 +10,7 @@ import type {
10
10
  CreateAgentSessionOptions,
11
11
  ModelCycleResult,
12
12
  PromptOptions,
13
- } from "@earendil-works/pi-coding-agent";
13
+ } from "@bastani/atomic";
14
14
 
15
15
  export type { AgentSessionEvent, CompactionResult, ModelCycleResult, PromptOptions };
16
16
 
@@ -128,7 +128,7 @@ export function deriveGraphTheme(theme: GenericTheme = {}): GraphTheme {
128
128
  /**
129
129
  * Structural subset of Pi's `Theme` class. The orchestrator overlay's
130
130
  * `ctx.ui.custom` factory receives a live `Theme` instance whose
131
- * concrete class lives in `@earendil-works/pi-coding-agent`; we cannot import
131
+ * concrete class lives in `@bastani/atomic`; we cannot import
132
132
  * that runtime type from a `.ts` extension shipped to pi without
133
133
  * pulling the entire host into our type graph. Instead we accept any
134
134
  * object that exposes the two ANSI accessors we need and feature-detect
@@ -227,7 +227,7 @@ function bgHex(theme: PiRuntimeTheme, color: string): string | undefined {
227
227
  /**
228
228
  * Build a `GraphTheme` from a live Pi `Theme`-shaped object.
229
229
  *
230
- * Mapping rationale (see `node_modules/@earendil-works/pi-coding-agent
230
+ * Mapping rationale (see `node_modules/@bastani/atomic
231
231
  * /src/modes/theme/theme.ts` for the canonical Pi token names):
232
232
  *
233
233
  * - Strata: Pi has no first-class panel stratum but exposes
@@ -12,7 +12,7 @@
12
12
  * - src/tui/workflow-attach-pane.ts
13
13
  * - src/extension/wiring.ts PiCustomOverlayOptions, PiOverlayHandle
14
14
  * - @earendil-works/pi-tui dist/tui.d.ts OverlayOptions, OverlayHandle
15
- * - @earendil-works/pi-coding-agent docs/tui.md (overlay primitives)
15
+ * - @bastani/atomic docs/tui.md (overlay primitives)
16
16
  */
17
17
 
18
18
  import type { Store } from "../shared/store.js";
@@ -35,7 +35,7 @@ import type {
35
35
  * mounted. Passing `undefined` clears the slot — required on dispose so
36
36
  * the `pi-workflows/<workflow>[/<stage>]` tag does NOT linger in every
37
37
  * subsequent chat message after the overlay is closed.
38
- * cross-ref: @earendil-works/pi-coding-agent docs/extensions.md
38
+ * cross-ref: @bastani/atomic docs/extensions.md
39
39
  * §Widgets, Status, and Footer (`ctx.ui.setStatus`).
40
40
  */
41
41
  export interface AttachUiStatusSurface {
@@ -307,6 +307,7 @@ export declare class AgentSession {
307
307
  private _normalizePromptSnippet;
308
308
  private _normalizePromptGuidelines;
309
309
  private _rebuildSystemPrompt;
310
+ private _refreshBaseSystemPromptFromActiveTools;
310
311
  /**
311
312
  * Send a prompt to the agent.
312
313
  * - Handles extension commands (registered via pi.registerCommand) immediately, even during streaming