@howaboua/pi-durable-apply-patch 0.11.0 → 0.13.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 CHANGED
@@ -3,7 +3,7 @@
3
3
  Apply Codex-format multi-file patches through the conversation's execution environment. The tool supports additions, updates, deletions, moves, ordered hunks, Unicode-tolerant matching, and mixed line endings. No Rust helper runs at runtime.
4
4
 
5
5
  ```sh
6
- npm install https://github.com/IgorWarzocha/pi-durable-components/releases/download/v0.11.0/howaboua-pi-durable-apply-patch-0.11.0.tgz
6
+ npm install @howaboua/pi-durable-apply-patch@0.13.0
7
7
  ```
8
8
 
9
9
  Install the bundle in your Durable registry:
@@ -32,7 +32,7 @@ Calls from this component serialize overlapping resolved and canonical paths wit
32
32
 
33
33
  The registration is `replay: "unsafe"`. Reopening Durable does not replay an interrupted patch. Read the affected target before deciding what to retry.
34
34
 
35
- Requires Durable, pi-ai, and Chord 1.5.0. Derived engine code is Apache-2.0; adapter code is MIT. See [NOTICE](./NOTICE).
35
+ Requires Durable, pi-ai, and Chord 1.8.0. Derived engine code is Apache-2.0; adapter code is MIT. See [NOTICE](./NOTICE).
36
36
 
37
37
  ## Headless presentations
38
38
 
@@ -1,4 +1,4 @@
1
- import type { Context } from "@earendil-works/chord";
1
+ import type { Context } from "@earendil-works/chord/context";
2
2
  import { type ExecutionEnv } from "@earendil-works/pi-durable/env";
3
3
  import { type PatchOutcome } from "./patch-outcome.ts";
4
4
  /** Apply ordered file actions through the conversation environment. Never replay interrupted mutations. */
@@ -1,4 +1,4 @@
1
- import type { Context } from "@earendil-works/chord";
1
+ import type { Context } from "@earendil-works/chord/context";
2
2
  import { type ExecutionEnv, FileError, type Result } from "@earendil-works/pi-durable/env";
3
3
  export declare function checkAbort(context: Context): void;
4
4
  /** Environment-only mutations and the accuracy of their recoverable contents. */
package/dist/index.d.ts CHANGED
@@ -34,7 +34,10 @@ export declare function createApplyPatchTool(): {
34
34
  };
35
35
  execute(args: {
36
36
  input: string;
37
- }, api: import("@earendil-works/pi-durable").ToolExecutionApi<ApplyPatchToolDetails>, context: import("@earendil-works/chord").Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<ApplyPatchToolDetails>>;
37
+ }, api: import("@earendil-works/pi-durable").ToolExecutionApi<ApplyPatchToolDetails, import("@earendil-works/chord/json").JsonValue>, context: import("@earendil-works/chord/context").Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<ApplyPatchToolDetails> | import("@earendil-works/pi-durable").ToolPark<import("@earendil-works/chord/json").JsonValue>>;
38
+ cancel?(args: {
39
+ input: string;
40
+ }, api: import("@earendil-works/pi-durable").ToolExecutionApi<ApplyPatchToolDetails, import("@earendil-works/chord/json").JsonValue>, context: import("@earendil-works/chord/context").Context): Promise<void>;
38
41
  executionHints: {
39
42
  deferLoading: boolean;
40
43
  usage: string;
@@ -62,7 +65,10 @@ export declare const ApplyPatch: import("@earendil-works/pi-durable").Extension<
62
65
  };
63
66
  execute(args: {
64
67
  input: string;
65
- }, api: import("@earendil-works/pi-durable").ToolExecutionApi<ApplyPatchToolDetails>, context: import("@earendil-works/chord").Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<ApplyPatchToolDetails>>;
68
+ }, api: import("@earendil-works/pi-durable").ToolExecutionApi<ApplyPatchToolDetails, import("@earendil-works/chord/json").JsonValue>, context: import("@earendil-works/chord/context").Context): Promise<import("@earendil-works/pi-durable").ToolExecutionResult<ApplyPatchToolDetails> | import("@earendil-works/pi-durable").ToolPark<import("@earendil-works/chord/json").JsonValue>>;
69
+ cancel?(args: {
70
+ input: string;
71
+ }, api: import("@earendil-works/pi-durable").ToolExecutionApi<ApplyPatchToolDetails, import("@earendil-works/chord/json").JsonValue>, context: import("@earendil-works/chord/context").Context): Promise<void>;
66
72
  executionHints: {
67
73
  deferLoading: boolean;
68
74
  usage: string;
@@ -1,4 +1,4 @@
1
- import type { Context } from "@earendil-works/chord";
1
+ import type { Context } from "@earendil-works/chord/context";
2
2
  import { type ExecutionEnv } from "@earendil-works/pi-durable/env";
3
3
  export declare function pathIdentity(path: string): string;
4
4
  export declare function withMutationKeys<T>(env: ExecutionEnv, paths: string[], context: Context, run: () => Promise<T>, warnings?: string[]): Promise<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howaboua/pi-durable-apply-patch",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "description": "Codex-style patches for Pi Durable",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0 AND MIT",
@@ -37,17 +37,17 @@
37
37
  ],
38
38
  "sideEffects": false,
39
39
  "peerDependencies": {
40
- "@earendil-works/chord": "1.5.0",
41
- "@earendil-works/pi-ai": "1.5.0",
42
- "@earendil-works/pi-durable": "1.5.0",
43
- "@modelcontextprotocol/sdk": ">=1.25.2 <2"
40
+ "@earendil-works/chord": "1.8.0",
41
+ "@earendil-works/pi-ai": "1.8.0",
42
+ "@earendil-works/pi-durable": "1.8.0",
43
+ "@modelcontextprotocol/sdk": ">=1.32.2 <2"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
48
  "dependencies": {
49
- "@howaboua/pi-durable-components": "0.11.0",
50
- "typebox": "1.3.27"
49
+ "@howaboua/pi-durable-components": "0.13.0",
50
+ "typebox": "1.4.7"
51
51
  },
52
52
  "durable": {
53
53
  "schemaVersion": 1,