@bongos/core 1.22.1 → 1.23.1
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/.bongos-core.json +186 -161
- package/docs/copy-inventory.md +1 -1
- package/docs/copy-registry.json +1 -1
- package/docs/module-api-changelog.md +8 -0
- package/docs/page-readings.json +40 -40
- package/modules/agents/lib/answer-hold.js +1 -1
- package/modules/agents/lib/fire-budget.js +1 -1
- package/modules/autonomy/cadence.js +3 -3
- package/modules/autonomy/config-idle.js +1 -1
- package/modules/autonomy/fence.js +1 -1
- package/modules/autonomy/gauge.js +2 -2
- package/modules/autonomy/governor-docket.js +0 -1
- package/modules/autonomy/server-schedule.js +1 -1
- package/modules/builder-settings/builder-needs.js +1 -3
- package/modules/builder-settings/event-sound-prefs.js +0 -1
- package/modules/builder-settings/law-locks.js +0 -1
- package/modules/builder-settings/model-alloc-prefs.js +0 -5
- package/modules/builder-settings/profile-nudge-prefs.js +0 -1
- package/modules/builder-settings/render-prefs.js +0 -1
- package/modules/builder-settings/skill-prefs.js +0 -2
- package/modules/builder-settings/sound-prefs.js +0 -3
- package/modules/builder-settings/wandering-prefs.js +0 -2
- package/modules/copy-desk/artist-stats.js +1 -1
- package/modules/copy-desk/flags.js +1 -1
- package/modules/copy-desk/guarded-lines.js +1 -1
- package/modules/copy-desk/page-status.js +0 -5
- package/modules/copy-desk/proposals.js +0 -2
- package/modules/copy-desk/registry.js +1 -1
- package/modules/copy-desk/stuck-tweaks.js +1 -1
- package/modules/economy/credits-by-craft.js +0 -2
- package/modules/economy/streak.js +0 -3
- package/modules/government/asks-db.js +1 -1
- package/modules/government/asks.js +0 -1
- package/modules/government/decision-board.js +0 -1
- package/modules/government/docket.js +0 -6
- package/modules/government/leads.js +0 -1
- package/modules/government/positions.js +1 -1
- package/modules/government/recommendations.js +0 -3
- package/modules/government/routing.js +1 -1
- package/modules/government/treasury-db.js +1 -1
- package/modules/government/treasury.js +2 -2
- package/modules/grading/grade-engine.js +0 -1
- package/modules/hall-ui/public/deploy.js +3 -3
- package/modules/hall-ui/public/dom-utils.js +5 -1
- package/modules/hall-ui/public/genesis-home.js +1 -1
- package/modules/ideas/completeness.js +1 -1
- package/modules/ideas/descent.js +0 -1
- package/modules/ideas/governor-docket.js +0 -2
- package/modules/ideas/idea-state.js +0 -1
- package/modules/ideas/ideator-stats.js +1 -1
- package/modules/ideas/votes.js +1 -1
- package/modules/lifecycle/autopickup-files.js +0 -3
- package/modules/lifecycle/conflict-resolve.js +0 -1
- package/modules/lifecycle/criterion-uat-db.js +0 -4
- package/modules/lifecycle/dead-deps.js +2 -2
- package/modules/lifecycle/est-advisory.js +1 -1
- package/modules/lifecycle/github-push.js +1 -2
- package/modules/lifecycle/goal-category.js +0 -3
- package/modules/lifecycle/goal-spec-task.js +1 -1
- package/modules/lifecycle/governor-docket.js +0 -1
- package/modules/lifecycle/kickoff-seed.js +1 -1
- package/modules/lifecycle/mingle.js +3 -3
- package/modules/lifecycle/page-tweak-claim.js +1 -1
- package/modules/lifecycle/rebase-gate.js +1 -1
- package/modules/lifecycle/removal-derivation.js +0 -1
- package/modules/lifecycle/routes/abandon-handler.js +1 -1
- package/modules/lifecycle/routes/version-route-authz.js +0 -1
- package/modules/lifecycle/ship-card.js +1 -1
- package/modules/lifecycle/ship-preflight.js +0 -1
- package/modules/lifecycle/sky.js +1 -1
- package/modules/lifecycle/task-classifier.js +0 -1
- package/modules/lifecycle/task-visuals.js +0 -2
- package/modules/lifecycle/version-close.js +0 -1
- package/modules/memory/memory.js +0 -1
- package/modules/memory/search-chunker.js +1 -1
- package/modules/memory/search.js +0 -3
- package/modules/npm-release/preview/divert.js +1 -1
- package/modules/npm-release/preview/runtime.js +1 -1
- package/modules/npm-release/preview/supervisor.js +2 -1
- package/modules/onboarding/founding-builders.js +1 -1
- package/modules/onboarding/founding-mode.js +1 -1
- package/modules/onboarding/howto-guide.js +1 -1
- package/modules/onboarding/howto-state.js +1 -1
- package/modules/onboarding/onboarding-state.js +0 -4
- package/modules/onboarding/onboarding.js +0 -6
- package/modules/page-notes/notes.js +0 -1
- package/modules/platform-identity/community-leaderboard.js +0 -1
- package/modules/platform-identity/hub-keys.js +0 -2
- package/modules/platform-identity/instance-feedback.js +0 -1
- package/modules/platform-identity/project-stats.js +2 -1
- package/modules/platform-identity/read-rate-limit.js +1 -1
- package/modules/platform-identity/visibility-pull.js +0 -9
- package/modules/provisioning/app-status.js +1 -1
- package/modules/provisioning/catalog-bridge.js +0 -1
- package/modules/provisioning/core-upgrade.js +1 -1
- package/modules/provisioning/credential-preflight.js +1 -1
- package/modules/provisioning/demo.js +2 -2
- package/modules/provisioning/look.js +1 -1
- package/modules/provisioning/routes/callback-page.js +1 -1
- package/modules/raise/raise.js +1 -1
- package/modules/render-deploy/deploys.js +1 -1
- package/modules/security/artifact-scan/aggregate.js +0 -4
- package/modules/security/artifact-scan/detectors/capabilities.js +1 -1
- package/modules/security/artifact-scan/detectors/config-obfuscation.js +1 -1
- package/modules/security/artifact-scan/detectors/credentials.js +1 -1
- package/modules/security/artifact-scan/detectors/dependencies.js +1 -1
- package/modules/security/artifact-scan/detectors/injection.js +1 -1
- package/modules/security/artifact-scan/detectors/network.js +1 -1
- package/modules/security/artifact-scan/detectors/npm-lifecycle.js +1 -1
- package/modules/security/artifact-scan/detectors/permissions.js +1 -1
- package/modules/security/artifact-scan/detectors/shared.js +0 -3
- package/modules/security/artifact-scan/floor.js +0 -3
- package/modules/security/artifact-scan/mirror.js +1 -1
- package/modules/security/artifact-scan/quarantine.js +0 -1
- package/modules/security/artifact-scan/rebuild-spec.js +0 -2
- package/modules/security/artifact-scan/report.js +1 -1
- package/modules/security/artifact-scan/sanitize.js +0 -2
- package/modules/security/secret-scrub.js +0 -4
- package/modules/security/security.js +0 -2
- package/modules/sessions/accessibility.js +0 -2
- package/modules/sessions/bfg.js +0 -4
- package/modules/sessions/upload-health.js +0 -3
- package/modules/specialities/db.js +1 -1
- package/modules/specialities/specialities.js +1 -1
- package/modules/ui-design/kit/lib.js +2 -2
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/release-notes.json +13 -0
- package/scripts/bongos/autobongos-run.js +2 -1
- package/scripts/bongos/autonomy-gauge.js +2 -1
- package/scripts/bongos/backfill-disciplines.js +1 -1
- package/scripts/bongos/backfill-sessions.js +1 -1
- package/scripts/bongos/backup.js +2 -1
- package/scripts/bongos/dev.js +1 -1
- package/scripts/bongos/do-api.js +2 -1
- package/scripts/bongos/fitness.js +5 -6
- package/scripts/bongos/local-preview.js +2 -1
- package/scripts/bongos/login.js +1 -1
- package/scripts/bongos/page-reader.js +2 -1
- package/scripts/bongos/probe-cache.js +2 -1
- package/scripts/bongos/provision-core-upgrade.js +2 -1
- package/scripts/bongos/provision.js +5 -4
- package/scripts/bongos/publish-integration-gate.js +2 -1
- package/scripts/bongos/render-api.js +2 -1
- package/scripts/bongos/sandbox-stage.js +2 -1
- package/scripts/bongos/seed-bongos-v1-idea-routing-tasks.js +1 -1
- package/scripts/bongos/seed-bv1-profiles-tasks.js +1 -1
- package/scripts/bongos/seed-bv2-ideator-surface-tasks.js +1 -1
- package/scripts/bongos/session-eval.js +2 -1
- package/scripts/bongos/setup.js +2 -1
- package/scripts/bongos/sleep-helper-guard.js +88 -0
- package/scripts/bongos/upgrade.js +2 -2
- package/scripts/gds/sleep-helper-guard.js +6 -0
- package/src/bongos/module-scope-map.js +1 -0
- package/src/module-api.js +6 -1
- package/src/sleep.js +24 -0
- package/tests/deploy_page_projects.mjs +2 -1
- package/tests/module_api.mjs +1 -0
- package/tests/modules_external_export_contract.mjs +48 -0
- package/tests/sleep_helper.mjs +99 -0
|
@@ -76,4 +76,4 @@ async function runDigest({ nowMs = Date.now(), state, post, readStuckImpl = read
|
|
|
76
76
|
return { posted: !!(r && r.posted), reason: r && r.reason, text };
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
module.exports = {
|
|
79
|
+
module.exports = { CACHE_MS, readStuckCached, readStuckFor, runDigest, _resetCache };
|
|
@@ -913,23 +913,17 @@ module.exports = {
|
|
|
913
913
|
EXPECTED_SOURCES,
|
|
914
914
|
COMING_SOURCES,
|
|
915
915
|
COMING_FLOORS,
|
|
916
|
-
SOURCE_TIMEOUT_MS,
|
|
917
|
-
normalizeFloor,
|
|
918
|
-
normalizeHistory,
|
|
919
916
|
normalizeActs,
|
|
920
917
|
normalizeDeskRow,
|
|
921
918
|
loadGovernment,
|
|
922
|
-
SETTLED_WINDOW_MS,
|
|
923
919
|
normalizeMatter,
|
|
924
920
|
gateAllows,
|
|
925
|
-
compareMatters,
|
|
926
921
|
homeLine,
|
|
927
922
|
boardMatter,
|
|
928
923
|
fairnessReading,
|
|
929
924
|
registeredContributions,
|
|
930
925
|
buildDocket,
|
|
931
926
|
docketFor,
|
|
932
|
-
attachAsks,
|
|
933
927
|
findMatter,
|
|
934
928
|
findMatterFor,
|
|
935
929
|
loadSeats,
|
|
@@ -222,11 +222,8 @@ function recommendationsFor({ type, headcount } = {}) {
|
|
|
222
222
|
|
|
223
223
|
module.exports = {
|
|
224
224
|
PROJECT_TYPES,
|
|
225
|
-
SIZE_BANDS,
|
|
226
225
|
JOB_GRANTS,
|
|
227
|
-
JOB_NAMES,
|
|
228
226
|
JOB_CAN,
|
|
229
|
-
normalizeType,
|
|
230
227
|
sizeBandFor,
|
|
231
228
|
recommendedCharter,
|
|
232
229
|
recommendedRankSet,
|
|
@@ -151,4 +151,4 @@ function passRefusal(matter, viewerId, toSeat, ctx, now = Date.now()) {
|
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
module.exports = { seatOf,
|
|
154
|
+
module.exports = { seatOf, resolveSeat, routeMatter, routeAll, passRefusal, BUILDING_NAMES };
|
|
@@ -163,4 +163,4 @@ async function openBorrowRows() {
|
|
|
163
163
|
return rows.map((r) => ({ row: r, ask: stored.get(treasury.matterId(r.id)) || null }));
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
module.exports = {
|
|
166
|
+
module.exports = { getBorrow, readTreasury, setPot, goalById, fileBorrows, answerBorrow, openBorrowRows };
|
|
@@ -235,7 +235,7 @@ function borrowMatter(borrow, { title, canAnswer = false } = {}) {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
module.exports = {
|
|
238
|
-
MATTER_SOURCE, SEAT,
|
|
239
|
-
monthKey, prevMonth,
|
|
238
|
+
MATTER_SOURCE, SEAT, MAX_BUDGET_USD, ANSWERS,
|
|
239
|
+
monthKey, prevMonth, parseBudget, borrowAmount, needsBorrow,
|
|
240
240
|
buildTreasury, borrowView, matterId, goalName, borrowAsk, answerOf, borrowMatter,
|
|
241
241
|
};
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
|
|
54
54
|
const API = '/api/bongos';
|
|
55
55
|
const api = window.BongosClient.createClient({ baseUrl: '', credentials: 'same-origin', throwOnError: false });
|
|
56
|
-
const { escapeHtml } = window.OTB;
|
|
56
|
+
const { escapeHtml, sleep } = window.OTB;
|
|
57
57
|
const toast = (msg) => window.OTB.toast(msg);
|
|
58
58
|
const $ = (id) => document.getElementById(id);
|
|
59
59
|
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
// confirming, or a reload — and goes on repainting a step the owner has left. It
|
|
512
512
|
// also made every test that never converges sit through the full ~30s in real time.
|
|
513
513
|
for (let i = 0; i < POLL_TRIES; i++) {
|
|
514
|
-
await
|
|
514
|
+
await sleep(POLL_MS);
|
|
515
515
|
if (steps.get(p.instance_id) !== 'confirm') break; // the row was closed; stop.
|
|
516
516
|
try {
|
|
517
517
|
await refreshOne(p, { keepStep: true });
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
repaint();
|
|
754
754
|
let settled = false;
|
|
755
755
|
for (let i = 0; i < MOVE_TRIES; i++) {
|
|
756
|
-
await
|
|
756
|
+
await sleep(POLL_MS);
|
|
757
757
|
if (moving.get(p.instance_id) !== to) return; // superseded or the row is gone
|
|
758
758
|
let now;
|
|
759
759
|
try {
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
return String(s ?? '').replace(/[&<>"']/g, (c) => ESCAPES[c]);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
// `await sleep(ms)` — THE browser "wait N milliseconds" (task 1004893). The server
|
|
35
|
+
// twin is src/sleep.js; fitness fails on a third hand-rolled copy.
|
|
36
|
+
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
37
|
+
|
|
34
38
|
// querySelector shorthand. (7 copies; pair.js's single-arg form is a subset.)
|
|
35
39
|
const $ = (sel, root = document) => root.querySelector(sel);
|
|
36
40
|
|
|
@@ -466,7 +470,7 @@
|
|
|
466
470
|
}
|
|
467
471
|
|
|
468
472
|
const OTB = {
|
|
469
|
-
escapeHtml, $, fmtNum, num, fmtInt, fmtCompact, fmtDate, rankLabel, toast, moduleOn, disciplines,
|
|
473
|
+
escapeHtml, sleep, $, fmtNum, num, fmtInt, fmtCompact, fmtDate, rankLabel, toast, moduleOn, disciplines,
|
|
470
474
|
// task 1003936 — ONE word for the role axis, all six surfaces
|
|
471
475
|
roleAxisLabel, roleLabel, roleWord, roleOptions, roleIsUnset, ROLE_UNSET,
|
|
472
476
|
fillKindFilter, kindLabel, kindIsUnset, KIND_UNSET, // task 1003453 — one Kind filler, all three surfaces
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
if (!said) return null;
|
|
332
332
|
toast(said);
|
|
333
333
|
// Give the sentence time to be read before the reload takes it away.
|
|
334
|
-
return
|
|
334
|
+
return window.OTB.sleep(3500);
|
|
335
335
|
}).then(function () { window.location.reload(); }));
|
|
336
336
|
} else if (t.hasAttribute('data-genesis-close')) {
|
|
337
337
|
// The solo fast-track (spec D4): when the founder's one yes decides the sitting
|
|
@@ -112,4 +112,4 @@ function weakestSectionPayload(fieldValues, { templateKey = DEFAULT_TEMPLATE_KEY
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
module.exports = { completenessScore, scoreFieldValues,
|
|
115
|
+
module.exports = { completenessScore, scoreFieldValues, weakestField, weakestSectionPayload };
|
package/modules/ideas/descent.js
CHANGED
|
@@ -146,4 +146,4 @@ async function readIdeatorStats(builderId, deps = {}) {
|
|
|
146
146
|
return summarizeIdeatorTrail(ideas, { ideatorCredits, ratifiedIds, truncated: sky && sky.truncated, total: sky && sky.total });
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
module.exports = { readIdeatorStats, summarizeIdeatorTrail
|
|
149
|
+
module.exports = { readIdeatorStats, summarizeIdeatorTrail };
|
package/modules/ideas/votes.js
CHANGED
|
@@ -271,10 +271,6 @@ async function setBackendOnly({ criterionId, builderId, backendOnly, authorize }
|
|
|
271
271
|
|
|
272
272
|
module.exports = {
|
|
273
273
|
DEPLOY_PORT,
|
|
274
|
-
linkedTasks,
|
|
275
|
-
summarizeLinked,
|
|
276
|
-
currentSignoff,
|
|
277
|
-
isBackendOnly,
|
|
278
274
|
readLive,
|
|
279
275
|
signOff,
|
|
280
276
|
recordOverride,
|
|
@@ -340,6 +340,6 @@ function findProseGatedTasks(tasks, statusById) {
|
|
|
340
340
|
module.exports = {
|
|
341
341
|
DEAD_DEP_STATUSES, LIVE_STATUSES,
|
|
342
342
|
absorbedInto, depRefusalRow, splitDeadDeps, deadDepHint, findStrandedTasks,
|
|
343
|
-
proseGatedIds, findProseGatedTasks, idCandidates,
|
|
344
|
-
|
|
343
|
+
proseGatedIds, findProseGatedTasks, idCandidates,
|
|
344
|
+
IMPORT_ID_OFFSETS,
|
|
345
345
|
};
|
|
@@ -186,4 +186,4 @@ async function buildEstAdvisory({ db, task } = {}) {
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
module.exports = { adviseEstimate, pickRatio, buildEstAdvisory, calibrationSummary, resetCalibrationCache, CALIBRATION_TTL_MS, MIN_MATERIAL_DELTA, SCALE_OK_RATIO
|
|
189
|
+
module.exports = { adviseEstimate, pickRatio, buildEstAdvisory, calibrationSummary, resetCalibrationCache, CALIBRATION_TTL_MS, MIN_MATERIAL_DELTA, SCALE_OK_RATIO };
|
|
@@ -39,7 +39,7 @@ const fs = require('node:fs');
|
|
|
39
39
|
const os = require('node:os');
|
|
40
40
|
const path = require('node:path');
|
|
41
41
|
const { promisify } = require('node:util');
|
|
42
|
-
const { repoInfo, userAgent } = require('../../src/module-api');
|
|
42
|
+
const { repoInfo, userAgent, sleep } = require('../../src/module-api'); // sleep: the one shared sleep (task 1004893)
|
|
43
43
|
const { readCheckRollup, UNIT_REPORT_CONTEXT, isRedCheck } = require('./check-rollup'); // isRedCheck: only a FAILED check is red, never a pending one (task 1004666)
|
|
44
44
|
const { loadRepoInfo } = repoInfo;
|
|
45
45
|
|
|
@@ -1363,7 +1363,6 @@ async function getPullRequestFiles({ number }, deps = {}) {
|
|
|
1363
1363
|
// recheckPullRequest header for WHY this delay exists; overridable via deps.reopenDelayMs
|
|
1364
1364
|
// so tests run instantly (and an operator can tune it without a code change).
|
|
1365
1365
|
const RECHECK_REOPEN_DELAY_MS = 4000;
|
|
1366
|
-
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
1367
1366
|
|
|
1368
1367
|
// recheckPullRequest — re-trigger the gate-review check after an owner approval was
|
|
1369
1368
|
// recorded. WHY close+reopen: setting a commit status does NOT fire a `pull_request`
|
|
@@ -379,16 +379,13 @@ function goalCategoryHandler({ db, authorizeGoalManagement, validateOrRespond, p
|
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
module.exports = {
|
|
382
|
-
CATEGORY_COLS,
|
|
383
382
|
slugify,
|
|
384
383
|
isValidSlug,
|
|
385
384
|
listCategories,
|
|
386
385
|
countGoalsByCategory,
|
|
387
386
|
getCategory,
|
|
388
387
|
adviseCategory,
|
|
389
|
-
createCategory,
|
|
390
388
|
updateCategory,
|
|
391
|
-
setGoalCategory,
|
|
392
389
|
decorateGoalCategory,
|
|
393
390
|
categoryIndex,
|
|
394
391
|
categoriesListHandler,
|
|
@@ -126,4 +126,4 @@ async function createGoalWithSpec({ db, withTx, goalFields, withSpecTask = false
|
|
|
126
126
|
return { goal, specTask };
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
module.exports = { SPEC_SOURCE, specSourceRef, specTaskFields,
|
|
129
|
+
module.exports = { SPEC_SOURCE, specSourceRef, specTaskFields, gateOnSpecTask, ensureSpecTask, createGoalWithSpec };
|
|
@@ -130,4 +130,4 @@ async function genesisStageTasks(deps = {}) {
|
|
|
130
130
|
return out;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
module.exports = { seedKickoffIfEmpty, specFromBranding, FIRST_VERSION_SQL, seedGenesisStages, genesisStageTasks
|
|
133
|
+
module.exports = { seedKickoffIfEmpty, specFromBranding, FIRST_VERSION_SQL, seedGenesisStages, genesisStageTasks };
|
|
@@ -345,9 +345,9 @@ async function decidePair(pairId, builderId, decision, deps = {}) {
|
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
module.exports = {
|
|
348
|
-
|
|
348
|
+
MAX_ROWS, MATCHING, matchingModel,
|
|
349
349
|
parseEnabled, projectEnabled, setProjectEnabled,
|
|
350
|
-
|
|
351
|
-
eligibleBuilders, isCrossCraft, planPairs,
|
|
350
|
+
setOptIn, mingleStateFor,
|
|
351
|
+
eligibleBuilders, isCrossCraft, planPairs, openPairKeys,
|
|
352
352
|
runMingleRound, openPairsFor, countOpenPairsFor, decidePair,
|
|
353
353
|
};
|
|
@@ -864,7 +864,7 @@ module.exports = {
|
|
|
864
864
|
// untrusted-title rule is pinned by a test rather than trusted by eye.
|
|
865
865
|
sanitizeOneLine, MAX_CONFIRM_LINE,
|
|
866
866
|
// exported for unit tests:
|
|
867
|
-
fmtTokens, fmtUsd, fmtInt, fmtMins,
|
|
867
|
+
fmtTokens, fmtUsd, fmtInt, fmtMins, esc, wrap,
|
|
868
868
|
// task 1003150 — the session-boundary nudge, pure so every branch is pinned.
|
|
869
869
|
handoffAdvice, HEAVY_SESSION_CACHED_TOKENS,
|
|
870
870
|
PIPELINE, FORMS, trailSteps,
|
package/modules/lifecycle/sky.js
CHANGED
|
@@ -301,4 +301,4 @@ function skyHandler({ read = sky, log = console, cache = skyCache() } = {}) {
|
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
module.exports = { sky, skyRows, shapeSky, foldCriteria, normalizeBorn, skyCache, skyHandler
|
|
304
|
+
module.exports = { sky, skyRows, shapeSky, foldCriteria, normalizeBorn, skyCache, skyHandler };
|
package/modules/memory/memory.js
CHANGED
|
@@ -275,4 +275,4 @@ function chunkMarkdown({ path, content, maxTokens = DEFAULT_MAX_TOKENS, targetTo
|
|
|
275
275
|
return { path: path || null, title, frontmatter: frontmatter || null, chunks };
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
module.exports = { chunkMarkdown, parseFrontMatter, estTokens,
|
|
278
|
+
module.exports = { chunkMarkdown, parseFrontMatter, estTokens, stripPrivate, sanitizeForText };
|
package/modules/memory/search.js
CHANGED
|
@@ -102,4 +102,4 @@ function createDivert({ supervisor, forward, requireBuilder, requirePermission }
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
module.exports = { createDivert, cookieVersion, clearCookie, setCookie, AUTH_PATH
|
|
105
|
+
module.exports = { createDivert, cookieVersion, clearCookie, setCookie, AUTH_PATH };
|
|
@@ -25,6 +25,7 @@ const path = require('node:path');
|
|
|
25
25
|
const { buildPreviewEnv, PREVIEW_DB } = require('./env');
|
|
26
26
|
const cmds = require('./commands');
|
|
27
27
|
const { createChildLog, redact, secretValues } = require('./childlog');
|
|
28
|
+
const { sleep: sharedSleep } = require('../../../src/module-api'); // the one shared sleep (task 1004893)
|
|
28
29
|
|
|
29
30
|
const IDLE_MS = 20 * 60 * 1000;
|
|
30
31
|
const DEFAULT_PORT = 3190;
|
|
@@ -105,7 +106,7 @@ function copyInstance({ fsImpl, from, to }) {
|
|
|
105
106
|
function createSupervisor({
|
|
106
107
|
run, spawn, probe, liveDb, cacheRoot, instanceRoot = null,
|
|
107
108
|
env = process.env, port = DEFAULT_PORT, killWaitMs = KILL_WAIT_MS,
|
|
108
|
-
now = Date.now, sleep =
|
|
109
|
+
now = Date.now, sleep = sharedSleep,
|
|
109
110
|
fsImpl = fs, tmpdir = os.tmpdir(), idleMs = IDLE_MS,
|
|
110
111
|
log = { info() {}, warn() {}, error() {} },
|
|
111
112
|
copy = copyInstance,
|
|
@@ -204,6 +204,6 @@ async function setFoundingMode({ active, stage } = {}, builderId = null, deps =
|
|
|
204
204
|
|
|
205
205
|
module.exports = {
|
|
206
206
|
STAGES, WAKES, WAKES_WHEN_ALIVE, KEYS, stageAtKey,
|
|
207
|
-
|
|
207
|
+
dayOf, shapeFoundingMode, waitingOnFromGovernment,
|
|
208
208
|
foundingModeFor, setFoundingMode,
|
|
209
209
|
};
|
|
@@ -262,4 +262,4 @@ if (require.main === module) {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
module.exports = { MOMENTS, STEPS, MOMENT_IDS, stepById, stepsForMoment, nextUnread,
|
|
265
|
+
module.exports = { MOMENTS, STEPS, MOMENT_IDS, stepById, stepsForMoment, nextUnread, formatGuide };
|
|
@@ -105,4 +105,4 @@ async function reset(builderId, { steps, all = false } = {}, deps = {}) {
|
|
|
105
105
|
return { ok: true, state: await readState(builderId, deps) };
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
module.exports = {
|
|
108
|
+
module.exports = { shapeState, readState, markRead, reset };
|
|
@@ -489,20 +489,14 @@ function buildIdeaPayload({ sessionMeta = {}, analysis, signals = {} }) {
|
|
|
489
489
|
|
|
490
490
|
module.exports = {
|
|
491
491
|
ONBOARDING_FRICTION_TAG,
|
|
492
|
-
ONBOARDING_FRICTION_KIND,
|
|
493
492
|
// parsing
|
|
494
493
|
parseTranscript,
|
|
495
|
-
stripMachineNoise,
|
|
496
494
|
// signals
|
|
497
495
|
detectFrictionSignals,
|
|
498
|
-
LONG_RESPONSE_CHARS,
|
|
499
|
-
SIMILARITY_THRESHOLD,
|
|
500
496
|
// subagent
|
|
501
497
|
buildAnalysisPrompt,
|
|
502
|
-
compactTranscript,
|
|
503
498
|
extractJson,
|
|
504
499
|
validateAnalysis,
|
|
505
|
-
VALID_MOMENT_KINDS,
|
|
506
500
|
// payload
|
|
507
501
|
buildIdeaPayload,
|
|
508
502
|
};
|