@gaunt-sloth/agent 2.0.0-alpha.23 → 2.0.0-alpha.25

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 (56) hide show
  1. package/README.md +73 -24
  2. package/dist/core/GthDeepAgent.d.ts +3 -3
  3. package/dist/core/GthDeepAgent.js +82 -35
  4. package/dist/core/GthDeepAgent.js.map +1 -1
  5. package/dist/core/debugCapture.d.ts +1 -1
  6. package/dist/core/debugCapture.js.map +1 -1
  7. package/dist/core/subagentProfiles.d.ts +50 -0
  8. package/dist/core/subagentProfiles.js +81 -0
  9. package/dist/core/subagentProfiles.js.map +1 -0
  10. package/dist/middleware/binaryContentInjectionMiddleware.d.ts +8 -1
  11. package/dist/middleware/binaryContentInjectionMiddleware.js +11 -2
  12. package/dist/middleware/binaryContentInjectionMiddleware.js.map +1 -1
  13. package/dist/middleware/frontendImageInjectionMiddleware.d.ts +80 -0
  14. package/dist/middleware/frontendImageInjectionMiddleware.js +146 -0
  15. package/dist/middleware/frontendImageInjectionMiddleware.js.map +1 -0
  16. package/dist/middleware/registry.js +36 -1
  17. package/dist/middleware/registry.js.map +1 -1
  18. package/dist/middleware/types.d.ts +16 -2
  19. package/dist/modules/a2a/A2AClientWrapper.d.ts +15 -6
  20. package/dist/modules/a2a/A2AClientWrapper.js +93 -64
  21. package/dist/modules/a2a/A2AClientWrapper.js.map +1 -1
  22. package/dist/modules/apiAgUiModule.d.ts +68 -0
  23. package/dist/modules/apiAgUiModule.js +95 -4
  24. package/dist/modules/apiAgUiModule.js.map +1 -1
  25. package/dist/modules/interactiveSessionModule.js +199 -43
  26. package/dist/modules/interactiveSessionModule.js.map +1 -1
  27. package/dist/modules/slashCommands.d.ts +467 -0
  28. package/dist/modules/slashCommands.js +888 -0
  29. package/dist/modules/slashCommands.js.map +1 -0
  30. package/dist/resolvers.js +15 -0
  31. package/dist/resolvers.js.map +1 -1
  32. package/dist/tools/GthCustomToolkit.js +72 -3
  33. package/dist/tools/GthCustomToolkit.js.map +1 -1
  34. package/dist/tools/GthDevToolkit.d.ts +6 -3
  35. package/dist/tools/GthDevToolkit.js +31 -11
  36. package/dist/tools/GthDevToolkit.js.map +1 -1
  37. package/dist/tools/GthFileSystemToolkit.d.ts +16 -0
  38. package/dist/tools/GthFileSystemToolkit.js +218 -110
  39. package/dist/tools/GthFileSystemToolkit.js.map +1 -1
  40. package/dist/tools/McpResourceTool.d.ts +31 -0
  41. package/dist/tools/McpResourceTool.js +106 -0
  42. package/dist/tools/McpResourceTool.js.map +1 -0
  43. package/dist/tools/shell/env.js +1 -1
  44. package/dist/tools/shell/hardline.d.ts +33 -2
  45. package/dist/tools/shell/hardline.js +525 -40
  46. package/dist/tools/shell/hardline.js.map +1 -1
  47. package/package.json +8 -8
  48. package/dist/tools/shell/allowlist.d.ts +0 -11
  49. package/dist/tools/shell/allowlist.js +0 -12
  50. package/dist/tools/shell/allowlist.js.map +0 -1
  51. package/dist/tools/shell/arity.d.ts +0 -11
  52. package/dist/tools/shell/arity.js +0 -12
  53. package/dist/tools/shell/arity.js.map +0 -1
  54. package/dist/tools/shell/normalize.d.ts +0 -10
  55. package/dist/tools/shell/normalize.js +0 -11
  56. package/dist/tools/shell/normalize.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaunt-sloth/agent",
3
- "version": "2.0.0-alpha.23",
3
+ "version": "2.0.0-alpha.25",
4
4
  "description": "Deep agent runtime for Gaunt Sloth: tools, middleware, MCP/A2A clients and the AG-UI server",
5
5
  "license": "MIT",
6
6
  "author": "Andrew Kondratev",
@@ -38,22 +38,22 @@
38
38
  "#src/*.js": "./dist/*.js"
39
39
  },
40
40
  "dependencies": {
41
- "@a2a-js/sdk": "^0.3.14",
41
+ "@a2a-js/sdk": "^1.0.1",
42
42
  "@ag-ui/core": "^0.0.57",
43
43
  "@ag-ui/encoder": "^0.0.57",
44
44
  "@langchain/core": "^1.2.3",
45
45
  "@langchain/langgraph": "^1.4.8",
46
46
  "@langchain/mcp-adapters": "^1.1.3",
47
- "@modelcontextprotocol/sdk": "^1.29.0",
48
- "deepagents": "^1.11.0",
49
- "deepagents-acp": "^0.1.19",
47
+ "@modelcontextprotocol/sdk": "^1.30.0",
48
+ "deepagents": "^1.11.1",
49
+ "deepagents-acp": "^0.1.20",
50
50
  "diff": "^9.0.0",
51
51
  "express": "^5.2.1",
52
- "langchain": "^1.5.3",
53
- "undici": "^8.7.0",
52
+ "langchain": "^1.5.4",
53
+ "undici": "^8.9.0",
54
54
  "uuid": "^14.0.1",
55
55
  "zod": "^4.4.3",
56
- "@gaunt-sloth/core": "2.0.0-alpha.23"
56
+ "@gaunt-sloth/core": "2.0.0-alpha.25"
57
57
  },
58
58
  "files": [
59
59
  "./dist/*",
@@ -1,11 +0,0 @@
1
- /**
2
- * @module tools/shell/allowlist
3
- *
4
- * Re-export of the EXT-9 Tier-2 allow-list engine. The implementation lives in
5
- * `@gaunt-sloth/core` (`core/shell/allowlist`) because the core {@link GthAgentRunner}
6
- * owns the per-instance session store and the loaded persisted store and consults
7
- * `matchesApproval` before prompting (core cannot import from `@gaunt-sloth/agent`).
8
- *
9
- * See the core module for the exact safe-bin / anti-widening matching rule.
10
- */
11
- export { matchesApproval, hasWideningFlag, AllowlistStore, PersistedAllowlist, type ApprovalScope, type ApprovalStores, } from '@gaunt-sloth/core/core/shell/allowlist.js';
@@ -1,12 +0,0 @@
1
- /**
2
- * @module tools/shell/allowlist
3
- *
4
- * Re-export of the EXT-9 Tier-2 allow-list engine. The implementation lives in
5
- * `@gaunt-sloth/core` (`core/shell/allowlist`) because the core {@link GthAgentRunner}
6
- * owns the per-instance session store and the loaded persisted store and consults
7
- * `matchesApproval` before prompting (core cannot import from `@gaunt-sloth/agent`).
8
- *
9
- * See the core module for the exact safe-bin / anti-widening matching rule.
10
- */
11
- export { matchesApproval, hasWideningFlag, AllowlistStore, PersistedAllowlist, } from '@gaunt-sloth/core/core/shell/allowlist.js';
12
- //# sourceMappingURL=allowlist.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"allowlist.js","sourceRoot":"","sources":["../../../src/tools/shell/allowlist.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,eAAe,EACf,eAAe,EACf,cAAc,EACd,kBAAkB,GAGnB,MAAM,2CAA2C,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * @module tools/shell/arity
3
- *
4
- * Re-export of the EXT-9 Tier-2 command classifier. The implementation lives in
5
- * `@gaunt-sloth/core` (`core/shell/arity`) because the core {@link GthAgentRunner}
6
- * must consult it BEFORE prompting (and core cannot import from `@gaunt-sloth/agent`).
7
- * This stable agent-side path is kept for tests and any agent-layer consumers.
8
- *
9
- * See the core module for the arity table scope and the anti-injection fail-closed rule.
10
- */
11
- export { classifyCommand, tokenize, meaningfulPrefixTokens, type CommandClassification, } from '@gaunt-sloth/core/core/shell/arity.js';
@@ -1,12 +0,0 @@
1
- /**
2
- * @module tools/shell/arity
3
- *
4
- * Re-export of the EXT-9 Tier-2 command classifier. The implementation lives in
5
- * `@gaunt-sloth/core` (`core/shell/arity`) because the core {@link GthAgentRunner}
6
- * must consult it BEFORE prompting (and core cannot import from `@gaunt-sloth/agent`).
7
- * This stable agent-side path is kept for tests and any agent-layer consumers.
8
- *
9
- * See the core module for the arity table scope and the anti-injection fail-closed rule.
10
- */
11
- export { classifyCommand, tokenize, meaningfulPrefixTokens, } from '@gaunt-sloth/core/core/shell/arity.js';
12
- //# sourceMappingURL=arity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arity.js","sourceRoot":"","sources":["../../../src/tools/shell/arity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,eAAe,EACf,QAAQ,EACR,sBAAsB,GAEvB,MAAM,uCAAuC,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * @module tools/shell/normalize
3
- *
4
- * Re-export of the canonical command normalizer, which now lives in
5
- * `@gaunt-sloth/core` (`core/shell/normalize`) so the core runner's EXT-9 Tier-2
6
- * allow-list classifier and the agent's Tier-1 hardline blocklist share ONE
7
- * implementation. Kept as a stable import path for existing agent-side consumers
8
- * (`tools/shell/hardline`, specs).
9
- */
10
- export { normalizeCommand } from '@gaunt-sloth/core/core/shell/normalize.js';
@@ -1,11 +0,0 @@
1
- /**
2
- * @module tools/shell/normalize
3
- *
4
- * Re-export of the canonical command normalizer, which now lives in
5
- * `@gaunt-sloth/core` (`core/shell/normalize`) so the core runner's EXT-9 Tier-2
6
- * allow-list classifier and the agent's Tier-1 hardline blocklist share ONE
7
- * implementation. Kept as a stable import path for existing agent-side consumers
8
- * (`tools/shell/hardline`, specs).
9
- */
10
- export { normalizeCommand } from '@gaunt-sloth/core/core/shell/normalize.js';
11
- //# sourceMappingURL=normalize.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize.js","sourceRoot":"","sources":["../../../src/tools/shell/normalize.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC"}