instar 1.3.554 → 1.3.556
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/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +19 -10
- package/dist/commands/server.js.map +1 -1
- package/dist/config/ConfigDefaults.d.ts.map +1 -1
- package/dist/config/ConfigDefaults.js +60 -85
- package/dist/config/ConfigDefaults.js.map +1 -1
- package/dist/core/PostUpdateMigrator.d.ts +23 -0
- package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
- package/dist/core/PostUpdateMigrator.js +84 -0
- package/dist/core/PostUpdateMigrator.js.map +1 -1
- package/dist/core/devAgentGate.d.ts +27 -0
- package/dist/core/devAgentGate.d.ts.map +1 -1
- package/dist/core/devAgentGate.js +32 -0
- package/dist/core/devAgentGate.js.map +1 -1
- package/dist/core/devGatedFeatures.d.ts.map +1 -1
- package/dist/core/devGatedFeatures.js +66 -35
- package/dist/core/devGatedFeatures.js.map +1 -1
- package/dist/core/types.d.ts +23 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/feedback-factory/inbox/BlobInboxClient.d.ts +75 -0
- package/dist/feedback-factory/inbox/BlobInboxClient.d.ts.map +1 -0
- package/dist/feedback-factory/inbox/BlobInboxClient.js +121 -0
- package/dist/feedback-factory/inbox/BlobInboxClient.js.map +1 -0
- package/dist/feedback-factory/inbox/InboxDrainer.d.ts +91 -0
- package/dist/feedback-factory/inbox/InboxDrainer.d.ts.map +1 -0
- package/dist/feedback-factory/inbox/InboxDrainer.js +188 -0
- package/dist/feedback-factory/inbox/InboxDrainer.js.map +1 -0
- package/dist/feedback-factory/receiver/BlobInboxStore.d.ts +30 -0
- package/dist/feedback-factory/receiver/BlobInboxStore.d.ts.map +1 -0
- package/dist/feedback-factory/receiver/BlobInboxStore.js +36 -0
- package/dist/feedback-factory/receiver/BlobInboxStore.js.map +1 -0
- package/dist/feedback-factory/receiver/handlers.d.ts +18 -3
- package/dist/feedback-factory/receiver/handlers.d.ts.map +1 -1
- package/dist/feedback-factory/receiver/handlers.js +8 -4
- package/dist/feedback-factory/receiver/handlers.js.map +1 -1
- package/dist/feedback-factory/store/JsonlFeedbackStore.d.ts +65 -0
- package/dist/feedback-factory/store/JsonlFeedbackStore.d.ts.map +1 -0
- package/dist/feedback-factory/store/JsonlFeedbackStore.js +194 -0
- package/dist/feedback-factory/store/JsonlFeedbackStore.js.map +1 -0
- package/dist/scaffold/templates.d.ts.map +1 -1
- package/dist/scaffold/templates.js +4 -0
- package/dist/scaffold/templates.js.map +1 -1
- package/dist/server/AgentServer.d.ts +4 -0
- package/dist/server/AgentServer.d.ts.map +1 -1
- package/dist/server/AgentServer.js +53 -0
- package/dist/server/AgentServer.js.map +1 -1
- package/dist/server/CapabilityIndex.d.ts.map +1 -1
- package/dist/server/CapabilityIndex.js +11 -0
- package/dist/server/CapabilityIndex.js.map +1 -1
- package/dist/server/routes.d.ts +4 -0
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +20 -2
- package/dist/server/routes.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +64 -64
- package/src/scaffold/templates.ts +4 -0
- package/upgrades/1.3.555.md +71 -0
- package/upgrades/1.3.556.md +34 -0
- package/upgrades/side-effects/feedback-receiver-persistence.md +81 -0
- package/upgrades/side-effects/mm-stores-devgate.md +92 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgCH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAS3D,OAAO,EAAE,eAAe,EAAiC,MAAM,iCAAiC,CAAC;AAuBjG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAiH7D,OAAO,EAAE,WAAW,EAA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ANGED
|
@@ -16,7 +16,7 @@ import pc from 'picocolors';
|
|
|
16
16
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
17
17
|
import { loadConfig, ensureStateDir, detectTmuxPath, detectGeminiPath } from '../core/Config.js';
|
|
18
18
|
import { isNonFatalUncaught, shouldLogStackForUncaught } from '../core/uncaughtExceptionPolicy.js';
|
|
19
|
-
import { resolveDevAgentGate } from '../core/devAgentGate.js';
|
|
19
|
+
import { resolveDevAgentGate, resolveStateSyncStores } from '../core/devAgentGate.js';
|
|
20
20
|
import { parseProfileTrigger, platformMessageIdFrom } from '../core/topicProfileIngress.js';
|
|
21
21
|
import { TopicProfileOrchestrator, resolvedToApplied, } from '../core/TopicProfileOrchestrator.js';
|
|
22
22
|
import { CodexResumeMap } from '../core/CodexResumeMap.js';
|
|
@@ -3442,9 +3442,18 @@ export async function startServer(options) {
|
|
|
3442
3442
|
maxSnapshotBytes: stateSync.maxCacheBytes,
|
|
3443
3443
|
});
|
|
3444
3444
|
void storeSnapshotEngine; // consumed by the state-snapshot mesh handler below + the store PRs (WS2.1+)
|
|
3445
|
+
// The 7 stateSync memory stores follow the developmentAgent dark-feature gate
|
|
3446
|
+
// (operator directive 2026-06-13, topic 13481): their ConfigDefaults OMIT
|
|
3447
|
+
// `enabled` so the gate decides — LIVE on a dev agent, DARK on the fleet. Resolve
|
|
3448
|
+
// the gate ONCE here so every consumer funnel below (selfStateSyncReceive, the 7
|
|
3449
|
+
// union readers, checkPoolFlagCoherence) receives a stores map whose per-store
|
|
3450
|
+
// `enabled` is already the resolved boolean — the funnels keep their unchanged
|
|
3451
|
+
// `enabled === true` semantics but now see a live flag on a dev agent. An explicit
|
|
3452
|
+
// operator `enabled` in config still wins (force-dark false / fleet-flip true).
|
|
3453
|
+
const _stateSyncStoresResolved = resolveStateSyncStores(config);
|
|
3445
3454
|
const selfStateSyncReceive = () => {
|
|
3446
3455
|
const out = {};
|
|
3447
|
-
const stores =
|
|
3456
|
+
const stores = _stateSyncStoresResolved;
|
|
3448
3457
|
for (const store of replicatedKindRegistry.stores()) {
|
|
3449
3458
|
// Advertise the receive capability iff the machinery exists (kind
|
|
3450
3459
|
// registered) AND the store is enabled here — so a peer never forwards a
|
|
@@ -3503,7 +3512,7 @@ export async function startServer(options) {
|
|
|
3503
3512
|
const { prefEntryToOriginRecord, prefTierOf, PREF_STORE_KEY } = await import('../core/PreferencesReplicatedStore.js');
|
|
3504
3513
|
const preferencesUnionReader = new ReplicatedStoreReader({
|
|
3505
3514
|
registry: replicatedKindRegistry,
|
|
3506
|
-
stores:
|
|
3515
|
+
stores: _stateSyncStoresResolved, // gate-resolved (dev-live / fleet-dark) per operator directive 2026-06-13
|
|
3507
3516
|
tierOf: prefTierOf,
|
|
3508
3517
|
loadOriginRecords: (store, recordKey) => {
|
|
3509
3518
|
if (store !== PREF_STORE_KEY || _meshSelfId === null)
|
|
@@ -3542,7 +3551,7 @@ export async function startServer(options) {
|
|
|
3542
3551
|
const { relationshipTierOf, relationshipToOriginRecord, deriveRelationshipRecordKey, mergeUnionToRelationships, renderForeignRelationshipContext, RELATIONSHIP_STORE_KEY } = await import('../core/RelationshipsReplicatedStore.js');
|
|
3543
3552
|
const relationshipsUnionReader = new ReplicatedStoreReader({
|
|
3544
3553
|
registry: replicatedKindRegistry,
|
|
3545
|
-
stores:
|
|
3554
|
+
stores: _stateSyncStoresResolved, // gate-resolved (dev-live / fleet-dark) per operator directive 2026-06-13
|
|
3546
3555
|
tierOf: relationshipTierOf,
|
|
3547
3556
|
loadOriginRecords: (store, recordKey) => {
|
|
3548
3557
|
if (store !== RELATIONSHIP_STORE_KEY || _meshSelfId === null || !relationships)
|
|
@@ -7700,7 +7709,7 @@ export async function startServer(options) {
|
|
|
7700
7709
|
const { learningTierOf, learningToOriginRecord, deriveLearningRecordKey, LEARNING_STORE_KEY } = await import('../core/LearningsReplicatedStore.js');
|
|
7701
7710
|
const learningsUnionReader = new ReplicatedStoreReader({
|
|
7702
7711
|
registry: replicatedKindRegistry,
|
|
7703
|
-
stores:
|
|
7712
|
+
stores: _stateSyncStoresResolved, // gate-resolved (dev-live / fleet-dark) per operator directive 2026-06-13
|
|
7704
7713
|
tierOf: learningTierOf,
|
|
7705
7714
|
loadOriginRecords: (store, recordKey) => {
|
|
7706
7715
|
if (store !== LEARNING_STORE_KEY || _meshSelfId === null)
|
|
@@ -7748,7 +7757,7 @@ export async function startServer(options) {
|
|
|
7748
7757
|
const { knowledgeTierOf, knowledgeToOriginRecord, deriveKnowledgeRecordKey, KNOWLEDGE_STORE_KEY, } = await import('../core/KnowledgeReplicatedStore.js');
|
|
7749
7758
|
const knowledgeUnionReader = new ReplicatedStoreReader({
|
|
7750
7759
|
registry: replicatedKindRegistry,
|
|
7751
|
-
stores:
|
|
7760
|
+
stores: _stateSyncStoresResolved, // gate-resolved (dev-live / fleet-dark) per operator directive 2026-06-13
|
|
7752
7761
|
tierOf: knowledgeTierOf,
|
|
7753
7762
|
loadOriginRecords: (store, recordKey) => {
|
|
7754
7763
|
if (store !== KNOWLEDGE_STORE_KEY || _meshSelfId === null)
|
|
@@ -7794,7 +7803,7 @@ export async function startServer(options) {
|
|
|
7794
7803
|
const { evolutionActionTierOf, evolutionActionToOriginRecord, deriveEvolutionActionRecordKey, EVOLUTION_ACTION_STORE_KEY, } = await import('../core/EvolutionActionsReplicatedStore.js');
|
|
7795
7804
|
const evolutionActionsUnionReader = new ReplicatedStoreReader({
|
|
7796
7805
|
registry: replicatedKindRegistry,
|
|
7797
|
-
stores:
|
|
7806
|
+
stores: _stateSyncStoresResolved, // gate-resolved (dev-live / fleet-dark) per operator directive 2026-06-13
|
|
7798
7807
|
tierOf: evolutionActionTierOf,
|
|
7799
7808
|
loadOriginRecords: (store, recordKey) => {
|
|
7800
7809
|
if (store !== EVOLUTION_ACTION_STORE_KEY || _meshSelfId === null)
|
|
@@ -7838,7 +7847,7 @@ export async function startServer(options) {
|
|
|
7838
7847
|
const { userTierOf, userToOriginRecord, deriveUserRecordKey, USER_STORE_KEY } = await import('../core/UserRegistryReplicatedStore.js');
|
|
7839
7848
|
const userRegistryUnionReader = new ReplicatedStoreReader({
|
|
7840
7849
|
registry: replicatedKindRegistry,
|
|
7841
|
-
stores:
|
|
7850
|
+
stores: _stateSyncStoresResolved, // gate-resolved (dev-live / fleet-dark) per operator directive 2026-06-13
|
|
7842
7851
|
tierOf: userTierOf,
|
|
7843
7852
|
loadOriginRecords: (store, recordKey) => {
|
|
7844
7853
|
if (store !== USER_STORE_KEY || _meshSelfId === null)
|
|
@@ -7882,7 +7891,7 @@ export async function startServer(options) {
|
|
|
7882
7891
|
const { topicOperatorTierOf, topicOperatorToOriginRecord, deriveTopicOperatorRecordKey, TOPIC_OPERATOR_STORE_KEY } = await import('../core/TopicOperatorReplicatedStore.js');
|
|
7883
7892
|
const topicOperatorUnionReader = new ReplicatedStoreReader({
|
|
7884
7893
|
registry: replicatedKindRegistry,
|
|
7885
|
-
stores:
|
|
7894
|
+
stores: _stateSyncStoresResolved, // gate-resolved (dev-live / fleet-dark) per operator directive 2026-06-13
|
|
7886
7895
|
tierOf: topicOperatorTierOf,
|
|
7887
7896
|
loadOriginRecords: (store, recordKey) => {
|
|
7888
7897
|
if (store !== TOPIC_OPERATOR_STORE_KEY || _meshSelfId === null)
|
|
@@ -13180,7 +13189,7 @@ export async function startServer(options) {
|
|
|
13180
13189
|
online: c.online,
|
|
13181
13190
|
stateSyncReceive: c.seamlessnessFlags?.stateSyncReceive,
|
|
13182
13191
|
}));
|
|
13183
|
-
const stores =
|
|
13192
|
+
const stores = _stateSyncStoresResolved; // gate-resolved (dev-live / fleet-dark) per operator directive 2026-06-13
|
|
13184
13193
|
const verdict = checkPoolFlagCoherence(replicatedKindRegistry, stores, peers);
|
|
13185
13194
|
if (verdict.mixedStores.length > 0) {
|
|
13186
13195
|
// Surface ONCE (coalesced): one log line listing every mixed store.
|