xoonya 1.19.0 → 1.21.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
|
@@ -153,6 +153,12 @@ Primary proof-model routes:
|
|
|
153
153
|
- `POST /v1/proof-center/result-package-handoff/review/execution-package`
|
|
154
154
|
- `POST /v1/proof-center/result-package-handoff/review/execution-package-carry`
|
|
155
155
|
- `POST /v1/proof-center/result-package-handoff/review/execution-package-run`
|
|
156
|
+
- `POST /v1/proof-center/result-package-handoff/review/execution-contract`
|
|
157
|
+
- `POST /v1/proof-center/result-package-handoff/review/execution-contract-carry`
|
|
158
|
+
- `POST /v1/proof-center/result-package-handoff/review/execution-contract-run`
|
|
159
|
+
- `POST /v1/proof-center/result-package-handoff/review/operating-contract`
|
|
160
|
+
- `POST /v1/proof-center/result-package-handoff/review/operating-contract-carry`
|
|
161
|
+
- `POST /v1/proof-center/result-package-handoff/review/operating-contract-run`
|
|
156
162
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-run`
|
|
157
163
|
- `POST /v1/proof-center/result-package-handoff/run`
|
|
158
164
|
|
|
@@ -186,6 +192,24 @@ The current `1.19.0` line starts turning that adapter-usable handoff package int
|
|
|
186
192
|
- clearer execution-package ids across package review, carry, and proof-native run posture
|
|
187
193
|
|
|
188
194
|
This is intended to make the proof-side continuation path easier to execute against directly as a stable public package instead of only a package posture.
|
|
195
|
+
|
|
196
|
+
The current `1.20.0` line starts turning that adapter-ready execution package into a clearer adapter-operable execution contract:
|
|
197
|
+
|
|
198
|
+
- proof-side execution-contract posture on top of the execution-package path
|
|
199
|
+
- compact execution-contract carry for direct operable proof-side carry
|
|
200
|
+
- proof-side execution-contract run posture for direct default proof-native operation carry
|
|
201
|
+
- clearer execution-contract ids across review, carry, and proof-native run posture
|
|
202
|
+
|
|
203
|
+
This is intended to make the proof-side continuation path easier to operate against repeatedly as a stable public contract instead of only a package that is execution-ready by posture.
|
|
204
|
+
|
|
205
|
+
The current `1.21.0` line starts turning that adapter-operable execution contract into a clearer adapter-stable operating contract:
|
|
206
|
+
|
|
207
|
+
- proof-side operating-contract posture on top of the execution-contract path
|
|
208
|
+
- compact operating-contract carry for direct stable proof-side operating carry
|
|
209
|
+
- proof-side operating-contract run posture for direct default proof-native operating posture
|
|
210
|
+
- clearer operating-contract ids across review, carry, and proof-native run posture
|
|
211
|
+
|
|
212
|
+
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.
|
|
189
213
|
- `POST /v1/events/canonicalize`
|
|
190
214
|
- `POST /v1/events/hash`
|
|
191
215
|
- `POST /v1/receipts/emit`
|
package/package.json
CHANGED
package/proof_sdk.js
CHANGED
|
@@ -1714,6 +1714,84 @@ function summarizeReviewExecutionPackageRun(input) {
|
|
|
1714
1714
|
};
|
|
1715
1715
|
}
|
|
1716
1716
|
|
|
1717
|
+
function summarizeReviewExecutionContract(input) {
|
|
1718
|
+
const executionPackage = summarizeReviewExecutionPackageRun(input);
|
|
1719
|
+
return {
|
|
1720
|
+
ok: executionPackage.ok === true,
|
|
1721
|
+
execution_package_ref: executionPackage.execution_package_ref || null,
|
|
1722
|
+
execution_contract_ref: executionPackage.execution_package_ref ? `contract.${executionPackage.execution_package_ref}` : null,
|
|
1723
|
+
accepted_execution_contract_ids: Array.isArray(executionPackage.accepted_execution_package_ids) ? executionPackage.accepted_execution_package_ids : [],
|
|
1724
|
+
adapter_operable: executionPackage.execution_ready_by_default === true,
|
|
1725
|
+
run_surface: executionPackage.run_surface || null,
|
|
1726
|
+
run_path_ids: Array.isArray(executionPackage.default_run_path_ids) ? executionPackage.default_run_path_ids : []
|
|
1727
|
+
};
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
function summarizeReviewExecutionContractCarry(input) {
|
|
1731
|
+
const executionContract = summarizeReviewExecutionContract(input);
|
|
1732
|
+
return {
|
|
1733
|
+
ok: executionContract.ok === true,
|
|
1734
|
+
execution_contract_ref: executionContract.execution_contract_ref || null,
|
|
1735
|
+
accepted_execution_contract_ids: Array.isArray(executionContract.accepted_execution_contract_ids) ? executionContract.accepted_execution_contract_ids : [],
|
|
1736
|
+
execution_contract_carry: {
|
|
1737
|
+
run_surface: executionContract.run_surface || null,
|
|
1738
|
+
run_path_ids: Array.isArray(executionContract.run_path_ids) ? executionContract.run_path_ids : []
|
|
1739
|
+
},
|
|
1740
|
+
adapter_operable: executionContract.adapter_operable === true
|
|
1741
|
+
};
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
function summarizeReviewExecutionContractRun(input) {
|
|
1745
|
+
const executionContract = summarizeReviewExecutionContract(input);
|
|
1746
|
+
return {
|
|
1747
|
+
ok: executionContract.ok === true,
|
|
1748
|
+
execution_contract_ref: executionContract.execution_contract_ref || null,
|
|
1749
|
+
accepted_execution_contract_ids: Array.isArray(executionContract.accepted_execution_contract_ids) ? executionContract.accepted_execution_contract_ids : [],
|
|
1750
|
+
execution_operable_by_default: executionContract.adapter_operable === true,
|
|
1751
|
+
run_surface: executionContract.run_surface || null,
|
|
1752
|
+
default_run_path_ids: Array.isArray(executionContract.run_path_ids) ? executionContract.run_path_ids : []
|
|
1753
|
+
};
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
function summarizeReviewOperatingContract(input) {
|
|
1757
|
+
const executionContract = summarizeReviewExecutionContractRun(input);
|
|
1758
|
+
return {
|
|
1759
|
+
ok: executionContract.ok === true,
|
|
1760
|
+
execution_contract_ref: executionContract.execution_contract_ref || null,
|
|
1761
|
+
operating_contract_ref: executionContract.execution_contract_ref ? `operating.${executionContract.execution_contract_ref}` : null,
|
|
1762
|
+
accepted_operating_contract_ids: Array.isArray(executionContract.accepted_execution_contract_ids) ? executionContract.accepted_execution_contract_ids : [],
|
|
1763
|
+
adapter_stable: executionContract.execution_operable_by_default === true,
|
|
1764
|
+
run_surface: executionContract.run_surface || null,
|
|
1765
|
+
run_path_ids: Array.isArray(executionContract.default_run_path_ids) ? executionContract.default_run_path_ids : []
|
|
1766
|
+
};
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
function summarizeReviewOperatingContractCarry(input) {
|
|
1770
|
+
const operatingContract = summarizeReviewOperatingContract(input);
|
|
1771
|
+
return {
|
|
1772
|
+
ok: operatingContract.ok === true,
|
|
1773
|
+
operating_contract_ref: operatingContract.operating_contract_ref || null,
|
|
1774
|
+
accepted_operating_contract_ids: Array.isArray(operatingContract.accepted_operating_contract_ids) ? operatingContract.accepted_operating_contract_ids : [],
|
|
1775
|
+
operating_contract_carry: {
|
|
1776
|
+
run_surface: operatingContract.run_surface || null,
|
|
1777
|
+
run_path_ids: Array.isArray(operatingContract.run_path_ids) ? operatingContract.run_path_ids : []
|
|
1778
|
+
},
|
|
1779
|
+
adapter_stable: operatingContract.adapter_stable === true
|
|
1780
|
+
};
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
function summarizeReviewOperatingContractRun(input) {
|
|
1784
|
+
const operatingContract = summarizeReviewOperatingContract(input);
|
|
1785
|
+
return {
|
|
1786
|
+
ok: operatingContract.ok === true,
|
|
1787
|
+
operating_contract_ref: operatingContract.operating_contract_ref || null,
|
|
1788
|
+
accepted_operating_contract_ids: Array.isArray(operatingContract.accepted_operating_contract_ids) ? operatingContract.accepted_operating_contract_ids : [],
|
|
1789
|
+
operating_stable_by_default: operatingContract.adapter_stable === true,
|
|
1790
|
+
run_surface: operatingContract.run_surface || null,
|
|
1791
|
+
default_run_path_ids: Array.isArray(operatingContract.run_path_ids) ? operatingContract.run_path_ids : []
|
|
1792
|
+
};
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1717
1795
|
function runDefaultProofLoop(loopRef, input) {
|
|
1718
1796
|
const loop = getDefaultProofLoop(loopRef);
|
|
1719
1797
|
if (!loop) {
|
|
@@ -1791,6 +1869,12 @@ module.exports = {
|
|
|
1791
1869
|
summarizeReviewExecutionPackage,
|
|
1792
1870
|
summarizeReviewExecutionPackageCarry,
|
|
1793
1871
|
summarizeReviewExecutionPackageRun,
|
|
1872
|
+
summarizeReviewExecutionContract,
|
|
1873
|
+
summarizeReviewExecutionContractCarry,
|
|
1874
|
+
summarizeReviewExecutionContractRun,
|
|
1875
|
+
summarizeReviewOperatingContract,
|
|
1876
|
+
summarizeReviewOperatingContractCarry,
|
|
1877
|
+
summarizeReviewOperatingContractRun,
|
|
1794
1878
|
summarizeReviewHandoffRun,
|
|
1795
1879
|
runInteractionResultPackageHandoff,
|
|
1796
1880
|
runInteractionSpineProofHandoff,
|
package/server.js
CHANGED
|
@@ -435,6 +435,72 @@ async function routeRequest(req, res) {
|
|
|
435
435
|
return;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/execution-contract') {
|
|
439
|
+
try {
|
|
440
|
+
const body = await readJsonBody(req);
|
|
441
|
+
const result = proofSdk.summarizeReviewExecutionContract(body);
|
|
442
|
+
sendJson(res, 200, result);
|
|
443
|
+
} catch (error) {
|
|
444
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
445
|
+
}
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/execution-contract-carry') {
|
|
450
|
+
try {
|
|
451
|
+
const body = await readJsonBody(req);
|
|
452
|
+
const result = proofSdk.summarizeReviewExecutionContractCarry(body);
|
|
453
|
+
sendJson(res, 200, result);
|
|
454
|
+
} catch (error) {
|
|
455
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
456
|
+
}
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/execution-contract-run') {
|
|
461
|
+
try {
|
|
462
|
+
const body = await readJsonBody(req);
|
|
463
|
+
const result = proofSdk.summarizeReviewExecutionContractRun(body);
|
|
464
|
+
sendJson(res, 200, result);
|
|
465
|
+
} catch (error) {
|
|
466
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
467
|
+
}
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-contract') {
|
|
472
|
+
try {
|
|
473
|
+
const body = await readJsonBody(req);
|
|
474
|
+
const result = proofSdk.summarizeReviewOperatingContract(body);
|
|
475
|
+
sendJson(res, 200, result);
|
|
476
|
+
} catch (error) {
|
|
477
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
478
|
+
}
|
|
479
|
+
return;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-contract-carry') {
|
|
483
|
+
try {
|
|
484
|
+
const body = await readJsonBody(req);
|
|
485
|
+
const result = proofSdk.summarizeReviewOperatingContractCarry(body);
|
|
486
|
+
sendJson(res, 200, result);
|
|
487
|
+
} catch (error) {
|
|
488
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
489
|
+
}
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/operating-contract-run') {
|
|
494
|
+
try {
|
|
495
|
+
const body = await readJsonBody(req);
|
|
496
|
+
const result = proofSdk.summarizeReviewOperatingContractRun(body);
|
|
497
|
+
sendJson(res, 200, result);
|
|
498
|
+
} catch (error) {
|
|
499
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
500
|
+
}
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
|
|
438
504
|
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-run') {
|
|
439
505
|
try {
|
|
440
506
|
const body = await readJsonBody(req);
|