@bastani/atomic 0.8.28 → 0.8.29-alpha.3
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 +37 -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 +4 -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 +4 -0
- package/dist/builtin/mcp/package.json +3 -3
- package/dist/builtin/subagents/CHANGELOG.md +13 -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 +5 -3
- 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 +5 -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 +26 -0
- package/dist/builtin/workflows/README.md +28 -8
- package/dist/builtin/workflows/builtin/deep-research-codebase.ts +9 -49
- package/dist/builtin/workflows/builtin/goal.ts +63 -106
- package/dist/builtin/workflows/builtin/index.d.ts +2 -0
- package/dist/builtin/workflows/builtin/open-claude-design.ts +31 -76
- package/dist/builtin/workflows/builtin/ralph.d.ts +2 -0
- package/dist/builtin/workflows/builtin/ralph.ts +227 -518
- package/dist/builtin/workflows/builtin/shared-prompts.ts +7 -0
- 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 +72 -9
- 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/atomic-guide-command.d.ts.map +1 -1
- package/dist/core/atomic-guide-command.js +7 -7
- package/dist/core/atomic-guide-command.js.map +1 -1
- 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 +11 -2
- 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/quickstart.md +3 -3
- 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 +28 -21
- 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
|
@@ -115,79 +115,34 @@ type ExportGateDecision = {
|
|
|
115
115
|
readonly blocking_findings: readonly ExportGateFinding[];
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
-
const refinementDecisionSchema =
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
ready_for_export: { type: "boolean" },
|
|
124
|
-
rationale: { type: "string" },
|
|
125
|
-
required_changes: { type: "array", items: { type: "string" } },
|
|
118
|
+
const refinementDecisionSchema = Type.Object(
|
|
119
|
+
{
|
|
120
|
+
ready_for_export: Type.Boolean(),
|
|
121
|
+
rationale: Type.String(),
|
|
122
|
+
required_changes: Type.Array(Type.String()),
|
|
126
123
|
},
|
|
127
|
-
|
|
124
|
+
{ additionalProperties: false },
|
|
125
|
+
);
|
|
128
126
|
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
"This is a terminating structured-output tool; do not emit another assistant response after calling it.",
|
|
137
|
-
],
|
|
138
|
-
parameters: refinementDecisionSchema,
|
|
139
|
-
async execute(_toolCallId: string, params: RefinementDecision) {
|
|
140
|
-
return {
|
|
141
|
-
content: [{ type: "text" as const, text: JSON.stringify(params, null, 2) }],
|
|
142
|
-
details: params,
|
|
143
|
-
terminate: true,
|
|
144
|
-
};
|
|
145
|
-
},
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
const exportGateDecisionSchema = {
|
|
149
|
-
type: "object",
|
|
150
|
-
additionalProperties: false,
|
|
151
|
-
required: ["has_blocking_findings", "rationale", "blocking_findings"],
|
|
152
|
-
properties: {
|
|
153
|
-
has_blocking_findings: { type: "boolean" },
|
|
154
|
-
rationale: { type: "string" },
|
|
155
|
-
blocking_findings: {
|
|
156
|
-
type: "array",
|
|
157
|
-
items: {
|
|
158
|
-
type: "object",
|
|
159
|
-
additionalProperties: false,
|
|
160
|
-
required: ["finding", "evidence", "why_blocking", "must_fix_action", "severity"],
|
|
161
|
-
properties: {
|
|
162
|
-
finding: { type: "string" },
|
|
163
|
-
evidence: { type: "string" },
|
|
164
|
-
why_blocking: { type: "string" },
|
|
165
|
-
must_fix_action: { type: "string" },
|
|
166
|
-
severity: { type: "string", enum: ["P0"] },
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
},
|
|
127
|
+
const exportGateFindingSchema = Type.Object(
|
|
128
|
+
{
|
|
129
|
+
finding: Type.String(),
|
|
130
|
+
evidence: Type.String(),
|
|
131
|
+
why_blocking: Type.String(),
|
|
132
|
+
must_fix_action: Type.String(),
|
|
133
|
+
severity: Type.Literal("P0"),
|
|
170
134
|
},
|
|
171
|
-
|
|
135
|
+
{ additionalProperties: false },
|
|
136
|
+
);
|
|
172
137
|
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
promptGuidelines: [
|
|
179
|
-
"Call export_gate_decision after auditing the preview for blocking findings.",
|
|
180
|
-
"This is a terminating structured-output tool; do not emit another assistant response after calling it.",
|
|
181
|
-
],
|
|
182
|
-
parameters: exportGateDecisionSchema,
|
|
183
|
-
async execute(_toolCallId: string, params: ExportGateDecision) {
|
|
184
|
-
return {
|
|
185
|
-
content: [{ type: "text" as const, text: JSON.stringify(params, null, 2) }],
|
|
186
|
-
details: params,
|
|
187
|
-
terminate: true,
|
|
188
|
-
};
|
|
138
|
+
const exportGateDecisionSchema = Type.Object(
|
|
139
|
+
{
|
|
140
|
+
has_blocking_findings: Type.Boolean(),
|
|
141
|
+
rationale: Type.String(),
|
|
142
|
+
blocking_findings: Type.Array(exportGateFindingSchema),
|
|
189
143
|
},
|
|
190
|
-
}
|
|
144
|
+
{ additionalProperties: false },
|
|
145
|
+
);
|
|
191
146
|
|
|
192
147
|
function parseRefinementDecision(text: string): RefinementDecision {
|
|
193
148
|
const parsed = JSON.parse(text) as Partial<RefinementDecision>;
|
|
@@ -481,13 +436,13 @@ export default defineWorkflow("open-claude-design")
|
|
|
481
436
|
};
|
|
482
437
|
const refinementDecisionConfig = {
|
|
483
438
|
...designModelConfig,
|
|
484
|
-
tools: [...READ_ONLY_TOOLS
|
|
485
|
-
|
|
439
|
+
tools: [...READ_ONLY_TOOLS],
|
|
440
|
+
schema: refinementDecisionSchema,
|
|
486
441
|
};
|
|
487
442
|
const exportGateDecisionConfig = {
|
|
488
443
|
...designModelConfig,
|
|
489
|
-
tools: [...READ_ONLY_TOOLS
|
|
490
|
-
|
|
444
|
+
tools: [...READ_ONLY_TOOLS],
|
|
445
|
+
schema: exportGateDecisionSchema,
|
|
491
446
|
};
|
|
492
447
|
|
|
493
448
|
let designSystem: string;
|
|
@@ -850,7 +805,7 @@ export default defineWorkflow("open-claude-design")
|
|
|
850
805
|
[
|
|
851
806
|
"1. If a previous `preview-display-*` step captured annotated user feedback or notes, honor them as the primary signal.",
|
|
852
807
|
"2. Otherwise, you may inspect the HTML file at preview_path directly (read it from disk) and run an impeccable `critique` against it.",
|
|
853
|
-
"3. Decide whether the current design is ready for export using the
|
|
808
|
+
"3. Decide whether the current design is ready for export using the schema-backed structured_output tool.",
|
|
854
809
|
"4. If refinement is still needed, put specific changes in required_changes ordered by user value and implementation risk.",
|
|
855
810
|
"5. Never request changes that contradict DESIGN.md unless you explicitly identify and explain the conflict.",
|
|
856
811
|
].join("\n"),
|
|
@@ -858,7 +813,7 @@ export default defineWorkflow("open-claude-design")
|
|
|
858
813
|
[
|
|
859
814
|
"output_format",
|
|
860
815
|
[
|
|
861
|
-
"Call
|
|
816
|
+
"Call structured_output after your inspection.",
|
|
862
817
|
"Set ready_for_export=true only when the current preview needs no further refinement before export.",
|
|
863
818
|
"Set ready_for_export=false and populate required_changes when another polish iteration is needed.",
|
|
864
819
|
].join("\n"),
|
|
@@ -1058,14 +1013,14 @@ export default defineWorkflow("open-claude-design")
|
|
|
1058
1013
|
"1. Read the HTML at preview_path and score it across all five audit dimensions.",
|
|
1059
1014
|
"2. Scan for banned anti-patterns, accessibility blockers, severe visual regressions, missing critical states, and handoff gaps.",
|
|
1060
1015
|
"3. Only mark findings as blocking when they would materially harm implementation or user experience (impeccable P0 severity).",
|
|
1061
|
-
"4. Decide whether export is blocked using the
|
|
1016
|
+
"4. Decide whether export is blocked using the schema-backed structured_output tool.",
|
|
1062
1017
|
"5. Every blocking finding must include selector-level evidence and a must-fix action.",
|
|
1063
1018
|
].join("\n"),
|
|
1064
1019
|
],
|
|
1065
1020
|
[
|
|
1066
1021
|
"output_format",
|
|
1067
1022
|
[
|
|
1068
|
-
"Call
|
|
1023
|
+
"Call structured_output after the audit.",
|
|
1069
1024
|
"Set has_blocking_findings=true only when one or more P0 findings block export.",
|
|
1070
1025
|
"Populate blocking_findings with every blocking P0 issue; leave it empty when export is safe.",
|
|
1071
1026
|
].join("\n"),
|
|
@@ -20,6 +20,8 @@ export type RalphWorkflowOutputs = WorkflowOutputValues & {
|
|
|
20
20
|
readonly result?: string;
|
|
21
21
|
readonly plan?: string;
|
|
22
22
|
readonly plan_path?: string;
|
|
23
|
+
readonly research?: string;
|
|
24
|
+
readonly research_path?: string;
|
|
23
25
|
readonly implementation_notes_path?: string;
|
|
24
26
|
readonly pr_report?: string;
|
|
25
27
|
readonly approved?: boolean;
|