omp-fabric 1.27.0 → 1.27.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 CHANGED
@@ -1,5 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.27.2
4
+
5
+ ### Fixed
6
+
7
+ - `omp.find` without a `limit`, or with a limit above 200, failed on OMP 19.1.1 with `limit must be a number at most 200 (was 1000)`: the host find shim still defaults to 1000 while `GlobTool` now accepts 1 to 200. Fabric clamps the limit to 1..200 before the host sees it, and the truncation marker reports `resultLimit: 200` when the cap cut results. On 18.x hosts a find without a limit now returns at most 200 entries where the shim default returned up to 1000; 200 is the 19.1.1 host default.
8
+ - Bash output spill files were named `undefined-<id>.log` on OMP 19.1.1, which calls `allocateOutputArtifact` without a tool type. They are now named `output-<id>.log`.
9
+ - The first activation of an OMP actor exited with `Session "<path>" not found.` on OMP 19, which treats `--session <path>` as a resume request (#17). The worker now creates the session file with a version 3 header through an exclusive write before it starts OMP, and later activations resume that file. Contributed by @raiscui in #18.
10
+
11
+ ### Changed
12
+
13
+ - Host pins move from 18.20.2 to 19.1.1 (dependencies pi-agent-core, pi-ai, pi-utils; dev omptype, pi-coding-agent, pi-natives, pi-tui); the declared peer floor stays >=18.4.4. All 35 `@oh-my-pi/*` specifiers in `src`, `scripts` and `tests` resolve against 19.1.1 except the `pi-natives-` platform prefix, which is built at runtime.
14
+ - Four host-facing tests followed 19.1.1: bash lists no `pty` parameter in a session without UI, the artifact root is recreated lazily on the first spill, and a handoff session directory holds a `.<file>.lock.os` next to the `.jsonl`, so `agent-manager.test.ts` and `agents-provider.test.ts` open the `.jsonl` entry. The second of those failed main Test runs 45138005661 and 45138826240 on ubuntu only, where the directory listed the lock file first (#20).
15
+
16
+ ### Notes
17
+
18
+ - Negative controls: without the clamp 2 tests in `tests/omp-tools-provider.test.ts` fail with the host error, without the name fallback 1 fails, and without the actor session write `tests/worker-e2e.test.ts` fails with `ENOENT`. Each source file was restored byte-identical.
19
+ - Host-facing tests on 19.1.1: 14 files, 271 passed, 28 skipped. Live probe on OMP 19.1.1: `omp --mode rpc --session <missing file>` exits with `Session ... not found.`; with the header, `get_state` succeeds and a second spawn resumes the same session id.
20
+ - CI: Test run 45136706531 at 59c1cf53 (#19), 45136860746 at 73335a4d and 45138032475 at 453848a0 (#18), 45138882609 at a5d6ebf3 (#20), all green on ubuntu and windows. Agent Hendra approved #18 and #19; #20 is a one-line test change. Main Test run 45139397107 passed at the code commit 69145fc0.
21
+
22
+ ## 1.27.1
23
+
24
+ ### Added
25
+
26
+ - A `fabric_exec` program that fails after some nested calls finished now gets the output of the last six completed calls in its error text, after the refs line. Each output keeps its first 450 and last 250 characters with a count of what was cut; `omp.bash` style results show their `output` and structured results show JSON. The journal sits in the host bridge, so QuickJS and the Node process executor share it. The line before the outputs reads `(outputs of the last calls follow)` where it used to read `(outputs not returned)`. The durable trace and the persisted execution details do not carry outputs, a program that succeeds is unchanged, and the `agents.handoff` deferral stub is not recorded.
27
+
28
+ ### Notes
29
+
30
+ - Origin: 397 of 987 failed results in three days of Wardmote transcripts (487 sessions, 38,495 `fabric_exec` calls) ended with `Completed before the outer failure (outputs not returned)`, so a program that read files and then failed on an edit lost what it read. The 1.27.0 notes left this open.
31
+ - Not measured: the per-call cost of keeping the journal in programs that succeed (a bounded excerpt per nested call), and the effect on agent behavior. The first check after release is the same count of `outputs not returned` lines in new sessions.
32
+ - Review gate: two read-only reviewers passed the commit with no hard findings. Fixed from their soft findings: a throwing getter could have failed a call that succeeded, the handoff stub was recorded as an output, the failure line claimed the latest outputs next to a summary of the first eight calls, and a failing parallel program had no test.
33
+ - CI run 43680154757 passed typecheck, build, dead-code lint and the full suite on ubuntu and windows at 8c7d5936.
34
+
3
35
  ## 1.27.0
4
36
 
5
37
  ### Removed (breaking)
@@ -0,0 +1,12 @@
1
+ export interface CompletedOutput {
2
+ ref: string;
3
+ target?: string;
4
+ chars: number;
5
+ preview: string;
6
+ }
7
+ export declare class CompletedOutputJournal {
8
+ #private;
9
+ record(ref: string, args: Record<string, unknown>, value: unknown): void;
10
+ entries(): CompletedOutput[];
11
+ }
12
+ //# sourceMappingURL=completed-outputs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"completed-outputs.d.ts","sourceRoot":"","sources":["../src/completed-outputs.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AA0CD,qBAAa,sBAAsB;;IAGjC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAaxE,OAAO,IAAI,eAAe,EAAE;CAG7B"}
@@ -1,4 +1,5 @@
1
1
  import type { Usage } from "@oh-my-pi/pi-ai";
2
+ import { type CompletedOutput } from "./completed-outputs.js";
2
3
  import type { ExtensionContext } from "@oh-my-pi/pi-coding-agent";
3
4
  import { type FabricExecutionTraceV1 } from "./audit/trace.js";
4
5
  import { FabricActivityStore } from "./activity/store.js";
@@ -23,6 +24,7 @@ export interface FabricExecutionResult {
23
24
  error?: string;
24
25
  handoffRequest?: Record<string, unknown>;
25
26
  usage?: Usage;
27
+ completedOutputs?: CompletedOutput[];
26
28
  }
27
29
  interface FabricExecutionPartial {
28
30
  audits: FabricCallAudit[];
@@ -1 +1 @@
1
- {"version":3,"file":"execution-service.d.ts","sourceRoot":"","sources":["../src/execution-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAML,KAAK,sBAAsB,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,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B,MAAM,EAAE,YAAY,EACpB,QAAQ,CAAC,EAAE,mBAAmB,YAAA,EAC9B,UAAU,CAAC,EAAE,yBAAyB,YAAA,EACtC,sBAAsB,+BAAqC,EAC3D,gBAAgB,yBAA+B,EAC/C,aAAa,CAAC,EAAE,mBAAmB,YAAA;IAG9C,iBAAiB,CAAC,IAAI,EAAE,6BAA6B,GAAG,SAAS,GAAG,IAAI;IAIxE,WAAW,CAAC,IAAI,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAIjD,OAAO,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAgtB/E"}
@@ -2917,6 +2917,55 @@ var FabricToolResultProxy = class {
2917
2917
  }
2918
2918
  };
2919
2919
 
2920
+ // src/completed-outputs.ts
2921
+ var MAX_ENTRIES = 6;
2922
+ var HEAD_CHARS = 450;
2923
+ var TAIL_CHARS = 250;
2924
+ var TARGET_CHARS = 100;
2925
+ var outputText = (value) => {
2926
+ try {
2927
+ if (typeof value === "string") return value;
2928
+ if (value === null || value === void 0) return void 0;
2929
+ if (typeof value === "object") {
2930
+ const record2 = value;
2931
+ if (typeof record2.output === "string") return record2.output;
2932
+ if (typeof record2.text === "string") return record2.text;
2933
+ return JSON.stringify(value);
2934
+ }
2935
+ return String(value);
2936
+ } catch {
2937
+ return void 0;
2938
+ }
2939
+ };
2940
+ var targetOf = (args) => {
2941
+ const raw = typeof args.path === "string" ? args.path : typeof args.cmd === "string" ? args.cmd : typeof args.command === "string" ? args.command : void 0;
2942
+ if (raw === void 0) return void 0;
2943
+ const line = raw.trim().split("\n", 1)[0] ?? "";
2944
+ if (line === "") return void 0;
2945
+ return line.length <= TARGET_CHARS ? line : `\u2026${line.slice(-(TARGET_CHARS - 1))}`;
2946
+ };
2947
+ var excerpt = (text) => text.length <= HEAD_CHARS + TAIL_CHARS ? text : `${text.slice(0, HEAD_CHARS)}
2948
+ \u2026[${text.length - HEAD_CHARS - TAIL_CHARS} chars omitted]\u2026
2949
+ ${text.slice(-TAIL_CHARS)}`;
2950
+ var CompletedOutputJournal = class {
2951
+ #entries = [];
2952
+ record(ref, args, value) {
2953
+ const text = outputText(value);
2954
+ if (text === void 0 || text.trim() === "") return;
2955
+ const target = targetOf(args);
2956
+ this.#entries.push({
2957
+ ref,
2958
+ ...target !== void 0 ? { target } : {},
2959
+ chars: text.length,
2960
+ preview: excerpt(text)
2961
+ });
2962
+ if (this.#entries.length > MAX_ENTRIES) this.#entries.shift();
2963
+ }
2964
+ entries() {
2965
+ return [...this.#entries];
2966
+ }
2967
+ };
2968
+
2920
2969
  // src/runtime/orchestration.ts
2921
2970
  var BLOCKING_ORCHESTRATION_REFS = /* @__PURE__ */ new Set([
2922
2971
  "agents.run",
@@ -3643,6 +3692,12 @@ var FabricExecutionService = class {
3643
3692
  return value;
3644
3693
  }
3645
3694
  };
3695
+ const completedOutputs = new CompletedOutputJournal();
3696
+ const journaled = async (ref, args, callContext) => {
3697
+ const value = await invokeAction(ref, args, callContext);
3698
+ if (ref !== "agents.handoff") completedOutputs.record(ref, args, value);
3699
+ return value;
3700
+ };
3646
3701
  let sandboxResult;
3647
3702
  try {
3648
3703
  const runtimeKind = this.config.executor.runtime;
@@ -3770,7 +3825,7 @@ var FabricExecutionService = class {
3770
3825
  case "fabric.$call": {
3771
3826
  const callArgs = typeof args.args === "object" && args.args !== null && !Array.isArray(args.args) ? args.args : {};
3772
3827
  const targetRef = requiredToolsRef("call", args);
3773
- return invokeAction(targetRef, callArgs, callContext);
3828
+ return journaled(targetRef, callArgs, callContext);
3774
3829
  }
3775
3830
  case "fabric.$progress":
3776
3831
  return traceAttempt(
@@ -3866,7 +3921,7 @@ var FabricExecutionService = class {
3866
3921
  return void 0;
3867
3922
  }
3868
3923
  default:
3869
- return invokeAction(ref, args, callContext);
3924
+ return journaled(ref, args, callContext);
3870
3925
  }
3871
3926
  },
3872
3927
  {
@@ -3905,6 +3960,7 @@ var FabricExecutionService = class {
3905
3960
  elapsedMs: performance.now() - startedAt,
3906
3961
  ...sandboxResult.error ? { error: sandboxResult.error } : {},
3907
3962
  ...handoffRequest ? { handoffRequest } : {},
3963
+ ...!succeeded && completedOutputs.entries().length > 0 ? { completedOutputs: completedOutputs.entries() } : {},
3908
3964
  ...classifierUsages.length > 0 ? { usage: aggregateUsage(classifierUsages) } : {}
3909
3965
  };
3910
3966
  }
@@ -11667,7 +11723,7 @@ var createNativeSession = (cwd, {
11667
11723
  try {
11668
11724
  mkdirSync2(artifacts.root, { recursive: true, mode: 448 });
11669
11725
  const id = randomUUID3();
11670
- const artifactPath = path15.join(artifacts.root, `${toolType}-${id}.log`);
11726
+ const artifactPath = path15.join(artifacts.root, `${toolType ?? "output"}-${id}.log`);
11671
11727
  writeFileSync2(artifactPath, "", { mode: 384 });
11672
11728
  artifacts.paths.set(id, artifactPath);
11673
11729
  artifactAllocations.getStore()?.push(artifactPath);
@@ -11784,6 +11840,11 @@ var createGrepDefinitionWithOptions = (cwd) => {
11784
11840
  }
11785
11841
  };
11786
11842
  };
11843
+ var HOST_FIND_MAX_LIMIT = 200;
11844
+ var clampFindLimit = (value) => {
11845
+ const requested = typeof value === "number" && Number.isFinite(value) ? Math.floor(value) : HOST_FIND_MAX_LIMIT;
11846
+ return Math.min(HOST_FIND_MAX_LIMIT, Math.max(1, requested));
11847
+ };
11787
11848
  var createFindDefinitionWithFilters = (cwd) => {
11788
11849
  const legacy = createFindToolDefinition(cwd);
11789
11850
  const tool = new GlobTool(grepSession(cwd));
@@ -11792,17 +11853,17 @@ var createFindDefinitionWithFilters = (cwd) => {
11792
11853
  parameters: withFindFilterSchema(legacy.parameters),
11793
11854
  execute: (toolCallId, params, signal, onUpdate, context) => {
11794
11855
  const record2 = asRecord(params) ?? {};
11856
+ const limit = clampFindLimit(record2.limit);
11795
11857
  if (typeof record2.gitignore !== "boolean" && typeof record2.hidden !== "boolean") {
11796
- return legacy.execute(toolCallId, params, signal, onUpdate, context);
11858
+ return legacy.execute(toolCallId, { ...record2, limit }, signal, onUpdate, context);
11797
11859
  }
11798
11860
  const pattern = typeof record2.pattern === "string" ? record2.pattern : void 0;
11799
11861
  const searchPath = typeof record2.path === "string" ? record2.path : void 0;
11800
- const limit = typeof record2.limit === "number" ? record2.limit : void 0;
11801
11862
  return tool.execute(
11802
11863
  toolCallId,
11803
11864
  {
11804
11865
  path: piJoinPath(searchPath ?? ".", pattern ?? "*"),
11805
- ...limit === void 0 ? {} : { limit },
11866
+ limit,
11806
11867
  ...typeof record2.gitignore === "boolean" ? { gitignore: record2.gitignore } : {},
11807
11868
  ...typeof record2.hidden === "boolean" ? { hidden: record2.hidden } : {}
11808
11869
  },