xoonya 1.16.0 → 1.18.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 +17 -0
- package/package.json +1 -1
- package/proof_sdk.js +84 -0
- package/server.js +66 -0
package/README.md
CHANGED
|
@@ -144,6 +144,12 @@ Primary proof-model routes:
|
|
|
144
144
|
- `POST /v1/proof-center/result-package-handoff/review/bridge-carry`
|
|
145
145
|
- `POST /v1/proof-center/result-package-handoff/review/bridge-run`
|
|
146
146
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-continuity`
|
|
147
|
+
- `POST /v1/proof-center/result-package-handoff/review/handoff-intake`
|
|
148
|
+
- `POST /v1/proof-center/result-package-handoff/review/handoff-intake-boundary`
|
|
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`
|
|
147
153
|
- `POST /v1/proof-center/result-package-handoff/review/handoff-run`
|
|
148
154
|
- `POST /v1/proof-center/result-package-handoff/run`
|
|
149
155
|
|
|
@@ -156,7 +162,18 @@ It now also exposes compact contract-carry summaries so the stable proof-side co
|
|
|
156
162
|
It now also exposes bridge summaries, bridge-boundary summaries, and bridge-carry summaries so the proof-side review seam is easier to treat as an adapter-ready bridge without widening proof scope.
|
|
157
163
|
It now also exposes a bridge-run summary so that same proof-side bridge can be read directly as the final run posture instead of only as review-stage carry.
|
|
158
164
|
It now also exposes a handoff-continuity summary so the proof-side bridge can be treated more clearly as a stable handoff contract into proof-native execution.
|
|
165
|
+
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.
|
|
166
|
+
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.
|
|
159
167
|
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.
|
|
168
|
+
|
|
169
|
+
The current `1.18.0` line starts turning that adapter-consumable handoff surface into a clearer adapter-usable handoff package:
|
|
170
|
+
|
|
171
|
+
- proof-side handoff-package intake summaries on top of the intake surface
|
|
172
|
+
- proof-side handoff-package carry for compact usable package carry
|
|
173
|
+
- proof-side handoff-package run summaries for direct default run posture
|
|
174
|
+
- clearer handoff-package ids across intake, carry, and proof-native run posture
|
|
175
|
+
|
|
176
|
+
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.
|
|
160
177
|
- `POST /v1/events/canonicalize`
|
|
161
178
|
- `POST /v1/events/hash`
|
|
162
179
|
- `POST /v1/receipts/emit`
|
package/package.json
CHANGED
package/proof_sdk.js
CHANGED
|
@@ -1597,6 +1597,84 @@ function summarizeReviewHandoffRun(input) {
|
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
1600
|
+
function summarizeReviewHandoffIntake(input) {
|
|
1601
|
+
const continuity = summarizeReviewHandoffContinuity(input);
|
|
1602
|
+
return {
|
|
1603
|
+
ok: continuity.ok === true,
|
|
1604
|
+
handoff_contract_ref: continuity.handoff_contract_ref || null,
|
|
1605
|
+
handoff_surface_ref: continuity.handoff_contract_ref ? `surface.${continuity.handoff_contract_ref}` : null,
|
|
1606
|
+
stable_handoff_surface_ids: Array.isArray(continuity.stable_handoff_ids) ? continuity.stable_handoff_ids : [],
|
|
1607
|
+
adapter_consumable: continuity.handoff_ready === true,
|
|
1608
|
+
run_surface: continuity.run_surface || null,
|
|
1609
|
+
intake_path_ids: Array.isArray(continuity.continuity_path_ids) ? continuity.continuity_path_ids : []
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
function summarizeReviewHandoffIntakeBoundary(input) {
|
|
1614
|
+
const intake = summarizeReviewHandoffIntake(input);
|
|
1615
|
+
return {
|
|
1616
|
+
ok: intake.ok === true,
|
|
1617
|
+
handoff_surface_ref: intake.handoff_surface_ref || null,
|
|
1618
|
+
stable_boundary_ids: Array.isArray(intake.stable_handoff_surface_ids) ? intake.stable_handoff_surface_ids : [],
|
|
1619
|
+
adapter_consumable: intake.adapter_consumable === true,
|
|
1620
|
+
run_surface: intake.run_surface || null,
|
|
1621
|
+
intake_path_ids: Array.isArray(intake.intake_path_ids) ? intake.intake_path_ids : []
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
function summarizeReviewHandoffIntakeCarry(input) {
|
|
1626
|
+
const intake = summarizeReviewHandoffIntake(input);
|
|
1627
|
+
return {
|
|
1628
|
+
ok: intake.ok === true,
|
|
1629
|
+
handoff_surface_ref: intake.handoff_surface_ref || null,
|
|
1630
|
+
stable_handoff_surface_ids: Array.isArray(intake.stable_handoff_surface_ids) ? intake.stable_handoff_surface_ids : [],
|
|
1631
|
+
consumable_handoff_carry: {
|
|
1632
|
+
run_surface: intake.run_surface || null,
|
|
1633
|
+
intake_path_ids: Array.isArray(intake.intake_path_ids) ? intake.intake_path_ids : []
|
|
1634
|
+
},
|
|
1635
|
+
adapter_consumable: intake.adapter_consumable === true
|
|
1636
|
+
};
|
|
1637
|
+
}
|
|
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
|
+
|
|
1600
1678
|
function runDefaultProofLoop(loopRef, input) {
|
|
1601
1679
|
const loop = getDefaultProofLoop(loopRef);
|
|
1602
1680
|
if (!loop) {
|
|
@@ -1665,6 +1743,12 @@ module.exports = {
|
|
|
1665
1743
|
summarizeReviewBridgeCarry,
|
|
1666
1744
|
summarizeReviewBridgeRun,
|
|
1667
1745
|
summarizeReviewHandoffContinuity,
|
|
1746
|
+
summarizeReviewHandoffIntake,
|
|
1747
|
+
summarizeReviewHandoffIntakeBoundary,
|
|
1748
|
+
summarizeReviewHandoffIntakeCarry,
|
|
1749
|
+
summarizeReviewHandoffPackageIntake,
|
|
1750
|
+
summarizeReviewHandoffPackageCarry,
|
|
1751
|
+
summarizeReviewHandoffPackageRun,
|
|
1668
1752
|
summarizeReviewHandoffRun,
|
|
1669
1753
|
runInteractionResultPackageHandoff,
|
|
1670
1754
|
runInteractionSpineProofHandoff,
|
package/server.js
CHANGED
|
@@ -336,6 +336,72 @@ async function routeRequest(req, res) {
|
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-intake') {
|
|
340
|
+
try {
|
|
341
|
+
const body = await readJsonBody(req);
|
|
342
|
+
const result = proofSdk.summarizeReviewHandoffIntake(body);
|
|
343
|
+
sendJson(res, 200, result);
|
|
344
|
+
} catch (error) {
|
|
345
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
346
|
+
}
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-intake-boundary') {
|
|
351
|
+
try {
|
|
352
|
+
const body = await readJsonBody(req);
|
|
353
|
+
const result = proofSdk.summarizeReviewHandoffIntakeBoundary(body);
|
|
354
|
+
sendJson(res, 200, result);
|
|
355
|
+
} catch (error) {
|
|
356
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
357
|
+
}
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-intake-carry') {
|
|
362
|
+
try {
|
|
363
|
+
const body = await readJsonBody(req);
|
|
364
|
+
const result = proofSdk.summarizeReviewHandoffIntakeCarry(body);
|
|
365
|
+
sendJson(res, 200, result);
|
|
366
|
+
} catch (error) {
|
|
367
|
+
sendJson(res, 400, { ok: false, reason: error.message });
|
|
368
|
+
}
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
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
|
+
|
|
339
405
|
if (req.method === 'POST' && url.pathname === '/v1/proof-center/result-package-handoff/review/handoff-run') {
|
|
340
406
|
try {
|
|
341
407
|
const body = await readJsonBody(req);
|