@aexhq/tool-edit 0.0.0 → 6.1.4

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.
@@ -0,0 +1,55 @@
1
+ {
2
+ "edit": {
3
+ "contract_digest": "343ca501c2ba3f8a3bc84c1dfda3a5aaec8b38f25e26f1ba9d5f511581237a80",
4
+ "filename": "edit.mjs",
5
+ "manifest": {
6
+ "name": "edit",
7
+ "description": "Replace one exact occurrence of text in an Environment workspace file.",
8
+ "input_schema": {
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
10
+ "type": "object",
11
+ "properties": {
12
+ "path": {
13
+ "type": "string",
14
+ "minLength": 1
15
+ },
16
+ "old_text": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ "new_text": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "required": [
25
+ "path",
26
+ "old_text",
27
+ "new_text"
28
+ ]
29
+ },
30
+ "output_schema": {
31
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
32
+ "type": "object",
33
+ "properties": {
34
+ "path": {
35
+ "type": "string"
36
+ },
37
+ "replacements": {
38
+ "type": "number",
39
+ "const": 1
40
+ }
41
+ },
42
+ "required": [
43
+ "path",
44
+ "replacements"
45
+ ],
46
+ "additionalProperties": false
47
+ },
48
+ "implementation": {
49
+ "type": "aex_official_tool",
50
+ "version": 1,
51
+ "name": "edit"
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ export declare const inputSchema: z.ZodObject<{
3
+ path: z.ZodString;
4
+ old_text: z.ZodString;
5
+ new_text: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export declare const outputSchema: z.ZodObject<{
8
+ path: z.ZodString;
9
+ replacements: z.ZodLiteral<1>;
10
+ }, z.core.$strip>;
package/dist/schema.js ADDED
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ export const inputSchema = z.object({ path: z.string().min(1), old_text: z.string().min(1), new_text: z.string() });
3
+ export const outputSchema = z.object({ path: z.string(), replacements: z.literal(1) });
package/package.json CHANGED
@@ -1,19 +1,45 @@
1
1
  {
2
2
  "name": "@aexhq/tool-edit",
3
- "version": "0.0.0",
4
- "description": "Reserved package name; no stable release is available.",
5
- "license": "Apache-2.0",
3
+ "version": "6.1.4",
4
+ "description": "Replace one exact occurrence of text in an Environment workspace file.",
5
+ "license": "MIT",
6
+ "homepage": "https://aex.dev",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/aexhq/extensions.git",
10
+ "directory": "packages/tool-edit"
11
+ },
6
12
  "type": "module",
7
- "exports": "./index.js",
13
+ "engines": {
14
+ "node": ">=22.0.0"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public",
18
+ "provenance": true,
19
+ "tag": "next"
20
+ },
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.js"
25
+ },
26
+ "./package.json": "./package.json"
27
+ },
8
28
  "files": [
9
- "index.js"
29
+ "dist",
30
+ "README.md"
10
31
  ],
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/aexhq/extensions.git"
32
+ "scripts": {
33
+ "build": "node ../../tools/clean-dist.mjs && tsc -p tsconfig.json && tsc -p tsconfig.runtime.json && node ../../tools/build-tool-runtime.mjs",
34
+ "test": "npm run build && node --test test/*.test.mjs",
35
+ "prepack": "npm run build"
36
+ },
37
+ "dependencies": {
38
+ "@aexhq/brain": "0.25.1",
39
+ "zod": "4.4.3"
14
40
  },
15
- "aexHoldPlaceholder": {
16
- "stagedVersion": "6.1.3",
17
- "source": "8d915063d80e327b857cd66976902c2ad1d3139a"
41
+ "devDependencies": {
42
+ "@types/node": "^24.3.0",
43
+ "typescript": "^5.9.2"
18
44
  }
19
45
  }
package/index.js DELETED
@@ -1 +0,0 @@
1
- throw new Error("@aexhq/tool-edit has no stable release; install @aexhq/tool-edit@next or an exact version");