@sellable/mcp 0.1.755 → 0.1.756
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/dist/refill-run-loop.js +6 -0
- package/package.json +1 -1
package/dist/refill-run-loop.js
CHANGED
|
@@ -56,6 +56,11 @@ const DEFAULT_BUDGETS = {
|
|
|
56
56
|
schedulerWaitRunBudgetMs: 300_000,
|
|
57
57
|
maxInvocationWallClockMs: 220_000,
|
|
58
58
|
};
|
|
59
|
+
// Keep this transport marker aligned with
|
|
60
|
+
// src/lib/workflow-tables/refill-run-state.ts. The backend intentionally
|
|
61
|
+
// refuses to promote unversioned legacy creditTrust packets into scheduling
|
|
62
|
+
// authority, even when they contain a fresh provider response.
|
|
63
|
+
const REFILL_CREDIT_TRUST_VERSION = 2;
|
|
59
64
|
// Mirrors RefillDoneReason in src/lib/workflow-tables/refill-target-plan.ts,
|
|
60
65
|
// plus loop-authored terminals the planner never emits:
|
|
61
66
|
// - abandoned_stale_checkpoint (fix 110-20d): a resumed wait the loop declares
|
|
@@ -2316,6 +2321,7 @@ async function gateBootstrap(input, deps, ctx) {
|
|
|
2316
2321
|
const pinnedRunState = pinInitialSenderLaneChains(plan, ctx.runState);
|
|
2317
2322
|
const nextRunState = mergeRunState(pinnedRunState, {
|
|
2318
2323
|
creditTrust: {
|
|
2324
|
+
version: REFILL_CREDIT_TRUST_VERSION,
|
|
2319
2325
|
refreshedAt: (deps.now?.() ?? new Date()).toISOString(),
|
|
2320
2326
|
senderIds: [...refreshedSenderIds],
|
|
2321
2327
|
attemptedSenderIds: [...attemptedSenderIds],
|