@bastani/atomic 0.8.3 → 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.
- package/CHANGELOG.md +27 -17
- package/README.md +3 -3
- package/dist/builtin/intercom/index.ts +1 -1
- package/dist/builtin/intercom/package.json +1 -5
- package/dist/builtin/intercom/ui/compose.ts +1 -1
- package/dist/builtin/intercom/ui/inline-message.ts +1 -1
- package/dist/builtin/intercom/ui/session-list.ts +1 -1
- package/dist/builtin/mcp/commands.ts +1 -1
- package/dist/builtin/mcp/direct-tools.ts +1 -1
- package/dist/builtin/mcp/index.ts +1 -1
- package/dist/builtin/mcp/init.ts +1 -1
- package/dist/builtin/mcp/package.json +1 -5
- package/dist/builtin/mcp/proxy-modes.ts +1 -1
- package/dist/builtin/mcp/sampling-handler.ts +1 -1
- package/dist/builtin/mcp/state.ts +1 -1
- package/dist/builtin/mcp/tool-result-renderer.ts +1 -1
- package/dist/builtin/mcp/utils.ts +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +3 -3
- package/dist/builtin/subagents/package.json +1 -5
- package/dist/builtin/subagents/src/agents/agent-management.ts +1 -1
- package/dist/builtin/subagents/src/extension/control-notices.ts +1 -1
- package/dist/builtin/subagents/src/extension/index.ts +1 -1
- package/dist/builtin/subagents/src/runs/background/async-execution.ts +1 -1
- package/dist/builtin/subagents/src/runs/background/async-job-tracker.ts +1 -1
- package/dist/builtin/subagents/src/runs/background/notify.ts +1 -1
- package/dist/builtin/subagents/src/runs/foreground/chain-clarify.ts +1 -1
- package/dist/builtin/subagents/src/runs/foreground/chain-execution.ts +1 -1
- package/dist/builtin/subagents/src/runs/foreground/subagent-executor.ts +1 -1
- package/dist/builtin/subagents/src/runs/shared/pi-spawn.ts +20 -17
- package/dist/builtin/subagents/src/runs/shared/subagent-prompt-runtime.ts +1 -1
- package/dist/builtin/subagents/src/shared/fork-context.ts +1 -1
- package/dist/builtin/subagents/src/shared/types.ts +1 -1
- package/dist/builtin/subagents/src/slash/slash-bridge.ts +1 -1
- package/dist/builtin/subagents/src/slash/slash-commands.ts +1 -1
- package/dist/builtin/subagents/src/tui/render-helpers.ts +1 -1
- package/dist/builtin/subagents/src/tui/render.ts +1 -1
- package/dist/builtin/web-access/index.ts +1 -1
- package/dist/builtin/web-access/package.json +1 -5
- package/dist/builtin/web-access/storage.ts +1 -1
- package/dist/builtin/web-access/summary-review.ts +1 -1
- package/dist/builtin/workflows/package.json +1 -5
- package/dist/builtin/workflows/src/extension/index.ts +1 -1
- package/dist/builtin/workflows/src/extension/wiring.ts +10 -10
- package/dist/builtin/workflows/src/runs/foreground/stage-control-registry.ts +1 -1
- package/dist/builtin/workflows/src/runs/foreground/stage-runner.ts +1 -1
- package/dist/builtin/workflows/src/runs/shared/model-fallback.ts +1 -1
- package/dist/builtin/workflows/src/runs/shared/workflow-runner.ts +1 -1
- package/dist/builtin/workflows/src/shared/types.ts +1 -1
- package/dist/builtin/workflows/src/tui/graph-theme.ts +2 -2
- package/dist/builtin/workflows/src/tui/overlay-adapter.ts +1 -1
- package/dist/builtin/workflows/src/tui/workflow-attach-pane.ts +1 -1
- package/dist/core/agent-session.d.ts +1 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +9 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +0 -4
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/types.d.ts +2 -2
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +29 -12
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/system-prompt.d.ts +10 -0
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +80 -8
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +2 -2
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +35 -9
- package/dist/utils/tools-manager.js.map +1 -1
- package/docs/compaction.md +2 -2
- package/docs/custom-provider.md +2 -2
- package/docs/extensions.md +17 -17
- package/docs/index.md +1 -1
- package/docs/packages.md +1 -1
- package/docs/quickstart.md +1 -1
- package/docs/rpc.md +1 -1
- package/docs/sdk.md +22 -22
- package/docs/session-format.md +1 -1
- package/docs/termux.md +1 -1
- package/docs/tui.md +6 -6
- package/examples/extensions/README.md +1 -1
- package/examples/extensions/auto-commit-on-exit.ts +1 -1
- package/examples/extensions/bash-spawn-hook.ts +2 -2
- package/examples/extensions/bookmark.ts +1 -1
- package/examples/extensions/border-status-editor.ts +1 -1
- package/examples/extensions/built-in-tool-renderer.ts +2 -2
- package/examples/extensions/claude-rules.ts +1 -1
- package/examples/extensions/commands.ts +1 -1
- package/examples/extensions/confirm-destructive.ts +1 -1
- package/examples/extensions/custom-compaction.ts +2 -2
- package/examples/extensions/custom-footer.ts +1 -1
- package/examples/extensions/custom-header.ts +2 -2
- package/examples/extensions/custom-provider-anthropic/index.ts +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +1 -1
- package/examples/extensions/dirty-repo-guard.ts +1 -1
- package/examples/extensions/doom-overlay/index.ts +1 -1
- package/examples/extensions/dynamic-resources/index.ts +1 -1
- package/examples/extensions/dynamic-tools.ts +1 -1
- package/examples/extensions/event-bus.ts +1 -1
- package/examples/extensions/file-trigger.ts +1 -1
- package/examples/extensions/git-checkpoint.ts +1 -1
- package/examples/extensions/github-issue-autocomplete.ts +1 -1
- package/examples/extensions/handoff.ts +2 -2
- package/examples/extensions/hello.ts +1 -1
- package/examples/extensions/hidden-thinking-label.ts +1 -1
- package/examples/extensions/inline-bash.ts +1 -1
- package/examples/extensions/input-transform.ts +1 -1
- package/examples/extensions/interactive-shell.ts +1 -1
- package/examples/extensions/mac-system-theme.ts +1 -1
- package/examples/extensions/message-renderer.ts +1 -1
- package/examples/extensions/minimal-mode.ts +2 -2
- package/examples/extensions/modal-editor.ts +1 -1
- package/examples/extensions/model-status.ts +1 -1
- package/examples/extensions/notify.ts +1 -1
- package/examples/extensions/overlay-qa-tests.ts +1 -1
- package/examples/extensions/overlay-test.ts +1 -1
- package/examples/extensions/permission-gate.ts +1 -1
- package/examples/extensions/pirate.ts +1 -1
- package/examples/extensions/plan-mode/index.ts +1 -1
- package/examples/extensions/preset.ts +2 -2
- package/examples/extensions/prompt-customizer.ts +1 -1
- package/examples/extensions/protected-paths.ts +1 -1
- package/examples/extensions/provider-payload.ts +1 -1
- package/examples/extensions/qna.ts +2 -2
- package/examples/extensions/question.ts +1 -1
- package/examples/extensions/questionnaire.ts +1 -1
- package/examples/extensions/rainbow-editor.ts +1 -1
- package/examples/extensions/reload-runtime.ts +1 -1
- package/examples/extensions/rpc-demo.ts +1 -1
- package/examples/extensions/sandbox/index.ts +2 -2
- package/examples/extensions/send-user-message.ts +1 -1
- package/examples/extensions/session-name.ts +1 -1
- package/examples/extensions/shutdown-command.ts +1 -1
- package/examples/extensions/snake.ts +1 -1
- package/examples/extensions/space-invaders.ts +1 -1
- package/examples/extensions/ssh.ts +2 -2
- package/examples/extensions/status-line.ts +1 -1
- package/examples/extensions/structured-output.ts +1 -1
- package/examples/extensions/subagent/agents.ts +1 -1
- package/examples/extensions/subagent/index.ts +1 -1
- package/examples/extensions/summarize.ts +2 -2
- package/examples/extensions/system-prompt-header.ts +1 -1
- package/examples/extensions/tic-tac-toe.ts +1 -1
- package/examples/extensions/timed-confirm.ts +1 -1
- package/examples/extensions/titlebar-spinner.ts +1 -1
- package/examples/extensions/todo.ts +1 -1
- package/examples/extensions/tool-override.ts +1 -1
- package/examples/extensions/tools.ts +2 -2
- package/examples/extensions/trigger-compact.ts +1 -1
- package/examples/extensions/truncated-tool.ts +2 -2
- package/examples/extensions/widget-placement.ts +1 -1
- package/examples/extensions/with-deps/index.ts +1 -1
- package/examples/extensions/working-indicator.ts +1 -1
- package/examples/extensions/working-message-test.ts +1 -1
- package/examples/sdk/01-minimal.ts +1 -1
- package/examples/sdk/02-custom-model.ts +1 -1
- package/examples/sdk/03-custom-prompt.ts +1 -1
- package/examples/sdk/04-skills.ts +1 -1
- package/examples/sdk/05-tools.ts +1 -1
- package/examples/sdk/06-extensions.ts +2 -2
- package/examples/sdk/07-context-files.ts +1 -1
- package/examples/sdk/08-prompt-templates.ts +1 -1
- package/examples/sdk/09-api-keys-and-oauth.ts +1 -1
- package/examples/sdk/10-settings.ts +1 -1
- package/examples/sdk/11-sessions.ts +1 -1
- package/examples/sdk/12-full-control.ts +1 -1
- package/examples/sdk/13-session-runtime.ts +1 -1
- package/examples/sdk/README.md +1 -1
- 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 "@
|
|
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";
|
|
@@ -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 "@
|
|
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 "@
|
|
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
|
+
"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,5 +1,5 @@
|
|
|
1
1
|
import { complete, getModel, type Message, type Model } from "@mariozechner/pi-ai";
|
|
2
|
-
import type { ExtensionContext } from "@
|
|
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
|
+
"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 "@
|
|
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
|
-
* `@
|
|
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 "@
|
|
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
|
-
* `@
|
|
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
|
-
* `@
|
|
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/@
|
|
88
|
-
* node_modules/@
|
|
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
|
-
* `@
|
|
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 @
|
|
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
|
-
* `@
|
|
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 @
|
|
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 "@
|
|
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 "@
|
|
12
|
+
import { SessionManager, type AgentSession, type CreateAgentSessionOptions, type PromptOptions } from "@bastani/atomic";
|
|
13
13
|
import type {
|
|
14
14
|
CompleteStageOpts,
|
|
15
15
|
StageContext,
|
|
@@ -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 "@
|
|
14
|
+
import type { CreateAgentSessionOptions } from "@bastani/atomic";
|
|
15
15
|
import type { StageSessionRuntime } from "../foreground/stage-runner.js";
|
|
16
16
|
import type {
|
|
17
17
|
WorkflowDetails,
|
|
@@ -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 `@
|
|
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/@
|
|
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
|
-
* - @
|
|
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: @
|
|
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
|