@moxxy/mode-goal 0.26.0 → 0.27.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.
@@ -1 +1 @@
1
- {"version":3,"file":"goal-tools.d.ts","sourceRoot":"","sources":["../src/goal-tools.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AAEH,eAAO,MAAM,gBAAgB,8BAsB3B,CAAC;AAEH,eAAO,MAAM,eAAe,8BAkB1B,CAAC;AAEH,eAAO,MAAM,SAAS,gCAAsC,CAAC"}
1
+ {"version":3,"file":"goal-tools.d.ts","sourceRoot":"","sources":["../src/goal-tools.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AAEH,eAAO,MAAM,gBAAgB,8BAwB3B,CAAC;AAEH,eAAO,MAAM,eAAe,8BAoB1B,CAAC;AAEH,eAAO,MAAM,SAAS,gCAAsC,CAAC"}
@@ -24,6 +24,8 @@ export const goalCompleteTool = defineTool({
24
24
  .describe('Concrete proof the goal is met: commands run and their results, files changed, tests passed.'),
25
25
  }),
26
26
  permission: { action: 'allow' },
27
+ // Side-effect-free loop signal (see the module comment) — no capabilities.
28
+ isolation: { capabilities: { net: { mode: 'none' }, timeMs: 10_000 } },
27
29
  handler: (input) => {
28
30
  const { summary, evidence } = input;
29
31
  return {
@@ -46,6 +48,8 @@ export const goalAbandonTool = defineTool({
46
48
  .describe('What the user must provide or decide for the goal to continue.'),
47
49
  }),
48
50
  permission: { action: 'allow' },
51
+ // Side-effect-free loop signal (see the module comment) — no capabilities.
52
+ isolation: { capabilities: { net: { mode: 'none' }, timeMs: 10_000 } },
49
53
  handler: (input) => {
50
54
  const { reason, needsFromUser } = input;
51
55
  return { acknowledged: true, reason, ...(needsFromUser ? { needsFromUser } : {}) };
@@ -1 +1 @@
1
- {"version":3,"file":"goal-tools.js","sourceRoot":"","sources":["../src/goal-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC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@@
1
1
  {
2
2
  "name": "@moxxy/mode-goal",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Goal mode: state a goal once and the agent works autonomously across many turns until it calls goal_complete (or goal_abandon), guarded by an iteration cap, a token budget, a stuck-loop detector, no-progress detection, and the user's abort.",
5
5
  "keywords": [
6
6
  "moxxy",
@@ -44,16 +44,16 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "zod": "^3.24.0",
47
- "@moxxy/sdk": "0.26.0"
47
+ "@moxxy/sdk": "0.27.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^22.10.0",
51
51
  "typescript": "^5.7.3",
52
52
  "vitest": "^2.1.8",
53
- "@moxxy/tsconfig": "0.0.0",
54
- "@moxxy/core": "0.26.0",
53
+ "@moxxy/testing": "0.0.45",
55
54
  "@moxxy/vitest-preset": "0.0.0",
56
- "@moxxy/testing": "0.0.44"
55
+ "@moxxy/core": "0.27.0",
56
+ "@moxxy/tsconfig": "0.0.0"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsc -p tsconfig.json",
package/src/goal-tools.ts CHANGED
@@ -28,6 +28,8 @@ export const goalCompleteTool = defineTool({
28
28
  .describe('Concrete proof the goal is met: commands run and their results, files changed, tests passed.'),
29
29
  }),
30
30
  permission: { action: 'allow' },
31
+ // Side-effect-free loop signal (see the module comment) — no capabilities.
32
+ isolation: { capabilities: { net: { mode: 'none' }, timeMs: 10_000 } },
31
33
  handler: (input) => {
32
34
  const { summary, evidence } = input as { summary: string; evidence?: string[] };
33
35
  return {
@@ -52,6 +54,8 @@ export const goalAbandonTool = defineTool({
52
54
  .describe('What the user must provide or decide for the goal to continue.'),
53
55
  }),
54
56
  permission: { action: 'allow' },
57
+ // Side-effect-free loop signal (see the module comment) — no capabilities.
58
+ isolation: { capabilities: { net: { mode: 'none' }, timeMs: 10_000 } },
55
59
  handler: (input) => {
56
60
  const { reason, needsFromUser } = input as { reason: string; needsFromUser?: string };
57
61
  return { acknowledged: true, reason, ...(needsFromUser ? { needsFromUser } : {}) };