@fungi.computer/knapsack 0.0.1 → 0.0.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/dist/files.js +2 -3
- package/package.json +4 -4
package/dist/files.js
CHANGED
|
@@ -128,8 +128,6 @@ export const editOutputSchema = z.union([
|
|
|
128
128
|
editSuccessSchema,
|
|
129
129
|
filesEditFailureSchema,
|
|
130
130
|
]);
|
|
131
|
-
/** Model-facing parameters derived from the one Zod decoder `prepare` uses. */
|
|
132
|
-
const patchParameters = z.toJSONSchema(patchInputSchema);
|
|
133
131
|
const fileToolBrand = Symbol("KnapsackFileTool");
|
|
134
132
|
/** The one module id that a host's grant for Files names. */
|
|
135
133
|
const filesModuleId = "files";
|
|
@@ -369,7 +367,8 @@ function patchTool(invokePatch) {
|
|
|
369
367
|
descriptor: {
|
|
370
368
|
name: "apply_patch",
|
|
371
369
|
description: "Apply a Codex patch to the selected Files root. Example:\n*** Begin Patch\n*** Update File: path/to/file\n@@\n context line\n-old line\n+new line\n*** End Patch\nUse @@ alone or followed by an existing context line; unified-diff @@ line numbers are not supported. Add/Delete File and optional Move to are also supported. Paths stay inside the root; symlinks and parent traversal are rejected. A failure returns recovery guidance and may follow earlier file writes; inspect the result before retrying. Prefer this to shell or Python replacement.",
|
|
372
|
-
parameters
|
|
370
|
+
// Model-facing parameters derived from the one Zod decoder `prepare` uses.
|
|
371
|
+
parameters: z.toJSONSchema(patchInputSchema),
|
|
373
372
|
constrainedSampling: {
|
|
374
373
|
type: "grammar",
|
|
375
374
|
variants: { openai_lark: patchGrammar },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/knapsack",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"description": "Agent tool connections projected into Mycelium capability sources",
|
|
6
6
|
"type": "module",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@fungi.computer/cairn": "0.0.1",
|
|
41
|
-
"@fungi.computer/forage": "0.0.
|
|
42
|
-
"@fungi.computer/mule": "0.0.
|
|
43
|
-
"@fungi.computer/mycelium": "0.0.
|
|
41
|
+
"@fungi.computer/forage": "0.0.2",
|
|
42
|
+
"@fungi.computer/mule": "0.0.2",
|
|
43
|
+
"@fungi.computer/mycelium": "0.0.2",
|
|
44
44
|
"@modelcontextprotocol/client": "2.0.0",
|
|
45
45
|
"diff": "8.0.4",
|
|
46
46
|
"effect": "4.0.2",
|