@dexto/tools-plan 1.9.8 → 1.10.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/tools/plan-create-tool.cjs +1 -0
- package/dist/tools/plan-create-tool.d.ts.map +1 -1
- package/dist/tools/plan-create-tool.js +7 -1
- package/dist/tools/plan-read-tool.cjs +1 -0
- package/dist/tools/plan-read-tool.d.ts.map +1 -1
- package/dist/tools/plan-read-tool.js +2 -1
- package/dist/tools/plan-review-tool.cjs +1 -0
- package/dist/tools/plan-review-tool.d.ts.map +1 -1
- package/dist/tools/plan-review-tool.js +7 -1
- package/dist/tools/plan-update-tool.cjs +1 -0
- package/dist/tools/plan-update-tool.d.ts.map +1 -1
- package/dist/tools/plan-update-tool.js +2 -1
- package/package.json +3 -3
|
@@ -36,6 +36,7 @@ function createPlanCreateTool(getPlanService) {
|
|
|
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
|
+
activity: import_tools.TOOL_ACTIVITY.createPlan,
|
|
39
40
|
describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
|
|
40
41
|
title: "Create Plan",
|
|
41
42
|
argsText: (0, import_tools.truncateForHeader)(input.title, 140)
|
|
@@ -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;
|
|
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;AAOxB,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,CAmFpC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
TOOL_ACTIVITY,
|
|
4
|
+
createLocalToolCallHeader,
|
|
5
|
+
defineTool,
|
|
6
|
+
truncateForHeader
|
|
7
|
+
} from "@dexto/core/tools";
|
|
3
8
|
import { PlanError } from "../errors.js";
|
|
4
9
|
const PlanCreateInputSchema = z.object({
|
|
5
10
|
title: z.string().describe('Plan title (e.g., "Add User Authentication")'),
|
|
@@ -13,6 +18,7 @@ function createPlanCreateTool(getPlanService) {
|
|
|
13
18
|
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.",
|
|
14
19
|
inputSchema: PlanCreateInputSchema,
|
|
15
20
|
presentation: {
|
|
21
|
+
activity: TOOL_ACTIVITY.createPlan,
|
|
16
22
|
describeHeader: (input) => createLocalToolCallHeader({
|
|
17
23
|
title: "Create Plan",
|
|
18
24
|
argsText: truncateForHeader(input.title, 140)
|
|
@@ -31,6 +31,7 @@ function createPlanReadTool(getPlanService) {
|
|
|
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
|
+
activity: import_tools.TOOL_ACTIVITY.readPlan,
|
|
34
35
|
describeHeader: () => (0, import_tools.createLocalToolCallHeader)({
|
|
35
36
|
title: "Read Plan"
|
|
36
37
|
})
|
|
@@ -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,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,
|
|
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,CAwClC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
|
|
2
|
+
import { TOOL_ACTIVITY, 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) {
|
|
@@ -8,6 +8,7 @@ function createPlanReadTool(getPlanService) {
|
|
|
8
8
|
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.",
|
|
9
9
|
inputSchema: PlanReadInputSchema,
|
|
10
10
|
presentation: {
|
|
11
|
+
activity: TOOL_ACTIVITY.readPlan,
|
|
11
12
|
describeHeader: () => createLocalToolCallHeader({
|
|
12
13
|
title: "Read Plan"
|
|
13
14
|
})
|
|
@@ -33,6 +33,7 @@ function createPlanReviewTool(getPlanService) {
|
|
|
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
|
+
activity: import_tools.TOOL_ACTIVITY.reviewPlan,
|
|
36
37
|
describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
|
|
37
38
|
title: "Review Plan",
|
|
38
39
|
...input.summary ? { argsText: (0, import_tools.truncateForHeader)(input.summary, 140) } : {}
|
|
@@ -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;
|
|
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;AAOxB,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,CA4EpC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
TOOL_ACTIVITY,
|
|
4
|
+
createLocalToolCallHeader,
|
|
5
|
+
defineTool,
|
|
6
|
+
truncateForHeader
|
|
7
|
+
} from "@dexto/core/tools";
|
|
3
8
|
import { PlanError } from "../errors.js";
|
|
4
9
|
const PlanReviewInputSchema = z.object({
|
|
5
10
|
summary: z.string().optional().describe("Brief summary of the plan for context (shown above the plan content)")
|
|
@@ -10,6 +15,7 @@ function createPlanReviewTool(getPlanService) {
|
|
|
10
15
|
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.",
|
|
11
16
|
inputSchema: PlanReviewInputSchema,
|
|
12
17
|
presentation: {
|
|
18
|
+
activity: TOOL_ACTIVITY.reviewPlan,
|
|
13
19
|
describeHeader: (input) => createLocalToolCallHeader({
|
|
14
20
|
title: "Review Plan",
|
|
15
21
|
...input.summary ? { argsText: truncateForHeader(input.summary, 140) } : {}
|
|
@@ -49,6 +49,7 @@ function createPlanUpdateTool(getPlanService) {
|
|
|
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
|
+
activity: import_tools.TOOL_ACTIVITY.updatePlan,
|
|
52
53
|
describeHeader: () => (0, import_tools.createLocalToolCallHeader)({
|
|
53
54
|
title: "Update Plan"
|
|
54
55
|
}),
|
|
@@ -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,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,
|
|
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,CAuDpC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { createPatch } from "diff";
|
|
3
|
-
import { createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
|
|
3
|
+
import { TOOL_ACTIVITY, 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")
|
|
@@ -26,6 +26,7 @@ function createPlanUpdateTool(getPlanService) {
|
|
|
26
26
|
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).",
|
|
27
27
|
inputSchema: PlanUpdateInputSchema,
|
|
28
28
|
presentation: {
|
|
29
|
+
activity: TOOL_ACTIVITY.updatePlan,
|
|
29
30
|
describeHeader: () => createLocalToolCallHeader({
|
|
30
31
|
title: "Update Plan"
|
|
31
32
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/tools-plan",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
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/
|
|
21
|
-
"@dexto/
|
|
20
|
+
"@dexto/agent-config": "1.10.1",
|
|
21
|
+
"@dexto/core": "1.10.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/diff": "^7.0.0",
|