@bastani/atomic 0.9.16-alpha.7 → 0.9.16-alpha.9
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 +25 -0
- package/dist/builtin/intercom/CHANGELOG.md +6 -0
- package/dist/builtin/intercom/README.md +4 -4
- package/dist/builtin/intercom/broker/broker.ts +617 -22
- package/dist/builtin/intercom/broker/client-message-validation.ts +9 -0
- package/dist/builtin/intercom/broker/client.ts +200 -10
- package/dist/builtin/intercom/broker/pending-send-registry.ts +4 -0
- package/dist/builtin/intercom/broker/send-handler.ts +90 -36
- package/dist/builtin/intercom/broker/send-signature.ts +20 -8
- package/dist/builtin/intercom/group.ts +85 -0
- package/dist/builtin/intercom/index.bundle.mjs +746 -55
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/intercom/session-target.ts +54 -0
- package/dist/builtin/intercom/skills/intercom/SKILL.md +18 -3
- package/dist/builtin/intercom/source-ownership.ts +31 -0
- package/dist/builtin/intercom/types.ts +115 -0
- package/dist/builtin/mcp/index.bundle.mjs +175 -37
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +239 -53
- package/dist/builtin/web-access/index.bundle.mjs +175 -37
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/CHANGELOG.md +15 -0
- package/dist/builtin/workflows/README.md +40 -37
- package/dist/builtin/workflows/builtin/adversarial-verification.js +13 -0
- package/dist/builtin/workflows/builtin/{shared-prompts.ts → chunk-0x6e303p.js} +133 -154
- package/dist/builtin/workflows/builtin/chunk-17zk6ffd.js +69794 -0
- package/dist/builtin/workflows/builtin/chunk-29wrp38a.js +199 -0
- package/dist/builtin/workflows/builtin/chunk-2dqb5s2q.js +602 -0
- package/dist/builtin/workflows/builtin/chunk-4febxsv4.js +264 -0
- package/dist/builtin/workflows/builtin/chunk-5wgwscd0.js +4 -0
- package/dist/builtin/workflows/builtin/chunk-6fqs7c01.js +155 -0
- package/dist/builtin/workflows/builtin/chunk-7430zyas.js +126 -0
- package/dist/builtin/workflows/builtin/chunk-7at6dnkr.js +33 -0
- package/dist/builtin/workflows/builtin/chunk-82ha8p41.js +175 -0
- package/dist/builtin/workflows/builtin/chunk-8v8wmb7z.js +529 -0
- package/dist/builtin/workflows/builtin/chunk-bfkmzv9h.js +156 -0
- package/dist/builtin/workflows/builtin/chunk-c53y8bdh.js +345 -0
- package/dist/builtin/workflows/builtin/chunk-cg9tmks0.js +206 -0
- package/dist/builtin/workflows/builtin/chunk-h5e65g7g.js +1080 -0
- package/dist/builtin/workflows/builtin/chunk-hzzn6adg.js +221 -0
- package/dist/builtin/workflows/builtin/chunk-nqr34qp3.js +1061 -0
- package/dist/builtin/workflows/builtin/chunk-qe6bfpbd.js +1207 -0
- package/dist/builtin/workflows/builtin/chunk-qwzvgxnq.js +404 -0
- package/dist/builtin/workflows/builtin/chunk-qx2ptjs3.js +215 -0
- package/dist/builtin/workflows/builtin/chunk-rbnj9621.js +2447 -0
- package/dist/builtin/workflows/builtin/chunk-wpckd35c.js +12 -0
- package/dist/builtin/workflows/builtin/chunk-x2ghn0je.js +4110 -0
- package/dist/builtin/workflows/builtin/classify-and-act.js +12 -0
- package/dist/builtin/workflows/builtin/fan-out-and-synthesize.js +10 -0
- package/dist/builtin/workflows/builtin/generate-and-filter.js +12 -0
- package/dist/builtin/workflows/builtin/goal.js +16 -0
- package/dist/builtin/workflows/builtin/index.js +49 -0
- package/dist/builtin/workflows/builtin/loop-until-done.js +12 -0
- package/dist/builtin/workflows/builtin/open-claude-design.js +11 -0
- package/dist/builtin/workflows/builtin/ralph.js +16 -0
- package/dist/builtin/workflows/builtin/steering-context.d.ts +6 -0
- package/dist/builtin/workflows/builtin/steering-context.js +7 -0
- package/dist/builtin/workflows/builtin/tournament.js +13 -0
- package/dist/builtin/workflows/package.json +10 -7
- package/dist/builtin/workflows/src/authoring/typebox-defaults.d.ts +41 -0
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +1294 -430
- package/dist/builtin/workflows/src/{index.bundle.mjs → index.js} +1022 -429
- package/dist/builtin/workflows/src/shared/authoring-contract-stage.d.ts +403 -0
- package/dist/builtin/workflows/src/shared/authoring-contract-ui.d.ts +327 -0
- package/dist/builtin/workflows/src/shared/budget.d.ts +67 -0
- package/dist/builtin/workflows/src/shared/workflow-authoring-types.d.ts +60 -0
- package/dist/builtin/workflows/src/shared/workflow-heartbeat-contract.d.ts +21 -0
- package/dist/core/agent-session-custom-message-commit.d.ts.map +1 -1
- package/dist/core/agent-session-custom-message-commit.js +12 -5
- package/dist/core/agent-session-custom-message-commit.js.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.d.ts.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.js +2 -0
- package/dist/core/agent-session-persistent-custom-messages.js.map +1 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +2 -1
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts +2 -0
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +4 -0
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/builtin-install-layout.d.ts +1 -1
- package/dist/core/builtin-install-layout.d.ts.map +1 -1
- package/dist/core/builtin-install-layout.js +1 -1
- package/dist/core/builtin-install-layout.js.map +1 -1
- package/dist/core/codex-fast-mode.d.ts +10 -7
- package/dist/core/codex-fast-mode.d.ts.map +1 -1
- package/dist/core/codex-fast-mode.js +31 -13
- package/dist/core/codex-fast-mode.js.map +1 -1
- package/dist/core/extensions/agent-events.d.ts +15 -0
- package/dist/core/extensions/agent-events.d.ts.map +1 -1
- package/dist/core/extensions/agent-events.js.map +1 -1
- package/dist/core/extensions/api-types.d.ts +3 -1
- package/dist/core/extensions/api-types.d.ts.map +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/context-types.d.ts +35 -0
- package/dist/core/extensions/context-types.d.ts.map +1 -1
- package/dist/core/extensions/context-types.js.map +1 -1
- package/dist/core/extensions/event-types.d.ts +2 -2
- package/dist/core/extensions/event-types.d.ts.map +1 -1
- package/dist/core/extensions/event-types.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/loader-virtual-modules.d.ts.map +1 -1
- package/dist/core/extensions/loader-virtual-modules.js +6 -1
- package/dist/core/extensions/loader-virtual-modules.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +6 -0
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +65 -1
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/model-runtime.d.ts +2 -0
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +4 -0
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/runtime-credentials.d.ts +1 -0
- package/dist/core/runtime-credentials.d.ts.map +1 -1
- package/dist/core/runtime-credentials.js +8 -0
- package/dist/core/runtime-credentials.js.map +1 -1
- 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/session-manager-storage.d.ts +2 -0
- package/dist/core/session-manager-storage.d.ts.map +1 -1
- package/dist/core/session-manager-storage.js +4 -2
- package/dist/core/session-manager-storage.js.map +1 -1
- package/dist/core/slash-commands.js +1 -1
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/workflow-stage-admission.d.ts +6 -1
- package/dist/core/workflow-stage-admission.d.ts.map +1 -1
- package/dist/core/workflow-stage-admission.js +8 -9
- package/dist/core/workflow-stage-admission.js.map +1 -1
- package/dist/index-extensions.d.ts +1 -1
- package/dist/index-extensions.d.ts.map +1 -1
- package/dist/index-extensions.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +1 -1
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/interactive-autocomplete.js +1 -1
- package/dist/modes/interactive/interactive-autocomplete.js.map +1 -1
- package/dist/modes/interactive/interactive-extension-runtime.js +1 -1
- package/dist/modes/interactive/interactive-extension-runtime.js.map +1 -1
- package/dist/modes/interactive/interactive-startup.js +1 -1
- package/dist/modes/interactive/interactive-startup.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +4 -0
- package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.js +69 -10
- package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +18 -2
- package/dist/modes/rpc/rpc-client-api.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-api.js +33 -5
- package/dist/modes/rpc/rpc-client-api.js.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.js +8 -4
- package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +13 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/docs/extensions.md +19 -0
- package/docs/intercom.md +15 -6
- package/docs/packages.md +2 -2
- package/docs/providers.md +8 -3
- package/docs/quickstart.md +2 -2
- package/docs/rpc.md +21 -4
- package/docs/settings.md +6 -4
- package/docs/subagents.md +1 -1
- package/docs/usage.md +1 -1
- package/docs/workflows.md +108 -239
- package/npm-shrinkwrap.json +32 -32
- package/package.json +9 -13
- package/dist/builtin/workflows/ambient.d.ts +0 -61
- package/dist/builtin/workflows/builtin/adversarial-verification-prompts.ts +0 -26
- package/dist/builtin/workflows/builtin/adversarial-verification-runner.ts +0 -391
- package/dist/builtin/workflows/builtin/adversarial-verification.ts +0 -34
- package/dist/builtin/workflows/builtin/classify-and-act-prompts.ts +0 -14
- package/dist/builtin/workflows/builtin/classify-and-act-runner.ts +0 -108
- package/dist/builtin/workflows/builtin/classify-and-act.ts +0 -40
- package/dist/builtin/workflows/builtin/fan-out-and-synthesize-prompts.ts +0 -14
- package/dist/builtin/workflows/builtin/fan-out-and-synthesize-runner.ts +0 -96
- package/dist/builtin/workflows/builtin/fan-out-and-synthesize.ts +0 -37
- package/dist/builtin/workflows/builtin/generate-and-filter-prompts.ts +0 -41
- package/dist/builtin/workflows/builtin/generate-and-filter-runner.ts +0 -90
- package/dist/builtin/workflows/builtin/generate-and-filter.ts +0 -31
- package/dist/builtin/workflows/builtin/goal-artifacts.ts +0 -64
- package/dist/builtin/workflows/builtin/goal-convergence.ts +0 -87
- package/dist/builtin/workflows/builtin/goal-ledger.ts +0 -139
- package/dist/builtin/workflows/builtin/goal-models.ts +0 -72
- package/dist/builtin/workflows/builtin/goal-orchestrator-prompts.ts +0 -94
- package/dist/builtin/workflows/builtin/goal-prompts.ts +0 -217
- package/dist/builtin/workflows/builtin/goal-reducer.ts +0 -176
- package/dist/builtin/workflows/builtin/goal-reports.ts +0 -76
- package/dist/builtin/workflows/builtin/goal-reverify.ts +0 -305
- package/dist/builtin/workflows/builtin/goal-review.ts +0 -139
- package/dist/builtin/workflows/builtin/goal-runner.ts +0 -504
- package/dist/builtin/workflows/builtin/goal-schemas.ts +0 -89
- package/dist/builtin/workflows/builtin/goal-types.ts +0 -164
- package/dist/builtin/workflows/builtin/goal.ts +0 -78
- package/dist/builtin/workflows/builtin/index.ts +0 -16
- package/dist/builtin/workflows/builtin/loop-until-done-prompts.ts +0 -87
- package/dist/builtin/workflows/builtin/loop-until-done-runner.ts +0 -282
- package/dist/builtin/workflows/builtin/loop-until-done.ts +0 -51
- package/dist/builtin/workflows/builtin/open-claude-design-live-protocol.ts +0 -305
- package/dist/builtin/workflows/builtin/open-claude-design-phases.ts +0 -337
- package/dist/builtin/workflows/builtin/open-claude-design-runner.ts +0 -347
- package/dist/builtin/workflows/builtin/open-claude-design-setup.ts +0 -313
- package/dist/builtin/workflows/builtin/open-claude-design-utils.ts +0 -311
- package/dist/builtin/workflows/builtin/open-claude-design.ts +0 -57
- package/dist/builtin/workflows/builtin/pattern-artifact-root.ts +0 -28
- package/dist/builtin/workflows/builtin/progress-scoring.ts +0 -230
- package/dist/builtin/workflows/builtin/ralph-core.ts +0 -449
- package/dist/builtin/workflows/builtin/ralph-forked-prompts.ts +0 -100
- package/dist/builtin/workflows/builtin/ralph-models.ts +0 -183
- package/dist/builtin/workflows/builtin/ralph-review-gate.ts +0 -103
- package/dist/builtin/workflows/builtin/ralph-reviewer-prompt.ts +0 -104
- package/dist/builtin/workflows/builtin/ralph-runner.ts +0 -459
- package/dist/builtin/workflows/builtin/ralph.ts +0 -82
- package/dist/builtin/workflows/builtin/review-convergence.ts +0 -229
- package/dist/builtin/workflows/builtin/selection-math.ts +0 -156
- package/dist/builtin/workflows/builtin/steering-context.ts +0 -51
- package/dist/builtin/workflows/builtin/tournament-prompts.ts +0 -70
- package/dist/builtin/workflows/builtin/tournament-runner.ts +0 -400
- package/dist/builtin/workflows/builtin/tournament.ts +0 -73
- package/dist/builtin/workflows/builtin/verification-criteria.ts +0 -330
- package/dist/builtin/workflows/builtin/verification-prompts.ts +0 -206
- package/dist/builtin/workflows/builtin/verification-usage.ts +0 -44
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import {
|
|
2
|
+
stableArtifactRoot
|
|
3
|
+
} from "./chunk-wpckd35c.js";
|
|
4
|
+
import {
|
|
5
|
+
workflow
|
|
6
|
+
} from "./chunk-bfkmzv9h.js";
|
|
7
|
+
import {
|
|
8
|
+
withSteeringPropagationContext
|
|
9
|
+
} from "./chunk-0x6e303p.js";
|
|
10
|
+
|
|
11
|
+
// dist/builtin/workflows/builtin/classify-and-act.ts
|
|
12
|
+
import { Type as Type2 } from "typebox";
|
|
13
|
+
|
|
14
|
+
// dist/builtin/workflows/builtin/classify-and-act-runner.ts
|
|
15
|
+
import { writeFile } from "node:fs/promises";
|
|
16
|
+
import { join } from "node:path";
|
|
17
|
+
import { Type } from "typebox";
|
|
18
|
+
|
|
19
|
+
// dist/builtin/workflows/builtin/classify-and-act-prompts.ts
|
|
20
|
+
var GROUNDED_REPORTING = "Before reporting progress, audit each claim against a tool result from this session. Report only work you can point to evidence for; say so explicitly when something is unverified.";
|
|
21
|
+
var READABLE_REPORT = "Lead with the outcome. Keep facts, decisions, caveats, and next steps; drop background and repetition. Use complete, readable sentences rather than compressed fragments.";
|
|
22
|
+
function classifierPrompt(prompt, categories) {
|
|
23
|
+
return `<categories>
|
|
24
|
+
${categories.map((category) => `- ${category}`).join(`
|
|
25
|
+
`)}
|
|
26
|
+
</categories>
|
|
27
|
+
|
|
28
|
+
<role>
|
|
29
|
+
You route a task to exactly one declared action category.
|
|
30
|
+
</role>
|
|
31
|
+
|
|
32
|
+
<success_criteria>
|
|
33
|
+
The selected category is copied verbatim and supported by the task's concrete wording.
|
|
34
|
+
</success_criteria>
|
|
35
|
+
|
|
36
|
+
<decision_rules>
|
|
37
|
+
Choose exactly one listed category. Use low confidence when the task is ambiguous or spans categories. Stop after making that single classification.
|
|
38
|
+
</decision_rules>
|
|
39
|
+
|
|
40
|
+
<output_format>
|
|
41
|
+
Return only the structured result requested by the schema: category, confidence, and a concise evidence-based rationale in complete sentences.
|
|
42
|
+
</output_format>
|
|
43
|
+
|
|
44
|
+
<objective>
|
|
45
|
+
Classify this task: ${prompt}
|
|
46
|
+
</objective>`;
|
|
47
|
+
}
|
|
48
|
+
function actionPrompt(input) {
|
|
49
|
+
return `<evidence>
|
|
50
|
+
Read the classification artifact at ${input.classificationPath}. Use only relevant evidence available to this stage; do not assume access to classifier conversation context.
|
|
51
|
+
</evidence>
|
|
52
|
+
|
|
53
|
+
<role>
|
|
54
|
+
You are the isolated action agent for category "${input.category}".
|
|
55
|
+
</role>
|
|
56
|
+
|
|
57
|
+
<success_criteria>
|
|
58
|
+
Complete the requested action for this category, distinguish verified facts from assumptions, and report concrete evidence, validation, and remaining risks.
|
|
59
|
+
</success_criteria>
|
|
60
|
+
|
|
61
|
+
<stop_rules>
|
|
62
|
+
Stop when the category-specific action is complete or a remaining blocker is stated with its missing evidence.
|
|
63
|
+
</stop_rules>
|
|
64
|
+
|
|
65
|
+
<output_format>
|
|
66
|
+
Markdown with Outcome, Evidence, Validation, and Remaining risks headings. ${READABLE_REPORT}
|
|
67
|
+
${GROUNDED_REPORTING}
|
|
68
|
+
</output_format>
|
|
69
|
+
|
|
70
|
+
<objective>
|
|
71
|
+
${input.prompt}
|
|
72
|
+
</objective>`;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// dist/builtin/workflows/builtin/classify-and-act-runner.ts
|
|
76
|
+
var classificationSchema = Type.Object({
|
|
77
|
+
category: Type.String({ description: "One category copied verbatim from the supplied list." }),
|
|
78
|
+
confidence: Type.Number({ minimum: 0, maximum: 1 }),
|
|
79
|
+
rationale: Type.String()
|
|
80
|
+
}, { additionalProperties: false });
|
|
81
|
+
function safeName(value) {
|
|
82
|
+
const normalized = value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
83
|
+
return normalized || "fallback";
|
|
84
|
+
}
|
|
85
|
+
function actionTools(category) {
|
|
86
|
+
const normalized = category.toLowerCase();
|
|
87
|
+
if (normalized.includes("implement") || normalized.includes("fix") || normalized.includes("code")) {
|
|
88
|
+
return ["read", "edit", "write", "bash"];
|
|
89
|
+
}
|
|
90
|
+
if (normalized.includes("research"))
|
|
91
|
+
return ["read", "web_search", "fetch_content"];
|
|
92
|
+
return ["read"];
|
|
93
|
+
}
|
|
94
|
+
async function resolveFallbackCategory(ctx, exactCategory) {
|
|
95
|
+
try {
|
|
96
|
+
const category = await ctx.ui.select("Classification is uncertain. Choose the action category.", ctx.inputs.categories);
|
|
97
|
+
return { category, fallbackMode: "interactive_select" };
|
|
98
|
+
} catch {
|
|
99
|
+
return { category: exactCategory ?? ctx.inputs.categories[0], fallbackMode: "deterministic" };
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
async function runClassifyAndAct(ctx) {
|
|
103
|
+
const artifactDir = await stableArtifactRoot(ctx, "classify-and-act");
|
|
104
|
+
const classified = await ctx.task("classifier", {
|
|
105
|
+
prompt: classifierPrompt(ctx.inputs.prompt, ctx.inputs.categories),
|
|
106
|
+
schema: classificationSchema,
|
|
107
|
+
context: "fresh",
|
|
108
|
+
tools: []
|
|
109
|
+
});
|
|
110
|
+
const value = classified.structured;
|
|
111
|
+
const proposedCategory = typeof value === "object" && value !== null && "category" in value ? String(value.category) : "";
|
|
112
|
+
const confidenceValue = typeof value === "object" && value !== null && "confidence" in value ? value.confidence : 0;
|
|
113
|
+
const confidence = typeof confidenceValue === "number" && Number.isFinite(confidenceValue) ? Math.max(0, Math.min(1, confidenceValue)) : 0;
|
|
114
|
+
const rationale = typeof value === "object" && value !== null && "rationale" in value ? String(value.rationale) : "Classifier did not provide a usable structured rationale.";
|
|
115
|
+
const exactCategory = ctx.inputs.categories.find((category2) => category2 === proposedCategory);
|
|
116
|
+
const needsFallback = exactCategory === undefined || confidence < ctx.inputs.confidence_threshold;
|
|
117
|
+
const fallback = needsFallback ? await resolveFallbackCategory(ctx, exactCategory) : undefined;
|
|
118
|
+
const category = fallback?.category ?? exactCategory;
|
|
119
|
+
const classificationPath = join(artifactDir, "classification.json");
|
|
120
|
+
await writeFile(classificationPath, JSON.stringify({
|
|
121
|
+
proposed_category: proposedCategory,
|
|
122
|
+
selected_category: category,
|
|
123
|
+
confidence,
|
|
124
|
+
threshold: ctx.inputs.confidence_threshold,
|
|
125
|
+
rationale,
|
|
126
|
+
fallback_used: needsFallback,
|
|
127
|
+
fallback_mode: fallback?.fallbackMode ?? "none"
|
|
128
|
+
}, null, 2));
|
|
129
|
+
const actionPath = join(artifactDir, `action-${safeName(category)}.md`);
|
|
130
|
+
const action = await ctx.task(`action-${safeName(category)}`, {
|
|
131
|
+
tools: actionTools(category),
|
|
132
|
+
prompt: actionPrompt({ prompt: ctx.inputs.prompt, category, classificationPath }),
|
|
133
|
+
context: "fresh",
|
|
134
|
+
reads: [classificationPath],
|
|
135
|
+
output: actionPath,
|
|
136
|
+
outputMode: "file-only"
|
|
137
|
+
});
|
|
138
|
+
const result = action.text;
|
|
139
|
+
return { result, category, confidence, action: action.stageName, classification_path: classificationPath, action_path: actionPath, artifact_dir: artifactDir };
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// dist/builtin/workflows/builtin/classify-and-act.ts
|
|
143
|
+
var DEFAULT_ACTION_CATEGORIES = ["analysis", "implementation", "research"];
|
|
144
|
+
var classify_and_act_default = workflow({
|
|
145
|
+
name: "classify-and-act",
|
|
146
|
+
description: "Classify a task with structured confidence, route deterministically to an isolated category action, and ask for human selection when confidence is low.",
|
|
147
|
+
heartbeatIntervalMinutes: 15,
|
|
148
|
+
inputs: {
|
|
149
|
+
prompt: Type2.String({ description: "Task to classify and execute." }),
|
|
150
|
+
categories: Type2.Array(Type2.String({ minLength: 1 }), {
|
|
151
|
+
minItems: 1,
|
|
152
|
+
maxItems: 8,
|
|
153
|
+
default: [...DEFAULT_ACTION_CATEGORIES],
|
|
154
|
+
description: "Ordered action categories available to the classifier and fallback chooser."
|
|
155
|
+
}),
|
|
156
|
+
confidence_threshold: Type2.Number({
|
|
157
|
+
minimum: 0.5,
|
|
158
|
+
maximum: 0.99,
|
|
159
|
+
default: 0.75,
|
|
160
|
+
description: "Minimum structured confidence required to route without human selection."
|
|
161
|
+
})
|
|
162
|
+
},
|
|
163
|
+
outputs: {
|
|
164
|
+
result: Type2.String({ description: "Compact reference to the category-specific action report artifact; read `action_path` for the full report." }),
|
|
165
|
+
category: Type2.String({ description: "Selected category, including any human fallback selection." }),
|
|
166
|
+
confidence: Type2.Number({ minimum: 0, maximum: 1, description: "Classifier confidence before fallback." }),
|
|
167
|
+
action: Type2.String({ description: "Executed category-specific action stage name." }),
|
|
168
|
+
classification_path: Type2.String({ description: "Structured classification artifact path." }),
|
|
169
|
+
action_path: Type2.String({ description: "Category action report artifact path." }),
|
|
170
|
+
artifact_dir: Type2.String({ description: "Per-run artifact directory." })
|
|
171
|
+
},
|
|
172
|
+
run: async (ctx) => await runClassifyAndAct(withSteeringPropagationContext(ctx))
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
export { DEFAULT_ACTION_CATEGORIES, classify_and_act_default };
|
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentSession,
|
|
3
|
+
AgentSessionRuntime,
|
|
4
|
+
ArminComponent,
|
|
5
|
+
AssistantMessageComponent,
|
|
6
|
+
AuthStorage,
|
|
7
|
+
BASH_SHELL_PRESENTATION,
|
|
8
|
+
BashExecutionComponent,
|
|
9
|
+
BorderedLoader,
|
|
10
|
+
BranchSummaryMessageComponent,
|
|
11
|
+
CLOUDFLARE_GATEWAY_BINDING_AUTH_SENTINEL,
|
|
12
|
+
CODEX_FAST_MODE_ORIGINATOR,
|
|
13
|
+
CODEX_FAST_MODE_ROUTING_HEADER,
|
|
14
|
+
CODEX_FAST_MODE_SERVICE_TIER,
|
|
15
|
+
ChatSessionHost,
|
|
16
|
+
ChatTranscriptComponent,
|
|
17
|
+
CredentialSynchronizationError,
|
|
18
|
+
CustomEditor,
|
|
19
|
+
CustomEntryComponent,
|
|
20
|
+
CustomMessageComponent,
|
|
21
|
+
DEFAULT_COMPACTION_SETTINGS,
|
|
22
|
+
DEFAULT_MAX_BYTES,
|
|
23
|
+
DEFAULT_MAX_LINES,
|
|
24
|
+
DefaultPackageManager,
|
|
25
|
+
DefaultResourceLoader,
|
|
26
|
+
DynamicBorder,
|
|
27
|
+
ExtensionEditorComponent,
|
|
28
|
+
ExtensionInputComponent,
|
|
29
|
+
ExtensionRunner,
|
|
30
|
+
ExtensionSelectorComponent,
|
|
31
|
+
FileAuthStorageBackend,
|
|
32
|
+
FooterComponent,
|
|
33
|
+
GIT_LOCAL_ENV_VARS,
|
|
34
|
+
INTERACTIVE_ENGINE_ENV_VARS,
|
|
35
|
+
InMemoryAuthStorageBackend,
|
|
36
|
+
InteractiveMode,
|
|
37
|
+
LiveChatEntriesController,
|
|
38
|
+
LoginDialogComponent,
|
|
39
|
+
ModelRegistry,
|
|
40
|
+
ModelRuntime,
|
|
41
|
+
ModelSelectorComponent,
|
|
42
|
+
OAuthSelectorComponent,
|
|
43
|
+
OVERLAY_ACTIVE_ROW_MARKER,
|
|
44
|
+
ProjectTrustStore,
|
|
45
|
+
RUNTIME_INTERCOM_GROUP_ENV,
|
|
46
|
+
RpcClient,
|
|
47
|
+
STALE_EXTENSION_CONTEXT_MARKER,
|
|
48
|
+
STRUCTURED_OUTPUT_TOOL_NAME,
|
|
49
|
+
ScrollableChatTranscriptComponent,
|
|
50
|
+
ScrollableComponentViewport,
|
|
51
|
+
SessionSelectorComponent,
|
|
52
|
+
SettingsManager,
|
|
53
|
+
SettingsSelectorComponent,
|
|
54
|
+
ShowImagesSelectorComponent,
|
|
55
|
+
SkillInvocationMessageComponent,
|
|
56
|
+
StringEnum,
|
|
57
|
+
TRANSCRIPT_JUMP_TO_END_URL,
|
|
58
|
+
TRUST_REQUIRING_PROJECT_CONFIG_RESOURCES,
|
|
59
|
+
ThemeSelectorComponent,
|
|
60
|
+
ThinkingSelectorComponent,
|
|
61
|
+
ToolExecutionComponent,
|
|
62
|
+
TranscriptFollowIndicator,
|
|
63
|
+
TreeSelectorComponent,
|
|
64
|
+
UsageMeterComponent,
|
|
65
|
+
UserMessageComponent,
|
|
66
|
+
UserMessageSelectorComponent,
|
|
67
|
+
WorkingStatusComponent,
|
|
68
|
+
areExperimentalFeaturesEnabled,
|
|
69
|
+
bashToolSystemPromptContribution,
|
|
70
|
+
buildCodingAgentHarnessSystemPrompt,
|
|
71
|
+
buildSkillCatalog,
|
|
72
|
+
calculateContextTokens,
|
|
73
|
+
chatEntriesFromAgentMessages,
|
|
74
|
+
collectEntriesForBranchSummary,
|
|
75
|
+
convertToPng,
|
|
76
|
+
copyToClipboard,
|
|
77
|
+
createAgentSession,
|
|
78
|
+
createAgentSessionFromServices,
|
|
79
|
+
createAgentSessionRuntime,
|
|
80
|
+
createAgentSessionServices,
|
|
81
|
+
createAskUserQuestionToolDefinition,
|
|
82
|
+
createBashTool,
|
|
83
|
+
createBashToolDefinition,
|
|
84
|
+
createCodingAgentHarness,
|
|
85
|
+
createCodingTools,
|
|
86
|
+
createEditTool,
|
|
87
|
+
createEditToolDefinition,
|
|
88
|
+
createEventBus,
|
|
89
|
+
createExtensionRuntime,
|
|
90
|
+
createFindTool,
|
|
91
|
+
createFindToolDefinition,
|
|
92
|
+
createGatewayBindingFetch,
|
|
93
|
+
createGitEnvironment,
|
|
94
|
+
createLocalBashOperations,
|
|
95
|
+
createLocalPowerShellOperations,
|
|
96
|
+
createLsTool,
|
|
97
|
+
createLsToolDefinition,
|
|
98
|
+
createPowerShellTool,
|
|
99
|
+
createPowerShellToolDefinition,
|
|
100
|
+
createReadOnlyTools,
|
|
101
|
+
createReadTool,
|
|
102
|
+
createReadToolDefinition,
|
|
103
|
+
createSearchTool,
|
|
104
|
+
createSearchToolDefinition,
|
|
105
|
+
createStructuredOutputCapture,
|
|
106
|
+
createStructuredOutputTool,
|
|
107
|
+
createSyntheticSourceInfo,
|
|
108
|
+
createWriteTool,
|
|
109
|
+
createWriteToolDefinition,
|
|
110
|
+
decideReactiveWidgetAction,
|
|
111
|
+
defineTool,
|
|
112
|
+
detectSupportedImageMimeTypeFromFile,
|
|
113
|
+
discoverAndLoadExtensions,
|
|
114
|
+
editToolSystemPromptContribution,
|
|
115
|
+
errorMessage,
|
|
116
|
+
estimateTokens,
|
|
117
|
+
executeBashWithOperations,
|
|
118
|
+
findToolSystemPromptContribution,
|
|
119
|
+
formatCodexFastModeModelLabel,
|
|
120
|
+
formatDimensionNote,
|
|
121
|
+
formatSize,
|
|
122
|
+
formatSkillsForPrompt,
|
|
123
|
+
generateBranchSummary,
|
|
124
|
+
generateDiffString,
|
|
125
|
+
generateUnifiedPatch,
|
|
126
|
+
getBuiltinPackagePaths,
|
|
127
|
+
getCodexFastModeScope,
|
|
128
|
+
getLastAssistantUsage,
|
|
129
|
+
getPowerShellConfig,
|
|
130
|
+
getShellConfig,
|
|
131
|
+
getSkillCatalog,
|
|
132
|
+
hasProjectTrustInputs,
|
|
133
|
+
hasSupportedCodexFastModeModel,
|
|
134
|
+
hasTrustRequiringProjectResources,
|
|
135
|
+
installReactiveWidget,
|
|
136
|
+
isBashToolResult,
|
|
137
|
+
isCodexFastModeCandidateModelId,
|
|
138
|
+
isCodexFastModeEnabledForScope,
|
|
139
|
+
isCodexFastModeSupportedModel,
|
|
140
|
+
isCodexFastModeSupportedProvider,
|
|
141
|
+
isEditToolResult,
|
|
142
|
+
isFindToolResult,
|
|
143
|
+
isLsToolResult,
|
|
144
|
+
isPowerShellToolResult,
|
|
145
|
+
isReadToolResult,
|
|
146
|
+
isRetryableModelFailure,
|
|
147
|
+
isRetryableSameModelFailure,
|
|
148
|
+
isStaleExtensionContextError,
|
|
149
|
+
isToolCallEventType,
|
|
150
|
+
isWriteToolResult,
|
|
151
|
+
keyHint,
|
|
152
|
+
keyHintIfBound,
|
|
153
|
+
keyText,
|
|
154
|
+
loadProjectContextFiles,
|
|
155
|
+
loadSkills,
|
|
156
|
+
loadSkillsFromDir,
|
|
157
|
+
lsToolSystemPromptContribution,
|
|
158
|
+
main,
|
|
159
|
+
modelFailureMessage,
|
|
160
|
+
nextRetryDecision,
|
|
161
|
+
normalizeModelFailureSignal,
|
|
162
|
+
parseArgs,
|
|
163
|
+
parseFlattenedKeyPath,
|
|
164
|
+
parseFrontmatter,
|
|
165
|
+
parseSkillBlock,
|
|
166
|
+
pickWhimsicalWorkingMessage,
|
|
167
|
+
prepareBranchEntries,
|
|
168
|
+
prepareCompactionBoundary,
|
|
169
|
+
rawKeyHint,
|
|
170
|
+
readRuntimeIntercomGroup,
|
|
171
|
+
readStoredCredential,
|
|
172
|
+
readToolSystemPromptContribution,
|
|
173
|
+
reconstructFlattenedKeys,
|
|
174
|
+
renderChatMessageEntry,
|
|
175
|
+
renderDiff,
|
|
176
|
+
resizeImage,
|
|
177
|
+
runCallback,
|
|
178
|
+
runPrintMode,
|
|
179
|
+
runRpcMode,
|
|
180
|
+
runSynchronousCallback,
|
|
181
|
+
runVerbatimCompaction,
|
|
182
|
+
runtimeIntercomGroupEnvKey,
|
|
183
|
+
scrubInteractiveEngineEnv,
|
|
184
|
+
searchToolSystemPromptContribution,
|
|
185
|
+
serializeConversation,
|
|
186
|
+
sessionScopedExtensionState,
|
|
187
|
+
shouldApplyCodexFastMode,
|
|
188
|
+
shouldApplyCodexFastModeForScope,
|
|
189
|
+
shouldCompact,
|
|
190
|
+
startNewContextWindow,
|
|
191
|
+
stripFrontmatter,
|
|
192
|
+
truncateHead,
|
|
193
|
+
truncateLine,
|
|
194
|
+
truncateTail,
|
|
195
|
+
truncateToVisualLines,
|
|
196
|
+
unflattenArgumentsWithSchema,
|
|
197
|
+
usesChatGptCodexTransport,
|
|
198
|
+
usesFirstPartyCodexRouting,
|
|
199
|
+
withCodexFastModeHeaders,
|
|
200
|
+
withFileMutationQueue,
|
|
201
|
+
wrapRegisteredTool,
|
|
202
|
+
wrapRegisteredTools,
|
|
203
|
+
writeToolSystemPromptContribution
|
|
204
|
+
} from "./chunk-17zk6ffd.js";
|
|
205
|
+
import {
|
|
206
|
+
APP_NAME,
|
|
207
|
+
APP_TITLE,
|
|
208
|
+
CONFIG_DIR_NAME,
|
|
209
|
+
CONFIG_DIR_NAMES,
|
|
210
|
+
CURRENT_SESSION_VERSION,
|
|
211
|
+
ENV_CODEX_FAST_MODE,
|
|
212
|
+
LEGACY_CONFIG_DIR_NAME,
|
|
213
|
+
LEGACY_ENV_PREFIX,
|
|
214
|
+
PACKAGE_NAME,
|
|
215
|
+
SAFE_FS_WATCH_CANONICALIZATION_FAILED,
|
|
216
|
+
SAFE_FS_WATCH_UNSAFE_WINDOWS_SHORT_PATH,
|
|
217
|
+
SessionManager,
|
|
218
|
+
Theme,
|
|
219
|
+
VERSION,
|
|
220
|
+
WORKFLOW_SESSION_METADATA_ENV,
|
|
221
|
+
WORKFLOW_STAGE_SUBAGENT_GUARD_ENV,
|
|
222
|
+
buildContextEntries,
|
|
223
|
+
buildSessionContext,
|
|
224
|
+
convertToLlm,
|
|
225
|
+
createChildProcessEnvironment,
|
|
226
|
+
getAgentConfigPaths,
|
|
227
|
+
getAgentDir,
|
|
228
|
+
getAgentDirs,
|
|
229
|
+
getBundledInteractiveAssetPath,
|
|
230
|
+
getChangelogPath,
|
|
231
|
+
getDocsPath,
|
|
232
|
+
getEnvNames,
|
|
233
|
+
getEnvValue,
|
|
234
|
+
getExamplesPath,
|
|
235
|
+
getExportTemplateDir,
|
|
236
|
+
getInteractiveAssetsDir,
|
|
237
|
+
getLanguageFromPath,
|
|
238
|
+
getLatestCompactionBoundaryEntry,
|
|
239
|
+
getLegacyAgentDir,
|
|
240
|
+
getMarkdownTheme,
|
|
241
|
+
getPackageDir,
|
|
242
|
+
getPackageJsonPath,
|
|
243
|
+
getProjectConfigDirs,
|
|
244
|
+
getProjectConfigPaths,
|
|
245
|
+
getReadmePath,
|
|
246
|
+
getSelectListTheme,
|
|
247
|
+
getSettingsListTheme,
|
|
248
|
+
getThemesDir,
|
|
249
|
+
getUserConfigDirs,
|
|
250
|
+
getUserConfigPaths,
|
|
251
|
+
hasEnvValue,
|
|
252
|
+
highlightCode,
|
|
253
|
+
initTheme,
|
|
254
|
+
isBunBinary,
|
|
255
|
+
isSafeFsWatchPathError,
|
|
256
|
+
isUnsafeWindowsShortPath,
|
|
257
|
+
migrateSessionEntries,
|
|
258
|
+
parseSessionEntries,
|
|
259
|
+
resolveNativeWatchPath,
|
|
260
|
+
serializeConversationForCompaction,
|
|
261
|
+
sessionEntryToContextMessages,
|
|
262
|
+
setEnvValue,
|
|
263
|
+
watchWithErrorHandler,
|
|
264
|
+
workflowSessionMetadataFromEnv
|
|
265
|
+
} from "./chunk-x2ghn0je.js";
|
|
266
|
+
import"./chunk-5wgwscd0.js";
|
|
267
|
+
export {
|
|
268
|
+
APP_NAME,
|
|
269
|
+
APP_TITLE,
|
|
270
|
+
AgentSession,
|
|
271
|
+
AgentSessionRuntime,
|
|
272
|
+
ArminComponent,
|
|
273
|
+
AssistantMessageComponent,
|
|
274
|
+
AuthStorage,
|
|
275
|
+
BASH_SHELL_PRESENTATION,
|
|
276
|
+
BashExecutionComponent,
|
|
277
|
+
BorderedLoader,
|
|
278
|
+
BranchSummaryMessageComponent,
|
|
279
|
+
CLOUDFLARE_GATEWAY_BINDING_AUTH_SENTINEL,
|
|
280
|
+
CODEX_FAST_MODE_ORIGINATOR,
|
|
281
|
+
CODEX_FAST_MODE_ROUTING_HEADER,
|
|
282
|
+
CODEX_FAST_MODE_SERVICE_TIER,
|
|
283
|
+
CONFIG_DIR_NAME,
|
|
284
|
+
CONFIG_DIR_NAMES,
|
|
285
|
+
CURRENT_SESSION_VERSION,
|
|
286
|
+
ChatSessionHost,
|
|
287
|
+
ChatTranscriptComponent,
|
|
288
|
+
CredentialSynchronizationError,
|
|
289
|
+
CustomEditor,
|
|
290
|
+
CustomEntryComponent,
|
|
291
|
+
CustomMessageComponent,
|
|
292
|
+
DEFAULT_COMPACTION_SETTINGS,
|
|
293
|
+
DEFAULT_MAX_BYTES,
|
|
294
|
+
DEFAULT_MAX_LINES,
|
|
295
|
+
DefaultPackageManager,
|
|
296
|
+
DefaultResourceLoader,
|
|
297
|
+
DynamicBorder,
|
|
298
|
+
ENV_CODEX_FAST_MODE,
|
|
299
|
+
ExtensionEditorComponent,
|
|
300
|
+
ExtensionInputComponent,
|
|
301
|
+
ExtensionRunner,
|
|
302
|
+
ExtensionSelectorComponent,
|
|
303
|
+
FileAuthStorageBackend,
|
|
304
|
+
FooterComponent,
|
|
305
|
+
GIT_LOCAL_ENV_VARS,
|
|
306
|
+
INTERACTIVE_ENGINE_ENV_VARS,
|
|
307
|
+
InMemoryAuthStorageBackend,
|
|
308
|
+
InteractiveMode,
|
|
309
|
+
LEGACY_CONFIG_DIR_NAME,
|
|
310
|
+
LEGACY_ENV_PREFIX,
|
|
311
|
+
LiveChatEntriesController,
|
|
312
|
+
LoginDialogComponent,
|
|
313
|
+
ModelRegistry,
|
|
314
|
+
ModelRuntime,
|
|
315
|
+
ModelSelectorComponent,
|
|
316
|
+
OAuthSelectorComponent,
|
|
317
|
+
OVERLAY_ACTIVE_ROW_MARKER,
|
|
318
|
+
PACKAGE_NAME,
|
|
319
|
+
ProjectTrustStore,
|
|
320
|
+
RUNTIME_INTERCOM_GROUP_ENV,
|
|
321
|
+
RpcClient,
|
|
322
|
+
SAFE_FS_WATCH_CANONICALIZATION_FAILED,
|
|
323
|
+
SAFE_FS_WATCH_UNSAFE_WINDOWS_SHORT_PATH,
|
|
324
|
+
STALE_EXTENSION_CONTEXT_MARKER,
|
|
325
|
+
STRUCTURED_OUTPUT_TOOL_NAME,
|
|
326
|
+
ScrollableChatTranscriptComponent,
|
|
327
|
+
ScrollableComponentViewport,
|
|
328
|
+
SessionManager,
|
|
329
|
+
SessionSelectorComponent,
|
|
330
|
+
SettingsManager,
|
|
331
|
+
SettingsSelectorComponent,
|
|
332
|
+
ShowImagesSelectorComponent,
|
|
333
|
+
SkillInvocationMessageComponent,
|
|
334
|
+
StringEnum,
|
|
335
|
+
TRANSCRIPT_JUMP_TO_END_URL,
|
|
336
|
+
TRUST_REQUIRING_PROJECT_CONFIG_RESOURCES,
|
|
337
|
+
Theme,
|
|
338
|
+
ThemeSelectorComponent,
|
|
339
|
+
ThinkingSelectorComponent,
|
|
340
|
+
ToolExecutionComponent,
|
|
341
|
+
TranscriptFollowIndicator,
|
|
342
|
+
TreeSelectorComponent,
|
|
343
|
+
UsageMeterComponent,
|
|
344
|
+
UserMessageComponent,
|
|
345
|
+
UserMessageSelectorComponent,
|
|
346
|
+
VERSION,
|
|
347
|
+
WORKFLOW_SESSION_METADATA_ENV,
|
|
348
|
+
WORKFLOW_STAGE_SUBAGENT_GUARD_ENV,
|
|
349
|
+
WorkingStatusComponent,
|
|
350
|
+
areExperimentalFeaturesEnabled,
|
|
351
|
+
bashToolSystemPromptContribution,
|
|
352
|
+
buildCodingAgentHarnessSystemPrompt,
|
|
353
|
+
buildContextEntries,
|
|
354
|
+
buildSessionContext,
|
|
355
|
+
buildSkillCatalog,
|
|
356
|
+
calculateContextTokens,
|
|
357
|
+
chatEntriesFromAgentMessages,
|
|
358
|
+
collectEntriesForBranchSummary,
|
|
359
|
+
convertToLlm,
|
|
360
|
+
convertToPng,
|
|
361
|
+
copyToClipboard,
|
|
362
|
+
createAgentSession,
|
|
363
|
+
createAgentSessionFromServices,
|
|
364
|
+
createAgentSessionRuntime,
|
|
365
|
+
createAgentSessionServices,
|
|
366
|
+
createAskUserQuestionToolDefinition,
|
|
367
|
+
createBashTool,
|
|
368
|
+
createBashToolDefinition,
|
|
369
|
+
createChildProcessEnvironment,
|
|
370
|
+
createCodingAgentHarness,
|
|
371
|
+
createCodingTools,
|
|
372
|
+
createEditTool,
|
|
373
|
+
createEditToolDefinition,
|
|
374
|
+
createEventBus,
|
|
375
|
+
createExtensionRuntime,
|
|
376
|
+
createFindTool,
|
|
377
|
+
createFindToolDefinition,
|
|
378
|
+
createGatewayBindingFetch,
|
|
379
|
+
createGitEnvironment,
|
|
380
|
+
createLocalBashOperations,
|
|
381
|
+
createLocalPowerShellOperations,
|
|
382
|
+
createLsTool,
|
|
383
|
+
createLsToolDefinition,
|
|
384
|
+
createPowerShellTool,
|
|
385
|
+
createPowerShellToolDefinition,
|
|
386
|
+
createReadOnlyTools,
|
|
387
|
+
createReadTool,
|
|
388
|
+
createReadToolDefinition,
|
|
389
|
+
createSearchTool,
|
|
390
|
+
createSearchToolDefinition,
|
|
391
|
+
createStructuredOutputCapture,
|
|
392
|
+
createStructuredOutputTool,
|
|
393
|
+
createSyntheticSourceInfo,
|
|
394
|
+
createWriteTool,
|
|
395
|
+
createWriteToolDefinition,
|
|
396
|
+
decideReactiveWidgetAction,
|
|
397
|
+
defineTool,
|
|
398
|
+
detectSupportedImageMimeTypeFromFile,
|
|
399
|
+
discoverAndLoadExtensions,
|
|
400
|
+
editToolSystemPromptContribution,
|
|
401
|
+
errorMessage,
|
|
402
|
+
estimateTokens,
|
|
403
|
+
executeBashWithOperations,
|
|
404
|
+
findToolSystemPromptContribution,
|
|
405
|
+
formatCodexFastModeModelLabel,
|
|
406
|
+
formatDimensionNote,
|
|
407
|
+
formatSize,
|
|
408
|
+
formatSkillsForPrompt,
|
|
409
|
+
generateBranchSummary,
|
|
410
|
+
generateDiffString,
|
|
411
|
+
generateUnifiedPatch,
|
|
412
|
+
getAgentConfigPaths,
|
|
413
|
+
getAgentDir,
|
|
414
|
+
getAgentDirs,
|
|
415
|
+
getBuiltinPackagePaths,
|
|
416
|
+
getBundledInteractiveAssetPath,
|
|
417
|
+
getChangelogPath,
|
|
418
|
+
getCodexFastModeScope,
|
|
419
|
+
getDocsPath,
|
|
420
|
+
getEnvNames,
|
|
421
|
+
getEnvValue,
|
|
422
|
+
getExamplesPath,
|
|
423
|
+
getExportTemplateDir,
|
|
424
|
+
getInteractiveAssetsDir,
|
|
425
|
+
getLanguageFromPath,
|
|
426
|
+
getLastAssistantUsage,
|
|
427
|
+
getLatestCompactionBoundaryEntry,
|
|
428
|
+
getLegacyAgentDir,
|
|
429
|
+
getMarkdownTheme,
|
|
430
|
+
getPackageDir,
|
|
431
|
+
getPackageJsonPath,
|
|
432
|
+
getPowerShellConfig,
|
|
433
|
+
getProjectConfigDirs,
|
|
434
|
+
getProjectConfigPaths,
|
|
435
|
+
getReadmePath,
|
|
436
|
+
getSelectListTheme,
|
|
437
|
+
getSettingsListTheme,
|
|
438
|
+
getShellConfig,
|
|
439
|
+
getSkillCatalog,
|
|
440
|
+
getThemesDir,
|
|
441
|
+
getUserConfigDirs,
|
|
442
|
+
getUserConfigPaths,
|
|
443
|
+
hasEnvValue,
|
|
444
|
+
hasProjectTrustInputs,
|
|
445
|
+
hasSupportedCodexFastModeModel,
|
|
446
|
+
hasTrustRequiringProjectResources,
|
|
447
|
+
highlightCode,
|
|
448
|
+
initTheme,
|
|
449
|
+
installReactiveWidget,
|
|
450
|
+
isBashToolResult,
|
|
451
|
+
isBunBinary,
|
|
452
|
+
isCodexFastModeCandidateModelId,
|
|
453
|
+
isCodexFastModeEnabledForScope,
|
|
454
|
+
isCodexFastModeSupportedModel,
|
|
455
|
+
isCodexFastModeSupportedProvider,
|
|
456
|
+
isEditToolResult,
|
|
457
|
+
isFindToolResult,
|
|
458
|
+
isLsToolResult,
|
|
459
|
+
isPowerShellToolResult,
|
|
460
|
+
isReadToolResult,
|
|
461
|
+
isRetryableModelFailure,
|
|
462
|
+
isRetryableSameModelFailure,
|
|
463
|
+
isSafeFsWatchPathError,
|
|
464
|
+
isStaleExtensionContextError,
|
|
465
|
+
isToolCallEventType,
|
|
466
|
+
isUnsafeWindowsShortPath,
|
|
467
|
+
isWriteToolResult,
|
|
468
|
+
keyHint,
|
|
469
|
+
keyHintIfBound,
|
|
470
|
+
keyText,
|
|
471
|
+
loadProjectContextFiles,
|
|
472
|
+
loadSkills,
|
|
473
|
+
loadSkillsFromDir,
|
|
474
|
+
lsToolSystemPromptContribution,
|
|
475
|
+
main,
|
|
476
|
+
migrateSessionEntries,
|
|
477
|
+
modelFailureMessage,
|
|
478
|
+
nextRetryDecision,
|
|
479
|
+
normalizeModelFailureSignal,
|
|
480
|
+
parseArgs,
|
|
481
|
+
parseFlattenedKeyPath,
|
|
482
|
+
parseFrontmatter,
|
|
483
|
+
parseSessionEntries,
|
|
484
|
+
parseSkillBlock,
|
|
485
|
+
pickWhimsicalWorkingMessage,
|
|
486
|
+
prepareBranchEntries,
|
|
487
|
+
prepareCompactionBoundary,
|
|
488
|
+
rawKeyHint,
|
|
489
|
+
readRuntimeIntercomGroup,
|
|
490
|
+
readStoredCredential,
|
|
491
|
+
readToolSystemPromptContribution,
|
|
492
|
+
reconstructFlattenedKeys,
|
|
493
|
+
renderChatMessageEntry,
|
|
494
|
+
renderDiff,
|
|
495
|
+
resizeImage,
|
|
496
|
+
resolveNativeWatchPath,
|
|
497
|
+
runCallback,
|
|
498
|
+
runPrintMode,
|
|
499
|
+
runRpcMode,
|
|
500
|
+
runSynchronousCallback,
|
|
501
|
+
runVerbatimCompaction,
|
|
502
|
+
runtimeIntercomGroupEnvKey,
|
|
503
|
+
scrubInteractiveEngineEnv,
|
|
504
|
+
searchToolSystemPromptContribution,
|
|
505
|
+
serializeConversation,
|
|
506
|
+
serializeConversationForCompaction,
|
|
507
|
+
sessionEntryToContextMessages,
|
|
508
|
+
sessionScopedExtensionState,
|
|
509
|
+
setEnvValue,
|
|
510
|
+
shouldApplyCodexFastMode,
|
|
511
|
+
shouldApplyCodexFastModeForScope,
|
|
512
|
+
shouldCompact,
|
|
513
|
+
startNewContextWindow,
|
|
514
|
+
stripFrontmatter,
|
|
515
|
+
truncateHead,
|
|
516
|
+
truncateLine,
|
|
517
|
+
truncateTail,
|
|
518
|
+
truncateToVisualLines,
|
|
519
|
+
unflattenArgumentsWithSchema,
|
|
520
|
+
usesChatGptCodexTransport,
|
|
521
|
+
usesFirstPartyCodexRouting,
|
|
522
|
+
watchWithErrorHandler,
|
|
523
|
+
withCodexFastModeHeaders,
|
|
524
|
+
withFileMutationQueue,
|
|
525
|
+
workflowSessionMetadataFromEnv,
|
|
526
|
+
wrapRegisteredTool,
|
|
527
|
+
wrapRegisteredTools,
|
|
528
|
+
writeToolSystemPromptContribution
|
|
529
|
+
};
|