@fractalsynapse/dsh-chapters 0.2.48 → 0.2.50
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/cordis.patch.yml +6 -0
- package/docs/project-state.md +20 -0
- package/lib/client.js +11 -3
- package/lib/client.js.map +1 -1
- package/lib/commands.js +25 -2
- package/lib/commands.js.map +1 -1
- package/lib/index.js +7 -2
- package/lib/index.js.map +1 -1
- package/lib/prompt-loop.js +3 -3
- package/lib/prompt-loop.js.map +1 -1
- package/lib/prompt.d.ts +16 -0
- package/lib/prompt.js +27 -0
- package/lib/prompt.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/cordis.patch.yml
CHANGED
|
@@ -145,9 +145,15 @@
|
|
|
145
145
|
# # '' ⇒ the feature does not exist (zero calls,
|
|
146
146
|
# # zero surface); setting one IS the enable.
|
|
147
147
|
# # Runtime: /chapters-prompt model <p/m|clear>
|
|
148
|
+
# promptMaxRounds: 0 # #505: 0 = UNLIMITED (default). Runtime: /chapters-prompt
|
|
149
|
+
# # rounds <n|unlimited|show> — the stored override wins; goal-active
|
|
150
|
+
# # runs answer to the GOAL, never this number (#188).
|
|
148
151
|
# promptPushBirth: false # #497: a session LOAD writes nothing — set true to restore the
|
|
149
152
|
# # #218 birth record (first-event push so the bar mounts pushed).
|
|
150
153
|
# # Default false is policy, not preference: see the pile-up in #482/#497.
|
|
154
|
+
# rulesModel: '' # dedicated mining model; '' ⇒ rides the enrichment call.
|
|
155
|
+
# # Runtime: /chapters-rule model <provider/model | clear> — the verb
|
|
156
|
+
# # existed all along, the hint now says so (#506).
|
|
151
157
|
# promptContextChars: 32000 # hard budget on the assembled input slice
|
|
152
158
|
# # (chapter summaries + screened live tail)
|
|
153
159
|
# promptMaxChars: 4096 # cap on the recommendation; over-cap ⇒ retry
|
package/docs/project-state.md
CHANGED
|
@@ -1405,3 +1405,23 @@ maintainer's duplicate-timeline report (#497, reopened #482) traced to the mount
|
|
|
1405
1405
|
command/run+command/done pair — 0.2.45's suppression was real but on the record path. Suite
|
|
1406
1406
|
1770/0/1, five required contexts green on 8c2696e, bundle-verified latch. #482 acceptance moved to
|
|
1407
1407
|
the maintainer's reload on this release: zero new chapters-prompt nodes.
|
|
1408
|
+
|
|
1409
|
+
## 0.2.49 cut (2026-11-24): the retry loop — third writer, named by the maintainer's log
|
|
1410
|
+
|
|
1411
|
+
**Shipped:** #501 (dd92f37) — firstPullRetryDue gains owed+pushLive; dock tracks the sanction,
|
|
1412
|
+
latches push mode on cell presence. Suite 1772/0/1; five contexts green on staging.
|
|
1413
|
+
**Withdrawn the same day by CI:** the blanket seat gate (#503) — prompt and prompt-off-revival legs
|
|
1414
|
+
assert the cold-boot discovery pull BY NAME (#231/#276 revival contract). Door inventory: record
|
|
1415
|
+
door sealed+production-proven, warm-mount sealed, retry sealed, cold-discovery CONTRACTED (one
|
|
1416
|
+
pair per profile's first-ever visit per session; revisits silent). #482 closes on maintainer reload
|
|
1417
|
+
on 0.2.49.
|
|
1418
|
+
|
|
1419
|
+
## 0.2.50 cut (2026-11-24): runtime everything — uncapped autorun, findable rules model
|
|
1420
|
+
|
|
1421
|
+
**Shipped:** #507. promptMaxRounds default 0 (unlimited) + `/chapters-prompt rounds` verb on the
|
|
1422
|
+
settings spine; #506 = the rules model verb's DISCOVERABILITY fix (it worked all along). Five
|
|
1423
|
+
contexts green on 8929452 incl. tape legs accepting the uncapped default. Next on deck (maintainer
|
|
1424
|
+
plan on record): SAIP self-driving journey — end-state file drafted with the agent, goal from file,
|
|
1425
|
+
three models swapped live at runtime, autorun uncapped; durable-log watching names every stop by
|
|
1426
|
+
mechanism. Open: #491/#462 await the still-undelivered scheduled cycle (cron ~10h late, past
|
|
1427
|
+
pattern — dispatch fallback decided for tomorrow if absent); #456 Tier B remains the campaign day.
|
package/lib/client.js
CHANGED
|
@@ -243,6 +243,7 @@ window.__ModuleLoader__.load({
|
|
|
243
243
|
*/
|
|
244
244
|
function firstPullRetryDue(c) {
|
|
245
245
|
if (c.answered || c.featureAbsent) return false;
|
|
246
|
+
if (c.pushLive || !c.owed) return false;
|
|
246
247
|
return c.attempts < 8;
|
|
247
248
|
}
|
|
248
249
|
function pollSpacingFor(s) {
|
|
@@ -735,6 +736,7 @@ window.__ModuleLoader__.load({
|
|
|
735
736
|
const lastPullAt = (0, react.useRef)(null);
|
|
736
737
|
const edgeTimer = (0, react.useRef)(void 0);
|
|
737
738
|
const pushLiveRef = (0, react.useRef)(pushed !== void 0);
|
|
739
|
+
const pullOwed = (0, react.useRef)(false);
|
|
738
740
|
const seenTurnRef = (0, react.useRef)(0);
|
|
739
741
|
const lastPushAt = (0, react.useRef)(null);
|
|
740
742
|
const answered = (0, react.useRef)(false);
|
|
@@ -789,6 +791,7 @@ window.__ModuleLoader__.load({
|
|
|
789
791
|
}
|
|
790
792
|
}, [exec]);
|
|
791
793
|
(0, react.useEffect)(() => {
|
|
794
|
+
if (pushed !== void 0) pushLiveRef.current = true;
|
|
792
795
|
const evs = pushEventsOf(pushed);
|
|
793
796
|
if (evs === null) return;
|
|
794
797
|
pushLiveRef.current = true;
|
|
@@ -838,7 +841,10 @@ window.__ModuleLoader__.load({
|
|
|
838
841
|
}
|
|
839
842
|
const spacing = spacingNow();
|
|
840
843
|
const mountDiscovery = opts?.mount === true && duePull();
|
|
841
|
-
if (opts?.force === true || mountDiscovery || spacing !== null && opts?.mount !== true)
|
|
844
|
+
if (opts?.force === true || mountDiscovery || spacing !== null && opts?.mount !== true) {
|
|
845
|
+
if (opts?.mount === true) pullOwed.current = true;
|
|
846
|
+
await refresh();
|
|
847
|
+
}
|
|
842
848
|
if (replyStatus.current === "off") return;
|
|
843
849
|
const next = spacingNow();
|
|
844
850
|
if (next !== null) timer = setTimeout(() => {
|
|
@@ -859,9 +865,11 @@ window.__ModuleLoader__.load({
|
|
|
859
865
|
if (!firstPullRetryDue({
|
|
860
866
|
answered: answered.current,
|
|
861
867
|
featureAbsent,
|
|
862
|
-
attempts: firstPullRetries
|
|
868
|
+
attempts: firstPullRetries,
|
|
869
|
+
owed: pullOwed.current,
|
|
870
|
+
pushLive: pushLiveRef.current
|
|
863
871
|
})) {
|
|
864
|
-
if (!answered.current && !featureAbsent && firstPullRetries >= 8) console.warn(`[client:prompt] first-pull retry ceiling (${String(8)} x ${String(FIRST_PULL_RETRY_SPACING_MS)}ms) reached with NO wire answer — the mount pull remains owed; edges are the recovery path (#429)`);
|
|
872
|
+
if (!answered.current && !featureAbsent && pullOwed.current && !pushLiveRef.current && firstPullRetries >= 8) console.warn(`[client:prompt] first-pull retry ceiling (${String(8)} x ${String(FIRST_PULL_RETRY_SPACING_MS)}ms) reached with NO wire answer — the mount pull remains owed; edges are the recovery path (#429)`);
|
|
865
873
|
return;
|
|
866
874
|
}
|
|
867
875
|
firstPullRetries += 1;
|