@fungi.computer/knapsack 0.4.4 → 0.4.6

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/docs/api/index.md CHANGED
@@ -206,7 +206,8 @@ type FilesEditErrorReason =
206
206
  | "partial-character"
207
207
  | "unchanged"
208
208
  | "not-text"
209
- | "conflict";
209
+ | "conflict"
210
+ | "read-only";
210
211
  ```
211
212
 
212
213
  Typed refusal from a bounded or conditional Files edit.
@@ -243,6 +244,7 @@ signal.
243
244
 
244
245
  ```ts
245
246
  type FilesPort = Readonly<{
247
+ assertEditable?: (path) => void;
246
248
  patch?: FilesPatch;
247
249
  read: (input, context) => Promise<z.output<typeof readOutputSchema>>;
248
250
  list: (input, context) => Promise<z.output<typeof searchOutputSchema>>;
@@ -596,6 +598,7 @@ const filesEditFailureSchema: ZodLazy<ZodObject<{
596
598
  unchanged: "unchanged";
597
599
  not-text: "not-text";
598
600
  conflict: "conflict";
601
+ read-only: "read-only";
599
602
  }>;
600
603
  path: ZodLazy<ZodString>;
601
604
  message: ZodString;
@@ -631,6 +634,7 @@ const editOutputSchema: ZodUnion<readonly [ZodLazy<ZodObject<{
631
634
  unchanged: "unchanged";
632
635
  not-text: "not-text";
633
636
  conflict: "conflict";
637
+ read-only: "read-only";
634
638
  }>;
635
639
  path: ZodLazy<ZodString>;
636
640
  message: ZodString;
@@ -687,7 +691,8 @@ function edit(
687
691
  | "partial-character"
688
692
  | "unchanged"
689
693
  | "not-text"
690
- | "conflict";
694
+ | "conflict"
695
+ | "read-only";
691
696
  path: string;
692
697
  message: string;
693
698
  };
@@ -717,7 +722,8 @@ captured FilesPort.
717
722
  `unifiedPatchRemovedLines`: `number`; `unifiedPatchTruncated`: `boolean`; \} \|
718
723
  \{ `status`: `"failed"`; `error`: \{ `kind`: \| `"not-found"` \| `"ambiguous"`
719
724
  \| `"file-too-large"` \| `"partial-character"` \| `"unchanged"` \| `"not-text"`
720
- \| `"conflict"`; `path`: `string`; `message`: `string`; \}; \}\>
725
+ \| `"conflict"` \| `"read-only"`; `path`: `string`; `message`: `string`; \};
726
+ \}\>
721
727
 
722
728
  ---
723
729
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/knapsack",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "description": "Agent tool connections projected into Mycelium capability sources",
6
6
  "type": "module",
@@ -46,9 +46,9 @@
46
46
  ],
47
47
  "dependencies": {
48
48
  "@fungi.computer/cairn": "0.1.0",
49
- "@fungi.computer/forage": "0.3.0",
50
- "@fungi.computer/mule": "0.2.2",
51
- "@fungi.computer/mycelium": "0.3.3",
49
+ "@fungi.computer/forage": "0.3.2",
50
+ "@fungi.computer/mule": "0.2.3",
51
+ "@fungi.computer/mycelium": "0.3.5",
52
52
  "@fungi.computer/whistle": "0.3.0",
53
53
  "@modelcontextprotocol/client": "2.0.0",
54
54
  "diff": "8.0.4",