xoonya 1.24.0 → 1.25.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.
package/README.md CHANGED
@@ -168,6 +168,9 @@ Primary proof-model routes:
168
168
  - `POST /v1/proof-center/result-package-handoff/review/operating-path`
169
169
  - `POST /v1/proof-center/result-package-handoff/review/operating-path-carry`
170
170
  - `POST /v1/proof-center/result-package-handoff/review/operating-path-run`
171
+ - `POST /v1/proof-center/result-package-handoff/review/complete-default-path`
172
+ - `POST /v1/proof-center/result-package-handoff/review/complete-default-path-carry`
173
+ - `POST /v1/proof-center/result-package-handoff/review/complete-default-path-run`
171
174
  - `POST /v1/proof-center/result-package-handoff/review/handoff-run`
172
175
  - `POST /v1/proof-center/result-package-handoff/run`
173
176
 
@@ -246,6 +249,15 @@ The current `1.24.0` line starts turning that adapter-integrable operating path
246
249
  - clearer operating-path ids across review, carry, and proof-native run posture
247
250
 
248
251
  This is intended to make the proof-side continuation path easier to use as the obvious first public adapter path instead of only a path that is integrable with a little extra coordination.
252
+
253
+ The current `1.25.0` line starts turning that adapter-ready default path into a clearer adapter-complete default path:
254
+
255
+ - proof-side complete-default-path posture on top of the operating-path path
256
+ - compact complete-default-path carry for direct complete proof-side path carry
257
+ - proof-side complete-default-path run posture for direct default proof-native complete path posture
258
+ - clearer complete-default-path ids across review, carry, and proof-native run posture
259
+
260
+ This is intended to make the proof-side continuation path easier to adopt as the complete public default path an outside builder can use without needing private interpretation.
249
261
  - `POST /v1/events/canonicalize`
250
262
  - `POST /v1/events/hash`
251
263
  - `POST /v1/receipts/emit`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xoonya",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "description": "Deterministic proof SDK for canonical events, receipts, proof bundles, and verification.",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
package/proof_sdk.js CHANGED
@@ -1909,6 +1909,45 @@ function summarizeReviewOperatingPathRun(input) {
1909
1909
  };
1910
1910
  }
1911
1911
 
1912
+ function summarizeReviewCompleteDefaultPath(input) {
1913
+ const operatingPath = summarizeReviewOperatingPathRun(input);
1914
+ return {
1915
+ ok: operatingPath.ok === true,
1916
+ operating_path_ref: operatingPath.operating_path_ref || null,
1917
+ complete_default_path_ref: operatingPath.operating_path_ref ? `complete.${operatingPath.operating_path_ref}` : null,
1918
+ accepted_complete_default_path_ids: Array.isArray(operatingPath.accepted_operating_path_ids) ? operatingPath.accepted_operating_path_ids : [],
1919
+ adapter_complete_by_default: operatingPath.operating_path_ready_by_default === true,
1920
+ run_surface: operatingPath.run_surface || null,
1921
+ run_path_ids: Array.isArray(operatingPath.default_run_path_ids) ? operatingPath.default_run_path_ids : []
1922
+ };
1923
+ }
1924
+
1925
+ function summarizeReviewCompleteDefaultPathCarry(input) {
1926
+ const completePath = summarizeReviewCompleteDefaultPath(input);
1927
+ return {
1928
+ ok: completePath.ok === true,
1929
+ complete_default_path_ref: completePath.complete_default_path_ref || null,
1930
+ accepted_complete_default_path_ids: Array.isArray(completePath.accepted_complete_default_path_ids) ? completePath.accepted_complete_default_path_ids : [],
1931
+ complete_default_path_carry: {
1932
+ run_surface: completePath.run_surface || null,
1933
+ run_path_ids: Array.isArray(completePath.run_path_ids) ? completePath.run_path_ids : []
1934
+ },
1935
+ adapter_complete_by_default: completePath.adapter_complete_by_default === true
1936
+ };
1937
+ }
1938
+
1939
+ function summarizeReviewCompleteDefaultPathRun(input) {
1940
+ const completePath = summarizeReviewCompleteDefaultPath(input);
1941
+ return {
1942
+ ok: completePath.ok === true,
1943
+ complete_default_path_ref: completePath.complete_default_path_ref || null,
1944
+ accepted_complete_default_path_ids: Array.isArray(completePath.accepted_complete_default_path_ids) ? completePath.accepted_complete_default_path_ids : [],
1945
+ complete_default_path_ready: completePath.adapter_complete_by_default === true,
1946
+ run_surface: completePath.run_surface || null,
1947
+ default_run_path_ids: Array.isArray(completePath.run_path_ids) ? completePath.run_path_ids : []
1948
+ };
1949
+ }
1950
+
1912
1951
  function runDefaultProofLoop(loopRef, input) {
1913
1952
  const loop = getDefaultProofLoop(loopRef);
1914
1953
  if (!loop) {
@@ -2001,6 +2040,9 @@ module.exports = {
2001
2040
  summarizeReviewOperatingPath,
2002
2041
  summarizeReviewOperatingPathCarry,
2003
2042
  summarizeReviewOperatingPathRun,
2043
+ summarizeReviewCompleteDefaultPath,
2044
+ summarizeReviewCompleteDefaultPathCarry,
2045
+ summarizeReviewCompleteDefaultPathRun,
2004
2046
  summarizeReviewHandoffRun,
2005
2047
  runInteractionResultPackageHandoff,
2006
2048
  runInteractionSpineProofHandoff,
package/server.js CHANGED
@@ -600,6 +600,39 @@ async function routeRequest(req, res) {
600
600
  return;
601
601
  }
602
602
 
603
+ if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/complete-default-path') {
604
+ try {
605
+ const body = await readJsonBody(req);
606
+ const result = proofSdk.summarizeReviewCompleteDefaultPath(body);
607
+ sendJson(res, 200, result);
608
+ } catch (error) {
609
+ sendJson(res, 400, { ok: false, reason: error.message });
610
+ }
611
+ return;
612
+ }
613
+
614
+ if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/complete-default-path-carry') {
615
+ try {
616
+ const body = await readJsonBody(req);
617
+ const result = proofSdk.summarizeReviewCompleteDefaultPathCarry(body);
618
+ sendJson(res, 200, result);
619
+ } catch (error) {
620
+ sendJson(res, 400, { ok: false, reason: error.message });
621
+ }
622
+ return;
623
+ }
624
+
625
+ if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/complete-default-path-run') {
626
+ try {
627
+ const body = await readJsonBody(req);
628
+ const result = proofSdk.summarizeReviewCompleteDefaultPathRun(body);
629
+ sendJson(res, 200, result);
630
+ } catch (error) {
631
+ sendJson(res, 400, { ok: false, reason: error.message });
632
+ }
633
+ return;
634
+ }
635
+
603
636
  if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-run') {
604
637
  try {
605
638
  const body = await readJsonBody(req);