xoonya 1.21.0 → 1.23.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
|
@@ -159,6 +159,12 @@ Primary proof-model routes:
|
|
|
159
159
|
- `POST /v1/proof-center/result-package-handoff/review/operating-contract`
|
|
160
160
|
- `POST /v1/proof-center/result-package-handoff/review/operating-contract-carry`
|
|
161
161
|
- `POST /v1/proof-center/result-package-handoff/review/operating-contract-run`
|
|
162
|
+
- `POST /v1/proof-center/result-package-handoff/review/operating-interface`
|
|
163
|
+
- `POST /v1/proof-center/result-package-handoff/review/operating-interface-carry`
|
|
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`
|
|
162
168
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-run`
|
|
163
169
|
- `POST /v1/proof-center/result-package-handoff/run`
|
|
164
170
|
|
|
@@ -210,6 +216,24 @@ The current `1.21.0` line starts turning that adapter-operable execution contrac
|
|
|
210
216
|
- clearer operating-contract ids across review, carry, and proof-native run posture
|
|
211
217
|
|
|
212
218
|
This is intended to make the proof-side continuation path easier to depend on repeatedly as a durable public operating contract instead of only a contract that is operable in the moment.
|
|
219
|
+
|
|
220
|
+
The current `1.22.0` line starts turning that adapter-stable operating contract into a clearer adapter-reliable operating interface:
|
|
221
|
+
|
|
222
|
+
- proof-side operating-interface posture on top of the operating-contract path
|
|
223
|
+
- compact operating-interface carry for direct reliable proof-side interface carry
|
|
224
|
+
- proof-side operating-interface run posture for direct default proof-native reliable posture
|
|
225
|
+
- clearer operating-interface ids across review, carry, and proof-native run posture
|
|
226
|
+
|
|
227
|
+
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.
|
|
228
|
+
|
|
229
|
+
The current `1.23.0` line starts turning that adapter-reliable operating interface into a clearer adapter-integrable operating path:
|
|
230
|
+
|
|
231
|
+
- proof-side operating-integration posture on top of the operating-interface path
|
|
232
|
+
- compact operating-integration carry for direct integrable proof-side path carry
|
|
233
|
+
- proof-side operating-integration run posture for direct default proof-native integration posture
|
|
234
|
+
- clearer operating-integration ids across review, carry, and proof-native run posture
|
|
235
|
+
|
|
236
|
+
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.
|
|
213
237
|
- `POST /v1/events/canonicalize`
|
|
214
238
|
- `POST /v1/events/hash`
|
|
215
239
|
- `POST /v1/receipts/emit`
|
package/package.json
CHANGED
package/proof_sdk.js
CHANGED
|
@@ -1792,6 +1792,84 @@ function summarizeReviewOperatingContractRun(input) {
|
|
|
1792
1792
|
};
|
|
1793
1793
|
}
|
|
1794
1794
|
|
|
1795
|
+
function summarizeReviewOperatingInterface(input) {
|
|
1796
|
+
const operatingContract = summarizeReviewOperatingContractRun(input);
|
|
1797
|
+
return {
|
|
1798
|
+
ok: operatingContract.ok === true,
|
|
1799
|
+
operating_contract_ref: operatingContract.operating_contract_ref || null,
|
|
1800
|
+
operating_interface_ref: operatingContract.operating_contract_ref ? `interface.${operatingContract.operating_contract_ref}` : null,
|
|
1801
|
+
accepted_operating_interface_ids: Array.isArray(operatingContract.accepted_operating_contract_ids) ? operatingContract.accepted_operating_contract_ids : [],
|
|
1802
|
+
adapter_reliable: operatingContract.operating_stable_by_default === true,
|
|
1803
|
+
run_surface: operatingContract.run_surface || null,
|
|
1804
|
+
run_path_ids: Array.isArray(operatingContract.default_run_path_ids) ? operatingContract.default_run_path_ids : []
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
function summarizeReviewOperatingInterfaceCarry(input) {
|
|
1809
|
+
const operatingInterface = summarizeReviewOperatingInterface(input);
|
|
1810
|
+
return {
|
|
1811
|
+
ok: operatingInterface.ok === true,
|
|
1812
|
+
operating_interface_ref: operatingInterface.operating_interface_ref || null,
|
|
1813
|
+
accepted_operating_interface_ids: Array.isArray(operatingInterface.accepted_operating_interface_ids) ? operatingInterface.accepted_operating_interface_ids : [],
|
|
1814
|
+
operating_interface_carry: {
|
|
1815
|
+
run_surface: operatingInterface.run_surface || null,
|
|
1816
|
+
run_path_ids: Array.isArray(operatingInterface.run_path_ids) ? operatingInterface.run_path_ids : []
|
|
1817
|
+
},
|
|
1818
|
+
adapter_reliable: operatingInterface.adapter_reliable === true
|
|
1819
|
+
};
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
function summarizeReviewOperatingInterfaceRun(input) {
|
|
1823
|
+
const operatingInterface = summarizeReviewOperatingInterface(input);
|
|
1824
|
+
return {
|
|
1825
|
+
ok: operatingInterface.ok === true,
|
|
1826
|
+
operating_interface_ref: operatingInterface.operating_interface_ref || null,
|
|
1827
|
+
accepted_operating_interface_ids: Array.isArray(operatingInterface.accepted_operating_interface_ids) ? operatingInterface.accepted_operating_interface_ids : [],
|
|
1828
|
+
operating_interface_reliable_by_default: operatingInterface.adapter_reliable === true,
|
|
1829
|
+
run_surface: operatingInterface.run_surface || null,
|
|
1830
|
+
default_run_path_ids: Array.isArray(operatingInterface.run_path_ids) ? operatingInterface.run_path_ids : []
|
|
1831
|
+
};
|
|
1832
|
+
}
|
|
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
|
+
|
|
1795
1873
|
function runDefaultProofLoop(loopRef, input) {
|
|
1796
1874
|
const loop = getDefaultProofLoop(loopRef);
|
|
1797
1875
|
if (!loop) {
|
|
@@ -1875,6 +1953,12 @@ module.exports = {
|
|
|
1875
1953
|
summarizeReviewOperatingContract,
|
|
1876
1954
|
summarizeReviewOperatingContractCarry,
|
|
1877
1955
|
summarizeReviewOperatingContractRun,
|
|
1956
|
+
summarizeReviewOperatingInterface,
|
|
1957
|
+
summarizeReviewOperatingInterfaceCarry,
|
|
1958
|
+
summarizeReviewOperatingInterfaceRun,
|
|
1959
|
+
summarizeReviewOperatingIntegration,
|
|
1960
|
+
summarizeReviewOperatingIntegrationCarry,
|
|
1961
|
+
summarizeReviewOperatingIntegrationRun,
|
|
1878
1962
|
summarizeReviewHandoffRun,
|
|
1879
1963
|
runInteractionResultPackageHandoff,
|
|
1880
1964
|
runInteractionSpineProofHandoff,
|
package/server.js
CHANGED
|
@@ -501,6 +501,72 @@ async function routeRequest(req, res) {
|
|
|
501
501
|
return;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-interface') {
|
|
505
|
+
try {
|
|
506
|
+
const body = await readJsonBody(req);
|
|
507
|
+
const result = proofSdk.summarizeReviewOperatingInterface(body);
|
|
508
|
+
sendJson(res, 200, result);
|
|
509
|
+
} catch (error) {
|
|
510
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
511
|
+
}
|
|
512
|
+
return;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-interface-carry') {
|
|
516
|
+
try {
|
|
517
|
+
const body = await readJsonBody(req);
|
|
518
|
+
const result = proofSdk.summarizeReviewOperatingInterfaceCarry(body);
|
|
519
|
+
sendJson(res, 200, result);
|
|
520
|
+
} catch (error) {
|
|
521
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
522
|
+
}
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-interface-run') {
|
|
527
|
+
try {
|
|
528
|
+
const body = await readJsonBody(req);
|
|
529
|
+
const result = proofSdk.summarizeReviewOperatingInterfaceRun(body);
|
|
530
|
+
sendJson(res, 200, result);
|
|
531
|
+
} catch (error) {
|
|
532
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
533
|
+
}
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
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
|
+
|
|
504
570
|
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-run') {
|
|
505
571
|
try {
|
|
506
572
|
const body = await readJsonBody(req);
|