xoonya 1.22.0 → 1.24.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
|
@@ -162,6 +162,12 @@ Primary proof-model routes:
|
|
|
162
162
|
- `POST /v1/proof-center/result-package-handoff/review/operating-interface`
|
|
163
163
|
- `POST /v1/proof-center/result-package-handoff/review/operating-interface-carry`
|
|
164
164
|
- `POST /v1/proof-center/result-package-handoff/review/operating-interface-run`
|
|
165
|
+
- `POST /v1/proof-center/result-package-handoff/review/operating-integration`
|
|
166
|
+
- `POST /v1/proof-center/result-package-handoff/review/operating-integration-carry`
|
|
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`
|
|
165
171
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-run`
|
|
166
172
|
- `POST /v1/proof-center/result-package-handoff/run`
|
|
167
173
|
|
|
@@ -222,6 +228,24 @@ The current `1.22.0` line starts turning that adapter-stable operating contract
|
|
|
222
228
|
- clearer operating-interface ids across review, carry, and proof-native run posture
|
|
223
229
|
|
|
224
230
|
This is intended to make the proof-side continuation path easier to rely on operationally as a durable public interface instead of only a stable operating contract shape.
|
|
231
|
+
|
|
232
|
+
The current `1.23.0` line starts turning that adapter-reliable operating interface into a clearer adapter-integrable operating path:
|
|
233
|
+
|
|
234
|
+
- proof-side operating-integration posture on top of the operating-interface path
|
|
235
|
+
- compact operating-integration carry for direct integrable proof-side path carry
|
|
236
|
+
- proof-side operating-integration run posture for direct default proof-native integration posture
|
|
237
|
+
- clearer operating-integration ids across review, carry, and proof-native run posture
|
|
238
|
+
|
|
239
|
+
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.
|
|
240
|
+
|
|
241
|
+
The current `1.24.0` line starts turning that adapter-integrable operating path into a clearer adapter-ready default path:
|
|
242
|
+
|
|
243
|
+
- proof-side operating-path posture on top of the operating-integration path
|
|
244
|
+
- compact operating-path carry for direct default proof-side path carry
|
|
245
|
+
- proof-side operating-path run posture for direct default proof-native path posture
|
|
246
|
+
- clearer operating-path ids across review, carry, and proof-native run posture
|
|
247
|
+
|
|
248
|
+
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.
|
|
225
249
|
- `POST /v1/events/canonicalize`
|
|
226
250
|
- `POST /v1/events/hash`
|
|
227
251
|
- `POST /v1/receipts/emit`
|
package/package.json
CHANGED
package/proof_sdk.js
CHANGED
|
@@ -1831,6 +1831,84 @@ function summarizeReviewOperatingInterfaceRun(input) {
|
|
|
1831
1831
|
};
|
|
1832
1832
|
}
|
|
1833
1833
|
|
|
1834
|
+
function summarizeReviewOperatingIntegration(input) {
|
|
1835
|
+
const operatingInterface = summarizeReviewOperatingInterfaceRun(input);
|
|
1836
|
+
return {
|
|
1837
|
+
ok: operatingInterface.ok === true,
|
|
1838
|
+
operating_interface_ref: operatingInterface.operating_interface_ref || null,
|
|
1839
|
+
operating_integration_ref: operatingInterface.operating_interface_ref ? `integration.${operatingInterface.operating_interface_ref}` : null,
|
|
1840
|
+
accepted_operating_integration_ids: Array.isArray(operatingInterface.accepted_operating_interface_ids) ? operatingInterface.accepted_operating_interface_ids : [],
|
|
1841
|
+
adapter_integrable: operatingInterface.operating_interface_reliable_by_default === true,
|
|
1842
|
+
run_surface: operatingInterface.run_surface || null,
|
|
1843
|
+
run_path_ids: Array.isArray(operatingInterface.default_run_path_ids) ? operatingInterface.default_run_path_ids : []
|
|
1844
|
+
};
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
function summarizeReviewOperatingIntegrationCarry(input) {
|
|
1848
|
+
const operatingIntegration = summarizeReviewOperatingIntegration(input);
|
|
1849
|
+
return {
|
|
1850
|
+
ok: operatingIntegration.ok === true,
|
|
1851
|
+
operating_integration_ref: operatingIntegration.operating_integration_ref || null,
|
|
1852
|
+
accepted_operating_integration_ids: Array.isArray(operatingIntegration.accepted_operating_integration_ids) ? operatingIntegration.accepted_operating_integration_ids : [],
|
|
1853
|
+
operating_integration_carry: {
|
|
1854
|
+
run_surface: operatingIntegration.run_surface || null,
|
|
1855
|
+
run_path_ids: Array.isArray(operatingIntegration.run_path_ids) ? operatingIntegration.run_path_ids : []
|
|
1856
|
+
},
|
|
1857
|
+
adapter_integrable: operatingIntegration.adapter_integrable === true
|
|
1858
|
+
};
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
function summarizeReviewOperatingIntegrationRun(input) {
|
|
1862
|
+
const operatingIntegration = summarizeReviewOperatingIntegration(input);
|
|
1863
|
+
return {
|
|
1864
|
+
ok: operatingIntegration.ok === true,
|
|
1865
|
+
operating_integration_ref: operatingIntegration.operating_integration_ref || null,
|
|
1866
|
+
accepted_operating_integration_ids: Array.isArray(operatingIntegration.accepted_operating_integration_ids) ? operatingIntegration.accepted_operating_integration_ids : [],
|
|
1867
|
+
operating_integration_integrable_by_default: operatingIntegration.adapter_integrable === true,
|
|
1868
|
+
run_surface: operatingIntegration.run_surface || null,
|
|
1869
|
+
default_run_path_ids: Array.isArray(operatingIntegration.run_path_ids) ? operatingIntegration.run_path_ids : []
|
|
1870
|
+
};
|
|
1871
|
+
}
|
|
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
|
+
|
|
1834
1912
|
function runDefaultProofLoop(loopRef, input) {
|
|
1835
1913
|
const loop = getDefaultProofLoop(loopRef);
|
|
1836
1914
|
if (!loop) {
|
|
@@ -1917,6 +1995,12 @@ module.exports = {
|
|
|
1917
1995
|
summarizeReviewOperatingInterface,
|
|
1918
1996
|
summarizeReviewOperatingInterfaceCarry,
|
|
1919
1997
|
summarizeReviewOperatingInterfaceRun,
|
|
1998
|
+
summarizeReviewOperatingIntegration,
|
|
1999
|
+
summarizeReviewOperatingIntegrationCarry,
|
|
2000
|
+
summarizeReviewOperatingIntegrationRun,
|
|
2001
|
+
summarizeReviewOperatingPath,
|
|
2002
|
+
summarizeReviewOperatingPathCarry,
|
|
2003
|
+
summarizeReviewOperatingPathRun,
|
|
1920
2004
|
summarizeReviewHandoffRun,
|
|
1921
2005
|
runInteractionResultPackageHandoff,
|
|
1922
2006
|
runInteractionSpineProofHandoff,
|
package/server.js
CHANGED
|
@@ -534,6 +534,72 @@ async function routeRequest(req, res) {
|
|
|
534
534
|
return;
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-integration') {
|
|
538
|
+
try {
|
|
539
|
+
const body = await readJsonBody(req);
|
|
540
|
+
const result = proofSdk.summarizeReviewOperatingIntegration(body);
|
|
541
|
+
sendJson(res, 200, result);
|
|
542
|
+
} catch (error) {
|
|
543
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
544
|
+
}
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-integration-carry') {
|
|
549
|
+
try {
|
|
550
|
+
const body = await readJsonBody(req);
|
|
551
|
+
const result = proofSdk.summarizeReviewOperatingIntegrationCarry(body);
|
|
552
|
+
sendJson(res, 200, result);
|
|
553
|
+
} catch (error) {
|
|
554
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
555
|
+
}
|
|
556
|
+
return;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-integration-run') {
|
|
560
|
+
try {
|
|
561
|
+
const body = await readJsonBody(req);
|
|
562
|
+
const result = proofSdk.summarizeReviewOperatingIntegrationRun(body);
|
|
563
|
+
sendJson(res, 200, result);
|
|
564
|
+
} catch (error) {
|
|
565
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
566
|
+
}
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
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
|
+
|
|
537
603
|
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-run') {
|
|
538
604
|
try {
|
|
539
605
|
const body = await readJsonBody(req);
|