@superblocksteam/vite-plugin-file-sync 2.0.70-next.2 → 2.0.70-next.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.
Files changed (51) hide show
  1. package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts.map +1 -1
  2. package/dist/ai-service/agent/prompts/build-base-system-prompt.js +5 -18
  3. package/dist/ai-service/agent/prompts/build-base-system-prompt.js.map +1 -1
  4. package/dist/ai-service/agent/tool-message-utils.d.ts.map +1 -1
  5. package/dist/ai-service/agent/tool-message-utils.js +40 -26
  6. package/dist/ai-service/agent/tool-message-utils.js.map +1 -1
  7. package/dist/ai-service/agent/tools/build-capture-screenshot.d.ts +1 -4
  8. package/dist/ai-service/agent/tools/build-capture-screenshot.d.ts.map +1 -1
  9. package/dist/ai-service/agent/tools/build-capture-screenshot.js +7 -42
  10. package/dist/ai-service/agent/tools/build-capture-screenshot.js.map +1 -1
  11. package/dist/ai-service/agent/tools/integrations/execute-request.d.ts +4 -5
  12. package/dist/ai-service/agent/tools/integrations/execute-request.d.ts.map +1 -1
  13. package/dist/ai-service/agent/tools/integrations/execute-request.js +1 -17
  14. package/dist/ai-service/agent/tools/integrations/execute-request.js.map +1 -1
  15. package/dist/ai-service/agent/tools/integrations/internal.d.ts +4 -1
  16. package/dist/ai-service/agent/tools/integrations/internal.d.ts.map +1 -1
  17. package/dist/ai-service/agent/tools/integrations/internal.js +45 -3
  18. package/dist/ai-service/agent/tools/integrations/internal.js.map +1 -1
  19. package/dist/ai-service/agent/tools/integrations/metadata.d.ts.map +1 -1
  20. package/dist/ai-service/agent/tools/integrations/metadata.js +5 -1
  21. package/dist/ai-service/agent/tools/integrations/metadata.js.map +1 -1
  22. package/dist/ai-service/agent/tools/integrations/run-code.d.ts +4 -1
  23. package/dist/ai-service/agent/tools/integrations/run-code.d.ts.map +1 -1
  24. package/dist/ai-service/agent/tools/integrations/run-code.js +1 -1
  25. package/dist/ai-service/agent/tools2/registry.d.ts.map +1 -1
  26. package/dist/ai-service/agent/tools2/registry.js +10 -2
  27. package/dist/ai-service/agent/tools2/registry.js.map +1 -1
  28. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.js +1 -1
  29. package/dist/ai-service/agent/tools2/tools/ask-multi-choice.js.map +1 -1
  30. package/dist/ai-service/integrations/store.d.ts +4 -3
  31. package/dist/ai-service/integrations/store.d.ts.map +1 -1
  32. package/dist/ai-service/integrations/store.js +43 -41
  33. package/dist/ai-service/integrations/store.js.map +1 -1
  34. package/dist/ai-service/judge/tools/playwright-action.d.ts +1 -1
  35. package/dist/ai-service/llm/error.d.ts +2 -2
  36. package/dist/ai-service/llm/error.d.ts.map +1 -1
  37. package/dist/ai-service/llm/error.js.map +1 -1
  38. package/dist/ai-service/llm/interaction/middlewares/utils/retries.d.ts.map +1 -1
  39. package/dist/ai-service/llm/interaction/middlewares/utils/retries.js +10 -0
  40. package/dist/ai-service/llm/interaction/middlewares/utils/retries.js.map +1 -1
  41. package/dist/ai-service/state-machine/handlers/agent-planning.d.ts.map +1 -1
  42. package/dist/ai-service/state-machine/handlers/agent-planning.js +1 -3
  43. package/dist/ai-service/state-machine/handlers/agent-planning.js.map +1 -1
  44. package/dist/ai-service/state-machine/handlers/llm-generating.d.ts.map +1 -1
  45. package/dist/ai-service/state-machine/handlers/llm-generating.js +11 -7
  46. package/dist/ai-service/state-machine/handlers/llm-generating.js.map +1 -1
  47. package/dist/ai-service/util/stop-condition.d.ts +6 -6
  48. package/dist/ai-service/util/stop-condition.d.ts.map +1 -1
  49. package/dist/ai-service/util/stop-condition.js +6 -0
  50. package/dist/ai-service/util/stop-condition.js.map +1 -1
  51. package/package.json +6 -6
@@ -1,10 +1,9 @@
1
- import type { StepResult, ToolSet } from "ai";
2
- /** A predicate that determines whether to stop the agent's execution based on the provided steps.
3
- * This is a redefinition of the unexported StopCondition type from the "ai" package.
1
+ import type { Clark } from "../state-machine/clark-fsm.js";
2
+ import type { ToolSet, StopCondition as BaseStopCondition } from "ai";
3
+ /**
4
+ * A predicate that determines whether to stop the agent's execution based on the provided steps.
4
5
  */
5
- export type StopCondition<TOOLS extends ToolSet> = (options: {
6
- steps: Array<StepResult<TOOLS>>;
7
- }) => PromiseLike<boolean> | boolean;
6
+ export type StopCondition<TOOLS extends ToolSet> = BaseStopCondition<TOOLS>;
8
7
  /** A stop condition that checks if the last step used a specific tool and got a non-error result.
9
8
  * (Failed tool calls don't go into the toolResults array.)
10
9
  *
@@ -12,4 +11,5 @@ export type StopCondition<TOOLS extends ToolSet> = (options: {
12
11
  * @param failureLimit - stop the loop if the tool has been called unsuccessfully
13
12
  */
14
13
  export declare function hasToolSuccess(toolName: string, maxAttempts?: number): StopCondition<any>;
14
+ export declare function isAwaitingUser(clark: Clark): StopCondition<any>;
15
15
  //# sourceMappingURL=stop-condition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stop-condition.d.ts","sourceRoot":"","sources":["../../../src/ai-service/util/stop-condition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,KAAK,SAAS,OAAO,IAAI,CAAC,OAAO,EAAE;IAC3D,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;CACjC,KAAK,WAAW,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AAErC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,WAAW,GAAE,MAAU,GACtB,aAAa,CAAC,GAAG,CAAC,CAcpB"}
1
+ {"version":3,"file":"stop-condition.d.ts","sourceRoot":"","sources":["../../../src/ai-service/util/stop-condition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,IAAI,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,KAAK,SAAS,OAAO,IAAI,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,WAAW,GAAE,MAAU,GACtB,aAAa,CAAC,GAAG,CAAC,CAcpB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,aAAa,CAAC,GAAG,CAAC,CAI/D"}
@@ -1,3 +1,4 @@
1
+ import { ClarkStateNames } from "../state-machine/clark-fsm.js";
1
2
  /** A stop condition that checks if the last step used a specific tool and got a non-error result.
2
3
  * (Failed tool calls don't go into the toolResults array.)
3
4
  *
@@ -16,4 +17,9 @@ export function hasToolSuccess(toolName, maxAttempts = 5) {
16
17
  return attempts >= maxAttempts;
17
18
  };
18
19
  }
20
+ export function isAwaitingUser(clark) {
21
+ return () => {
22
+ return clark.state === ClarkStateNames.AwaitingUser;
23
+ };
24
+ }
19
25
  //# sourceMappingURL=stop-condition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stop-condition.js","sourceRoot":"","sources":["../../../src/ai-service/util/stop-condition.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAC5B,QAAgB,EAChB,cAAsB,CAAC;IAEvB,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACnB,MAAM,UAAU,GACd,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CACxC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,KAAK,QAAQ,CACjD,IAAI,KAAK,CAAC;QACb,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,QAAQ,GAAG,KAAK;aACnB,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC;aACvC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,MAAM,CAAC;QAC/D,OAAO,QAAQ,IAAI,WAAW,CAAC;IACjC,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"stop-condition.js","sourceRoot":"","sources":["../../../src/ai-service/util/stop-condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAShE;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAC5B,QAAgB,EAChB,cAAsB,CAAC;IAEvB,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACnB,MAAM,UAAU,GACd,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CACxC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,KAAK,QAAQ,CACjD,IAAI,KAAK,CAAC;QACb,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,QAAQ,GAAG,KAAK;aACnB,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC;aACvC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,MAAM,CAAC;QAC/D,OAAO,QAAQ,IAAI,WAAW,CAAC;IACjC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAY;IACzC,OAAO,GAAG,EAAE;QACV,OAAO,KAAK,CAAC,KAAK,KAAK,eAAe,CAAC,YAAY,CAAC;IACtD,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/vite-plugin-file-sync",
3
- "version": "2.0.70-next.2",
3
+ "version": "2.0.70-next.4",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20.19.0",
@@ -100,11 +100,11 @@
100
100
  "ws": "^8.18.1",
101
101
  "yaml": "^2.7.1",
102
102
  "zod": "3.25.76",
103
- "@superblocksteam/ai-service-templates": "2.0.70-next.2",
104
- "@superblocksteam/library": "2.0.70-next.2",
105
- "@superblocksteam/shared": "v0.9552.2",
106
- "@superblocksteam/library-shared": "2.0.70-next.2",
107
- "@superblocksteam/util": "2.0.70-next.2"
103
+ "@superblocksteam/ai-service-templates": "2.0.70-next.4",
104
+ "@superblocksteam/library": "2.0.70-next.4",
105
+ "@superblocksteam/library-shared": "2.0.70-next.4",
106
+ "@superblocksteam/shared": "v0.9552.4",
107
+ "@superblocksteam/util": "2.0.70-next.4"
108
108
  },
109
109
  "devDependencies": {
110
110
  "@anthropic-ai/tokenizer": "^0.0.4",