xoonya 1.18.0 → 1.19.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 +12 -0
- package/package.json +1 -1
- package/proof_sdk.js +42 -0
- package/server.js +33 -0
package/README.md
CHANGED
|
@@ -150,6 +150,9 @@ 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`
|
|
153
156
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-run`
|
|
154
157
|
- `POST /v1/proof-center/result-package-handoff/run`
|
|
155
158
|
|
|
@@ -174,6 +177,15 @@ The current `1.18.0` line starts turning that adapter-consumable handoff surface
|
|
|
174
177
|
- clearer handoff-package ids across intake, carry, and proof-native run posture
|
|
175
178
|
|
|
176
179
|
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.
|
|
180
|
+
|
|
181
|
+
The current `1.19.0` line starts turning that adapter-usable handoff package into a clearer adapter-ready execution package:
|
|
182
|
+
|
|
183
|
+
- proof-side execution-package posture on top of the handoff-package path
|
|
184
|
+
- compact execution-package carry for direct execution-ready posture
|
|
185
|
+
- proof-side execution-package run posture for direct default proof-native run carry
|
|
186
|
+
- clearer execution-package ids across package review, carry, and proof-native run posture
|
|
187
|
+
|
|
188
|
+
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.
|
|
177
189
|
- `POST /v1/events/canonicalize`
|
|
178
190
|
- `POST /v1/events/hash`
|
|
179
191
|
- `POST /v1/receipts/emit`
|
package/package.json
CHANGED
package/proof_sdk.js
CHANGED
|
@@ -1675,6 +1675,45 @@ 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
|
+
|
|
1678
1717
|
function runDefaultProofLoop(loopRef, input) {
|
|
1679
1718
|
const loop = getDefaultProofLoop(loopRef);
|
|
1680
1719
|
if (!loop) {
|
|
@@ -1749,6 +1788,9 @@ module.exports = {
|
|
|
1749
1788
|
summarizeReviewHandoffPackageIntake,
|
|
1750
1789
|
summarizeReviewHandoffPackageCarry,
|
|
1751
1790
|
summarizeReviewHandoffPackageRun,
|
|
1791
|
+
summarizeReviewExecutionPackage,
|
|
1792
|
+
summarizeReviewExecutionPackageCarry,
|
|
1793
|
+
summarizeReviewExecutionPackageRun,
|
|
1752
1794
|
summarizeReviewHandoffRun,
|
|
1753
1795
|
runInteractionResultPackageHandoff,
|
|
1754
1796
|
runInteractionSpineProofHandoff,
|
package/server.js
CHANGED
|
@@ -402,6 +402,39 @@ 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
|
+
|
|
405
438
|
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-run') {
|
|
406
439
|
try {
|
|
407
440
|
const body = await readJsonBody(req);
|