@camerontaylor/paseo-protocol 0.12.0-beta.1.fork.1 → 0.12.0-fork.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/browser-automation/capabilities.d.ts +1 -1
- package/dist/browser-automation/rpc-schemas.d.ts +1 -1
- package/dist/generated/validation/ws-outbound-schema-metadata.d.ts +143 -31
- package/dist/generated/validation/ws-outbound.aot.js +1074 -580
- package/dist/messages.d.ts +741 -237
- package/dist/messages.js +13 -7
- package/dist/paseo-tool-call-detail.d.ts +1 -14
- package/dist/paseo-tool-call-detail.js +2 -306
- package/dist/paseo-tool-presentation/agent-message.d.ts +10 -0
- package/dist/paseo-tool-presentation/agent-message.js +22 -0
- package/dist/paseo-tool-presentation/catalog.d.ts +309 -0
- package/dist/paseo-tool-presentation/catalog.js +315 -0
- package/dist/paseo-tool-presentation/detail-sections.d.ts +15 -0
- package/dist/paseo-tool-presentation/detail-sections.js +161 -0
- package/dist/paseo-tool-presentation/index.d.ts +22 -0
- package/dist/paseo-tool-presentation/index.js +62 -0
- package/dist/paseo-tool-presentation/summary-text.d.ts +7 -0
- package/dist/paseo-tool-presentation/summary-text.js +22 -0
- package/dist/provider-icon-names.js +3 -0
- package/dist/tool-call-display.d.ts +2 -0
- package/dist/tool-call-display.js +15 -11
- package/dist/validation/ws-outbound-envelope.d.ts +143 -31
- package/package.json +1 -1
- package/dist/agent-message-display.d.ts +0 -8
- package/dist/agent-message-display.js +0 -20
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { buildAgentMessageDisplay } from "./
|
|
2
|
-
import { getPaseoToolLeafName, isPaseoToolName } from "./tool-name-normalization.js";
|
|
1
|
+
import { buildAgentMessageDisplay, buildPaseoToolDisplay, } from "./paseo-tool-presentation/index.js";
|
|
3
2
|
import { stripCwdPrefix } from "./path-utils.js";
|
|
4
3
|
function isRecord(value) {
|
|
5
4
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -12,12 +11,6 @@ function humanizeToolName(name) {
|
|
|
12
11
|
if (!trimmed) {
|
|
13
12
|
return name;
|
|
14
13
|
}
|
|
15
|
-
if (isPaseoToolName(trimmed)) {
|
|
16
|
-
const leaf = getPaseoToolLeafName(trimmed);
|
|
17
|
-
if (leaf) {
|
|
18
|
-
return humanizeToolName(leaf);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
14
|
if (/[:./]/.test(trimmed) || trimmed.includes("__")) {
|
|
22
15
|
return trimmed;
|
|
23
16
|
}
|
|
@@ -121,8 +114,20 @@ function buildUnknownDetailOverride(input) {
|
|
|
121
114
|
return {};
|
|
122
115
|
}
|
|
123
116
|
export function buildToolCallDisplayModel(input) {
|
|
124
|
-
|
|
125
|
-
|
|
117
|
+
const errorText = input.status === "failed" ? formatErrorText(input.error) : undefined;
|
|
118
|
+
const paseoDisplay = input.agentMessage
|
|
119
|
+
? buildAgentMessageDisplay(input.agentMessage)
|
|
120
|
+
: buildPaseoToolDisplay({
|
|
121
|
+
toolName: input.name,
|
|
122
|
+
detail: input.detail,
|
|
123
|
+
targetAgentTitle: input.targetAgentTitle,
|
|
124
|
+
});
|
|
125
|
+
if (paseoDisplay) {
|
|
126
|
+
return {
|
|
127
|
+
displayName: paseoDisplay.displayName,
|
|
128
|
+
...(paseoDisplay.summary ? { summary: paseoDisplay.summary } : {}),
|
|
129
|
+
...(errorText ? { errorText } : {}),
|
|
130
|
+
};
|
|
126
131
|
}
|
|
127
132
|
const canonicalDisplay = buildCanonicalDetailDisplay(input);
|
|
128
133
|
const unknownDetailOverride = buildUnknownDetailOverride(input);
|
|
@@ -130,7 +135,6 @@ export function buildToolCallDisplayModel(input) {
|
|
|
130
135
|
canonicalDisplay.displayName ??
|
|
131
136
|
humanizeToolName(input.name);
|
|
132
137
|
const summary = unknownDetailOverride.summary ?? canonicalDisplay.summary;
|
|
133
|
-
const errorText = input.status === "failed" ? formatErrorText(input.error) : undefined;
|
|
134
138
|
return {
|
|
135
139
|
displayName,
|
|
136
140
|
...(summary ? { summary } : {}),
|
|
@@ -1483,9 +1483,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
1483
1483
|
payload: z.ZodObject<{
|
|
1484
1484
|
type: z.ZodEnum<{
|
|
1485
1485
|
image: "image";
|
|
1486
|
-
code: "code";
|
|
1487
1486
|
markdown: "markdown";
|
|
1488
1487
|
diff: "diff";
|
|
1488
|
+
code: "code";
|
|
1489
1489
|
}>;
|
|
1490
1490
|
id: z.ZodString;
|
|
1491
1491
|
title: z.ZodString;
|
|
@@ -5477,9 +5477,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
5477
5477
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
5478
5478
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
5479
5479
|
type: z.ZodEnum<{
|
|
5480
|
+
context: "context";
|
|
5480
5481
|
add: "add";
|
|
5481
5482
|
remove: "remove";
|
|
5482
|
-
context: "context";
|
|
5483
5483
|
}>;
|
|
5484
5484
|
content: z.ZodString;
|
|
5485
5485
|
}, z.core.$strip>;
|
|
@@ -5487,9 +5487,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
5487
5487
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
5488
5488
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
5489
5489
|
type: z.ZodEnum<{
|
|
5490
|
+
context: "context";
|
|
5490
5491
|
add: "add";
|
|
5491
5492
|
remove: "remove";
|
|
5492
|
-
context: "context";
|
|
5493
5493
|
}>;
|
|
5494
5494
|
content: z.ZodString;
|
|
5495
5495
|
}, z.core.$strip>>;
|
|
@@ -5733,9 +5733,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
5733
5733
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
5734
5734
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
5735
5735
|
type: z.ZodEnum<{
|
|
5736
|
+
context: "context";
|
|
5736
5737
|
add: "add";
|
|
5737
5738
|
remove: "remove";
|
|
5738
|
-
context: "context";
|
|
5739
5739
|
}>;
|
|
5740
5740
|
content: z.ZodString;
|
|
5741
5741
|
}, z.core.$strip>;
|
|
@@ -5743,9 +5743,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
5743
5743
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
5744
5744
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
5745
5745
|
type: z.ZodEnum<{
|
|
5746
|
+
context: "context";
|
|
5746
5747
|
add: "add";
|
|
5747
5748
|
remove: "remove";
|
|
5748
|
-
context: "context";
|
|
5749
5749
|
}>;
|
|
5750
5750
|
content: z.ZodString;
|
|
5751
5751
|
}, z.core.$strip>>;
|
|
@@ -5989,9 +5989,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
5989
5989
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
5990
5990
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
5991
5991
|
type: z.ZodEnum<{
|
|
5992
|
+
context: "context";
|
|
5992
5993
|
add: "add";
|
|
5993
5994
|
remove: "remove";
|
|
5994
|
-
context: "context";
|
|
5995
5995
|
}>;
|
|
5996
5996
|
content: z.ZodString;
|
|
5997
5997
|
}, z.core.$strip>;
|
|
@@ -5999,9 +5999,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
5999
5999
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6000
6000
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6001
6001
|
type: z.ZodEnum<{
|
|
6002
|
+
context: "context";
|
|
6002
6003
|
add: "add";
|
|
6003
6004
|
remove: "remove";
|
|
6004
|
-
context: "context";
|
|
6005
6005
|
}>;
|
|
6006
6006
|
content: z.ZodString;
|
|
6007
6007
|
}, z.core.$strip>>;
|
|
@@ -6245,9 +6245,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
6245
6245
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6246
6246
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6247
6247
|
type: z.ZodEnum<{
|
|
6248
|
+
context: "context";
|
|
6248
6249
|
add: "add";
|
|
6249
6250
|
remove: "remove";
|
|
6250
|
-
context: "context";
|
|
6251
6251
|
}>;
|
|
6252
6252
|
content: z.ZodString;
|
|
6253
6253
|
}, z.core.$strip>;
|
|
@@ -6255,9 +6255,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
6255
6255
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6256
6256
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6257
6257
|
type: z.ZodEnum<{
|
|
6258
|
+
context: "context";
|
|
6258
6259
|
add: "add";
|
|
6259
6260
|
remove: "remove";
|
|
6260
|
-
context: "context";
|
|
6261
6261
|
}>;
|
|
6262
6262
|
content: z.ZodString;
|
|
6263
6263
|
}, z.core.$strip>>;
|
|
@@ -6501,9 +6501,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
6501
6501
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6502
6502
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6503
6503
|
type: z.ZodEnum<{
|
|
6504
|
+
context: "context";
|
|
6504
6505
|
add: "add";
|
|
6505
6506
|
remove: "remove";
|
|
6506
|
-
context: "context";
|
|
6507
6507
|
}>;
|
|
6508
6508
|
content: z.ZodString;
|
|
6509
6509
|
}, z.core.$strip>;
|
|
@@ -6511,9 +6511,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
6511
6511
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6512
6512
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6513
6513
|
type: z.ZodEnum<{
|
|
6514
|
+
context: "context";
|
|
6514
6515
|
add: "add";
|
|
6515
6516
|
remove: "remove";
|
|
6516
|
-
context: "context";
|
|
6517
6517
|
}>;
|
|
6518
6518
|
content: z.ZodString;
|
|
6519
6519
|
}, z.core.$strip>>;
|
|
@@ -6757,9 +6757,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
6757
6757
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6758
6758
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6759
6759
|
type: z.ZodEnum<{
|
|
6760
|
+
context: "context";
|
|
6760
6761
|
add: "add";
|
|
6761
6762
|
remove: "remove";
|
|
6762
|
-
context: "context";
|
|
6763
6763
|
}>;
|
|
6764
6764
|
content: z.ZodString;
|
|
6765
6765
|
}, z.core.$strip>;
|
|
@@ -6767,9 +6767,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
6767
6767
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6768
6768
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
6769
6769
|
type: z.ZodEnum<{
|
|
6770
|
+
context: "context";
|
|
6770
6771
|
add: "add";
|
|
6771
6772
|
remove: "remove";
|
|
6772
|
-
context: "context";
|
|
6773
6773
|
}>;
|
|
6774
6774
|
content: z.ZodString;
|
|
6775
6775
|
}, z.core.$strip>>;
|
|
@@ -7013,9 +7013,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
7013
7013
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
7014
7014
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
7015
7015
|
type: z.ZodEnum<{
|
|
7016
|
+
context: "context";
|
|
7016
7017
|
add: "add";
|
|
7017
7018
|
remove: "remove";
|
|
7018
|
-
context: "context";
|
|
7019
7019
|
}>;
|
|
7020
7020
|
content: z.ZodString;
|
|
7021
7021
|
}, z.core.$strip>;
|
|
@@ -7023,9 +7023,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
7023
7023
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
7024
7024
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
7025
7025
|
type: z.ZodEnum<{
|
|
7026
|
+
context: "context";
|
|
7026
7027
|
add: "add";
|
|
7027
7028
|
remove: "remove";
|
|
7028
|
-
context: "context";
|
|
7029
7029
|
}>;
|
|
7030
7030
|
content: z.ZodString;
|
|
7031
7031
|
}, z.core.$strip>>;
|
|
@@ -7280,9 +7280,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
7280
7280
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
7281
7281
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
7282
7282
|
type: z.ZodEnum<{
|
|
7283
|
+
context: "context";
|
|
7283
7284
|
add: "add";
|
|
7284
7285
|
remove: "remove";
|
|
7285
|
-
context: "context";
|
|
7286
7286
|
}>;
|
|
7287
7287
|
content: z.ZodString;
|
|
7288
7288
|
}, z.core.$strip>;
|
|
@@ -7290,9 +7290,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
7290
7290
|
oldLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
7291
7291
|
newLineNumber: z.ZodNullable<z.ZodNumber>;
|
|
7292
7292
|
type: z.ZodEnum<{
|
|
7293
|
+
context: "context";
|
|
7293
7294
|
add: "add";
|
|
7294
7295
|
remove: "remove";
|
|
7295
|
-
context: "context";
|
|
7296
7296
|
}>;
|
|
7297
7297
|
content: z.ZodString;
|
|
7298
7298
|
}, z.core.$strip>>;
|
|
@@ -12924,9 +12924,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
12924
12924
|
newCount: z.ZodNumber;
|
|
12925
12925
|
lines: z.ZodArray<z.ZodObject<{
|
|
12926
12926
|
type: z.ZodEnum<{
|
|
12927
|
+
context: "context";
|
|
12927
12928
|
add: "add";
|
|
12928
12929
|
remove: "remove";
|
|
12929
|
-
context: "context";
|
|
12930
12930
|
header: "header";
|
|
12931
12931
|
}>;
|
|
12932
12932
|
content: z.ZodString;
|
|
@@ -12964,9 +12964,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
12964
12964
|
newCount: z.ZodNumber;
|
|
12965
12965
|
lines: z.ZodArray<z.ZodObject<{
|
|
12966
12966
|
type: z.ZodEnum<{
|
|
12967
|
+
context: "context";
|
|
12967
12968
|
add: "add";
|
|
12968
12969
|
remove: "remove";
|
|
12969
|
-
context: "context";
|
|
12970
12970
|
header: "header";
|
|
12971
12971
|
}>;
|
|
12972
12972
|
content: z.ZodString;
|
|
@@ -13013,9 +13013,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
13013
13013
|
newCount: z.ZodNumber;
|
|
13014
13014
|
lines: z.ZodArray<z.ZodObject<{
|
|
13015
13015
|
type: z.ZodEnum<{
|
|
13016
|
+
context: "context";
|
|
13016
13017
|
add: "add";
|
|
13017
13018
|
remove: "remove";
|
|
13018
|
-
context: "context";
|
|
13019
13019
|
header: "header";
|
|
13020
13020
|
}>;
|
|
13021
13021
|
content: z.ZodString;
|
|
@@ -13277,9 +13277,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
13277
13277
|
newCount: z.ZodNumber;
|
|
13278
13278
|
lines: z.ZodArray<z.ZodObject<{
|
|
13279
13279
|
type: z.ZodEnum<{
|
|
13280
|
+
context: "context";
|
|
13280
13281
|
add: "add";
|
|
13281
13282
|
remove: "remove";
|
|
13282
|
-
context: "context";
|
|
13283
13283
|
header: "header";
|
|
13284
13284
|
}>;
|
|
13285
13285
|
content: z.ZodString;
|
|
@@ -14258,8 +14258,8 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14258
14258
|
binary: "binary";
|
|
14259
14259
|
}>;
|
|
14260
14260
|
encoding: z.ZodEnum<{
|
|
14261
|
-
base64: "base64";
|
|
14262
14261
|
"utf-8": "utf-8";
|
|
14262
|
+
base64: "base64";
|
|
14263
14263
|
none: "none";
|
|
14264
14264
|
}>;
|
|
14265
14265
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -14742,9 +14742,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14742
14742
|
shortfallPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14743
14743
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
14744
14744
|
default: "default";
|
|
14745
|
-
ok: "ok";
|
|
14746
14745
|
warning: "warning";
|
|
14747
14746
|
danger: "danger";
|
|
14747
|
+
ok: "ok";
|
|
14748
14748
|
}>>;
|
|
14749
14749
|
}, z.core.$strip>>;
|
|
14750
14750
|
balances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -14762,9 +14762,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14762
14762
|
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14763
14763
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
14764
14764
|
default: "default";
|
|
14765
|
-
ok: "ok";
|
|
14766
14765
|
warning: "warning";
|
|
14767
14766
|
danger: "danger";
|
|
14767
|
+
ok: "ok";
|
|
14768
14768
|
}>>;
|
|
14769
14769
|
}, z.core.$strip>>>;
|
|
14770
14770
|
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -14773,9 +14773,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14773
14773
|
value: z.ZodString;
|
|
14774
14774
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
14775
14775
|
default: "default";
|
|
14776
|
-
ok: "ok";
|
|
14777
14776
|
warning: "warning";
|
|
14778
14777
|
danger: "danger";
|
|
14778
|
+
ok: "ok";
|
|
14779
14779
|
}>>;
|
|
14780
14780
|
}, z.core.$strip>>>;
|
|
14781
14781
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -14809,9 +14809,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14809
14809
|
shortfallPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14810
14810
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
14811
14811
|
default: "default";
|
|
14812
|
-
ok: "ok";
|
|
14813
14812
|
warning: "warning";
|
|
14814
14813
|
danger: "danger";
|
|
14814
|
+
ok: "ok";
|
|
14815
14815
|
}>>;
|
|
14816
14816
|
}, z.core.$strip>>;
|
|
14817
14817
|
balances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -14829,9 +14829,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14829
14829
|
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14830
14830
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
14831
14831
|
default: "default";
|
|
14832
|
-
ok: "ok";
|
|
14833
14832
|
warning: "warning";
|
|
14834
14833
|
danger: "danger";
|
|
14834
|
+
ok: "ok";
|
|
14835
14835
|
}>>;
|
|
14836
14836
|
}, z.core.$strip>>>;
|
|
14837
14837
|
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -14840,9 +14840,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14840
14840
|
value: z.ZodString;
|
|
14841
14841
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
14842
14842
|
default: "default";
|
|
14843
|
-
ok: "ok";
|
|
14844
14843
|
warning: "warning";
|
|
14845
14844
|
danger: "danger";
|
|
14845
|
+
ok: "ok";
|
|
14846
14846
|
}>>;
|
|
14847
14847
|
}, z.core.$strip>>>;
|
|
14848
14848
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -14863,6 +14863,62 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14863
14863
|
status: z.ZodLiteral<"error">;
|
|
14864
14864
|
error: z.ZodString;
|
|
14865
14865
|
}, z.core.$strip>], "status">;
|
|
14866
|
+
successfulAt: z.ZodOptional<z.ZodString>;
|
|
14867
|
+
lastSuccessful: z.ZodOptional<z.ZodObject<{
|
|
14868
|
+
fetchedAt: z.ZodString;
|
|
14869
|
+
report: z.ZodObject<{
|
|
14870
|
+
status: z.ZodLiteral<"available">;
|
|
14871
|
+
planLabel: z.ZodOptional<z.ZodString>;
|
|
14872
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
14873
|
+
id: z.ZodString;
|
|
14874
|
+
label: z.ZodString;
|
|
14875
|
+
shortLabel: z.ZodOptional<z.ZodString>;
|
|
14876
|
+
summary: z.ZodOptional<z.ZodBoolean>;
|
|
14877
|
+
usedPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14878
|
+
remainingPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14879
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14880
|
+
runsOutAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14881
|
+
shortfallPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14882
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
14883
|
+
default: "default";
|
|
14884
|
+
warning: "warning";
|
|
14885
|
+
danger: "danger";
|
|
14886
|
+
ok: "ok";
|
|
14887
|
+
}>>;
|
|
14888
|
+
}, z.core.$strip>>;
|
|
14889
|
+
balances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14890
|
+
id: z.ZodString;
|
|
14891
|
+
label: z.ZodString;
|
|
14892
|
+
used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14893
|
+
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14894
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14895
|
+
unit: z.ZodEnum<{
|
|
14896
|
+
tokens: "tokens";
|
|
14897
|
+
usd: "usd";
|
|
14898
|
+
credits: "credits";
|
|
14899
|
+
requests: "requests";
|
|
14900
|
+
}>;
|
|
14901
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14902
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
14903
|
+
default: "default";
|
|
14904
|
+
warning: "warning";
|
|
14905
|
+
danger: "danger";
|
|
14906
|
+
ok: "ok";
|
|
14907
|
+
}>>;
|
|
14908
|
+
}, z.core.$strip>>>;
|
|
14909
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14910
|
+
id: z.ZodString;
|
|
14911
|
+
label: z.ZodString;
|
|
14912
|
+
value: z.ZodString;
|
|
14913
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
14914
|
+
default: "default";
|
|
14915
|
+
warning: "warning";
|
|
14916
|
+
danger: "danger";
|
|
14917
|
+
ok: "ok";
|
|
14918
|
+
}>>;
|
|
14919
|
+
}, z.core.$strip>>>;
|
|
14920
|
+
}, z.core.$strip>;
|
|
14921
|
+
}, z.core.$strip>>;
|
|
14866
14922
|
loginErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14867
14923
|
harness: z.ZodString;
|
|
14868
14924
|
report: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -14914,9 +14970,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14914
14970
|
shortfallPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14915
14971
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
14916
14972
|
default: "default";
|
|
14917
|
-
ok: "ok";
|
|
14918
14973
|
warning: "warning";
|
|
14919
14974
|
danger: "danger";
|
|
14975
|
+
ok: "ok";
|
|
14920
14976
|
}>>;
|
|
14921
14977
|
}, z.core.$strip>>;
|
|
14922
14978
|
balances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -14934,9 +14990,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14934
14990
|
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14935
14991
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
14936
14992
|
default: "default";
|
|
14937
|
-
ok: "ok";
|
|
14938
14993
|
warning: "warning";
|
|
14939
14994
|
danger: "danger";
|
|
14995
|
+
ok: "ok";
|
|
14940
14996
|
}>>;
|
|
14941
14997
|
}, z.core.$strip>>>;
|
|
14942
14998
|
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -14945,9 +15001,9 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14945
15001
|
value: z.ZodString;
|
|
14946
15002
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
14947
15003
|
default: "default";
|
|
14948
|
-
ok: "ok";
|
|
14949
15004
|
warning: "warning";
|
|
14950
15005
|
danger: "danger";
|
|
15006
|
+
ok: "ok";
|
|
14951
15007
|
}>>;
|
|
14952
15008
|
}, z.core.$strip>>>;
|
|
14953
15009
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -14968,6 +15024,62 @@ export declare const sessionOutboundMessageOptions: [z.ZodObject<{
|
|
|
14968
15024
|
status: z.ZodLiteral<"error">;
|
|
14969
15025
|
error: z.ZodString;
|
|
14970
15026
|
}, z.core.$strip>], "status">;
|
|
15027
|
+
successfulAt: z.ZodOptional<z.ZodString>;
|
|
15028
|
+
lastSuccessful: z.ZodOptional<z.ZodObject<{
|
|
15029
|
+
fetchedAt: z.ZodString;
|
|
15030
|
+
report: z.ZodObject<{
|
|
15031
|
+
status: z.ZodLiteral<"available">;
|
|
15032
|
+
planLabel: z.ZodOptional<z.ZodString>;
|
|
15033
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
15034
|
+
id: z.ZodString;
|
|
15035
|
+
label: z.ZodString;
|
|
15036
|
+
shortLabel: z.ZodOptional<z.ZodString>;
|
|
15037
|
+
summary: z.ZodOptional<z.ZodBoolean>;
|
|
15038
|
+
usedPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15039
|
+
remainingPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15040
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15041
|
+
runsOutAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15042
|
+
shortfallPct: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15043
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
15044
|
+
default: "default";
|
|
15045
|
+
warning: "warning";
|
|
15046
|
+
danger: "danger";
|
|
15047
|
+
ok: "ok";
|
|
15048
|
+
}>>;
|
|
15049
|
+
}, z.core.$strip>>;
|
|
15050
|
+
balances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15051
|
+
id: z.ZodString;
|
|
15052
|
+
label: z.ZodString;
|
|
15053
|
+
used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15054
|
+
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15055
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15056
|
+
unit: z.ZodEnum<{
|
|
15057
|
+
tokens: "tokens";
|
|
15058
|
+
usd: "usd";
|
|
15059
|
+
credits: "credits";
|
|
15060
|
+
requests: "requests";
|
|
15061
|
+
}>;
|
|
15062
|
+
resetsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15063
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
15064
|
+
default: "default";
|
|
15065
|
+
warning: "warning";
|
|
15066
|
+
danger: "danger";
|
|
15067
|
+
ok: "ok";
|
|
15068
|
+
}>>;
|
|
15069
|
+
}, z.core.$strip>>>;
|
|
15070
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15071
|
+
id: z.ZodString;
|
|
15072
|
+
label: z.ZodString;
|
|
15073
|
+
value: z.ZodString;
|
|
15074
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
15075
|
+
default: "default";
|
|
15076
|
+
warning: "warning";
|
|
15077
|
+
danger: "danger";
|
|
15078
|
+
ok: "ok";
|
|
15079
|
+
}>>;
|
|
15080
|
+
}, z.core.$strip>>>;
|
|
15081
|
+
}, z.core.$strip>;
|
|
15082
|
+
}, z.core.$strip>>;
|
|
14971
15083
|
loginErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14972
15084
|
harness: z.ZodString;
|
|
14973
15085
|
report: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AgentMessage } from "./agent-message.js";
|
|
2
|
-
import type { ToolCallDetail } from "./agent-types.js";
|
|
3
|
-
/** Presentation shared by clients; never used to encode provider prompts. */
|
|
4
|
-
export declare function buildAgentMessageDisplay(message: AgentMessage): {
|
|
5
|
-
displayName: string;
|
|
6
|
-
detail: ToolCallDetail;
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=agent-message-display.d.ts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** Presentation shared by clients; never used to encode provider prompts. */
|
|
2
|
-
export function buildAgentMessageDisplay(message) {
|
|
3
|
-
const sender = message.sender.title ?? message.sender.id;
|
|
4
|
-
const headings = {
|
|
5
|
-
message: `Message from ${sender}`,
|
|
6
|
-
finished: `${sender} finished`,
|
|
7
|
-
errored: `${sender} errored`,
|
|
8
|
-
"permission-required": `${sender} needs permission`,
|
|
9
|
-
closed: `${sender} closed`,
|
|
10
|
-
};
|
|
11
|
-
return {
|
|
12
|
-
displayName: headings[message.event],
|
|
13
|
-
detail: {
|
|
14
|
-
type: "plain_text",
|
|
15
|
-
icon: "bot",
|
|
16
|
-
text: `From agent: ${message.sender.id}\n\n${message.text}`,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=agent-message-display.js.map
|