xoonya 1.23.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 +24 -0
- package/package.json +1 -1
- package/proof_sdk.js +84 -0
- package/server.js +66 -0
package/README.md
CHANGED
|
@@ -165,6 +165,12 @@ Primary proof-model routes:
|
|
|
165
165
|
- `POST /v1/proof-center/result-package-handoff/review/operating-integration`
|
|
166
166
|
- `POST /v1/proof-center/result-package-handoff/review/operating-integration-carry`
|
|
167
167
|
- `POST /v1/proof-center/result-package-handoff/review/operating-integration-run`
|
|
168
|
+
- `POST /v1/proof-center/result-package-handoff/review/operating-path`
|
|
169
|
+
- `POST /v1/proof-center/result-package-handoff/review/operating-path-carry`
|
|
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`
|
|
168
174
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-run`
|
|
169
175
|
- `POST /v1/proof-center/result-package-handoff/run`
|
|
170
176
|
|
|
@@ -234,6 +240,24 @@ The current `1.23.0` line starts turning that adapter-reliable operating interfa
|
|
|
234
240
|
- clearer operating-integration ids across review, carry, and proof-native run posture
|
|
235
241
|
|
|
236
242
|
This is intended to make the proof-side continuation path easier to plug into adapters directly as a durable public operating path instead of only a reliable interface shape.
|
|
243
|
+
|
|
244
|
+
The current `1.24.0` line starts turning that adapter-integrable operating path into a clearer adapter-ready default path:
|
|
245
|
+
|
|
246
|
+
- proof-side operating-path posture on top of the operating-integration path
|
|
247
|
+
- compact operating-path carry for direct default proof-side path carry
|
|
248
|
+
- proof-side operating-path run posture for direct default proof-native path posture
|
|
249
|
+
- clearer operating-path ids across review, carry, and proof-native run posture
|
|
250
|
+
|
|
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.
|
|
237
261
|
- `POST /v1/events/canonicalize`
|
|
238
262
|
- `POST /v1/events/hash`
|
|
239
263
|
- `POST /v1/receipts/emit`
|
package/package.json
CHANGED
package/proof_sdk.js
CHANGED
|
@@ -1870,6 +1870,84 @@ function summarizeReviewOperatingIntegrationRun(input) {
|
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
1872
|
|
|
1873
|
+
function summarizeReviewOperatingPath(input) {
|
|
1874
|
+
const operatingIntegration = summarizeReviewOperatingIntegrationRun(input);
|
|
1875
|
+
return {
|
|
1876
|
+
ok: operatingIntegration.ok === true,
|
|
1877
|
+
operating_integration_ref: operatingIntegration.operating_integration_ref || null,
|
|
1878
|
+
operating_path_ref: operatingIntegration.operating_integration_ref ? `path.${operatingIntegration.operating_integration_ref}` : null,
|
|
1879
|
+
accepted_operating_path_ids: Array.isArray(operatingIntegration.accepted_operating_integration_ids) ? operatingIntegration.accepted_operating_integration_ids : [],
|
|
1880
|
+
adapter_ready_by_default: operatingIntegration.operating_integration_integrable_by_default === true,
|
|
1881
|
+
run_surface: operatingIntegration.run_surface || null,
|
|
1882
|
+
run_path_ids: Array.isArray(operatingIntegration.default_run_path_ids) ? operatingIntegration.default_run_path_ids : []
|
|
1883
|
+
};
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
function summarizeReviewOperatingPathCarry(input) {
|
|
1887
|
+
const operatingPath = summarizeReviewOperatingPath(input);
|
|
1888
|
+
return {
|
|
1889
|
+
ok: operatingPath.ok === true,
|
|
1890
|
+
operating_path_ref: operatingPath.operating_path_ref || null,
|
|
1891
|
+
accepted_operating_path_ids: Array.isArray(operatingPath.accepted_operating_path_ids) ? operatingPath.accepted_operating_path_ids : [],
|
|
1892
|
+
operating_path_carry: {
|
|
1893
|
+
run_surface: operatingPath.run_surface || null,
|
|
1894
|
+
run_path_ids: Array.isArray(operatingPath.run_path_ids) ? operatingPath.run_path_ids : []
|
|
1895
|
+
},
|
|
1896
|
+
adapter_ready_by_default: operatingPath.adapter_ready_by_default === true
|
|
1897
|
+
};
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
function summarizeReviewOperatingPathRun(input) {
|
|
1901
|
+
const operatingPath = summarizeReviewOperatingPath(input);
|
|
1902
|
+
return {
|
|
1903
|
+
ok: operatingPath.ok === true,
|
|
1904
|
+
operating_path_ref: operatingPath.operating_path_ref || null,
|
|
1905
|
+
accepted_operating_path_ids: Array.isArray(operatingPath.accepted_operating_path_ids) ? operatingPath.accepted_operating_path_ids : [],
|
|
1906
|
+
operating_path_ready_by_default: operatingPath.adapter_ready_by_default === true,
|
|
1907
|
+
run_surface: operatingPath.run_surface || null,
|
|
1908
|
+
default_run_path_ids: Array.isArray(operatingPath.run_path_ids) ? operatingPath.run_path_ids : []
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
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
|
+
|
|
1873
1951
|
function runDefaultProofLoop(loopRef, input) {
|
|
1874
1952
|
const loop = getDefaultProofLoop(loopRef);
|
|
1875
1953
|
if (!loop) {
|
|
@@ -1959,6 +2037,12 @@ module.exports = {
|
|
|
1959
2037
|
summarizeReviewOperatingIntegration,
|
|
1960
2038
|
summarizeReviewOperatingIntegrationCarry,
|
|
1961
2039
|
summarizeReviewOperatingIntegrationRun,
|
|
2040
|
+
summarizeReviewOperatingPath,
|
|
2041
|
+
summarizeReviewOperatingPathCarry,
|
|
2042
|
+
summarizeReviewOperatingPathRun,
|
|
2043
|
+
summarizeReviewCompleteDefaultPath,
|
|
2044
|
+
summarizeReviewCompleteDefaultPathCarry,
|
|
2045
|
+
summarizeReviewCompleteDefaultPathRun,
|
|
1962
2046
|
summarizeReviewHandoffRun,
|
|
1963
2047
|
runInteractionResultPackageHandoff,
|
|
1964
2048
|
runInteractionSpineProofHandoff,
|
package/server.js
CHANGED
|
@@ -567,6 +567,72 @@ async function routeRequest(req, res) {
|
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-path') {
|
|
571
|
+
try {
|
|
572
|
+
const body = await readJsonBody(req);
|
|
573
|
+
const result = proofSdk.summarizeReviewOperatingPath(body);
|
|
574
|
+
sendJson(res, 200, result);
|
|
575
|
+
} catch (error) {
|
|
576
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
577
|
+
}
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-path-carry') {
|
|
582
|
+
try {
|
|
583
|
+
const body = await readJsonBody(req);
|
|
584
|
+
const result = proofSdk.summarizeReviewOperatingPathCarry(body);
|
|
585
|
+
sendJson(res, 200, result);
|
|
586
|
+
} catch (error) {
|
|
587
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
588
|
+
}
|
|
589
|
+
return;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-path-run') {
|
|
593
|
+
try {
|
|
594
|
+
const body = await readJsonBody(req);
|
|
595
|
+
const result = proofSdk.summarizeReviewOperatingPathRun(body);
|
|
596
|
+
sendJson(res, 200, result);
|
|
597
|
+
} catch (error) {
|
|
598
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
599
|
+
}
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
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
|
+
|
|
570
636
|
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-run') {
|
|
571
637
|
try {
|
|
572
638
|
const body = await readJsonBody(req);
|