@oh-my-pi/pi-coding-agent 15.11.8 → 15.12.0
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/CHANGELOG.md +36 -2
- package/dist/cli.js +8083 -7692
- package/dist/types/collab/crypto.d.ts +1 -6
- package/dist/types/collab/guest.d.ts +2 -0
- package/dist/types/collab/host.d.ts +16 -0
- package/dist/types/collab/protocol.d.ts +14 -1
- package/dist/types/config/settings-schema.d.ts +40 -5
- package/dist/types/export/custom-share.d.ts +1 -2
- package/dist/types/export/html/index.d.ts +39 -1
- package/dist/types/export/share.d.ts +43 -0
- package/dist/types/main.d.ts +2 -0
- package/dist/types/modes/components/agent-hub.d.ts +19 -1
- package/dist/types/modes/components/status-line/component.d.ts +6 -1
- package/dist/types/modes/components/status-line/types.d.ts +2 -0
- package/dist/types/modes/controllers/event-controller.d.ts +7 -0
- package/dist/types/modes/controllers/input-controller.d.ts +1 -1
- package/dist/types/modes/controllers/session-focus-controller.d.ts +31 -0
- package/dist/types/modes/interactive-mode.d.ts +9 -0
- package/dist/types/modes/session-observer-registry.d.ts +7 -0
- package/dist/types/modes/theme/theme.d.ts +2 -1
- package/dist/types/modes/types.d.ts +12 -0
- package/dist/types/session/agent-session.d.ts +2 -0
- package/dist/types/session/codex-auto-reset.d.ts +8 -4
- package/dist/types/task/executor.d.ts +7 -0
- package/dist/types/task/types.d.ts +9 -0
- package/package.json +13 -14
- package/scripts/build-binary.ts +4 -0
- package/scripts/bundle-dist.ts +4 -0
- package/scripts/generate-share-viewer.ts +34 -0
- package/src/collab/crypto.ts +10 -4
- package/src/collab/guest.ts +31 -2
- package/src/collab/host.ts +73 -11
- package/src/collab/protocol.ts +48 -7
- package/src/commands/join.ts +1 -1
- package/src/config/settings-schema.ts +40 -4
- package/src/config/settings.ts +12 -0
- package/src/export/custom-share.ts +1 -1
- package/src/export/html/index.ts +122 -17
- package/src/export/html/share-loader.js +102 -0
- package/src/export/html/template.css +745 -459
- package/src/export/html/template.html +6 -3
- package/src/export/html/template.js +240 -915
- package/src/export/html/tool-views.generated.js +38 -0
- package/src/export/share.ts +268 -0
- package/src/internal-urls/docs-index.generated.ts +73 -73
- package/src/main.ts +22 -9
- package/src/modes/components/agent-hub.ts +541 -410
- package/src/modes/components/status-line/component.ts +38 -5
- package/src/modes/components/status-line/segments.ts +5 -1
- package/src/modes/components/status-line/types.ts +2 -0
- package/src/modes/components/tips.txt +3 -1
- package/src/modes/controllers/command-controller.ts +55 -96
- package/src/modes/controllers/event-controller.ts +45 -16
- package/src/modes/controllers/input-controller.ts +104 -4
- package/src/modes/controllers/selector-controller.ts +11 -15
- package/src/modes/controllers/session-focus-controller.ts +112 -0
- package/src/modes/interactive-mode.ts +44 -2
- package/src/modes/session-observer-registry.ts +11 -0
- package/src/modes/theme/theme.ts +6 -0
- package/src/modes/types.ts +12 -0
- package/src/modes/utils/ui-helpers.ts +16 -13
- package/src/prompts/tools/job.md +1 -1
- package/src/session/agent-session.ts +65 -7
- package/src/session/codex-auto-reset.ts +23 -11
- package/src/slash-commands/builtin-registry.ts +62 -35
- package/src/task/executor.ts +14 -0
- package/src/task/index.ts +5 -1
- package/src/task/render.ts +76 -5
- package/src/task/types.ts +9 -0
- package/src/tiny/worker.ts +17 -95
- package/src/tools/job.ts +6 -9
- package/dist/tokenizers.linux-x64-gnu-xcjh3jwk.node +0 -0
- package/dist/types/export/html/template.generated.d.ts +0 -1
- package/dist/types/export/html/template.macro.d.ts +0 -5
- package/dist/types/tiny/compiled-runtime.d.ts +0 -35
- package/scripts/generate-template.ts +0 -33
- package/src/bun-imports.d.ts +0 -28
- package/src/export/html/template.generated.ts +0 -2
- package/src/export/html/template.macro.ts +0 -25
- package/src/tiny/compiled-runtime.ts +0 -179
package/src/main.ts
CHANGED
|
@@ -244,6 +244,22 @@ export interface InteractiveModeNotify {
|
|
|
244
244
|
message: string;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
+
export function buildModelScopeNotification(
|
|
248
|
+
scopedModelsForDisplay: readonly Pick<ScopedModel, "model" | "thinkingLevel" | "explicitThinkingLevel">[],
|
|
249
|
+
startupQuiet: boolean,
|
|
250
|
+
): InteractiveModeNotify | null {
|
|
251
|
+
if (startupQuiet || scopedModelsForDisplay.length === 0) {
|
|
252
|
+
return null;
|
|
253
|
+
}
|
|
254
|
+
const modelList = scopedModelsForDisplay
|
|
255
|
+
.map(scopedModel => {
|
|
256
|
+
const thinkingStr =
|
|
257
|
+
scopedModel.explicitThinkingLevel && scopedModel.thinkingLevel ? `:${scopedModel.thinkingLevel}` : "";
|
|
258
|
+
return `${scopedModel.model.id}${thinkingStr}`;
|
|
259
|
+
})
|
|
260
|
+
.join(", ");
|
|
261
|
+
return { kind: "info", message: `Model scope: ${modelList} (Ctrl+P to cycle)` };
|
|
262
|
+
}
|
|
247
263
|
export async function submitInteractiveInput(
|
|
248
264
|
mode: Pick<
|
|
249
265
|
InteractiveMode,
|
|
@@ -1267,18 +1283,15 @@ export async function runRootCommand(
|
|
|
1267
1283
|
const versionCheckPromise = checkForNewVersion(VERSION).catch(() => undefined);
|
|
1268
1284
|
const changelogMarkdown = await logger.time("main:getChangelogForDisplay", getChangelogForDisplay, parsedArgs);
|
|
1269
1285
|
|
|
1270
|
-
const
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
return `${scopedModel.model.id}${thinkingStr}`;
|
|
1276
|
-
})
|
|
1277
|
-
.join(", ");
|
|
1286
|
+
const modelScopeNotification = buildModelScopeNotification(
|
|
1287
|
+
scopedModels,
|
|
1288
|
+
settingsInstance.get("startup.quiet"),
|
|
1289
|
+
);
|
|
1290
|
+
if (modelScopeNotification) {
|
|
1278
1291
|
// Routed through the TUI (not stdout): the startup capture owns the
|
|
1279
1292
|
// terminal in raw mode here, and the TUI's first clearScrollback paint
|
|
1280
1293
|
// would wipe a pre-TUI line anyway.
|
|
1281
|
-
notifs.push(
|
|
1294
|
+
notifs.push(modelScopeNotification);
|
|
1282
1295
|
}
|
|
1283
1296
|
|
|
1284
1297
|
if ($env.PI_TIMING) {
|