pi-ultracode 0.3.2 → 0.5.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/README.md +32 -14
- package/README.zh-CN.md +32 -14
- package/extensions/ultracode.ts +11 -10
- package/package.json +17 -7
- package/src/commands.ts +21 -22
- package/src/depth.ts +38 -0
- package/src/index.ts +9 -1
- package/src/mode.ts +82 -58
- package/src/prompts.ts +65 -32
- package/src/thinking.ts +1 -1
- package/src/workflow/agent-runner.ts +23 -8
- package/src/workflow/agent-types.ts +19 -15
- package/src/workflow/hermetic-git.ts +31 -0
- package/src/workflow/journal.ts +134 -3
- package/src/workflow/parser.ts +254 -38
- package/src/workflow/registry.ts +44 -67
- package/src/workflow/repository-context.ts +76 -0
- package/src/workflow/run-artifacts.ts +60 -14
- package/src/workflow/runtime.ts +380 -180
- package/src/workflow/saved-workflow.ts +37 -0
- package/src/workflow/script-executor.ts +56 -10
- package/src/workflow/script-worker.mjs +65 -19
- package/src/workflow/tool.ts +108 -58
- package/src/workflow/workflow-overlay.ts +4 -4
- package/src/workflow/worktree.ts +1965 -244
- package/types/workflow.d.ts +2 -4
package/types/workflow.d.ts
CHANGED
|
@@ -104,8 +104,8 @@ declare global {
|
|
|
104
104
|
>
|
|
105
105
|
): Promise<Array<Awaited<TResult> | null>>;
|
|
106
106
|
|
|
107
|
-
/** Run a saved workflow
|
|
108
|
-
function workflow<T = unknown>(
|
|
107
|
+
/** Run a trust-aware saved workflow by name; strict JSON args/output and one nesting level. */
|
|
108
|
+
function workflow<T = unknown>(name: string, args?: unknown): Promise<T>;
|
|
109
109
|
|
|
110
110
|
/** Mark the current phase for progress grouping. */
|
|
111
111
|
function phase(title: string): void;
|
|
@@ -119,6 +119,4 @@ declare global {
|
|
|
119
119
|
/** Working directory for the workflow and its subagents. */
|
|
120
120
|
const cwd: string;
|
|
121
121
|
|
|
122
|
-
/** Deterministic process shim exposing only cwd(). */
|
|
123
|
-
const process: { cwd(): string };
|
|
124
122
|
}
|