openfox 1.6.103 → 2.0.0-beta.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/dist/agent-defaults/builder.agent.md +1 -2
- package/dist/agent-defaults/code-reviewer.agent.md +16 -9
- package/dist/agent-defaults/planner.agent.md +1 -1
- package/dist/agent-defaults/verifier.agent.md +2 -3
- package/dist/{auto-compaction-7LMAY5JV.js → auto-compaction-UIWTO3H5.js} +6 -6
- package/dist/{chat-handler-ZJVIM7U4.js → chat-handler-IVIWOR3D.js} +9 -10
- package/dist/{chunk-PQOK4XCX.js → chunk-4U4CSRBE.js} +7 -5
- package/dist/{chunk-RYEZ7LDX.js → chunk-ALH4KM2Y.js} +108 -231
- package/dist/{chunk-RCQOHFAN.js → chunk-CEZNMLOO.js} +10 -2
- package/dist/{chunk-MEYDERUX.js → chunk-FQLK5GL5.js} +1 -1
- package/dist/{chunk-6WZI6F6G.js → chunk-NONI4CRP.js} +19 -1
- package/dist/{chunk-IZC2EZ4D.js → chunk-QFSSKIQ3.js} +4 -4
- package/dist/{chunk-PDPXHSNZ.js → chunk-UFY4I643.js} +4 -4
- package/dist/{chunk-J335KZ6U.js → chunk-XKR3HCAL.js} +14 -3
- package/dist/{chunk-LGN6IXGS.js → chunk-ZLUBZ4K4.js} +501 -263
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/update.sh +8 -3
- package/dist/{events-OKTZRT3Y.js → events-OHJWCI3S.js} +5 -3
- package/dist/{folding-Z3OMWNOE.js → folding-U6UHQAS5.js} +4 -2
- package/dist/{orchestrator-5EYWRAZ2.js → orchestrator-7ZXM4J22.js} +7 -7
- package/dist/package.json +1 -1
- package/dist/{processor-XJYCHNV6.js → processor-TKBJLQ2N.js} +7 -7
- package/dist/{protocol-CdVNdXi8.d.ts → protocol-BQ12Aw5J.d.ts} +14 -3
- package/dist/{protocol-TNC6MCJV.js → protocol-K62EPEGS.js} +5 -3
- package/dist/{serve-NWPJO6J7.js → serve-5KA6SSSP.js} +8 -8
- package/dist/server/index.d.ts +7 -1
- package/dist/server/index.js +7 -7
- package/dist/{service-EUOBAATS.js → service-GB7AIOG5.js} +10 -4
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/{tools-WFIYKFBE.js → tools-Z7X4HXZN.js} +6 -6
- package/dist/web/assets/{index-aAebFDVk.css → index-BY8EbT5Z.css} +1 -1
- package/dist/web/assets/index-CqOJgw7l.js +299 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/workflow-defaults/default.workflow.json +58 -10
- package/package.json +1 -1
- package/dist/web/assets/index-DcGVOFte.js +0 -299
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServerMessage,
|
|
3
3
|
isClientMessage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FQLK5GL5.js";
|
|
5
5
|
|
|
6
6
|
// src/server/ws/protocol.ts
|
|
7
7
|
function enrichMessagesWithToolResults(messages) {
|
|
@@ -132,6 +132,9 @@ function createPhaseChangedMessage(phase) {
|
|
|
132
132
|
function createCriteriaUpdatedMessage(criteria, changedId) {
|
|
133
133
|
return createServerMessage("criteria.updated", { criteria, ...changedId ? { changedId } : {} });
|
|
134
134
|
}
|
|
135
|
+
function createMetadataUpdatedMessage(key, entries) {
|
|
136
|
+
return createServerMessage("metadata.updated", { key, entries });
|
|
137
|
+
}
|
|
135
138
|
function createContextStateMessage(context, subAgentId) {
|
|
136
139
|
return createServerMessage("context.state", { context, ...subAgentId && { subAgentId } });
|
|
137
140
|
}
|
|
@@ -245,6 +248,10 @@ function storedEventToServerMessage(event) {
|
|
|
245
248
|
const data = event.data;
|
|
246
249
|
return createCriteriaUpdatedMessage(data.criteria);
|
|
247
250
|
}
|
|
251
|
+
case "metadata.set": {
|
|
252
|
+
const data = event.data;
|
|
253
|
+
return createMetadataUpdatedMessage(data.key, data.entries);
|
|
254
|
+
}
|
|
248
255
|
case "criterion.updated": {
|
|
249
256
|
return null;
|
|
250
257
|
}
|
|
@@ -317,6 +324,7 @@ export {
|
|
|
317
324
|
createModeChangedMessage,
|
|
318
325
|
createPhaseChangedMessage,
|
|
319
326
|
createCriteriaUpdatedMessage,
|
|
327
|
+
createMetadataUpdatedMessage,
|
|
320
328
|
createContextStateMessage,
|
|
321
329
|
createSessionNameGeneratedMessage,
|
|
322
330
|
isSessionLoadPayload,
|
|
@@ -326,4 +334,4 @@ export {
|
|
|
326
334
|
createQueueStateMessage,
|
|
327
335
|
storedEventToServerMessage
|
|
328
336
|
};
|
|
329
|
-
//# sourceMappingURL=chunk-
|
|
337
|
+
//# sourceMappingURL=chunk-CEZNMLOO.js.map
|
|
@@ -503,6 +503,16 @@ function foldTodos(events) {
|
|
|
503
503
|
}
|
|
504
504
|
return todos;
|
|
505
505
|
}
|
|
506
|
+
function foldMetadata(events) {
|
|
507
|
+
const metadata = {};
|
|
508
|
+
for (const event of events) {
|
|
509
|
+
if (event.type === "metadata.set") {
|
|
510
|
+
const data = event.data;
|
|
511
|
+
metadata[data.key] = data.entries;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
return metadata;
|
|
515
|
+
}
|
|
506
516
|
function foldContextState(events, initialWindowId) {
|
|
507
517
|
let currentContextWindowId = initialWindowId;
|
|
508
518
|
let compactionCount = 0;
|
|
@@ -624,6 +634,7 @@ function foldSessionState(events, initialWindowId, maxTokens, initialMessages) {
|
|
|
624
634
|
const messages = initialMessages && initialMessages.length > 0 ? foldTurnEventsToSnapshotMessagesFromInitial(events, initialMessages) : foldTurnEventsToSnapshotMessages(events);
|
|
625
635
|
const criteria = foldCriteria(events);
|
|
626
636
|
const todos = foldTodos(events);
|
|
637
|
+
let metadataEntries = foldMetadata(events);
|
|
627
638
|
const contextResult = foldContextState(events, initialWindowId);
|
|
628
639
|
const pendingConfirmations = foldPendingConfirmations(events);
|
|
629
640
|
const baseContextState = contextResult.latestContextState ?? {
|
|
@@ -665,6 +676,9 @@ function foldSessionState(events, initialWindowId, maxTokens, initialMessages) {
|
|
|
665
676
|
if (snapshotData.dynamicContextHash && !dynamicContextHash) {
|
|
666
677
|
dynamicContextHash = snapshotData.dynamicContextHash;
|
|
667
678
|
}
|
|
679
|
+
if (snapshotData.metadataEntries && Object.keys(metadataEntries).length === 0) {
|
|
680
|
+
metadataEntries = snapshotData.metadataEntries;
|
|
681
|
+
}
|
|
668
682
|
}
|
|
669
683
|
}
|
|
670
684
|
let lastModeWithReminder;
|
|
@@ -765,6 +779,7 @@ function foldSessionState(events, initialWindowId, maxTokens, initialMessages) {
|
|
|
765
779
|
messages,
|
|
766
780
|
criteria,
|
|
767
781
|
todos,
|
|
782
|
+
metadataEntries,
|
|
768
783
|
contextState,
|
|
769
784
|
currentContextWindowId: contextResult.currentContextWindowId,
|
|
770
785
|
readFiles: contextResult.readFiles,
|
|
@@ -789,6 +804,7 @@ function buildSnapshot(foldedState, latestSeq, snapshotAt = Date.now()) {
|
|
|
789
804
|
isRunning: foldedState.isRunning,
|
|
790
805
|
messages: foldedState.messages,
|
|
791
806
|
criteria: foldedState.criteria,
|
|
807
|
+
metadataEntries: foldedState.metadataEntries,
|
|
792
808
|
contextState: foldedState.contextState,
|
|
793
809
|
currentContextWindowId: foldedState.currentContextWindowId,
|
|
794
810
|
todos: foldedState.todos,
|
|
@@ -836,6 +852,7 @@ function buildSnapshotFromSessionState(input) {
|
|
|
836
852
|
isRunning: session.isRunning,
|
|
837
853
|
messages,
|
|
838
854
|
criteria: session.criteria,
|
|
855
|
+
metadataEntries: foldedState.metadataEntries,
|
|
839
856
|
contextState: {
|
|
840
857
|
currentTokens: session.executionState?.currentTokenCount ?? foldedState.contextState.currentTokens,
|
|
841
858
|
maxTokens: foldedState.contextState.maxTokens,
|
|
@@ -883,6 +900,7 @@ export {
|
|
|
883
900
|
foldTurnEventsToSnapshotMessagesFromInitial,
|
|
884
901
|
foldCriteria,
|
|
885
902
|
foldTodos,
|
|
903
|
+
foldMetadata,
|
|
886
904
|
foldContextState,
|
|
887
905
|
foldMode,
|
|
888
906
|
foldPhase,
|
|
@@ -894,4 +912,4 @@ export {
|
|
|
894
912
|
getMessagesForWindow,
|
|
895
913
|
buildContextMessagesFromMessages
|
|
896
914
|
};
|
|
897
|
-
//# sourceMappingURL=chunk-
|
|
915
|
+
//# sourceMappingURL=chunk-NONI4CRP.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getEventStore,
|
|
3
3
|
updateSessionMetadata
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XKR3HCAL.js";
|
|
5
5
|
import {
|
|
6
6
|
buildMessagesFromStoredEvents,
|
|
7
7
|
foldPendingConfirmations
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NONI4CRP.js";
|
|
9
9
|
import {
|
|
10
10
|
createContextStateMessage,
|
|
11
11
|
createSessionStateMessage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CEZNMLOO.js";
|
|
13
13
|
import {
|
|
14
14
|
logger
|
|
15
15
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -143,4 +143,4 @@ export {
|
|
|
143
143
|
needsNameGenerationCheck,
|
|
144
144
|
applyGeneratedSessionName
|
|
145
145
|
};
|
|
146
|
-
//# sourceMappingURL=chunk-
|
|
146
|
+
//# sourceMappingURL=chunk-QFSSKIQ3.js.map
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
getToolRegistryForAgent,
|
|
14
14
|
loadAllAgentsDefault,
|
|
15
15
|
runTopLevelAgentLoop
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ALH4KM2Y.js";
|
|
17
17
|
import {
|
|
18
18
|
getCurrentContextWindowId,
|
|
19
19
|
getEventStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XKR3HCAL.js";
|
|
21
21
|
import {
|
|
22
22
|
buildSnapshotFromSessionState
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NONI4CRP.js";
|
|
24
24
|
import {
|
|
25
25
|
logger
|
|
26
26
|
} from "./chunk-K44MW7JJ.js";
|
|
@@ -329,4 +329,4 @@ export {
|
|
|
329
329
|
runBuilderTurn,
|
|
330
330
|
runVerifierTurn
|
|
331
331
|
};
|
|
332
|
-
//# sourceMappingURL=chunk-
|
|
332
|
+
//# sourceMappingURL=chunk-UFY4I643.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
foldSessionState,
|
|
10
10
|
spreadOptionalMessageFields,
|
|
11
11
|
stripPromptContextMessages
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NONI4CRP.js";
|
|
13
13
|
import {
|
|
14
14
|
getRuntimeConfig
|
|
15
15
|
} from "./chunk-CGZHLM3K.js";
|
|
@@ -367,7 +367,8 @@ var EventStore = class {
|
|
|
367
367
|
'mode.changed',
|
|
368
368
|
'phase.changed',
|
|
369
369
|
'todo.updated',
|
|
370
|
-
'context.state'
|
|
370
|
+
'context.state',
|
|
371
|
+
'metadata.set'
|
|
371
372
|
)
|
|
372
373
|
`
|
|
373
374
|
).run(sessionId, latestSnapshotSeq);
|
|
@@ -632,6 +633,7 @@ function createSession(projectId, workdir, title, providerId, providerModel) {
|
|
|
632
633
|
totalToolCalls: 0,
|
|
633
634
|
iterationCount: 0
|
|
634
635
|
},
|
|
636
|
+
metadataEntries: {},
|
|
635
637
|
dangerLevel
|
|
636
638
|
};
|
|
637
639
|
}
|
|
@@ -657,6 +659,7 @@ function getSession(id) {
|
|
|
657
659
|
totalToolCalls: row.total_tool_calls,
|
|
658
660
|
iterationCount: row.iteration_count
|
|
659
661
|
},
|
|
662
|
+
metadataEntries: {},
|
|
660
663
|
dangerLevel: row.danger_level ?? "normal"
|
|
661
664
|
};
|
|
662
665
|
}
|
|
@@ -1052,6 +1055,13 @@ function emitTodosUpdated(sessionId, todos) {
|
|
|
1052
1055
|
data: { todos }
|
|
1053
1056
|
});
|
|
1054
1057
|
}
|
|
1058
|
+
function emitMetadataSet(sessionId, key, entries) {
|
|
1059
|
+
const eventStore = getEventStore();
|
|
1060
|
+
eventStore.append(sessionId, {
|
|
1061
|
+
type: "metadata.set",
|
|
1062
|
+
data: { key, entries }
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1055
1065
|
function emitFileRead(sessionId, path, tokenCount, contextWindowId) {
|
|
1056
1066
|
const eventStore = getEventStore();
|
|
1057
1067
|
eventStore.append(sessionId, {
|
|
@@ -1257,6 +1267,7 @@ export {
|
|
|
1257
1267
|
emitCriteriaSet,
|
|
1258
1268
|
emitCriterionUpdated,
|
|
1259
1269
|
emitTodosUpdated,
|
|
1270
|
+
emitMetadataSet,
|
|
1260
1271
|
emitFileRead,
|
|
1261
1272
|
emitContextCompacted,
|
|
1262
1273
|
emitContextState,
|
|
@@ -1268,4 +1279,4 @@ export {
|
|
|
1268
1279
|
compactContext,
|
|
1269
1280
|
getRecentUserPromptsForSession
|
|
1270
1281
|
};
|
|
1271
|
-
//# sourceMappingURL=chunk-
|
|
1282
|
+
//# sourceMappingURL=chunk-XKR3HCAL.js.map
|