@getpaseo/server 0.2.0-beta.4 → 0.2.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.
@@ -2,6 +2,14 @@ import type { AgentModelDefinition } from "../../agent-sdk-types.js";
2
2
  export declare const CLAUDE_DISABLED_THINKING_OPTION_ID = "off";
3
3
  export declare const CLAUDE_ULTRACODE_THINKING_OPTION_ID = "ultracode";
4
4
  export declare const CLAUDE_MODEL_MANIFEST: readonly [{
5
+ readonly id: "claude-opus-5";
6
+ readonly label: "Opus 5";
7
+ readonly description: "Opus 5 · Latest release";
8
+ readonly isDefault: true;
9
+ readonly contextWindowMaxTokens: 1000000;
10
+ readonly effortLevels: readonly ["low", "medium", "high", "xhigh", "max"];
11
+ readonly supportsThinkingDisabled: true;
12
+ }, {
5
13
  readonly id: "claude-fable-5";
6
14
  readonly label: "Fable 5";
7
15
  readonly description: "Fable 5 · Most powerful model";
@@ -18,8 +26,7 @@ export declare const CLAUDE_MODEL_MANIFEST: readonly [{
18
26
  }, {
19
27
  readonly id: "claude-opus-4-8";
20
28
  readonly label: "Opus 4.8";
21
- readonly description: "Opus 4.8 · Latest release";
22
- readonly isDefault: true;
29
+ readonly description: "Opus 4.8 · Previous release";
23
30
  readonly contextWindowMaxTokens: 200000;
24
31
  readonly effortLevels: readonly ["low", "medium", "high", "xhigh", "max"];
25
32
  readonly supportsThinkingDisabled: true;
@@ -12,6 +12,15 @@ const CLAUDE_EFFORT_LABELS = {
12
12
  export const CLAUDE_DISABLED_THINKING_OPTION_ID = "off";
13
13
  export const CLAUDE_ULTRACODE_THINKING_OPTION_ID = "ultracode";
14
14
  export const CLAUDE_MODEL_MANIFEST = [
15
+ {
16
+ id: "claude-opus-5",
17
+ label: "Opus 5",
18
+ description: "Opus 5 · Latest release",
19
+ isDefault: true,
20
+ contextWindowMaxTokens: 1000000,
21
+ effortLevels: CLAUDE_EFFORT_LEVELS.xhigh,
22
+ supportsThinkingDisabled: true,
23
+ },
15
24
  {
16
25
  id: "claude-fable-5",
17
26
  label: "Fable 5",
@@ -31,8 +40,7 @@ export const CLAUDE_MODEL_MANIFEST = [
31
40
  {
32
41
  id: "claude-opus-4-8",
33
42
  label: "Opus 4.8",
34
- description: "Opus 4.8 · Latest release",
35
- isDefault: true,
43
+ description: "Opus 4.8 · Previous release",
36
44
  contextWindowMaxTokens: 200000,
37
45
  effortLevels: CLAUDE_EFFORT_LEVELS.xhigh,
38
46
  supportsThinkingDisabled: true,
@@ -14,6 +14,7 @@ export { formatOmpVersionSupport, resolveOmpDiagnosticPaths } from "./provider-c
14
14
  import { OmpSubagentCardTracker } from "./subagent-card-tracker.js";
15
15
  import { shouldDisplayOmpCustomMessage } from "./custom-message.js";
16
16
  import { getUserMessageText } from "./message-history.js";
17
+ import { mapOmpSystemNoticeToToolCall } from "./system-notice.js";
17
18
  import { materializeProviderImage } from "../provider-image-output.js";
18
19
  import { OmpCliRuntime } from "./cli-runtime.js";
19
20
  import { listOmpImportableSessions, readOmpImportSessionConfig } from "./session-descriptor.js";
@@ -1637,12 +1638,13 @@ export class OmpAgentSession {
1637
1638
  if (shouldDisplayOmpCustomMessage(event.message)) {
1638
1639
  const text = getUserMessageText(event.message.content);
1639
1640
  if (text) {
1640
- const advisorItem = mapOmpAdvisorMessageToToolCall(event.message, text);
1641
+ const item = mapOmpAdvisorMessageToToolCall(event.message, text) ??
1642
+ mapOmpSystemNoticeToToolCall(text);
1641
1643
  this.emit({
1642
1644
  type: "timeline",
1643
1645
  provider: this.provider,
1644
1646
  turnId,
1645
- item: advisorItem ?? { type: "assistant_message", text },
1647
+ item: item ?? { type: "assistant_message", text },
1646
1648
  });
1647
1649
  }
1648
1650
  }
@@ -1,7 +1,2 @@
1
- import type { Logger } from "pino";
2
1
  export declare function renderPairingQr(url: string): Promise<string>;
3
- export declare function printPairingQrIfEnabled(args: {
4
- url: string;
5
- logger?: Logger;
6
- }): Promise<void>;
7
2
  //# sourceMappingURL=pairing-qr.d.ts.map
@@ -1,45 +1,15 @@
1
1
  import * as QRCode from "qrcode";
2
- function parseBooleanEnv(value) {
3
- if (value === undefined)
4
- return undefined;
5
- const normalized = value.trim().toLowerCase();
6
- if (["1", "true", "yes", "y", "on"].includes(normalized))
7
- return true;
8
- if (["0", "false", "no", "n", "off"].includes(normalized))
9
- return false;
10
- return undefined;
11
- }
12
- function shouldPrintPairingQr() {
13
- const env = parseBooleanEnv(process.env.PASEO_PAIRING_QR);
14
- if (env !== undefined)
15
- return env;
16
- return process.stdout.isTTY ?? false;
17
- }
2
+ const BLACK_ON_WHITE = "\u001b[47m\u001b[30m";
3
+ const RESET_COLORS = "\u001b[0m";
18
4
  export async function renderPairingQr(url) {
19
- const terminalOptions = {
20
- type: "terminal",
21
- small: true,
22
- };
23
5
  const utf8Options = {
24
6
  type: "utf8",
7
+ margin: 4,
25
8
  };
26
- try {
27
- return await QRCode.toString(url, terminalOptions);
28
- }
29
- catch {
30
- return await QRCode.toString(url, utf8Options);
31
- }
32
- }
33
- export async function printPairingQrIfEnabled(args) {
34
- if (!shouldPrintPairingQr())
35
- return;
36
- const qr = await renderPairingQr(args.url);
37
- const out = `\nScan to pair:\n${qr}\n${args.url}\n`;
38
- try {
39
- process.stdout.write(out);
40
- }
41
- catch (error) {
42
- args.logger?.debug({ error }, "Failed to print pairing QR");
43
- }
9
+ const qr = await QRCode.toString(url, utf8Options);
10
+ return qr
11
+ .split("\n")
12
+ .map((line) => `${BLACK_ON_WHITE}${line}${RESET_COLORS}`)
13
+ .join("\n");
44
14
  }
45
15
  //# sourceMappingURL=pairing-qr.js.map