omp-fabric 1.27.1 → 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,24 @@
|
|
|
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
|
+
|
|
3
22
|
## 1.27.1
|
|
4
23
|
|
|
5
24
|
### Added
|
|
@@ -11723,7 +11723,7 @@ var createNativeSession = (cwd, {
|
|
|
11723
11723
|
try {
|
|
11724
11724
|
mkdirSync2(artifacts.root, { recursive: true, mode: 448 });
|
|
11725
11725
|
const id = randomUUID3();
|
|
11726
|
-
const artifactPath = path15.join(artifacts.root, `${toolType}-${id}.log`);
|
|
11726
|
+
const artifactPath = path15.join(artifacts.root, `${toolType ?? "output"}-${id}.log`);
|
|
11727
11727
|
writeFileSync2(artifactPath, "", { mode: 384 });
|
|
11728
11728
|
artifacts.paths.set(id, artifactPath);
|
|
11729
11729
|
artifactAllocations.getStore()?.push(artifactPath);
|
|
@@ -11840,6 +11840,11 @@ var createGrepDefinitionWithOptions = (cwd) => {
|
|
|
11840
11840
|
}
|
|
11841
11841
|
};
|
|
11842
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
|
+
};
|
|
11843
11848
|
var createFindDefinitionWithFilters = (cwd) => {
|
|
11844
11849
|
const legacy = createFindToolDefinition(cwd);
|
|
11845
11850
|
const tool = new GlobTool(grepSession(cwd));
|
|
@@ -11848,17 +11853,17 @@ var createFindDefinitionWithFilters = (cwd) => {
|
|
|
11848
11853
|
parameters: withFindFilterSchema(legacy.parameters),
|
|
11849
11854
|
execute: (toolCallId, params, signal, onUpdate, context) => {
|
|
11850
11855
|
const record2 = asRecord(params) ?? {};
|
|
11856
|
+
const limit = clampFindLimit(record2.limit);
|
|
11851
11857
|
if (typeof record2.gitignore !== "boolean" && typeof record2.hidden !== "boolean") {
|
|
11852
|
-
return legacy.execute(toolCallId,
|
|
11858
|
+
return legacy.execute(toolCallId, { ...record2, limit }, signal, onUpdate, context);
|
|
11853
11859
|
}
|
|
11854
11860
|
const pattern = typeof record2.pattern === "string" ? record2.pattern : void 0;
|
|
11855
11861
|
const searchPath = typeof record2.path === "string" ? record2.path : void 0;
|
|
11856
|
-
const limit = typeof record2.limit === "number" ? record2.limit : void 0;
|
|
11857
11862
|
return tool.execute(
|
|
11858
11863
|
toolCallId,
|
|
11859
11864
|
{
|
|
11860
11865
|
path: piJoinPath(searchPath ?? ".", pattern ?? "*"),
|
|
11861
|
-
|
|
11866
|
+
limit,
|
|
11862
11867
|
...typeof record2.gitignore === "boolean" ? { gitignore: record2.gitignore } : {},
|
|
11863
11868
|
...typeof record2.hidden === "boolean" ? { hidden: record2.hidden } : {}
|
|
11864
11869
|
},
|