@xenosystem/agent-conversation 0.1.206 → 0.1.208

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.
@@ -5,6 +5,13 @@
5
5
  */
6
6
  /** A Windows drive (`C:\…`, `C:/…`), a Windows network share (`\\server\…`) or a POSIX absolute path (`/home/…`). */
7
7
  export declare function isAbsoluteHostPath(path: string): boolean;
8
+ /**
9
+ * The absolute POSIX paths a tool's result names, in order: "Created /home/xeno/repo/a.txt (3 lines)" gives
10
+ * `/home/xeno/repo/a.txt`. A model usually passes a RELATIVE path, so a turn on a Linux or Mac host is known by its
11
+ * absolute path only from the result (measured on the cloud machine, 2026-11-27). Only a path of two segments or more
12
+ * that starts a word is taken, so a lone slash or "and/or" in prose is not.
13
+ */
14
+ export declare function extractPosixPathsFromText(text: string): string[];
8
15
  /** A path that came from a Windows host, whose separators may be written either way. */
9
16
  export declare function isWindowsHostPath(path: string): boolean;
10
17
  //# sourceMappingURL=hostPaths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hostPaths.d.ts","sourceRoot":"","sources":["../../src/utils/hostPaths.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,qHAAqH;AACrH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,wFAAwF;AACxF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD"}
1
+ {"version":3,"file":"hostPaths.d.ts","sourceRoot":"","sources":["../../src/utils/hostPaths.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,qHAAqH;AACrH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAOhE;AAED,wFAAwF;AACxF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD"}
@@ -7,6 +7,21 @@
7
7
  export function isAbsoluteHostPath(path) {
8
8
  return isWindowsHostPath(path) || /^\/(?!\/)/.test(path);
9
9
  }
10
+ /**
11
+ * The absolute POSIX paths a tool's result names, in order: "Created /home/xeno/repo/a.txt (3 lines)" gives
12
+ * `/home/xeno/repo/a.txt`. A model usually passes a RELATIVE path, so a turn on a Linux or Mac host is known by its
13
+ * absolute path only from the result (measured on the cloud machine, 2026-11-27). Only a path of two segments or more
14
+ * that starts a word is taken, so a lone slash or "and/or" in prose is not.
15
+ */
16
+ export function extractPosixPathsFromText(text) {
17
+ const found = [];
18
+ for (const match of text.matchAll(/(?:^|[\s"'`(:=])(\/(?!\/)[^\s"'`<>|*?]+)/g)) {
19
+ const path = (match[1] ?? '').replace(/[)\].,;:]+$/g, '');
20
+ if (/^\/[^/]+\/[^/]/.test(path))
21
+ found.push(path);
22
+ }
23
+ return found;
24
+ }
10
25
  /** A path that came from a Windows host, whose separators may be written either way. */
11
26
  export function isWindowsHostPath(path) {
12
27
  return /^[A-Za-z]:[\\/]/.test(path) || /^\\\\[^\\]/.test(path);
@@ -1 +1 @@
1
- {"version":3,"file":"hostPaths.js","sourceRoot":"","sources":["../../src/utils/hostPaths.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,qHAAqH;AACrH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAC1D,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAChE,CAAC"}
1
+ {"version":3,"file":"hostPaths.js","sourceRoot":"","sources":["../../src/utils/hostPaths.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,qHAAqH;AACrH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAC1D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAAY;IACpD,MAAM,KAAK,GAAa,EAAE,CAAA;IAC1B,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,2CAA2C,CAAC,EAAE,CAAC;QAC/E,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAA;QACzD,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACnD,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAChE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenosystem/agent-conversation",
3
- "version": "0.1.206",
3
+ "version": "0.1.208",
4
4
  "license": "UNLICENSED",
5
5
  "description": "The XENO Agent conversation surface: the transcript, the composer, and the logic behind them.",
6
6
  "type": "module",
@@ -42,15 +42,15 @@
42
42
  "react-markdown": "^10.1.0",
43
43
  "remark-gfm": "^4.0.1",
44
44
  "zustand": "^5.0.2",
45
- "@xenosystem/agent-interface-hub-adapter": "0.1.206",
46
- "@xenosystem/agent-interface-contract": "0.1.206",
47
- "@xenosystem/agent-interface-core": "0.1.206",
48
- "@xenosystem/agent-interface-client": "0.1.206"
45
+ "@xenosystem/agent-interface-contract": "0.1.208",
46
+ "@xenosystem/agent-interface-hub-adapter": "0.1.208",
47
+ "@xenosystem/agent-interface-client": "0.1.208",
48
+ "@xenosystem/agent-interface-core": "0.1.208"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": "^19.0.0",
52
52
  "react-dom": "^19.0.0"
53
53
  },
54
54
  "scripts": {},
55
- "gitHead": "3ae3766f37cc8683f9d5ee52cfb3b41cdb8d2c17"
55
+ "gitHead": "6e2a80affb480a1cf92e521da321193e8e8494d8"
56
56
  }