@themoltnet/pi-runtime 0.5.0 → 0.6.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +14 -14
  2. package/dist/index.js +2713 -29453
  3. package/package.json +11 -5
package/dist/index.d.ts CHANGED
@@ -498,18 +498,11 @@ export declare interface ExecutePiTaskOptions {
498
498
  */
499
499
  maxBashTimeouts?: number;
500
500
  /**
501
- * Number of correction turns allowed after the first invalid submit-output
502
- * tool call. A value of 2 permits three invalid submit calls total before
503
- * the attempt fails with output_validation_failed.
504
- */
505
- maxSubmitValidationRetries?: number;
506
- /**
507
- * Number of same-session re-prompts when the model ends its turn WITHOUT
508
- * calling the submit-output tool at all (no captured payload and no
509
- * exhausted validation budget). Distinct from
510
- * `maxSubmitValidationRetries`, which recovers *invalid-args* submit calls.
511
- * Each re-prompt names the submit tool and forbids a prose reply. When the
512
- * budget is spent the attempt still fails with `submit_output_missing`.
501
+ * Number of same-session re-prompts when the model ends its turn without a
502
+ * valid submit-output call. A missing call receives the ordinary submit
503
+ * reminder; an invalid call receives its latest validation failure. When the
504
+ * budget is spent the attempt fails with the latest validation error, or
505
+ * `submit_output_missing` if the tool was never called.
513
506
  * Only applies to task types that register a submit tool. Default `3`. Set
514
507
  * to `0` to disable. See #1528.
515
508
  */
@@ -956,10 +949,16 @@ export declare interface PiTaskExecutionPlan {
956
949
  */
957
950
  workspaceId: string | null;
958
951
  /**
959
- * Branch to create or reopen for the workspace. `null` means no dedicated
960
- * worktree is required.
952
+ * Branch to create or reopen for the workspace. `null` may instead mean a
953
+ * detached dedicated worktree when `workspaceRevision` is present.
961
954
  */
962
955
  worktreeBranch: string | null;
956
+ /**
957
+ * Immutable commit that must back the selected workspace. Shared mounts are
958
+ * verified against it; dedicated review worktrees are created detached at
959
+ * it. `null` preserves the existing branch-oriented behavior.
960
+ */
961
+ workspaceRevision?: string | null;
963
962
  /**
964
963
  * Base ref a NEW `worktreeBranch` is cut from. Used by `fork` continuations
965
964
  * to branch from the parent's tip instead of the default (main/HEAD). Ignored
@@ -1149,6 +1148,7 @@ declare interface RuntimeInstructorContext {
1149
1148
 
1150
1149
  declare interface RuntimeInstructorSandbox {
1151
1150
  workspaceMode: 'shared_mount' | 'dedicated_worktree' | 'scratch_mount';
1151
+ workspaceRevision?: string | null;
1152
1152
  vfsShadowMode: 'none' | 'deny' | 'tmpfs';
1153
1153
  vfsShadowPatterns: readonly string[];
1154
1154
  nodeModulesWriteMode?: 'tmpfs';