@bastani/atomic 0.8.28-alpha.4 → 0.8.29-alpha.2
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 +75 -0
- package/dist/builtin/cursor/CHANGELOG.md +27 -0
- package/dist/builtin/cursor/LICENSE +26 -0
- package/dist/builtin/cursor/README.md +22 -0
- package/dist/builtin/cursor/index.ts +9 -0
- package/dist/builtin/cursor/package.json +46 -0
- package/dist/builtin/cursor/src/auth.ts +352 -0
- package/dist/builtin/cursor/src/catalog-cache.ts +155 -0
- package/dist/builtin/cursor/src/config.ts +123 -0
- package/dist/builtin/cursor/src/conversation-state.ts +135 -0
- package/dist/builtin/cursor/src/cursor-models-raw.json +583 -0
- package/dist/builtin/cursor/src/model-mapper.ts +270 -0
- package/dist/builtin/cursor/src/models.ts +54 -0
- package/dist/builtin/cursor/src/native-loader.ts +71 -0
- package/dist/builtin/cursor/src/proto/README.md +34 -0
- package/dist/builtin/cursor/src/proto/agent_pb.ts +15294 -0
- package/dist/builtin/cursor/src/proto/protobuf-codec.ts +717 -0
- package/dist/builtin/cursor/src/provider.ts +301 -0
- package/dist/builtin/cursor/src/stream.ts +564 -0
- package/dist/builtin/cursor/src/transport.ts +791 -0
- package/dist/builtin/intercom/CHANGELOG.md +10 -0
- package/dist/builtin/intercom/package.json +2 -2
- package/dist/builtin/intercom/skills/intercom/SKILL.md +5 -5
- package/dist/builtin/mcp/CHANGELOG.md +10 -0
- package/dist/builtin/mcp/package.json +3 -3
- package/dist/builtin/subagents/CHANGELOG.md +18 -0
- package/dist/builtin/subagents/README.md +7 -3
- package/dist/builtin/subagents/agents/codebase-online-researcher.md +9 -24
- package/dist/builtin/subagents/agents/debugger.md +3 -5
- package/dist/builtin/subagents/package.json +4 -4
- package/dist/builtin/subagents/src/runs/background/subagent-runner.ts +2 -1
- package/dist/builtin/subagents/src/runs/foreground/execution.ts +2 -1
- package/dist/builtin/subagents/src/runs/shared/parallel-utils.ts +1 -0
- package/dist/builtin/subagents/src/runs/shared/pi-args.ts +19 -2
- package/dist/builtin/subagents/src/runs/shared/structured-output.ts +271 -10
- package/dist/builtin/subagents/src/runs/shared/subagent-prompt-runtime.ts +12 -39
- package/dist/builtin/subagents/src/shared/types.ts +1 -0
- package/dist/builtin/subagents/src/shared/utils.ts +50 -10
- package/dist/builtin/subagents/src/slash/saved-chain-mapping.ts +77 -0
- package/dist/builtin/subagents/src/slash/slash-commands.ts +1 -55
- package/dist/builtin/web-access/CHANGELOG.md +11 -1
- package/dist/builtin/web-access/README.md +1 -1
- package/dist/builtin/web-access/github-extract.ts +1 -1
- package/dist/builtin/web-access/package.json +3 -3
- package/dist/builtin/workflows/CHANGELOG.md +44 -0
- package/dist/builtin/workflows/README.md +19 -1
- package/dist/builtin/workflows/package.json +2 -2
- package/dist/builtin/workflows/skills/research-codebase/SKILL.md +17 -3
- package/dist/builtin/workflows/src/extension/wiring.ts +17 -1
- package/dist/builtin/workflows/src/extension/workflow-schema.ts +34 -0
- package/dist/builtin/workflows/src/runs/foreground/executor.ts +13 -2
- package/dist/builtin/workflows/src/runs/foreground/stage-runner.ts +86 -14
- package/dist/builtin/workflows/src/shared/authoring-contract.d.ts +11 -3
- package/dist/builtin/workflows/src/shared/types.ts +8 -4
- package/dist/builtin/workflows/src/tui/overlay-adapter.ts +64 -2
- package/dist/builtin/workflows/src/tui/workflow-attach-pane.ts +8 -8
- package/dist/builtin/workflows/src/tui/workflow-status.ts +2 -0
- package/dist/core/builtin-packages.d.ts.map +1 -1
- package/dist/core/builtin-packages.js +6 -0
- package/dist/core/builtin-packages.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/types.d.ts +20 -0
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/model-resolver.d.ts +1 -0
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +17 -8
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/package-manager.d.ts +11 -9
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +55 -10
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/project-trust.d.ts +1 -0
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +3 -3
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/resource-loader.d.ts +9 -0
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +72 -9
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/sdk.d.ts +3 -3
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +5 -5
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/tools/index.d.ts +1 -0
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js +1 -0
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/structured-output.d.ts +39 -0
- package/dist/core/tools/structured-output.d.ts.map +1 -0
- package/dist/core/tools/structured-output.js +141 -0
- package/dist/core/tools/structured-output.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +36 -14
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/login-dialog.d.ts +3 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/dist/modes/interactive/components/login-dialog.js +16 -0
- package/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +11 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +158 -11
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +39 -0
- package/dist/modes/print-mode.js.map +1 -1
- package/docs/custom-provider.md +1 -0
- package/docs/extensions.md +2 -2
- package/docs/models.md +2 -0
- package/docs/packages.md +3 -1
- package/docs/providers.md +15 -0
- package/docs/sdk.md +61 -0
- package/docs/security.md +1 -1
- package/docs/subagents.md +21 -0
- package/docs/usage.md +2 -0
- package/docs/workflows.md +10 -7
- package/examples/extensions/README.md +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/structured-output.ts +22 -53
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +12 -9
|
@@ -1,65 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Schema-specific structured_output tool
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Atomic does not register `structured_output` in normal agent sessions by
|
|
5
|
+
* default. This extension demonstrates the canonical factory for adding a
|
|
6
|
+
* schema-backed terminating final-answer tool only when this extension is
|
|
7
|
+
* enabled.
|
|
8
|
+
*
|
|
9
|
+
* Custom factory names are opt-in tools too: `createStructuredOutputTool({ name:
|
|
10
|
+
* "final_decision", ... })` registers `final_decision`; include that name in any
|
|
11
|
+
* explicit `tools` allowlist. The default factory name registers
|
|
12
|
+
* `structured_output` for this extension/runtime only.
|
|
6
13
|
*/
|
|
7
14
|
|
|
8
|
-
import {
|
|
9
|
-
|
|
15
|
+
import {
|
|
16
|
+
createStructuredOutputTool,
|
|
17
|
+
type ExtensionAPI,
|
|
18
|
+
} from "@bastani/atomic";
|
|
10
19
|
import { Type } from "typebox";
|
|
11
20
|
|
|
12
|
-
|
|
13
|
-
headline:
|
|
14
|
-
summary:
|
|
15
|
-
actionItems:
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const structuredOutputTool = defineTool({
|
|
19
|
-
name: "structured_output",
|
|
20
|
-
label: "Structured Output",
|
|
21
|
-
description:
|
|
22
|
-
"Return a final structured answer. Use this as your last action when the user asks for structured output or a machine-readable summary.",
|
|
23
|
-
promptSnippet: "Emit a final structured answer as a terminating tool result",
|
|
24
|
-
promptGuidelines: [
|
|
25
|
-
"Use structured_output as your final action when the user asks for structured output, JSON-like output, or a machine-readable summary.",
|
|
26
|
-
"After calling structured_output, do not emit another assistant response in the same turn.",
|
|
27
|
-
],
|
|
28
|
-
parameters: Type.Object({
|
|
29
|
-
headline: Type.String({ description: "Short title for the result" }),
|
|
30
|
-
summary: Type.String({ description: "One-paragraph summary" }),
|
|
31
|
-
actionItems: Type.Array(Type.String(), { description: "Concrete next steps or key bullets" }),
|
|
32
|
-
}),
|
|
33
|
-
|
|
34
|
-
async execute(_toolCallId, params) {
|
|
35
|
-
return {
|
|
36
|
-
content: [{ type: "text", text: `Saved structured output: ${params.headline}` }],
|
|
37
|
-
details: {
|
|
38
|
-
headline: params.headline,
|
|
39
|
-
summary: params.summary,
|
|
40
|
-
actionItems: params.actionItems,
|
|
41
|
-
} satisfies StructuredOutputDetails,
|
|
42
|
-
terminate: true,
|
|
43
|
-
};
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
renderResult(result, _options, theme) {
|
|
47
|
-
const details = result.details as StructuredOutputDetails | undefined;
|
|
48
|
-
if (!details) {
|
|
49
|
-
const text = result.content[0];
|
|
50
|
-
return new Text(text?.type === "text" ? text.text : "", 0, 0);
|
|
51
|
-
}
|
|
21
|
+
const SummarySchema = Type.Object({
|
|
22
|
+
headline: Type.String({ description: "Short title for the result" }),
|
|
23
|
+
summary: Type.String({ description: "One-paragraph summary" }),
|
|
24
|
+
actionItems: Type.Array(Type.String(), { description: "Concrete next steps or key bullets" }),
|
|
25
|
+
}, { additionalProperties: false });
|
|
52
26
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
theme.fg("text", details.summary),
|
|
56
|
-
"",
|
|
57
|
-
...details.actionItems.map((item, index) => theme.fg("muted", `${index + 1}. ${item}`)),
|
|
58
|
-
];
|
|
59
|
-
return new Text(lines.join("\n"), 0, 0);
|
|
60
|
-
},
|
|
27
|
+
const structuredOutputTool = createStructuredOutputTool({
|
|
28
|
+
schema: SummarySchema,
|
|
61
29
|
});
|
|
62
30
|
|
|
63
31
|
export default function (pi: ExtensionAPI) {
|
|
32
|
+
// Register structured_output for sessions that load this extension.
|
|
64
33
|
pi.registerTool(structuredOutputTool);
|
|
65
34
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atomic-extension-with-deps",
|
|
3
|
-
"version": "0.79.
|
|
3
|
+
"version": "0.79.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "atomic-extension-with-deps",
|
|
9
|
-
"version": "0.79.
|
|
9
|
+
"version": "0.79.3",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"ms": "^2.1.3"
|
|
12
12
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.29-alpha.2",
|
|
4
4
|
"description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"atomicConfig": {
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
|
-
"import": "./dist/index.js"
|
|
24
|
+
"import": "./dist/index.js",
|
|
25
|
+
"default": "./dist/index.js"
|
|
25
26
|
},
|
|
26
27
|
"./hooks": {
|
|
27
28
|
"types": "./dist/core/hooks/index.d.ts",
|
|
@@ -67,9 +68,11 @@
|
|
|
67
68
|
"prepublishOnly": "bun run clean && bun run build"
|
|
68
69
|
},
|
|
69
70
|
"dependencies": {
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@earendil-works/pi-
|
|
71
|
+
"@bastani/atomic-natives": "0.8.29-alpha.2",
|
|
72
|
+
"@bufbuild/protobuf": "^2.0.0",
|
|
73
|
+
"@earendil-works/pi-agent-core": "^0.79.3",
|
|
74
|
+
"@earendil-works/pi-ai": "^0.79.3",
|
|
75
|
+
"@earendil-works/pi-tui": "^0.79.3",
|
|
73
76
|
"@modelcontextprotocol/ext-apps": "^1.7.2",
|
|
74
77
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
75
78
|
"@mozilla/readability": "^0.6.0",
|
|
@@ -85,7 +88,7 @@
|
|
|
85
88
|
"linkedom": "^0.18.12",
|
|
86
89
|
"minimatch": "^10.2.3",
|
|
87
90
|
"open": "^11.0.0",
|
|
88
|
-
"p-limit": "^
|
|
91
|
+
"p-limit": "^7.3.0",
|
|
89
92
|
"proper-lockfile": "^4.1.2",
|
|
90
93
|
"turndown": "^7.2.0",
|
|
91
94
|
"typebox": "^1.1.24",
|
|
@@ -101,14 +104,14 @@
|
|
|
101
104
|
}
|
|
102
105
|
},
|
|
103
106
|
"optionalDependencies": {
|
|
104
|
-
"@mariozechner/clipboard": "^0.3.
|
|
107
|
+
"@mariozechner/clipboard": "^0.3.9"
|
|
105
108
|
},
|
|
106
109
|
"devDependencies": {
|
|
107
110
|
"@types/cross-spawn": "6.0.6",
|
|
108
|
-
"@types/diff": "^
|
|
111
|
+
"@types/diff": "^8.0.0",
|
|
109
112
|
"@types/hosted-git-info": "^3.0.5",
|
|
110
113
|
"@types/ms": "^2.1.0",
|
|
111
|
-
"@types/node": "^25.9.
|
|
114
|
+
"@types/node": "^25.9.3",
|
|
112
115
|
"@types/proper-lockfile": "^4.1.4",
|
|
113
116
|
"@typescript/native-preview": "7.0.0-dev.20260511.1",
|
|
114
117
|
"shx": "^0.4.0",
|