@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,70 @@
1
+ # Clean-Room Implementation Record
2
+
3
+ ## Identity
4
+
5
+ - Component:
6
+ - Replacement milestone:
7
+ - Repository and paths:
8
+ - Record owner:
9
+ - Implementer(s):
10
+ - Contract author(s):
11
+ - Started at (UTC):
12
+ - Candidate revision:
13
+ - Status: draft
14
+
15
+ ## Frozen behavioral contract
16
+
17
+ - Public API and observable behavior:
18
+ - Compatibility fixtures:
19
+ - Intentional incompatibilities and versioning decision:
20
+ - Security and resource limits:
21
+ - Supported platforms and architectures:
22
+
23
+ ## Normative and permitted inputs
24
+
25
+ | Source | Revision/date | Purpose | Terms reviewed by | Evidence path |
26
+ | --- | --- | --- | --- | --- |
27
+ | | | | | |
28
+
29
+ ## Contributor source-exposure disclosure
30
+
31
+ | Contributor | Inspected replaced source? | Date/range | Separation or review decision | Counsel reference |
32
+ | --- | --- | --- | --- | --- |
33
+ | | | | | |
34
+
35
+ ## Implementation log
36
+
37
+ | Date (UTC) | Decision | Contract/source basis | Author | Evidence path |
38
+ | --- | --- | --- | --- | --- |
39
+ | | | | | |
40
+
41
+ ## AI assistance
42
+
43
+ - Models/tools used:
44
+ - Prompt or retained prompt-summary path:
45
+ - Confirmation that no third-party source entered the prompt:
46
+ - Human review performed:
47
+
48
+ ## Verification evidence
49
+
50
+ - Unit and compatibility tests:
51
+ - Conformance corpus:
52
+ - Fuzz campaign and duration:
53
+ - Security/resource-limit tests:
54
+ - Cross-platform results:
55
+ - Performance comparison:
56
+ - Bundle/native/SBOM evidence:
57
+
58
+ ## Open legal or provenance questions
59
+
60
+ - Patents/specification terms:
61
+ - Trademarks:
62
+ - Export or distribution constraints:
63
+ - Other:
64
+
65
+ ## Handoff
66
+
67
+ - Implementation complete: no
68
+ - Evidence complete: no
69
+ - Ready for independent provenance review: no
70
+ - Author/date:
@@ -0,0 +1,51 @@
1
+ # Independent Provenance Review
2
+
3
+ ## Review identity
4
+
5
+ - Component:
6
+ - Replacement milestone:
7
+ - Implementation record path:
8
+ - Candidate revision:
9
+ - Reviewer:
10
+ - Domain reviewer (if required):
11
+ - Review date (UTC):
12
+ - Reviewer independent of implementation: yes/no
13
+
14
+ ## Evidence checks
15
+
16
+ - [ ] Behavioral contract predates or is independent from implementation work.
17
+ - [ ] Normative and public sources are listed with revisions and evidence paths.
18
+ - [ ] Contributor source-exposure disclosures are complete.
19
+ - [ ] Required separation/counsel decisions are attached.
20
+ - [ ] No copied source, comments, tests, identifiers, non-normative constants, or distinctive internal structure were found.
21
+ - [ ] AI inputs and human review satisfy the contributor guide.
22
+ - [ ] Intentional incompatibilities are approved and versioned.
23
+ - [ ] Conformance, malformed-input, security, resource-limit, and fuzz evidence meets the component gate.
24
+ - [ ] Bundle graph, native hashes, SBOM, ownership inventory, and clean-install graph agree.
25
+ - [ ] Licenses, patents, trademarks, and specification terms have an explicit disposition.
26
+
27
+ ## Similarity and provenance review method
28
+
29
+ - Files and revisions reviewed:
30
+ - Comparison method and tools:
31
+ - Findings:
32
+ - False positives and disposition:
33
+
34
+ ## Verification summary
35
+
36
+ | Gate | Evidence | Result | Notes |
37
+ | --- | --- | --- | --- |
38
+ | Contract compatibility | | | |
39
+ | Security/resource limits | | | |
40
+ | Fuzz/conformance | | | |
41
+ | Cross-platform | | | |
42
+ | Artifact ownership | | | |
43
+
44
+ ## Decision
45
+
46
+ - Engineering provenance decision: approve/reject/needs-work
47
+ - Capability gate may be marked achieved: yes/no
48
+ - Public clean-room/proprietary claim approved by this review: no
49
+ - Required follow-up:
50
+ - Reviewer signature/date:
51
+ - Counsel approval reference (required for public claim):
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "@xenosystem/agent-cli",
3
+ "version": "0.5.17",
4
+ "description": "XENO AGENT - AI-powered terminal agent CLI. EXPERIMENTAL unsigned build: interactive native terminal ships for linux-x64, linux-arm64, win32-x64, darwin-x64 and darwin-arm64 (opt in with XENO_ALLOW_UNSIGNED_NATIVE=1); win32-arm64 runs in pipe mode only. See README platform-support matrix.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "exports": {
8
+ ".": "./dist/index.js"
9
+ },
10
+ "bin": {
11
+ "xeno": "dist/index.js",
12
+ "xeno-agent": "dist/index.js",
13
+ "xeno-code": "dist/index.js"
14
+ },
15
+ "pkg": {
16
+ "assets": [
17
+ "native/xeno-pty/prebuilds/**/manifest.json",
18
+ "native/xeno-pty/prebuilds/**/*.node",
19
+ "native/xeno-pty/trusted-keys.json",
20
+ "native/mxc/**/*",
21
+ "ownership/**/*"
22
+ ],
23
+ "bytecode": false,
24
+ "public": true
25
+ },
26
+ "files": [
27
+ "dist/",
28
+ "native/xeno-pty/prebuilds/",
29
+ "native/xeno-pty/trusted-keys.json",
30
+ "ownership/",
31
+ "scripts/install.sh",
32
+ "scripts/install.ps1",
33
+ "README.md",
34
+ "LICENSE"
35
+ ],
36
+ "scripts": {
37
+ "dev": "tsx src/index.ts",
38
+ "build": "tsup --config tsup.config.ts",
39
+ "build:pty": "node native/xeno-pty/scripts/build.mjs",
40
+ "test:pty:native": "node native/xeno-pty/scripts/smoke-native.mjs && node native/xeno-pty/scripts/fuzz-native.mjs --iterations 100",
41
+ "bench:pty:native": "node native/xeno-pty/scripts/benchmark-native.mjs",
42
+ "start": "node dist/index.js",
43
+ "typecheck": "tsc --noEmit -p tsconfig.json",
44
+ "bench:coding-tools": "tsx src/index.ts bench coding-tools --json",
45
+ "update:check": "tsx src/index.ts update --check --json",
46
+ "prepack": "npm run build",
47
+ "prepublishOnly": "npm run prepack && npm run typecheck"
48
+ },
49
+ "publishConfig": {
50
+ "access": "public"
51
+ },
52
+ "homepage": "https://xenostudio.ai",
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "git+https://github.com/XENO-CORPORATION/xeno-agent-cli.git"
56
+ },
57
+ "bugs": {
58
+ "url": "https://xenostudio.ai/contact"
59
+ },
60
+ "keywords": [
61
+ "ai",
62
+ "agent",
63
+ "cli",
64
+ "llm",
65
+ "tools",
66
+ "terminal",
67
+ "code-assistant"
68
+ ],
69
+ "license": "UNLICENSED",
70
+ "dependencies": {
71
+ "@xenosystem/agent-sdk": "0.8.12",
72
+ "undici": "6.27.0"
73
+ },
74
+ "engines": {
75
+ "node": ">=20.0.0"
76
+ }
77
+ }
@@ -0,0 +1,18 @@
1
+ $ErrorActionPreference = "Stop"
2
+
3
+ $Package = if ($env:XENO_PACKAGE) { $env:XENO_PACKAGE } else { "@xenosystem/agent-cli" }
4
+ $Channel = if ($env:XENO_RELEASE_CHANNEL) { $env:XENO_RELEASE_CHANNEL } else { "latest" }
5
+
6
+ if (-not (Get-Command npm -ErrorAction SilentlyContinue)) {
7
+ throw "npm is required. Install Node.js first: https://nodejs.org/"
8
+ }
9
+
10
+ $Integrity = npm view "$Package@$Channel" dist.integrity 2>$null
11
+ if ($Integrity) {
12
+ Write-Host "Resolved npm integrity: $Integrity"
13
+ }
14
+
15
+ npm install -g "$Package@$Channel"
16
+ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
17
+
18
+ xeno --version
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env sh
2
+ set -eu
3
+
4
+ package="${XENO_PACKAGE:-@xenosystem/agent-cli}"
5
+ channel="${XENO_RELEASE_CHANNEL:-latest}"
6
+
7
+ if ! command -v npm >/dev/null 2>&1; then
8
+ echo "npm is required. Install Node.js first: https://nodejs.org/" >&2
9
+ exit 1
10
+ fi
11
+
12
+ integrity="$(npm view "${package}@${channel}" dist.integrity 2>/dev/null || true)"
13
+ if [ -n "$integrity" ]; then
14
+ echo "Resolved npm integrity: $integrity"
15
+ fi
16
+
17
+ npm install -g "${package}@${channel}"
18
+ xeno --version