xoonya 1.17.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 +24 -0
- package/package.json +1 -1
- package/proof_sdk.js +84 -0
- package/server.js +66 -0
package/README.md
CHANGED
|
@@ -147,6 +147,12 @@ Primary proof-model routes:
|
|
|
147
147
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-intake`
|
|
148
148
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-intake-boundary`
|
|
149
149
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-intake-carry`
|
|
150
|
+
- `POST /v1/proof-center/result-package-handoff/review/handoff-package-intake`
|
|
151
|
+
- `POST /v1/proof-center/result-package-handoff/review/handoff-package-carry`
|
|
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`
|
|
150
156
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-run`
|
|
151
157
|
- `POST /v1/proof-center/result-package-handoff/run`
|
|
152
158
|
|
|
@@ -162,6 +168,24 @@ It now also exposes a handoff-continuity summary so the proof-side bridge can be
|
|
|
162
168
|
It now also exposes a handoff-intake summary and handoff-intake-boundary summary so that same handoff contract can be consumed more directly as a stable proof-native intake surface for future adapters without widening proof scope.
|
|
163
169
|
It now also exposes a handoff-intake-carry summary so the same proof-side intake surface can be reused more directly as compact consumable carry instead of only summary or boundary posture.
|
|
164
170
|
It now also exposes a handoff-run summary so that same handoff contract can be read directly as the final proof-native run posture instead of only as continuity guidance.
|
|
171
|
+
|
|
172
|
+
The current `1.18.0` line starts turning that adapter-consumable handoff surface into a clearer adapter-usable handoff package:
|
|
173
|
+
|
|
174
|
+
- proof-side handoff-package intake summaries on top of the intake surface
|
|
175
|
+
- proof-side handoff-package carry for compact usable package carry
|
|
176
|
+
- proof-side handoff-package run summaries for direct default run posture
|
|
177
|
+
- clearer handoff-package ids across intake, carry, and proof-native run posture
|
|
178
|
+
|
|
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.
|
|
165
189
|
- `POST /v1/events/canonicalize`
|
|
166
190
|
- `POST /v1/events/hash`
|
|
167
191
|
- `POST /v1/receipts/emit`
|
package/package.json
CHANGED
package/proof_sdk.js
CHANGED
|
@@ -1636,6 +1636,84 @@ function summarizeReviewHandoffIntakeCarry(input) {
|
|
|
1636
1636
|
};
|
|
1637
1637
|
}
|
|
1638
1638
|
|
|
1639
|
+
function summarizeReviewHandoffPackageIntake(input) {
|
|
1640
|
+
const intake = summarizeReviewHandoffIntake(input);
|
|
1641
|
+
return {
|
|
1642
|
+
ok: intake.ok === true,
|
|
1643
|
+
handoff_surface_ref: intake.handoff_surface_ref || null,
|
|
1644
|
+
handoff_package_ref: intake.handoff_surface_ref ? `package.${intake.handoff_surface_ref}` : null,
|
|
1645
|
+
stable_handoff_package_ids: Array.isArray(intake.stable_handoff_surface_ids) ? intake.stable_handoff_surface_ids : [],
|
|
1646
|
+
adapter_usable: intake.adapter_consumable === true,
|
|
1647
|
+
run_surface: intake.run_surface || null,
|
|
1648
|
+
intake_path_ids: Array.isArray(intake.intake_path_ids) ? intake.intake_path_ids : []
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
function summarizeReviewHandoffPackageCarry(input) {
|
|
1653
|
+
const handoffPackage = summarizeReviewHandoffPackageIntake(input);
|
|
1654
|
+
return {
|
|
1655
|
+
ok: handoffPackage.ok === true,
|
|
1656
|
+
handoff_package_ref: handoffPackage.handoff_package_ref || null,
|
|
1657
|
+
stable_handoff_package_ids: Array.isArray(handoffPackage.stable_handoff_package_ids) ? handoffPackage.stable_handoff_package_ids : [],
|
|
1658
|
+
usable_handoff_package_carry: {
|
|
1659
|
+
run_surface: handoffPackage.run_surface || null,
|
|
1660
|
+
intake_path_ids: Array.isArray(handoffPackage.intake_path_ids) ? handoffPackage.intake_path_ids : []
|
|
1661
|
+
},
|
|
1662
|
+
adapter_usable: handoffPackage.adapter_usable === true
|
|
1663
|
+
};
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
function summarizeReviewHandoffPackageRun(input) {
|
|
1667
|
+
const handoffPackage = summarizeReviewHandoffPackageIntake(input);
|
|
1668
|
+
return {
|
|
1669
|
+
ok: handoffPackage.ok === true,
|
|
1670
|
+
handoff_package_ref: handoffPackage.handoff_package_ref || null,
|
|
1671
|
+
accepted_handoff_package_ids: Array.isArray(handoffPackage.stable_handoff_package_ids) ? handoffPackage.stable_handoff_package_ids : [],
|
|
1672
|
+
adapter_usable: handoffPackage.adapter_usable === true,
|
|
1673
|
+
run_surface: handoffPackage.run_surface || null,
|
|
1674
|
+
run_path_ids: Array.isArray(handoffPackage.intake_path_ids) ? handoffPackage.intake_path_ids : []
|
|
1675
|
+
};
|
|
1676
|
+
}
|
|
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
|
+
|
|
1639
1717
|
function runDefaultProofLoop(loopRef, input) {
|
|
1640
1718
|
const loop = getDefaultProofLoop(loopRef);
|
|
1641
1719
|
if (!loop) {
|
|
@@ -1707,6 +1785,12 @@ module.exports = {
|
|
|
1707
1785
|
summarizeReviewHandoffIntake,
|
|
1708
1786
|
summarizeReviewHandoffIntakeBoundary,
|
|
1709
1787
|
summarizeReviewHandoffIntakeCarry,
|
|
1788
|
+
summarizeReviewHandoffPackageIntake,
|
|
1789
|
+
summarizeReviewHandoffPackageCarry,
|
|
1790
|
+
summarizeReviewHandoffPackageRun,
|
|
1791
|
+
summarizeReviewExecutionPackage,
|
|
1792
|
+
summarizeReviewExecutionPackageCarry,
|
|
1793
|
+
summarizeReviewExecutionPackageRun,
|
|
1710
1794
|
summarizeReviewHandoffRun,
|
|
1711
1795
|
runInteractionResultPackageHandoff,
|
|
1712
1796
|
runInteractionSpineProofHandoff,
|
package/server.js
CHANGED
|
@@ -369,6 +369,72 @@ async function routeRequest(req, res) {
|
|
|
369
369
|
return;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-package-intake') {
|
|
373
|
+
try {
|
|
374
|
+
const body = await readJsonBody(req);
|
|
375
|
+
const result = proofSdk.summarizeReviewHandoffPackageIntake(body);
|
|
376
|
+
sendJson(res, 200, result);
|
|
377
|
+
} catch (error) {
|
|
378
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
379
|
+
}
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-package-carry') {
|
|
384
|
+
try {
|
|
385
|
+
const body = await readJsonBody(req);
|
|
386
|
+
const result = proofSdk.summarizeReviewHandoffPackageCarry(body);
|
|
387
|
+
sendJson(res, 200, result);
|
|
388
|
+
} catch (error) {
|
|
389
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
390
|
+
}
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-package-run') {
|
|
395
|
+
try {
|
|
396
|
+
const body = await readJsonBody(req);
|
|
397
|
+
const result = proofSdk.summarizeReviewHandoffPackageRun(body);
|
|
398
|
+
sendJson(res, 200, result);
|
|
399
|
+
} catch (error) {
|
|
400
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
401
|
+
}
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
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
|
+
|
|
372
438
|
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-run') {
|
|
373
439
|
try {
|
|
374
440
|
const body = await readJsonBody(req);
|