xoonya 1.18.0 → 1.20.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
|
@@ -150,6 +150,12 @@ Primary proof-model routes:
|
|
|
150
150
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-package-intake`
|
|
151
151
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-package-carry`
|
|
152
152
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-package-run`
|
|
153
|
+
- `POST /v1/proof-center/result-package-handoff/review/execution-package`
|
|
154
|
+
- `POST /v1/proof-center/result-package-handoff/review/execution-package-carry`
|
|
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`
|
|
153
159
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-run`
|
|
154
160
|
- `POST /v1/proof-center/result-package-handoff/run`
|
|
155
161
|
|
|
@@ -174,6 +180,24 @@ The current `1.18.0` line starts turning that adapter-consumable handoff surface
|
|
|
174
180
|
- clearer handoff-package ids across intake, carry, and proof-native run posture
|
|
175
181
|
|
|
176
182
|
This is intended to make the proof-side continuation path easier to use directly as a stable public handoff package instead of only a proof-native intake surface.
|
|
183
|
+
|
|
184
|
+
The current `1.19.0` line starts turning that adapter-usable handoff package into a clearer adapter-ready execution package:
|
|
185
|
+
|
|
186
|
+
- proof-side execution-package posture on top of the handoff-package path
|
|
187
|
+
- compact execution-package carry for direct execution-ready posture
|
|
188
|
+
- proof-side execution-package run posture for direct default proof-native run carry
|
|
189
|
+
- clearer execution-package ids across package review, carry, and proof-native run posture
|
|
190
|
+
|
|
191
|
+
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.
|
|
192
|
+
|
|
193
|
+
The current `1.20.0` line starts turning that adapter-ready execution package into a clearer adapter-operable execution contract:
|
|
194
|
+
|
|
195
|
+
- proof-side execution-contract posture on top of the execution-package path
|
|
196
|
+
- compact execution-contract carry for direct operable proof-side carry
|
|
197
|
+
- proof-side execution-contract run posture for direct default proof-native operation carry
|
|
198
|
+
- clearer execution-contract ids across review, carry, and proof-native run posture
|
|
199
|
+
|
|
200
|
+
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.
|
|
177
201
|
- `POST /v1/events/canonicalize`
|
|
178
202
|
- `POST /v1/events/hash`
|
|
179
203
|
- `POST /v1/receipts/emit`
|
package/package.json
CHANGED
package/proof_sdk.js
CHANGED
|
@@ -1675,6 +1675,84 @@ function summarizeReviewHandoffPackageRun(input) {
|
|
|
1675
1675
|
};
|
|
1676
1676
|
}
|
|
1677
1677
|
|
|
1678
|
+
function summarizeReviewExecutionPackage(input) {
|
|
1679
|
+
const handoffPackage = summarizeReviewHandoffPackageRun(input);
|
|
1680
|
+
return {
|
|
1681
|
+
ok: handoffPackage.ok === true,
|
|
1682
|
+
handoff_package_ref: handoffPackage.handoff_package_ref || null,
|
|
1683
|
+
execution_package_ref: handoffPackage.handoff_package_ref ? `execution.${handoffPackage.handoff_package_ref}` : null,
|
|
1684
|
+
accepted_execution_package_ids: Array.isArray(handoffPackage.accepted_handoff_package_ids) ? handoffPackage.accepted_handoff_package_ids : [],
|
|
1685
|
+
adapter_ready: handoffPackage.adapter_usable === true,
|
|
1686
|
+
run_surface: handoffPackage.run_surface || null,
|
|
1687
|
+
run_path_ids: Array.isArray(handoffPackage.run_path_ids) ? handoffPackage.run_path_ids : []
|
|
1688
|
+
};
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
function summarizeReviewExecutionPackageCarry(input) {
|
|
1692
|
+
const executionPackage = summarizeReviewExecutionPackage(input);
|
|
1693
|
+
return {
|
|
1694
|
+
ok: executionPackage.ok === true,
|
|
1695
|
+
execution_package_ref: executionPackage.execution_package_ref || null,
|
|
1696
|
+
accepted_execution_package_ids: Array.isArray(executionPackage.accepted_execution_package_ids) ? executionPackage.accepted_execution_package_ids : [],
|
|
1697
|
+
execution_package_carry: {
|
|
1698
|
+
run_surface: executionPackage.run_surface || null,
|
|
1699
|
+
run_path_ids: Array.isArray(executionPackage.run_path_ids) ? executionPackage.run_path_ids : []
|
|
1700
|
+
},
|
|
1701
|
+
adapter_ready: executionPackage.adapter_ready === true
|
|
1702
|
+
};
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
function summarizeReviewExecutionPackageRun(input) {
|
|
1706
|
+
const executionPackage = summarizeReviewExecutionPackage(input);
|
|
1707
|
+
return {
|
|
1708
|
+
ok: executionPackage.ok === true,
|
|
1709
|
+
execution_package_ref: executionPackage.execution_package_ref || null,
|
|
1710
|
+
accepted_execution_package_ids: Array.isArray(executionPackage.accepted_execution_package_ids) ? executionPackage.accepted_execution_package_ids : [],
|
|
1711
|
+
execution_ready_by_default: executionPackage.adapter_ready === true,
|
|
1712
|
+
run_surface: executionPackage.run_surface || null,
|
|
1713
|
+
default_run_path_ids: Array.isArray(executionPackage.run_path_ids) ? executionPackage.run_path_ids : []
|
|
1714
|
+
};
|
|
1715
|
+
}
|
|
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
|
+
|
|
1678
1756
|
function runDefaultProofLoop(loopRef, input) {
|
|
1679
1757
|
const loop = getDefaultProofLoop(loopRef);
|
|
1680
1758
|
if (!loop) {
|
|
@@ -1749,6 +1827,12 @@ module.exports = {
|
|
|
1749
1827
|
summarizeReviewHandoffPackageIntake,
|
|
1750
1828
|
summarizeReviewHandoffPackageCarry,
|
|
1751
1829
|
summarizeReviewHandoffPackageRun,
|
|
1830
|
+
summarizeReviewExecutionPackage,
|
|
1831
|
+
summarizeReviewExecutionPackageCarry,
|
|
1832
|
+
summarizeReviewExecutionPackageRun,
|
|
1833
|
+
summarizeReviewExecutionContract,
|
|
1834
|
+
summarizeReviewExecutionContractCarry,
|
|
1835
|
+
summarizeReviewExecutionContractRun,
|
|
1752
1836
|
summarizeReviewHandoffRun,
|
|
1753
1837
|
runInteractionResultPackageHandoff,
|
|
1754
1838
|
runInteractionSpineProofHandoff,
|
package/server.js
CHANGED
|
@@ -402,6 +402,72 @@ async function routeRequest(req, res) {
|
|
|
402
402
|
return;
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/execution-package') {
|
|
406
|
+
try {
|
|
407
|
+
const body = await readJsonBody(req);
|
|
408
|
+
const result = proofSdk.summarizeReviewExecutionPackage(body);
|
|
409
|
+
sendJson(res, 200, result);
|
|
410
|
+
} catch (error) {
|
|
411
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
412
|
+
}
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/execution-package-carry') {
|
|
417
|
+
try {
|
|
418
|
+
const body = await readJsonBody(req);
|
|
419
|
+
const result = proofSdk.summarizeReviewExecutionPackageCarry(body);
|
|
420
|
+
sendJson(res, 200, result);
|
|
421
|
+
} catch (error) {
|
|
422
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
423
|
+
}
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/execution-package-run') {
|
|
428
|
+
try {
|
|
429
|
+
const body = await readJsonBody(req);
|
|
430
|
+
const result = proofSdk.summarizeReviewExecutionPackageRun(body);
|
|
431
|
+
sendJson(res, 200, result);
|
|
432
|
+
} catch (error) {
|
|
433
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
434
|
+
}
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
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
|
+
|
|
405
471
|
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-run') {
|
|
406
472
|
try {
|
|
407
473
|
const body = await readJsonBody(req);
|