xoonya 2.5.0 → 2.6.0

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.
@@ -0,0 +1,184 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ const path = require("path");
5
+ const { spawnSync } = require("child_process");
6
+
7
+ const DEFAULT_KIT_URL = "https://www.naxytra.com/v1/first-run-kit";
8
+
9
+ function parseArgs(argv) {
10
+ const args = {};
11
+ for (let index = 0; index < argv.length; index += 1) {
12
+ const token = argv[index];
13
+ if (!token.startsWith("--")) continue;
14
+ const key = token.slice(2);
15
+ const next = argv[index + 1];
16
+ if (!next || next.startsWith("--")) {
17
+ args[key] = true;
18
+ continue;
19
+ }
20
+ args[key] = next;
21
+ index += 1;
22
+ }
23
+ return args;
24
+ }
25
+
26
+ function buildLocalGuide() {
27
+ return {
28
+ ok: true,
29
+ product: "xoonya",
30
+ category: "xoonya-first-run-proof-guide",
31
+ guide_version: "xoonya-first-run-proof-guide-v1",
32
+ public_command_kit_url: DEFAULT_KIT_URL,
33
+ role: "proof_followthrough_after_xytara_runtime_execution",
34
+ safe_local_verification_command: "xoonya first-run --verify-native --pretty",
35
+ proof_modes: [
36
+ {
37
+ method: "xoonya-native-sha256-v1",
38
+ verification: "replayable_digest"
39
+ },
40
+ {
41
+ method: "xoonya-native-signed-v1",
42
+ verification: "ed25519_signature"
43
+ },
44
+ {
45
+ method: "xoonya-native-anchored-v1",
46
+ verification: "anchor_binding"
47
+ },
48
+ {
49
+ method: "external_interop_methods",
50
+ verification: "structure_checked_external_verifier_boundary"
51
+ }
52
+ ],
53
+ public_checks: [
54
+ "https://xoonya.onrender.com/v1/proof-center/native-standard/summary",
55
+ "https://xoonya.onrender.com/v1/proof-center/native-atom-conformance/summary",
56
+ "https://xoonya.onrender.com/v1/proof-center/native-anchor-profile/summary"
57
+ ],
58
+ boundaries: [
59
+ "xoonya_verifies_proof_bundles_and_native_method_binding",
60
+ "xoonya_anchor_binding_does_not_claim_external_provider_or_chain_truth",
61
+ "xytara_owns_runtime_payment_and_execution_state"
62
+ ]
63
+ };
64
+ }
65
+
66
+ async function fetchPublicKit(url) {
67
+ const response = await fetch(url, { headers: { accept: "application/json" } });
68
+ if (!response.ok) {
69
+ throw new Error(`first_run_kit_fetch_failed_${response.status}`);
70
+ }
71
+ return response.json();
72
+ }
73
+
74
+ function writeJson(payload, pretty) {
75
+ process.stdout.write(`${JSON.stringify(payload, null, pretty ? 2 : 0)}\n`);
76
+ }
77
+
78
+ function printUsage() {
79
+ process.stdout.write([
80
+ "Usage: xoonya first-run [options]",
81
+ "",
82
+ "Options:",
83
+ " --json Print the guided proof followthrough object",
84
+ " --offline Do not fetch the public command kit",
85
+ " --verify-native Run local native/conformance verification",
86
+ " --pretty Pretty-print JSON output",
87
+ " --help Show this help message"
88
+ ].join("\n"));
89
+ }
90
+
91
+ function runNativeVerification(args) {
92
+ const scriptPath = path.join(__dirname, "..", "scripts", "verify_vectors.js");
93
+ const result = spawnSync(process.execPath, [
94
+ scriptPath,
95
+ "--json"
96
+ ], {
97
+ encoding: "utf8",
98
+ stdio: ["ignore", "pipe", "inherit"]
99
+ });
100
+ if (result.status !== 0) {
101
+ process.exitCode = typeof result.status === "number" ? result.status : 1;
102
+ return;
103
+ }
104
+ const summary = JSON.parse(result.stdout);
105
+ writeJson({
106
+ ok: true,
107
+ product: "xoonya",
108
+ category: "xoonya-first-run-native-verification",
109
+ verification_version: "xoonya-first-run-native-verification-v1",
110
+ proof_bundle_conformance_passed: summary.ok === true,
111
+ conformance_count: summary.conformance_count,
112
+ adversarial_count: summary.adversarial_count,
113
+ native_atom_vector_count: summary.native_atom_vector_count,
114
+ native_atom_adversarial_count: summary.native_atom_adversarial_count,
115
+ verification_methods: summary.verification_methods,
116
+ native_atom_error_codes: summary.native_atom_error_codes,
117
+ required_native_methods_present: [
118
+ "xoonya-native-sha256-v1",
119
+ "xoonya-native-signed-v1",
120
+ "xoonya-native-anchored-v1"
121
+ ].every((method) => summary.verification_methods.includes(method)),
122
+ boundary: "local_conformance_verifies_xoonya_binding_and_vectors_not_external_chain_truth"
123
+ }, args.pretty);
124
+ }
125
+
126
+ async function main() {
127
+ const args = parseArgs(process.argv.slice(2));
128
+ if (args.help) {
129
+ printUsage();
130
+ return;
131
+ }
132
+ if (args["verify-native"]) {
133
+ runNativeVerification(args);
134
+ return;
135
+ }
136
+
137
+ const localGuide = buildLocalGuide();
138
+ if (args.json) {
139
+ if (args.offline) {
140
+ writeJson(localGuide, args.pretty);
141
+ return;
142
+ }
143
+ try {
144
+ const publicKit = await fetchPublicKit(DEFAULT_KIT_URL);
145
+ writeJson({
146
+ ...localGuide,
147
+ public_command_kit: publicKit
148
+ }, args.pretty);
149
+ } catch (error) {
150
+ writeJson({
151
+ ...localGuide,
152
+ public_command_kit_fetch_error: error.message
153
+ }, args.pretty);
154
+ }
155
+ return;
156
+ }
157
+
158
+ process.stdout.write([
159
+ "xoonya first-run",
160
+ "",
161
+ "Proof followthrough after xytara execution:",
162
+ " xoonya first-run --verify-native --pretty",
163
+ "",
164
+ "Inspect the public command kit:",
165
+ ` ${DEFAULT_KIT_URL}`,
166
+ "",
167
+ "Native proof modes checked locally:",
168
+ " xoonya-native-sha256-v1",
169
+ " xoonya-native-signed-v1",
170
+ " xoonya-native-anchored-v1",
171
+ "",
172
+ "Public proof surfaces:",
173
+ " https://xoonya.onrender.com/v1/proof-center/native-standard/summary",
174
+ " https://xoonya.onrender.com/v1/proof-center/native-anchor-profile/summary",
175
+ "",
176
+ "Boundary:",
177
+ " xoonya verifies proof and anchor binding; external chain/provider truth stays external."
178
+ ].join("\n"));
179
+ }
180
+
181
+ main().catch((error) => {
182
+ process.stderr.write(`${error.message}\n`);
183
+ process.exitCode = 1;
184
+ });
package/bin/xoonya.js CHANGED
@@ -11,12 +11,17 @@ function printUsage() {
11
11
  "Commands:",
12
12
  " release [args] Open the release/adoption/reporting surface",
13
13
  " review [args] Review a carried handoff or proof input",
14
+ " conformance Run proof conformance and adversarial vectors",
15
+ " first-run [args] Guide or run proof followthrough checks",
14
16
  " start-here Print the shortest first-run path",
15
17
  " help Show this help message",
16
18
  "",
17
19
  "Fastest first run:",
18
20
  " xoonya start-here",
21
+ " xoonya first-run",
22
+ " xoonya first-run --verify-native --pretty",
19
23
  " xoonya release --summary",
24
+ " xoonya conformance --json",
20
25
  " xoonya review --help"
21
26
  ].join("\n"));
22
27
  }
@@ -25,11 +30,26 @@ function printStartHere() {
25
30
  process.stdout.write([
26
31
  "xoonya start-here",
27
32
  "",
28
- "1. xoonya release --summary",
29
- "2. node examples/package_quickstart.js",
30
- "3. npm run verify:all",
31
- "4. Inspect /v1/providers, /v1/frameworks, /v1/integration-matrix, /v1/proof-bridge",
32
- "5. Continue into proof review, bridge, and import lanes as needed"
33
+ "Public first-run spine:",
34
+ " quote -> pay/credits -> execute -> prove",
35
+ "",
36
+ "1. Open https://www.naxytra.com/v1/first-run-kit",
37
+ "2. Run the xytara quote-only command first; it needs no wallet secret.",
38
+ "3. After funded execution, verify the proof side:",
39
+ " xoonya first-run --verify-native --pretty",
40
+ " node examples/package_quickstart.js",
41
+ " xoonya conformance --json",
42
+ "4. Inspect native proof surfaces:",
43
+ " https://xoonya.onrender.com/v1/proof-center/native-standard/summary",
44
+ " https://xoonya.onrender.com/v1/proof-center/native-anchor-profile/summary",
45
+ "",
46
+ "Native proof modes:",
47
+ " xoonya-native-sha256-v1 replayable digest proof",
48
+ " xoonya-native-signed-v1 key-bound authorship proof",
49
+ " xoonya-native-anchored-v1 anchor-binding proof",
50
+ "",
51
+ "Boundary:",
52
+ " xoonya verifies proof and anchor binding; external chain/provider truth stays external"
33
53
  ].join("\n"));
34
54
  }
35
55
 
@@ -49,6 +69,12 @@ if (!command || command === "help" || command === "--help" || command === "-h")
49
69
  delegate("xoonya-release.js", rest);
50
70
  } else if (command === "review") {
51
71
  delegate("xoonya-review.js", rest);
72
+ } else if (command === "first-run" || command === "firstrun") {
73
+ delegate("xoonya-first-run.js", rest);
74
+ } else if (command === "conformance" || command === "verify-vectors") {
75
+ const scriptPath = path.join(__dirname, "..", "scripts", "verify_vectors.js");
76
+ const result = spawnSync(process.execPath, [scriptPath, ...rest], { stdio: "inherit" });
77
+ process.exitCode = typeof result.status === "number" ? result.status : 1;
52
78
  } else {
53
79
  printUsage();
54
80
  process.exitCode = 1;
@@ -10,6 +10,22 @@ function buildReleaseHistory() {
10
10
  current_version: packageJson.version,
11
11
  release_track: "public_release",
12
12
  history: [
13
+ {
14
+ version: "2.6.0",
15
+ channel: "public_release",
16
+ maturity_posture: "expansion_ready",
17
+ headline: "expansion proof release with XNYA native payload and line-rate profiles, native signed and anchored methods, external proof import, and standardization guardrails",
18
+ milestone_refs: [
19
+ "xoonya_native_signed_ed25519_secp256k1_p256",
20
+ "xoonya_native_anchored_method",
21
+ "xoonya_native_payload_profile_xnyp",
22
+ "xoonya_native_line_rate_frame",
23
+ "native_payload_profile_vectors",
24
+ "external_proof_import_adapter",
25
+ "native_hybrid_readiness_guardrails",
26
+ "native_standardization_pack"
27
+ ]
28
+ },
13
29
  {
14
30
  version: "2.5.0",
15
31
  channel: "public_release",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "xoonya",
3
- "version": "2.5.0",
4
- "description": "Deterministic proof SDK for canonical events, receipts, proof bundles, and verification.",
3
+ "version": "2.6.0",
4
+ "description": "Deterministic proof and review engine for receipts, handoffs, governance, and verification.",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "xoonya": "bin/xoonya.js",
@@ -11,13 +11,6 @@
11
11
  "type": "commonjs",
12
12
  "license": "Apache-2.0",
13
13
  "homepage": "https://xoonya.com",
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://github.com/naxytra/xoonya.git"
17
- },
18
- "bugs": {
19
- "url": "https://github.com/naxytra/xoonya/issues"
20
- },
21
14
  "funding": {
22
15
  "type": "individual",
23
16
  "url": "https://xoonya.com"
@@ -34,14 +27,11 @@
34
27
  "integrations/",
35
28
  "vectors/",
36
29
  "RELEASE_NOTES.md",
37
- "RELEASE_CHECKLIST.md",
38
- "PUBLISH_PLAN.md",
39
30
  ".env.example",
40
31
  "README.md",
41
- "PROGRAM_STATUS.md",
42
- "OPERATOR_START_HERE.md",
43
- "OPERATIONS_RUNBOOK.md",
44
- "PROGRAM_COMPLETE_RELEASE.md",
32
+ "XOONYA_NATIVE_PROOF_FORMAT.md",
33
+ "XOONYA_NATIVE_ATOM_SPEC.md",
34
+ "XOONYA_NATIVE_STANDARD_GOVERNANCE.md",
45
35
  "WHY_XYTARA_XOONYA.md",
46
36
  "CARRIED_HANDOFF_DEMO.md",
47
37
  "PARTNER_READY_PATH.md",
@@ -63,6 +53,10 @@
63
53
  },
64
54
  "keywords": [
65
55
  "proof",
56
+ "review",
57
+ "handoff",
58
+ "governance",
59
+ "audit",
66
60
  "receipt",
67
61
  "canonical-events",
68
62
  "proof-bundle",
@@ -73,6 +67,7 @@
73
67
  "scripts": {
74
68
  "start": "node server.js",
75
69
  "verify:package": "node scripts/verify_all.js",
70
+ "verify:conformance": "node scripts/verify_vectors.js",
76
71
  "verify:integrations": "node scripts/verify_integrations.js",
77
72
  "verify:tooling": "node scripts/verify_tooling.js",
78
73
  "verify:vectors": "node scripts/verify_vectors.js",