@dexto/tools-plan 1.6.27 → 1.7.1

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/index.d.cts CHANGED
@@ -18,16 +18,13 @@ import { Logger, DextoRuntimeError } from '@dexto/core';
18
18
  declare const PlanToolsConfigSchema: z.ZodObject<{
19
19
  type: z.ZodLiteral<"plan-tools">;
20
20
  basePath: z.ZodDefault<z.ZodString>;
21
- enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["plan_create", "plan_read", "plan_update", "plan_review"]>, "many">>;
22
- }, "strict", z.ZodTypeAny, {
23
- type: "plan-tools";
24
- basePath: string;
25
- enabledTools?: ("plan_create" | "plan_read" | "plan_update" | "plan_review")[] | undefined;
26
- }, {
27
- type: "plan-tools";
28
- basePath?: string | undefined;
29
- enabledTools?: ("plan_create" | "plan_read" | "plan_update" | "plan_review")[] | undefined;
30
- }>;
21
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
22
+ plan_create: "plan_create";
23
+ plan_read: "plan_read";
24
+ plan_update: "plan_update";
25
+ plan_review: "plan_review";
26
+ }>>>;
27
+ }, z.core.$strict>;
31
28
  type PlanToolsConfig = z.output<typeof PlanToolsConfigSchema>;
32
29
 
33
30
  declare const planToolsFactory: ToolFactory<PlanToolsConfig>;
@@ -41,30 +38,30 @@ declare const planToolsFactory: ToolFactory<PlanToolsConfig>;
41
38
  /**
42
39
  * Plan status values
43
40
  */
44
- declare const PlanStatusSchema: z.ZodEnum<["draft", "approved", "in_progress", "completed", "abandoned"]>;
41
+ declare const PlanStatusSchema: z.ZodEnum<{
42
+ draft: "draft";
43
+ approved: "approved";
44
+ in_progress: "in_progress";
45
+ completed: "completed";
46
+ abandoned: "abandoned";
47
+ }>;
45
48
  type PlanStatus = z.infer<typeof PlanStatusSchema>;
46
49
  /**
47
50
  * Plan metadata stored alongside the plan content
48
51
  */
49
52
  declare const PlanMetaSchema: z.ZodObject<{
50
53
  sessionId: z.ZodString;
51
- status: z.ZodDefault<z.ZodEnum<["draft", "approved", "in_progress", "completed", "abandoned"]>>;
54
+ status: z.ZodDefault<z.ZodEnum<{
55
+ draft: "draft";
56
+ approved: "approved";
57
+ in_progress: "in_progress";
58
+ completed: "completed";
59
+ abandoned: "abandoned";
60
+ }>>;
52
61
  title: z.ZodOptional<z.ZodString>;
53
62
  createdAt: z.ZodNumber;
54
63
  updatedAt: z.ZodNumber;
55
- }, "strip", z.ZodTypeAny, {
56
- status: "draft" | "approved" | "in_progress" | "completed" | "abandoned";
57
- sessionId: string;
58
- createdAt: number;
59
- updatedAt: number;
60
- title?: string | undefined;
61
- }, {
62
- sessionId: string;
63
- createdAt: number;
64
- updatedAt: number;
65
- status?: "draft" | "approved" | "in_progress" | "completed" | "abandoned" | undefined;
66
- title?: string | undefined;
67
- }>;
64
+ }, z.core.$strip>;
68
65
  type PlanMeta = z.infer<typeof PlanMetaSchema>;
69
66
  /**
70
67
  * Complete plan with content and metadata
@@ -18,15 +18,12 @@ export declare const PLAN_TOOL_NAMES: readonly ["plan_create", "plan_read", "pla
18
18
  export declare const PlanToolsConfigSchema: z.ZodObject<{
19
19
  type: z.ZodLiteral<"plan-tools">;
20
20
  basePath: z.ZodDefault<z.ZodString>;
21
- enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["plan_create", "plan_read", "plan_update", "plan_review"]>, "many">>;
22
- }, "strict", z.ZodTypeAny, {
23
- type: "plan-tools";
24
- basePath: string;
25
- enabledTools?: ("plan_create" | "plan_read" | "plan_update" | "plan_review")[] | undefined;
26
- }, {
27
- type: "plan-tools";
28
- basePath?: string | undefined;
29
- enabledTools?: ("plan_create" | "plan_read" | "plan_update" | "plan_review")[] | undefined;
30
- }>;
21
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
22
+ plan_create: "plan_create";
23
+ plan_read: "plan_read";
24
+ plan_update: "plan_update";
25
+ plan_review: "plan_review";
26
+ }>>>;
27
+ }, z.core.$strict>;
31
28
  export type PlanToolsConfig = z.output<typeof PlanToolsConfigSchema>;
32
29
  //# sourceMappingURL=tool-factory-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool-factory-config.d.ts","sourceRoot":"","sources":["../src/tool-factory-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,eAAe,qEAAsE,CAAC;AAEnG;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAcrB,CAAC;AAEd,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"tool-factory-config.d.ts","sourceRoot":"","sources":["../src/tool-factory-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,eAAe,qEAAsE,CAAC;AAEnG;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;kBAcrB,CAAC;AAEd,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -10,13 +10,7 @@ import type { PlanServiceGetter } from '../plan-service-getter.js';
10
10
  declare const PlanCreateInputSchema: z.ZodObject<{
11
11
  title: z.ZodString;
12
12
  content: z.ZodString;
13
- }, "strict", z.ZodTypeAny, {
14
- title: string;
15
- content: string;
16
- }, {
17
- title: string;
18
- content: string;
19
- }>;
13
+ }, z.core.$strict>;
20
14
  /**
21
15
  * Creates the plan_create tool
22
16
  */
@@ -1 +1 @@
1
- {"version":3,"file":"plan-create-tool.d.ts","sourceRoot":"","sources":["../../src/tools/plan-create-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAyC,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,QAAA,MAAM,qBAAqB;;;;;;;;;EASd,CAAC;AAEd;;GAEG;AACH,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,iBAAiB,GAClC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAkFpC"}
1
+ {"version":3,"file":"plan-create-tool.d.ts","sourceRoot":"","sources":["../../src/tools/plan-create-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAyC,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,QAAA,MAAM,qBAAqB;;;kBASd,CAAC;AAEd;;GAEG;AACH,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,iBAAiB,GAClC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAkFpC"}
@@ -7,7 +7,7 @@
7
7
  import { z } from 'zod';
8
8
  import type { Tool } from '@dexto/core';
9
9
  import type { PlanServiceGetter } from '../plan-service-getter.js';
10
- declare const PlanReadInputSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
10
+ declare const PlanReadInputSchema: z.ZodObject<{}, z.core.$strict>;
11
11
  /**
12
12
  * Creates the plan_read tool
13
13
  */
@@ -1 +1 @@
1
- {"version":3,"file":"plan-read-tool.d.ts","sourceRoot":"","sources":["../../src/tools/plan-read-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,QAAA,MAAM,mBAAmB,iDAAwB,CAAC;AAElD;;GAEG;AACH,wBAAgB,kBAAkB,CAC9B,cAAc,EAAE,iBAAiB,GAClC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAuClC"}
1
+ {"version":3,"file":"plan-read-tool.d.ts","sourceRoot":"","sources":["../../src/tools/plan-read-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,QAAA,MAAM,mBAAmB,iCAAwB,CAAC;AAElD;;GAEG;AACH,wBAAgB,kBAAkB,CAC9B,cAAc,EAAE,iBAAiB,GAClC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAuClC"}
@@ -16,11 +16,7 @@ import type { Tool } from '@dexto/core';
16
16
  import type { PlanServiceGetter } from '../plan-service-getter.js';
17
17
  declare const PlanReviewInputSchema: z.ZodObject<{
18
18
  summary: z.ZodOptional<z.ZodString>;
19
- }, "strict", z.ZodTypeAny, {
20
- summary?: string | undefined;
21
- }, {
22
- summary?: string | undefined;
23
- }>;
19
+ }, z.core.$strict>;
24
20
  /**
25
21
  * Creates the plan_review tool
26
22
  *
@@ -1 +1 @@
1
- {"version":3,"file":"plan-review-tool.d.ts","sourceRoot":"","sources":["../../src/tools/plan-review-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAyC,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,QAAA,MAAM,qBAAqB;;;;;;EAOd,CAAC;AAEd;;;;GAIG;AACH,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,iBAAiB,GAClC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CA2EpC"}
1
+ {"version":3,"file":"plan-review-tool.d.ts","sourceRoot":"","sources":["../../src/tools/plan-review-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAyC,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,QAAA,MAAM,qBAAqB;;kBAOd,CAAC;AAEd;;;;GAIG;AACH,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,iBAAiB,GAClC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CA2EpC"}
@@ -9,11 +9,7 @@ import type { Tool } from '@dexto/core';
9
9
  import type { PlanServiceGetter } from '../plan-service-getter.js';
10
10
  declare const PlanUpdateInputSchema: z.ZodObject<{
11
11
  content: z.ZodString;
12
- }, "strict", z.ZodTypeAny, {
13
- content: string;
14
- }, {
15
- content: string;
16
- }>;
12
+ }, z.core.$strict>;
17
13
  /**
18
14
  * Creates the plan_update tool
19
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"plan-update-tool.d.ts","sourceRoot":"","sources":["../../src/tools/plan-update-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,IAAI,EAAyC,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,QAAA,MAAM,qBAAqB;;;;;;EAId,CAAC;AA0Bd;;GAEG;AACH,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,iBAAiB,GAClC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAsDpC"}
1
+ {"version":3,"file":"plan-update-tool.d.ts","sourceRoot":"","sources":["../../src/tools/plan-update-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,IAAI,EAAyC,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,QAAA,MAAM,qBAAqB;;kBAId,CAAC;AA0Bd;;GAEG;AACH,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,iBAAiB,GAClC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAsDpC"}
package/dist/types.d.ts CHANGED
@@ -7,30 +7,30 @@ import { z } from 'zod';
7
7
  /**
8
8
  * Plan status values
9
9
  */
10
- export declare const PlanStatusSchema: z.ZodEnum<["draft", "approved", "in_progress", "completed", "abandoned"]>;
10
+ export declare const PlanStatusSchema: z.ZodEnum<{
11
+ draft: "draft";
12
+ approved: "approved";
13
+ in_progress: "in_progress";
14
+ completed: "completed";
15
+ abandoned: "abandoned";
16
+ }>;
11
17
  export type PlanStatus = z.infer<typeof PlanStatusSchema>;
12
18
  /**
13
19
  * Plan metadata stored alongside the plan content
14
20
  */
15
21
  export declare const PlanMetaSchema: z.ZodObject<{
16
22
  sessionId: z.ZodString;
17
- status: z.ZodDefault<z.ZodEnum<["draft", "approved", "in_progress", "completed", "abandoned"]>>;
23
+ status: z.ZodDefault<z.ZodEnum<{
24
+ draft: "draft";
25
+ approved: "approved";
26
+ in_progress: "in_progress";
27
+ completed: "completed";
28
+ abandoned: "abandoned";
29
+ }>>;
18
30
  title: z.ZodOptional<z.ZodString>;
19
31
  createdAt: z.ZodNumber;
20
32
  updatedAt: z.ZodNumber;
21
- }, "strip", z.ZodTypeAny, {
22
- sessionId: string;
23
- status: "draft" | "approved" | "in_progress" | "completed" | "abandoned";
24
- createdAt: number;
25
- updatedAt: number;
26
- title?: string | undefined;
27
- }, {
28
- sessionId: string;
29
- createdAt: number;
30
- updatedAt: number;
31
- status?: "draft" | "approved" | "in_progress" | "completed" | "abandoned" | undefined;
32
- title?: string | undefined;
33
- }>;
33
+ }, z.core.$strip>;
34
34
  export type PlanMeta = z.infer<typeof PlanMetaSchema>;
35
35
  /**
36
36
  * Complete plan with content and metadata
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,gBAAgB,2EAM3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAMzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,QAAQ,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC;CAClB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;EAM3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;iBAMzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,QAAQ,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/tools-plan",
3
- "version": "1.6.27",
3
+ "version": "1.7.1",
4
4
  "description": "Implementation planning tools with session-linked plans",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,9 +16,9 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "diff": "^8.0.3",
19
- "zod": "^3.24.1",
20
- "@dexto/agent-config": "1.6.27",
21
- "@dexto/core": "1.6.27"
19
+ "zod": "^4.3.6",
20
+ "@dexto/agent-config": "1.7.1",
21
+ "@dexto/core": "1.7.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/diff": "^7.0.0",