@xenosystem/agent-cli 0.5.17

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 (39) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +157 -0
  3. package/dist/index.js +6820 -0
  4. package/dist/metafile-esm.json +1 -0
  5. package/native/xeno-pty/prebuilds/PROVENANCE.md +69 -0
  6. package/native/xeno-pty/prebuilds/darwin-arm64/manifest.json +18 -0
  7. package/native/xeno-pty/prebuilds/darwin-arm64/xeno_pty.node +0 -0
  8. package/native/xeno-pty/prebuilds/darwin-x64/manifest.json +18 -0
  9. package/native/xeno-pty/prebuilds/darwin-x64/xeno_pty.node +0 -0
  10. package/native/xeno-pty/prebuilds/linux-arm64/manifest.json +18 -0
  11. package/native/xeno-pty/prebuilds/linux-arm64/xeno_pty.node +0 -0
  12. package/native/xeno-pty/prebuilds/linux-x64/manifest.json +18 -0
  13. package/native/xeno-pty/prebuilds/linux-x64/xeno_pty.node +0 -0
  14. package/native/xeno-pty/prebuilds/win32-x64/manifest.json +18 -0
  15. package/native/xeno-pty/prebuilds/win32-x64/xeno_pty.node +0 -0
  16. package/native/xeno-pty/trusted-keys.json +4 -0
  17. package/ownership/CLEAN_ROOM_CONTRIBUTOR_GUIDE.md +63 -0
  18. package/ownership/audit.mjs +727 -0
  19. package/ownership/containment-reviewer-trusted-keys.json +4 -0
  20. package/ownership/containment-trusted-keys.json +4 -0
  21. package/ownership/evidence/PROPRIETARY-COMMAND-1/implementation-record.md +77 -0
  22. package/ownership/evidence/PROPRIETARY-COMMAND-1/provenance-review.md +51 -0
  23. package/ownership/evidence/PROPRIETARY-MEDIA-1/implementation-record.md +131 -0
  24. package/ownership/evidence/PROPRIETARY-MEDIA-1/provenance-review.md +50 -0
  25. package/ownership/evidence/PROPRIETARY-PTY-1/implementation-record.md +86 -0
  26. package/ownership/evidence/PROPRIETARY-PTY-1/provenance-review.md +52 -0
  27. package/ownership/evidence/PROPRIETARY-RUNTIME-1/implementation-record.md +68 -0
  28. package/ownership/evidence/PROPRIETARY-RUNTIME-1/provenance-review.md +32 -0
  29. package/ownership/evidence/PROPRIETARY-TOOLCHAIN-1/implementation-record.md +53 -0
  30. package/ownership/evidence/PROPRIETARY-TOOLCHAIN-1/provenance-review.md +32 -0
  31. package/ownership/evidence/PROPRIETARY-UI-1/implementation-record.md +96 -0
  32. package/ownership/evidence/PROPRIETARY-UI-1/provenance-review.md +46 -0
  33. package/ownership/ownership-policy.json +232 -0
  34. package/ownership/ownership-policy.schema.json +192 -0
  35. package/ownership/templates/clean-room-implementation-record.md +70 -0
  36. package/ownership/templates/provenance-review.md +51 -0
  37. package/package.json +77 -0
  38. package/scripts/install.ps1 +18 -0
  39. package/scripts/install.sh +18 -0
@@ -0,0 +1,69 @@
1
+ # xeno-pty native artifact provenance — 0.5.17
2
+
3
+ `*.node` binaries are gitignored, so this directory is populated by a build, not
4
+ by a checkout. This file records where each shipped artifact actually came from.
5
+ Every claim below is checkable from the artifacts themselves.
6
+
7
+ Native sources for this release:
8
+
9
+ - `src/xeno_pty_posix.cpp` — `sha256 6ba69e62cf0c0765546afa19f1820c1cc7f64f452802718c20b4a117d6c8f9c6`
10
+ - `src/xeno_pty_win.cpp` — `sha256 9f6f6248f35f2f6b767b153f66670d5ed8f95cb7d6242c77c652efe5cca2d038`
11
+
12
+ Each `manifest.json` records the `sourceSha256` its binary was compiled from.
13
+ Line endings are pinned to LF via `.gitattributes` so these hashes are
14
+ checkout-independent.
15
+
16
+ | Target | `sha256` of `xeno_pty.node` | Origin |
17
+ | -------------- | ------------------------------------------------------------------ | ------ |
18
+ | `win32-x64` | `91d9a464823091603d784cbc3a570b8a0e514576eeb4b8fb2aabcdcbb64bccad` | Built for 0.5.17, MSVC 19.44.35222, `/Brepro`. Reproduced the hash already recorded in the tracked manifest. Load-verified. |
19
+ | `linux-x64` | `a93757b552cb9236fe33773228072df270659d6a015a92fb96d21a9d22c5f2cb` | Built for 0.5.17 in a Debian 12 container, g++ 12.2.0. Load-verified plus a real PTY spawn round-trip. |
20
+ | `linux-arm64` | `07f660ac0c32ac7a2900f3abdfa12550f603880f02a1763a12a63064fe802006` | Built for 0.5.17 in a Debian 12 `linux/arm64` container under QEMU, g++ 12.2.0. Load-verified plus a real PTY spawn round-trip **on aarch64**. |
21
+ | `darwin-arm64` | `b1e689d8563464cd95ac600f42a26182d072d1922f5a57f85ec5717603eff864` | **Carried forward from published 0.4.45.** Not rebuilt. See below. |
22
+ | `darwin-x64` | `ff459f0ee222bec04513190d2922a9ed76d9bbeb80f5335e6663eed942a4996a` | **Carried forward from published 0.4.45.** Not rebuilt. See below. |
23
+ | `win32-arm64` | *(absent)* | **Not shipped.** See below. |
24
+
25
+ ## macOS artifacts are carried forward, not rebuilt
26
+
27
+ `darwin-arm64` and `darwin-x64` are the exact artifacts published in
28
+ `@xeno-corporation/xeno-agent-cli@0.4.45`, compiled by the last macOS CI run
29
+ with Apple clang 17.0.0.
30
+
31
+ They are carried forward rather than dropped because they are provably built
32
+ from *this* release's source: both manifests record
33
+ `sourceSha256 = 6ba69e62cf0c…`, byte-identical to `src/xeno_pty_posix.cpp`
34
+ above. Verified during release preparation:
35
+
36
+ - binary `sha256` matches the value in its own `manifest.json`;
37
+ - `manifest.sourceSha256` matches this release's POSIX source;
38
+ - both are valid 64-bit Mach-O `MH_BUNDLE` images with the correct `cputype`
39
+ (`arm64` / `x86_64`).
40
+
41
+ Not verified, and not claimed: these binaries were **not executed** during
42
+ release preparation. Building or running macOS binaries requires Apple hardware,
43
+ which was not available. macOS is source-verified, not run-verified, for 0.5.17.
44
+
45
+ ## `win32-arm64` is not shipped
46
+
47
+ Two independent reasons:
48
+
49
+ 1. The Windows-on-ARM cross-compiler was not present on the release machine.
50
+ Visual Studio 2022 Build Tools were installed with `x86`/`x64` targets only;
51
+ `Microsoft.VisualStudio.Component.VC.Tools.ARM64` was absent, and installing
52
+ it needs elevation. `scripts/build-windows.ps1 -Architecture arm64` already
53
+ supports the cross-build once that component exists.
54
+ 2. The `win32-arm64` artifact published in 0.4.45 records
55
+ `sourceSha256 = 58b4f8c09219…`, which does **not** match this release's
56
+ `xeno_pty_win.cpp` (`9f6f6248f35f…`). It was built from a different source
57
+ revision, so carrying it forward would ship a binary whose manifest
58
+ contradicts the shipped source.
59
+
60
+ Dropping it is the honest option: on `win32-arm64` the CLI reports the
61
+ unavailability explicitly and runs shell commands in pipe mode.
62
+
63
+ ## Signature status
64
+
65
+ All manifests are `unsigned-development` and `trusted-keys.json` is empty, so on
66
+ a normal install the loader refuses to load any of these artifacts and the
67
+ interactive terminal is off by default on every platform. Opt in with
68
+ `XENO_ALLOW_UNSIGNED_NATIVE=1`. This is unchanged from 0.4.45, which shipped six
69
+ binaries under exactly the same gate.
@@ -0,0 +1,18 @@
1
+ {
2
+ "schemaVersion": 2,
3
+ "component": "xeno-pty",
4
+ "binary": "xeno_pty.node",
5
+ "apiVersion": 1,
6
+ "platform": "darwin",
7
+ "architecture": "arm64",
8
+ "abi": "napi-v8",
9
+ "napi": 8,
10
+ "minimumNode": "20.0.0",
11
+ "nodeHeaders": "24.18.0",
12
+ "compiler": "Apple clang version 17.0.0 (clang-1700.0.13.5)",
13
+ "sourceSha256": "6ba69e62cf0c0765546afa19f1820c1cc7f64f452802718c20b4a117d6c8f9c6",
14
+ "sha256": "b1e689d8563464cd95ac600f42a26182d072d1922f5a57f85ec5717603eff864",
15
+ "signature": {
16
+ "status": "unsigned-development"
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "schemaVersion": 2,
3
+ "component": "xeno-pty",
4
+ "binary": "xeno_pty.node",
5
+ "apiVersion": 1,
6
+ "platform": "darwin",
7
+ "architecture": "x64",
8
+ "abi": "napi-v8",
9
+ "napi": 8,
10
+ "minimumNode": "20.0.0",
11
+ "nodeHeaders": "24.18.0",
12
+ "compiler": "Apple clang version 17.0.0 (clang-1700.0.13.5)",
13
+ "sourceSha256": "6ba69e62cf0c0765546afa19f1820c1cc7f64f452802718c20b4a117d6c8f9c6",
14
+ "sha256": "ff459f0ee222bec04513190d2922a9ed76d9bbeb80f5335e6663eed942a4996a",
15
+ "signature": {
16
+ "status": "unsigned-development"
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "schemaVersion": 2,
3
+ "component": "xeno-pty",
4
+ "binary": "xeno_pty.node",
5
+ "apiVersion": 1,
6
+ "platform": "linux",
7
+ "architecture": "arm64",
8
+ "abi": "napi-v8",
9
+ "napi": 8,
10
+ "minimumNode": "20.0.0",
11
+ "nodeHeaders": "18.20.4",
12
+ "compiler": "c++ (Debian 12.2.0-14+deb12u1) 12.2.0",
13
+ "sourceSha256": "6ba69e62cf0c0765546afa19f1820c1cc7f64f452802718c20b4a117d6c8f9c6",
14
+ "sha256": "07f660ac0c32ac7a2900f3abdfa12550f603880f02a1763a12a63064fe802006",
15
+ "signature": {
16
+ "status": "unsigned-development"
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "schemaVersion": 2,
3
+ "component": "xeno-pty",
4
+ "binary": "xeno_pty.node",
5
+ "apiVersion": 1,
6
+ "platform": "linux",
7
+ "architecture": "x64",
8
+ "abi": "napi-v8",
9
+ "napi": 8,
10
+ "minimumNode": "20.0.0",
11
+ "nodeHeaders": "18.20.4",
12
+ "compiler": "c++ (Debian 12.2.0-14+deb12u1) 12.2.0",
13
+ "sourceSha256": "6ba69e62cf0c0765546afa19f1820c1cc7f64f452802718c20b4a117d6c8f9c6",
14
+ "sha256": "a93757b552cb9236fe33773228072df270659d6a015a92fb96d21a9d22c5f2cb",
15
+ "signature": {
16
+ "status": "unsigned-development"
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "schemaVersion": 2,
3
+ "component": "xeno-pty",
4
+ "binary": "xeno_pty.node",
5
+ "apiVersion": 1,
6
+ "platform": "win32",
7
+ "architecture": "x64",
8
+ "abi": "napi-v8",
9
+ "napi": 8,
10
+ "minimumNode": "20.0.0",
11
+ "nodeHeaders": "24.13.1",
12
+ "compiler": "Microsoft (R) C/C++ Optimizing Compiler Version 19.44.35222 for x64",
13
+ "sourceSha256": "9f6f6248f35f2f6b767b153f66670d5ed8f95cb7d6242c77c652efe5cca2d038",
14
+ "sha256": "91d9a464823091603d784cbc3a570b8a0e514576eeb4b8fb2aabcdcbb64bccad",
15
+ "signature": {
16
+ "status": "unsigned-development"
17
+ }
18
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "keys": []
4
+ }
@@ -0,0 +1,63 @@
1
+ # Xeno Clean-Room Contributor Guide
2
+
3
+ Status: engineering control draft. Legal counsel approval is required before Xeno makes a public clean-room or proprietary-ownership claim.
4
+
5
+ ## Purpose
6
+
7
+ This guide governs replacement of third-party implementation code with independently authored Xeno code. It is an engineering provenance control, not legal advice and not proof by itself that a replacement is clean-room work.
8
+
9
+ ## Required roles
10
+
11
+ - The contract author records behavior from Xeno-owned tests, public standards, public API documentation, and black-box observations.
12
+ - The implementer writes the replacement from the approved contract and declared normative sources.
13
+ - The provenance reviewer independently reviews the implementation, evidence, and contributor disclosures.
14
+ - Counsel determines whether contributor separation or additional review is required for a specific component.
15
+
16
+ One person may not approve their own provenance review. High-risk native, codec, parser, and cryptographic work also requires a domain reviewer.
17
+
18
+ ## Before implementation
19
+
20
+ 1. Create a clean-room implementation record from `templates/clean-room-implementation-record.md`.
21
+ 2. Freeze the required behavior and compatibility fixtures before reading implementation source from the component being replaced.
22
+ 3. List every normative standard, public API document, Xeno-owned test, and black-box observation used.
23
+ 4. Disclose whether each contributor previously inspected the replaced implementation source and when.
24
+ 5. Obtain a written role/separation decision for contributors who inspected that source.
25
+ 6. Record patents, trademarks, specification licenses, and export-control questions for counsel.
26
+
27
+ ## Allowed inputs
28
+
29
+ - Published standards whose terms permit the intended use.
30
+ - Public API and user documentation used only to define observable behavior.
31
+ - Xeno-owned requirements, tests, fixtures, traces, and interoperability captures.
32
+ - Black-box behavior measured through a documented harness.
33
+ - Operating-system and language-host API documentation for approved platform boundaries.
34
+
35
+ ## Prohibited inputs and actions
36
+
37
+ - Copying third-party source, comments, tests, identifiers, non-normative constants, or internal architecture.
38
+ - Asking an AI model to translate, rewrite, disguise, or recreate third-party source.
39
+ - Including third-party source in prompts, tickets, implementation records, fixtures, or generated-code context.
40
+ - Claiming clean-room status when source-exposure disclosures or counsel review are incomplete.
41
+ - Using a compatibility result as evidence of independent authorship.
42
+
43
+ ## During implementation
44
+
45
+ 1. Keep the implementation record current with design decisions and source citations.
46
+ 2. Add conformance, malformed-input, resource-limit, and fuzz tests appropriate to the surface.
47
+ 3. Record any behavior that differs from the frozen contract and obtain an explicit versioning decision.
48
+ 4. Keep generated artifacts traceable to Xeno-owned source and the approved build process.
49
+ 5. Stop and escalate if an undeclared source, copied fragment, or provenance ambiguity is discovered.
50
+
51
+ AI-generated contributions follow the same rules. Prompts must request independent, standards-based implementation and must be retained or summarized in the implementation record without sensitive user data.
52
+
53
+ ## Required completion evidence
54
+
55
+ - Completed clean-room implementation record.
56
+ - Completed independent provenance review.
57
+ - Contributor source-exposure disclosures and counsel disposition.
58
+ - Contract fixtures and conformance results.
59
+ - Fuzz and security evidence where required.
60
+ - Ownership inventory, bundle graph, native hashes, SBOM, and clean-install report for the candidate release.
61
+ - Commit or source revision and reviewer identities.
62
+
63
+ The ownership capability gate remains false until all required evidence exists and the designated reviewer signs the provenance record. Public ownership language additionally requires counsel and product approval.