@dexto/tools-plan 1.7.1 → 1.8.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/dist/errors.cjs CHANGED
@@ -22,7 +22,7 @@ __export(errors_exports, {
22
22
  PlanErrorCode: () => PlanErrorCode
23
23
  });
24
24
  module.exports = __toCommonJS(errors_exports);
25
- var import_core = require("@dexto/core");
25
+ var import_errors = require("@dexto/core/errors");
26
26
  const PlanErrorCode = {
27
27
  /** Plan already exists for session */
28
28
  PLAN_ALREADY_EXISTS: "PLAN_ALREADY_EXISTS",
@@ -44,10 +44,10 @@ const PlanError = {
44
44
  * Plan already exists for the given session
45
45
  */
46
46
  planAlreadyExists(sessionId) {
47
- return new import_core.DextoRuntimeError(
47
+ return new import_errors.DextoRuntimeError(
48
48
  PlanErrorCode.PLAN_ALREADY_EXISTS,
49
49
  "plan",
50
- import_core.ErrorType.USER,
50
+ import_errors.ErrorType.USER,
51
51
  `A plan already exists for session '${sessionId}'. Use plan_update to modify it.`,
52
52
  { sessionId },
53
53
  "Use plan_update to modify the existing plan, or plan_read to view it."
@@ -57,10 +57,10 @@ const PlanError = {
57
57
  * Plan not found for the given session
58
58
  */
59
59
  planNotFound(sessionId) {
60
- return new import_core.DextoRuntimeError(
60
+ return new import_errors.DextoRuntimeError(
61
61
  PlanErrorCode.PLAN_NOT_FOUND,
62
62
  "plan",
63
- import_core.ErrorType.NOT_FOUND,
63
+ import_errors.ErrorType.NOT_FOUND,
64
64
  `No plan found for session '${sessionId}'.`,
65
65
  { sessionId },
66
66
  "Use plan_create to create a new plan for this session."
@@ -70,10 +70,10 @@ const PlanError = {
70
70
  * Session ID is required for plan operations
71
71
  */
72
72
  sessionIdRequired() {
73
- return new import_core.DextoRuntimeError(
73
+ return new import_errors.DextoRuntimeError(
74
74
  PlanErrorCode.SESSION_ID_REQUIRED,
75
75
  "plan",
76
- import_core.ErrorType.USER,
76
+ import_errors.ErrorType.USER,
77
77
  "Session ID is required for plan operations.",
78
78
  {},
79
79
  "Ensure the tool is called within a valid session context."
@@ -83,10 +83,10 @@ const PlanError = {
83
83
  * Invalid session ID (path traversal attempt)
84
84
  */
85
85
  invalidSessionId(sessionId) {
86
- return new import_core.DextoRuntimeError(
86
+ return new import_errors.DextoRuntimeError(
87
87
  PlanErrorCode.INVALID_SESSION_ID,
88
88
  "plan",
89
- import_core.ErrorType.USER,
89
+ import_errors.ErrorType.USER,
90
90
  `Invalid session ID: '${sessionId}' contains invalid path characters.`,
91
91
  { sessionId },
92
92
  'Session IDs must not contain path traversal characters like "..".'
@@ -96,10 +96,10 @@ const PlanError = {
96
96
  * Checkpoint not found in plan
97
97
  */
98
98
  checkpointNotFound(checkpointId, sessionId) {
99
- return new import_core.DextoRuntimeError(
99
+ return new import_errors.DextoRuntimeError(
100
100
  PlanErrorCode.CHECKPOINT_NOT_FOUND,
101
101
  "plan",
102
- import_core.ErrorType.NOT_FOUND,
102
+ import_errors.ErrorType.NOT_FOUND,
103
103
  `Checkpoint '${checkpointId}' not found in plan for session '${sessionId}'.`,
104
104
  { checkpointId, sessionId },
105
105
  "Use plan_read to view available checkpoints."
@@ -109,10 +109,10 @@ const PlanError = {
109
109
  * Storage operation failed
110
110
  */
111
111
  storageError(operation, sessionId, cause) {
112
- return new import_core.DextoRuntimeError(
112
+ return new import_errors.DextoRuntimeError(
113
113
  PlanErrorCode.STORAGE_ERROR,
114
114
  "plan",
115
- import_core.ErrorType.SYSTEM,
115
+ import_errors.ErrorType.SYSTEM,
116
116
  `Failed to ${operation} plan for session '${sessionId}': ${cause?.message || "unknown error"}`,
117
117
  { operation, sessionId, cause: cause?.message },
118
118
  "Check file system permissions and try again."
package/dist/errors.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Provides typed errors for plan operations following the DextoRuntimeError pattern.
5
5
  */
6
- import { DextoRuntimeError } from '@dexto/core';
6
+ import { DextoRuntimeError } from '@dexto/core/errors';
7
7
  /**
8
8
  * Error codes for plan operations
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAa,MAAM,aAAa,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,aAAa;IACtB,sCAAsC;;IAEtC,iCAAiC;;IAEjC,2BAA2B;;IAE3B,0BAA0B;;IAE1B,kDAAkD;;IAElD,2BAA2B;;IAE3B,+BAA+B;;CAEzB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAEnF;;GAEG;AACH,eAAO,MAAM,SAAS;IAClB;;OAEG;iCAC0B,MAAM,GAAG,iBAAiB;IAWvD;;OAEG;4BACqB,MAAM,GAAG,iBAAiB;IAWlD;;OAEG;yBACkB,iBAAiB;IAWtC;;OAEG;gCACyB,MAAM,GAAG,iBAAiB;IAWtD;;OAEG;qCAC8B,MAAM,aAAa,MAAM,GAAG,iBAAiB;IAW9E;;OAEG;4BACqB,MAAM,aAAa,MAAM,UAAU,KAAK,GAAG,iBAAiB;CAUvF,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAa,MAAM,oBAAoB,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,aAAa;IACtB,sCAAsC;;IAEtC,iCAAiC;;IAEjC,2BAA2B;;IAE3B,0BAA0B;;IAE1B,kDAAkD;;IAElD,2BAA2B;;IAE3B,+BAA+B;;CAEzB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAEnF;;GAEG;AACH,eAAO,MAAM,SAAS;IAClB;;OAEG;iCAC0B,MAAM,GAAG,iBAAiB;IAWvD;;OAEG;4BACqB,MAAM,GAAG,iBAAiB;IAWlD;;OAEG;yBACkB,iBAAiB;IAWtC;;OAEG;gCACyB,MAAM,GAAG,iBAAiB;IAWtD;;OAEG;qCAC8B,MAAM,aAAa,MAAM,GAAG,iBAAiB;IAW9E;;OAEG;4BACqB,MAAM,aAAa,MAAM,UAAU,KAAK,GAAG,iBAAiB;CAUvF,CAAC"}
package/dist/errors.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DextoRuntimeError, ErrorType } from "@dexto/core";
1
+ import { DextoRuntimeError, ErrorType } from "@dexto/core/errors";
2
2
  const PlanErrorCode = {
3
3
  /** Plan already exists for session */
4
4
  PLAN_ALREADY_EXISTS: "PLAN_ALREADY_EXISTS",
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ToolFactory } from '@dexto/agent-config';
2
2
  import { z } from 'zod';
3
- import { Logger, DextoRuntimeError } from '@dexto/core';
3
+ import { Logger } from '@dexto/core/logger';
4
+ import { DextoRuntimeError } from '@dexto/core/errors';
4
5
 
5
6
  /**
6
7
  * Plan Tools Factory
@@ -1,4 +1,4 @@
1
- import type { ToolExecutionContext } from '@dexto/core';
1
+ import type { ToolExecutionContext } from '@dexto/core/tools';
2
2
  import type { PlanService } from './plan-service.js';
3
3
  export type PlanServiceGetter = (context: ToolExecutionContext) => Promise<PlanService>;
4
4
  //# sourceMappingURL=plan-service-getter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan-service-getter.d.ts","sourceRoot":"","sources":["../src/plan-service-getter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,oBAAoB,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"plan-service-getter.d.ts","sourceRoot":"","sources":["../src/plan-service-getter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,oBAAoB,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC"}
@@ -6,7 +6,7 @@
6
6
  * - plan.md: The plan content
7
7
  * - plan-meta.json: Metadata (status, checkpoints, timestamps)
8
8
  */
9
- import type { Logger } from '@dexto/core';
9
+ import type { Logger } from '@dexto/core/logger';
10
10
  import type { Plan, PlanMeta, PlanServiceOptions, PlanUpdateResult } from './types.js';
11
11
  /**
12
12
  * Service for managing implementation plans.
@@ -1 +1 @@
1
- {"version":3,"file":"plan-service.d.ts","sourceRoot":"","sources":["../src/plan-service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMvF;;GAEG;AACH,qBAAa,WAAW;IACpB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,MAAM,CAAS;gBAEX,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM;IAKvD;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAWzB;;OAEG;IACH,OAAO,CAAC,UAAU;IAIlB;;;OAGG;IACI,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAI7C;;OAEG;IACH,OAAO,CAAC,WAAW;IAInB;;OAEG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKjD;;;;;OAKG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAoC7F;;;;OAIG;IACG,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IAiDnD;;;;;OAKG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAqC3E;;;;;OAKG;IACG,UAAU,CACZ,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC,GACrD,OAAO,CAAC,QAAQ,CAAC;IA2BpB;;;;;OAKG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAYjD"}
1
+ {"version":3,"file":"plan-service.d.ts","sourceRoot":"","sources":["../src/plan-service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMvF;;GAEG;AACH,qBAAa,WAAW;IACpB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,MAAM,CAAS;gBAEX,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM;IAKvD;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAWzB;;OAEG;IACH,OAAO,CAAC,UAAU;IAIlB;;;OAGG;IACI,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAI7C;;OAEG;IACH,OAAO,CAAC,WAAW;IAInB;;OAEG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKjD;;;;;OAKG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAoC7F;;;;OAIG;IACG,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IAiDnD;;;;;OAKG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAqC3E;;;;;OAKG;IACG,UAAU,CACZ,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC,GACrD,OAAO,CAAC,QAAQ,CAAC;IA2BpB;;;;;OAKG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAYjD"}
@@ -22,7 +22,7 @@ __export(plan_create_tool_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(plan_create_tool_exports);
24
24
  var import_zod = require("zod");
25
- var import_core = require("@dexto/core");
25
+ var import_tools = require("@dexto/core/tools");
26
26
  var import_errors = require("../errors.js");
27
27
  const PlanCreateInputSchema = import_zod.z.object({
28
28
  title: import_zod.z.string().describe('Plan title (e.g., "Add User Authentication")'),
@@ -31,14 +31,14 @@ const PlanCreateInputSchema = import_zod.z.object({
31
31
  )
32
32
  }).strict();
33
33
  function createPlanCreateTool(getPlanService) {
34
- return (0, import_core.defineTool)({
34
+ return (0, import_tools.defineTool)({
35
35
  id: "plan_create",
36
36
  description: "Create a new implementation plan for the current session. Shows the plan for approval before saving. Use markdown format for the plan content with clear steps and file references.",
37
37
  inputSchema: PlanCreateInputSchema,
38
38
  presentation: {
39
- describeHeader: (input) => (0, import_core.createLocalToolCallHeader)({
39
+ describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
40
40
  title: "Create Plan",
41
- argsText: (0, import_core.truncateForHeader)(input.title, 140)
41
+ argsText: (0, import_tools.truncateForHeader)(input.title, 140)
42
42
  }),
43
43
  /**
44
44
  * Generate preview for approval UI
@@ -5,7 +5,7 @@
5
5
  * Shows a preview for approval before saving.
6
6
  */
7
7
  import { z } from 'zod';
8
- import type { Tool } from '@dexto/core';
8
+ import type { Tool } from '@dexto/core/tools';
9
9
  import type { PlanServiceGetter } from '../plan-service-getter.js';
10
10
  declare const PlanCreateInputSchema: z.ZodObject<{
11
11
  title: z.ZodString;
@@ -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;;;kBASd,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,mBAAmB,CAAC;AACrF,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"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { createLocalToolCallHeader, defineTool, truncateForHeader } from "@dexto/core";
2
+ import { createLocalToolCallHeader, defineTool, truncateForHeader } from "@dexto/core/tools";
3
3
  import { PlanError } from "../errors.js";
4
4
  const PlanCreateInputSchema = z.object({
5
5
  title: z.string().describe('Plan title (e.g., "Add User Authentication")'),
@@ -22,16 +22,16 @@ __export(plan_read_tool_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(plan_read_tool_exports);
24
24
  var import_zod = require("zod");
25
- var import_core = require("@dexto/core");
25
+ var import_tools = require("@dexto/core/tools");
26
26
  var import_errors = require("../errors.js");
27
27
  const PlanReadInputSchema = import_zod.z.object({}).strict();
28
28
  function createPlanReadTool(getPlanService) {
29
- return (0, import_core.defineTool)({
29
+ return (0, import_tools.defineTool)({
30
30
  id: "plan_read",
31
31
  description: "Read the current implementation plan for this session. Returns the plan content and metadata including status. Use markdown checkboxes (- [ ] and - [x]) in the content to track progress.",
32
32
  inputSchema: PlanReadInputSchema,
33
33
  presentation: {
34
- describeHeader: () => (0, import_core.createLocalToolCallHeader)({
34
+ describeHeader: () => (0, import_tools.createLocalToolCallHeader)({
35
35
  title: "Read Plan"
36
36
  })
37
37
  },
@@ -5,7 +5,7 @@
5
5
  * No approval needed - read-only operation.
6
6
  */
7
7
  import { z } from 'zod';
8
- import type { Tool } from '@dexto/core';
8
+ import type { Tool } from '@dexto/core/tools';
9
9
  import type { PlanServiceGetter } from '../plan-service-getter.js';
10
10
  declare const PlanReadInputSchema: z.ZodObject<{}, z.core.$strict>;
11
11
  /**
@@ -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,iCAAwB,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,mBAAmB,CAAC;AACpE,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"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { createLocalToolCallHeader, defineTool } from "@dexto/core";
2
+ import { createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
3
3
  import { PlanError } from "../errors.js";
4
4
  const PlanReadInputSchema = z.object({}).strict();
5
5
  function createPlanReadTool(getPlanService) {
@@ -22,20 +22,20 @@ __export(plan_review_tool_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(plan_review_tool_exports);
24
24
  var import_zod = require("zod");
25
- var import_core = require("@dexto/core");
25
+ var import_tools = require("@dexto/core/tools");
26
26
  var import_errors = require("../errors.js");
27
27
  const PlanReviewInputSchema = import_zod.z.object({
28
28
  summary: import_zod.z.string().optional().describe("Brief summary of the plan for context (shown above the plan content)")
29
29
  }).strict();
30
30
  function createPlanReviewTool(getPlanService) {
31
- return (0, import_core.defineTool)({
31
+ return (0, import_tools.defineTool)({
32
32
  id: "plan_review",
33
33
  description: "Request user review of the current plan. Shows the full plan content for review with options to approve, request changes, or reject. Use after creating or updating a plan to get user approval before implementation.",
34
34
  inputSchema: PlanReviewInputSchema,
35
35
  presentation: {
36
- describeHeader: (input) => (0, import_core.createLocalToolCallHeader)({
36
+ describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
37
37
  title: "Review Plan",
38
- ...input.summary ? { argsText: (0, import_core.truncateForHeader)(input.summary, 140) } : {}
38
+ ...input.summary ? { argsText: (0, import_tools.truncateForHeader)(input.summary, 140) } : {}
39
39
  }),
40
40
  /**
41
41
  * Generate preview showing the plan content for review.
@@ -12,7 +12,7 @@
12
12
  * can see the full plan content before deciding.
13
13
  */
14
14
  import { z } from 'zod';
15
- import type { Tool } from '@dexto/core';
15
+ import type { Tool } from '@dexto/core/tools';
16
16
  import type { PlanServiceGetter } from '../plan-service-getter.js';
17
17
  declare const PlanReviewInputSchema: z.ZodObject<{
18
18
  summary: z.ZodOptional<z.ZodString>;
@@ -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;;kBAOd,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,mBAAmB,CAAC;AACrF,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"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { createLocalToolCallHeader, defineTool, truncateForHeader } from "@dexto/core";
2
+ import { createLocalToolCallHeader, defineTool, truncateForHeader } from "@dexto/core/tools";
3
3
  import { PlanError } from "../errors.js";
4
4
  const PlanReviewInputSchema = z.object({
5
5
  summary: z.string().optional().describe("Brief summary of the plan for context (shown above the plan content)")
@@ -23,7 +23,7 @@ __export(plan_update_tool_exports, {
23
23
  module.exports = __toCommonJS(plan_update_tool_exports);
24
24
  var import_zod = require("zod");
25
25
  var import_diff = require("diff");
26
- var import_core = require("@dexto/core");
26
+ var import_tools = require("@dexto/core/tools");
27
27
  var import_errors = require("../errors.js");
28
28
  const PlanUpdateInputSchema = import_zod.z.object({
29
29
  content: import_zod.z.string().describe("Updated plan content in markdown format")
@@ -44,12 +44,12 @@ function generateDiffPreview(filePath, originalContent, newContent) {
44
44
  };
45
45
  }
46
46
  function createPlanUpdateTool(getPlanService) {
47
- return (0, import_core.defineTool)({
47
+ return (0, import_tools.defineTool)({
48
48
  id: "plan_update",
49
49
  description: "Update the existing implementation plan for this session. Shows a diff preview for approval before saving. The plan must already exist (use plan_create first).",
50
50
  inputSchema: PlanUpdateInputSchema,
51
51
  presentation: {
52
- describeHeader: () => (0, import_core.createLocalToolCallHeader)({
52
+ describeHeader: () => (0, import_tools.createLocalToolCallHeader)({
53
53
  title: "Update Plan"
54
54
  }),
55
55
  /**
@@ -5,7 +5,7 @@
5
5
  * Shows a diff preview for approval before saving.
6
6
  */
7
7
  import { z } from 'zod';
8
- import type { Tool } from '@dexto/core';
8
+ import type { Tool } from '@dexto/core/tools';
9
9
  import type { PlanServiceGetter } from '../plan-service-getter.js';
10
10
  declare const PlanUpdateInputSchema: z.ZodObject<{
11
11
  content: z.ZodString;
@@ -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;;kBAId,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,mBAAmB,CAAC;AACrF,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"}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { createPatch } from "diff";
3
- import { createLocalToolCallHeader, defineTool } from "@dexto/core";
3
+ import { createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
4
4
  import { PlanError } from "../errors.js";
5
5
  const PlanUpdateInputSchema = z.object({
6
6
  content: z.string().describe("Updated plan content in markdown format")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/tools-plan",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
4
4
  "description": "Implementation planning tools with session-linked plans",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,8 +17,8 @@
17
17
  "dependencies": {
18
18
  "diff": "^8.0.3",
19
19
  "zod": "^4.3.6",
20
- "@dexto/agent-config": "1.7.1",
21
- "@dexto/core": "1.7.1"
20
+ "@dexto/agent-config": "1.8.0",
21
+ "@dexto/core": "1.8.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/diff": "^7.0.0",