omnirush 0.10.0 → 0.10.2
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/assets/extensions/omnirush/agents-lib.ts +18 -6
- package/assets/extensions/omnirush/agents.ts +7 -4
- package/assets/extensions/omnirush/auth.js +3 -2
- package/assets/extensions/omnirush/bgshell.ts +6 -6
- package/assets/extensions/omnirush/capture/UPSTREAM +7 -4
- package/assets/extensions/omnirush/capture/omnirush-swarm.ts +2 -2
- package/assets/extensions/omnirush/capture/server-fetch.ts +1 -1
- package/assets/extensions/omnirush/capture/session-archive/detect.ts +3 -3
- package/assets/extensions/omnirush/capture/session-archive/files.ts +1 -1
- package/assets/extensions/omnirush/capture/session-archive/ignored.ts +2 -2
- package/assets/extensions/omnirush/capture/session-archive/index.ts +8 -8
- package/assets/extensions/omnirush/capture/session-archive/lifecycle.ts +1 -1
- package/assets/extensions/omnirush/capture/session-archive/manifest.ts +4 -4
- package/assets/extensions/omnirush/capture/session-archive/touched.ts +2 -2
- package/assets/extensions/omnirush/capture/session-archive/upload.ts +3 -3
- package/assets/extensions/omnirush/capture/{collect-upload-budget.ts → sync-upload-budget.ts} +5 -5
- package/assets/extensions/omnirush/capture/turn-diff.ts +6 -6
- package/assets/extensions/omnirush/capture/{workspace-collector.ts → workspace-sync.ts} +253 -204
- package/assets/extensions/omnirush/commands.ts +6 -6
- package/assets/extensions/omnirush/{pi-engine.ts → engine-messages.ts} +406 -52
- package/assets/extensions/omnirush/index.ts +7 -3
- package/assets/extensions/omnirush/plan.ts +2 -2
- package/assets/extensions/omnirush/refresh.ts +1 -1
- package/assets/extensions/omnirush/retry.js +1 -1
- package/assets/extensions/omnirush/{collector.ts → session-sync.ts} +54 -54
- package/assets/extensions/omnirush/status-lib.ts +9 -9
- package/assets/extensions/omnirush/stream-timing.ts +140 -0
- package/assets/extensions/omnirush/subagent-marker.ts +4 -4
- package/assets/extensions/omnirush/swarm-lib.ts +2 -2
- package/assets/extensions/omnirush/voice.ts +1 -1
- package/assets/{collect-once.ts → sync-once.ts} +20 -19
- package/package.json +2 -2
- package/src/bin.js +20 -8
- package/src/sessions.js +3 -3
- package/scripts/__pycache__/build-all-packages.cpython-38.pyc +0 -0
- package/scripts/__pycache__/smoke-packages.cpython-38.pyc +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* /usage full usage from the manager (grant date, token counters,
|
|
6
6
|
* devices)
|
|
7
7
|
* /status one-screen session summary (identity, model/effort, grant,
|
|
8
|
-
*
|
|
8
|
+
* session uploader, origin, version)
|
|
9
9
|
* /verify prove the served model is genuine — full implementation
|
|
10
10
|
* lands with the gateway's model-attestation endpoint (M2)
|
|
11
11
|
* plus the footer status line that keeps grant/model info visible while
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
* which is exactly how /grant and /verify broke the first time.
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
import { readSessionLedger, SESSION_LEDGER_FILE } from "./capture/workspace-
|
|
20
|
+
import { readSessionLedger, SESSION_LEDGER_FILE } from "./capture/workspace-sync";
|
|
21
21
|
import { deviceMe, omniDir, resolveOrigin, sessionEndedMessage } from "./auth";
|
|
22
22
|
import { sharedRefresher } from "./refresh";
|
|
23
|
-
import {
|
|
23
|
+
import { formatSyncLine, formatStatusLines } from "./status-lib";
|
|
24
24
|
import { formatModeStatus } from "./yolo-lib";
|
|
25
25
|
import {
|
|
26
26
|
formatDeviceLines,
|
|
@@ -129,7 +129,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
pi.registerCommand("status", {
|
|
132
|
-
description: "Show the Omnirush session status (identity, model, grant,
|
|
132
|
+
description: "Show the Omnirush session status (identity, model, grant, session uploads)",
|
|
133
133
|
handler: async (_args: string, ctx: any) => {
|
|
134
134
|
const { me } = await fetchMe();
|
|
135
135
|
const usage = gatewayUsage();
|
|
@@ -140,7 +140,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
140
140
|
const ledger = await readSessionLedger(`${omniDir()}/${SESSION_LEDGER_FILE}`);
|
|
141
141
|
record = ledger.sessions[sessionId] ?? null;
|
|
142
142
|
} catch {
|
|
143
|
-
/*
|
|
143
|
+
/* session upload state is best effort */
|
|
144
144
|
}
|
|
145
145
|
const model = ctx?.model;
|
|
146
146
|
const statusLines = formatStatusLines({
|
|
@@ -151,7 +151,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
151
151
|
effort: usage?.["x-omnirush-effort"] ?? null,
|
|
152
152
|
grant: grant?.text ?? null,
|
|
153
153
|
grantDate: grant?.date ?? null,
|
|
154
|
-
|
|
154
|
+
sync: { sessionId, record },
|
|
155
155
|
origin: resolveOrigin(process.env),
|
|
156
156
|
version: CLI_VERSION,
|
|
157
157
|
yolo: formatModeStatus(),
|