@gaunt-sloth/agent 2.0.0-beta.4 → 2.0.0-beta.6

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 (31) hide show
  1. package/README.md +6 -1
  2. package/cli.js +93 -6
  3. package/dist/middleware/binaryContentInjectionMiddleware.js +6 -1
  4. package/dist/middleware/binaryContentInjectionMiddleware.js.map +1 -1
  5. package/dist/middleware/frontendImageInjectionMiddleware.d.ts +52 -25
  6. package/dist/middleware/frontendImageInjectionMiddleware.js +91 -13
  7. package/dist/middleware/frontendImageInjectionMiddleware.js.map +1 -1
  8. package/dist/middleware/registry.js +14 -12
  9. package/dist/middleware/registry.js.map +1 -1
  10. package/dist/modules/acp/acpAgentApp.js +5 -0
  11. package/dist/modules/acp/acpAgentApp.js.map +1 -1
  12. package/dist/modules/acp/acpAgentAppV1.js +5 -0
  13. package/dist/modules/acp/acpAgentAppV1.js.map +1 -1
  14. package/dist/modules/acp/acpCommon.d.ts +6 -14
  15. package/dist/modules/acp/acpCommon.js +6 -16
  16. package/dist/modules/acp/acpCommon.js.map +1 -1
  17. package/dist/modules/apiAgUiModule.js +7 -0
  18. package/dist/modules/apiAgUiModule.js.map +1 -1
  19. package/dist/modules/interactiveSessionModule.d.ts +10 -1
  20. package/dist/modules/interactiveSessionModule.js +224 -41
  21. package/dist/modules/interactiveSessionModule.js.map +1 -1
  22. package/dist/modules/sessionResume.d.ts +123 -0
  23. package/dist/modules/sessionResume.js +268 -0
  24. package/dist/modules/sessionResume.js.map +1 -0
  25. package/dist/modules/slashCommands.d.ts +142 -0
  26. package/dist/modules/slashCommands.js +352 -15
  27. package/dist/modules/slashCommands.js.map +1 -1
  28. package/dist/modules/workspace.d.ts +24 -0
  29. package/dist/modules/workspace.js +27 -0
  30. package/dist/modules/workspace.js.map +1 -0
  31. package/package.json +5 -5
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * The one comparison of two workspace paths, shared by ACP's `session/new` (is this the project the
4
+ * client already has an agent for?) and GS2-20's resume (was this conversation recorded in the
5
+ * directory the session is running in?). One function, so the two cannot come to disagree about
6
+ * which directories are the same directory.
7
+ */
8
+ /**
9
+ * Whether two already-resolved absolute paths name the same workspace.
10
+ *
11
+ * **Case-insensitive on win32 and nowhere else**, because that is where the answer differs: NTFS is
12
+ * case-insensitive and case-preserving, so `C:\Foo` and `c:\foo` are one directory and an exact
13
+ * string compare calls them two — a client that re-sends its own `cwd` with different casing would
14
+ * be told to start a second agent process for the project it is already in, and a conversation
15
+ * recorded under one spelling would be refused under the other. On POSIX the two really are
16
+ * different directories and must keep comparing unequal, so the platform is the whole distinction
17
+ * rather than a workaround for one.
18
+ *
19
+ * `platform` is a parameter with the live value as its default so both arms are testable on any
20
+ * host. Every other bug of this shape in this repo (OPS-27, EXT-38, GS2-42, EXT-16) was a POSIX-only
21
+ * assertion that passed everywhere except the Windows cell, and a test that can only run on win32
22
+ * would have the same blind spot pointed the other way.
23
+ */
24
+ export function isSameWorkspace(a, b, platform = process.platform) {
25
+ return platform === 'win32' ? a.toLowerCase() === b.toLowerCase() : a === b;
26
+ }
27
+ //# sourceMappingURL=workspace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../src/modules/workspace.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,eAAe,CAC7B,CAAS,EACT,CAAS,EACT,QAAQ,GAAoB,OAAO,CAAC,QAAQ;IAE5C,OAAO,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaunt-sloth/agent",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0-beta.6",
4
4
  "description": "Agent runtime for Gaunt Sloth: tools, middleware, MCP/A2A clients and the AG-UI server",
5
5
  "license": "MIT",
6
6
  "author": "Andrew Kondratev",
@@ -39,8 +39,8 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@a2a-js/sdk": "^1.1.0",
42
- "@ag-ui/core": "^0.0.58",
43
- "@ag-ui/encoder": "^0.0.58",
42
+ "@ag-ui/core": "^0.0.59",
43
+ "@ag-ui/encoder": "^0.0.59",
44
44
  "@agentclientprotocol/sdk": "1.4.0",
45
45
  "@langchain/core": "^1.2.9",
46
46
  "@langchain/langgraph": "^1.4.13",
@@ -51,8 +51,8 @@
51
51
  "langchain": "^1.5.10",
52
52
  "undici": "^8.10.0",
53
53
  "uuid": "^14.0.2",
54
- "zod": "^4.4.3",
55
- "@gaunt-sloth/core": "2.0.0-beta.4"
54
+ "zod": "^4.5.4",
55
+ "@gaunt-sloth/core": "2.0.0-beta.6"
56
56
  },
57
57
  "files": [
58
58
  "./dist/*",