@yukino.js/yukino 0.0.3-dev → 0.0.4
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/README.md +5 -14
- package/dist/{acp-J6EPN6TP.js → acp-JCR6GVC3.js} +1 -1
- package/dist/{agent-LA65FOAB.js → agent-56R4TACG.js} +1 -1
- package/dist/{anthropic-YP6DY2F3.js → anthropic-CEUDAJL2.js} +1 -1
- package/dist/{chunk-675L7SRF.js → chunk-6DXHDARX.js} +9 -9
- package/dist/chunk-7DLUKIPE.js +5 -0
- package/dist/{chunk-7CVY4FXY.js → chunk-JNCMSXQZ.js} +1 -1
- package/dist/{chunk-ZQP5DTJA.js → chunk-RCXKUD3Y.js} +1 -1
- package/dist/{chunk-P77AEADG.js → chunk-SAJCBGHL.js} +1 -1
- package/dist/{chunk-CT773IEX.js → chunk-U2CS2E2F.js} +3 -3
- package/dist/{chunk-2UNWKNDU.js → chunk-UPNNYP7M.js} +1 -1
- package/dist/{chunk-Y6COQ5UY.js → chunk-XO7ITAWR.js} +1 -1
- package/dist/{chunk-JEOQXHOX.js → chunk-ZETIYALB.js} +2 -2
- package/dist/lib/{agent-KDWPLLAV.js → agent-INEHZXP3.js} +3 -3
- package/dist/lib/{anthropic-OJALXK4E.js → anthropic-MSGL4VBM.js} +2 -2
- package/dist/lib/{chunk-SS7OJYHN.js → chunk-BMODZ6SU.js} +4 -4
- package/dist/lib/{chunk-77FSPN6Y.js → chunk-DF3ITW4K.js} +8 -8
- package/dist/lib/{chunk-2DEH6DOX.js → chunk-E6VFL5IO.js} +1 -1
- package/dist/lib/{chunk-7G4AI2PP.js → chunk-ENTAZT2J.js} +1 -1
- package/dist/lib/{chunk-ZF52ER22.js → chunk-MDX24JQ5.js} +1 -1
- package/dist/lib/{chunk-WOMWIFSN.js → chunk-P3HXGEQQ.js} +2 -2
- package/dist/lib/index.d.ts +42 -42
- package/dist/lib/index.js +43 -43
- package/dist/lib/{openai-FB7BBZVN.js → openai-DL5VBJR4.js} +2 -2
- package/dist/lib/{permissions-BZRN4RES.js → permissions-Q4FBU5VD.js} +1 -1
- package/dist/lib/{providers-7ZGRBCQ4.js → providers-SMRZVJ7O.js} +1 -1
- package/dist/main.js +221 -225
- package/dist/{openai-2FE77NB2.js → openai-AQNX24XU.js} +1 -1
- package/dist/{permissions-R7P7RWZU.js → permissions-VCDMNX3L.js} +1 -1
- package/dist/{providers-EZFC2EPW.js → providers-FZUDVU4M.js} +1 -1
- package/dist/{server-54LNMGWU.js → server-VLJWUETV.js} +1 -1
- package/package.json +3 -11
- package/dist/chunk-M5H5EYXN.js +0 -5
- package/postinstall.mjs +0 -80
package/dist/lib/index.d.ts
CHANGED
|
@@ -734,7 +734,7 @@ declare const ToolUseRecordSchema: z.ZodObject<{
|
|
|
734
734
|
tool_name: z.ZodString;
|
|
735
735
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
736
736
|
provider_item_id: z.ZodOptional<z.ZodString>;
|
|
737
|
-
}, z.core.$
|
|
737
|
+
}, z.core.$strip>;
|
|
738
738
|
type ToolUseRecord = z.infer<typeof ToolUseRecordSchema>;
|
|
739
739
|
/** Persisted form of a tool result, paired with a ToolUseRecord via tool_use_id. */
|
|
740
740
|
declare const ToolResultRecordSchema: z.ZodObject<{
|
|
@@ -742,7 +742,7 @@ declare const ToolResultRecordSchema: z.ZodObject<{
|
|
|
742
742
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>;
|
|
743
743
|
content_blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
744
744
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
745
|
-
}, z.core.$
|
|
745
|
+
}, z.core.$strip>;
|
|
746
746
|
type ToolResultRecord = z.infer<typeof ToolResultRecordSchema>;
|
|
747
747
|
declare const SessionMessageSchema: z.ZodObject<{
|
|
748
748
|
role: z.ZodString;
|
|
@@ -754,14 +754,14 @@ declare const SessionMessageSchema: z.ZodObject<{
|
|
|
754
754
|
tool_name: z.ZodString;
|
|
755
755
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
756
756
|
provider_item_id: z.ZodOptional<z.ZodString>;
|
|
757
|
-
}, z.core.$
|
|
757
|
+
}, z.core.$strip>>>;
|
|
758
758
|
tool_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
759
759
|
tool_use_id: z.ZodString;
|
|
760
760
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>;
|
|
761
761
|
content_blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
762
762
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
763
|
-
}, z.core.$
|
|
764
|
-
}, z.core.$
|
|
763
|
+
}, z.core.$strip>>>;
|
|
764
|
+
}, z.core.$strip>;
|
|
765
765
|
type SessionMessage = z.infer<typeof SessionMessageSchema>;
|
|
766
766
|
declare const KeptMessageSchema: z.ZodObject<{
|
|
767
767
|
role: z.ZodString;
|
|
@@ -771,14 +771,14 @@ declare const KeptMessageSchema: z.ZodObject<{
|
|
|
771
771
|
tool_name: z.ZodString;
|
|
772
772
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
773
773
|
provider_item_id: z.ZodOptional<z.ZodString>;
|
|
774
|
-
}, z.core.$
|
|
774
|
+
}, z.core.$strip>>>;
|
|
775
775
|
tool_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
776
776
|
tool_use_id: z.ZodString;
|
|
777
777
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>;
|
|
778
778
|
content_blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
779
779
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
780
|
-
}, z.core.$
|
|
781
|
-
}, z.core.$
|
|
780
|
+
}, z.core.$strip>>>;
|
|
781
|
+
}, z.core.$strip>;
|
|
782
782
|
type KeptMessage = z.infer<typeof KeptMessageSchema>;
|
|
783
783
|
/** Conversation-layer tool blocks (camelCase) → persisted records (snake_case); empty values are omitted. */
|
|
784
784
|
declare function toolUsesToRecords(toolUses?: {
|
|
@@ -798,15 +798,15 @@ declare const CompactBoundaryPayloadSchema: z.ZodObject<{
|
|
|
798
798
|
tool_name: z.ZodString;
|
|
799
799
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
800
800
|
provider_item_id: z.ZodOptional<z.ZodString>;
|
|
801
|
-
}, z.core.$
|
|
801
|
+
}, z.core.$strip>>>;
|
|
802
802
|
tool_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
803
803
|
tool_use_id: z.ZodString;
|
|
804
804
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>;
|
|
805
805
|
content_blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
806
806
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
807
|
-
}, z.core.$
|
|
808
|
-
}, z.core.$
|
|
809
|
-
}, z.core.$
|
|
807
|
+
}, z.core.$strip>>>;
|
|
808
|
+
}, z.core.$strip>>;
|
|
809
|
+
}, z.core.$strip>;
|
|
810
810
|
type CompactBoundaryPayload = z.infer<typeof CompactBoundaryPayloadSchema>;
|
|
811
811
|
interface SessionInfo {
|
|
812
812
|
id: string;
|
|
@@ -1386,7 +1386,7 @@ declare const MCPServerConfigSchema: z$1.ZodObject<{
|
|
|
1386
1386
|
transport: z$1.ZodOptional<z$1.ZodString>;
|
|
1387
1387
|
headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
1388
1388
|
env: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
1389
|
-
}, z$1.core.$
|
|
1389
|
+
}, z$1.core.$strip>;
|
|
1390
1390
|
type MCPServerConfig = z$1.infer<typeof MCPServerConfigSchema>;
|
|
1391
1391
|
declare const HookConfigSchema: z$1.ZodObject<{
|
|
1392
1392
|
id: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -1398,12 +1398,12 @@ declare const HookConfigSchema: z$1.ZodObject<{
|
|
|
1398
1398
|
url: z$1.ZodOptional<z$1.ZodString>;
|
|
1399
1399
|
method: z$1.ZodOptional<z$1.ZodString>;
|
|
1400
1400
|
prompt: z$1.ZodOptional<z$1.ZodString>;
|
|
1401
|
-
}, z$1.core.$
|
|
1401
|
+
}, z$1.core.$strip>;
|
|
1402
1402
|
reject: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1403
1403
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1404
1404
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1405
1405
|
on_error: z$1.ZodOptional<z$1.ZodString>;
|
|
1406
|
-
}, z$1.core.$
|
|
1406
|
+
}, z$1.core.$strip>;
|
|
1407
1407
|
type HookConfig = z$1.infer<typeof HookConfigSchema>;
|
|
1408
1408
|
declare const SandboxYamlConfigSchema: z$1.ZodObject<{
|
|
1409
1409
|
enabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -1413,7 +1413,7 @@ declare const SandboxYamlConfigSchema: z$1.ZodObject<{
|
|
|
1413
1413
|
}>>;
|
|
1414
1414
|
auto_allow: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1415
1415
|
network_enabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1416
|
-
}, z$1.core.$
|
|
1416
|
+
}, z$1.core.$strip>;
|
|
1417
1417
|
type SandboxYamlConfig = z$1.infer<typeof SandboxYamlConfigSchema>;
|
|
1418
1418
|
declare const AppConfigSchema: z$1.ZodObject<{
|
|
1419
1419
|
default_provider: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -1510,7 +1510,7 @@ declare const AppConfigSchema: z$1.ZodObject<{
|
|
|
1510
1510
|
transport: z$1.ZodOptional<z$1.ZodString>;
|
|
1511
1511
|
headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
1512
1512
|
env: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
1513
|
-
}, z$1.core.$
|
|
1513
|
+
}, z$1.core.$strip>>>;
|
|
1514
1514
|
hooks: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
1515
1515
|
id: z$1.ZodOptional<z$1.ZodString>;
|
|
1516
1516
|
event: z$1.ZodString;
|
|
@@ -1521,12 +1521,12 @@ declare const AppConfigSchema: z$1.ZodObject<{
|
|
|
1521
1521
|
url: z$1.ZodOptional<z$1.ZodString>;
|
|
1522
1522
|
method: z$1.ZodOptional<z$1.ZodString>;
|
|
1523
1523
|
prompt: z$1.ZodOptional<z$1.ZodString>;
|
|
1524
|
-
}, z$1.core.$
|
|
1524
|
+
}, z$1.core.$strip>;
|
|
1525
1525
|
reject: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1526
1526
|
once: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1527
1527
|
async: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1528
1528
|
on_error: z$1.ZodOptional<z$1.ZodString>;
|
|
1529
|
-
}, z$1.core.$
|
|
1529
|
+
}, z$1.core.$strip>>>;
|
|
1530
1530
|
sandbox: z$1.ZodOptional<z$1.ZodObject<{
|
|
1531
1531
|
enabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1532
1532
|
backend: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -1535,7 +1535,7 @@ declare const AppConfigSchema: z$1.ZodObject<{
|
|
|
1535
1535
|
}>>;
|
|
1536
1536
|
auto_allow: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1537
1537
|
network_enabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1538
|
-
}, z$1.core.$
|
|
1538
|
+
}, z$1.core.$strip>>;
|
|
1539
1539
|
enable_coordinator_mode: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1540
1540
|
enable_fork: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1541
1541
|
}, z$1.core.$loose>;
|
|
@@ -2991,7 +2991,7 @@ declare const FileMailMessageSchema: z.ZodObject<{
|
|
|
2991
2991
|
type: z.ZodOptional<z.ZodString>;
|
|
2992
2992
|
requestId: z.ZodOptional<z.ZodString>;
|
|
2993
2993
|
approve: z.ZodOptional<z.ZodBoolean>;
|
|
2994
|
-
}, z.core.$
|
|
2994
|
+
}, z.core.$strip>;
|
|
2995
2995
|
type FileMailMessage = z.infer<typeof FileMailMessageSchema>;
|
|
2996
2996
|
declare class FileMailbox {
|
|
2997
2997
|
private filePath;
|
|
@@ -3043,12 +3043,12 @@ declare const ToolActivitySchema: z$1.ZodObject<{
|
|
|
3043
3043
|
toolName: z$1.ZodString;
|
|
3044
3044
|
input: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
3045
3045
|
activityDescription: z$1.ZodString;
|
|
3046
|
-
}, z$1.core.$
|
|
3046
|
+
}, z$1.core.$strip>;
|
|
3047
3047
|
type ToolActivity = z$1.infer<typeof ToolActivitySchema>;
|
|
3048
3048
|
declare const ActiveToolSchema: z$1.ZodObject<{
|
|
3049
3049
|
toolId: z$1.ZodString;
|
|
3050
3050
|
toolName: z$1.ZodString;
|
|
3051
|
-
}, z$1.core.$
|
|
3051
|
+
}, z$1.core.$strip>;
|
|
3052
3052
|
type ActiveTool = z$1.infer<typeof ActiveToolSchema>;
|
|
3053
3053
|
declare const AgentProgressSchema: z$1.ZodObject<{
|
|
3054
3054
|
toolUseCount: z$1.ZodNumber;
|
|
@@ -3057,18 +3057,18 @@ declare const AgentProgressSchema: z$1.ZodObject<{
|
|
|
3057
3057
|
activeTools: z$1.ZodArray<z$1.ZodObject<{
|
|
3058
3058
|
toolId: z$1.ZodString;
|
|
3059
3059
|
toolName: z$1.ZodString;
|
|
3060
|
-
}, z$1.core.$
|
|
3060
|
+
}, z$1.core.$strip>>;
|
|
3061
3061
|
lastActivity: z$1.ZodOptional<z$1.ZodObject<{
|
|
3062
3062
|
toolName: z$1.ZodString;
|
|
3063
3063
|
input: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
3064
3064
|
activityDescription: z$1.ZodString;
|
|
3065
|
-
}, z$1.core.$
|
|
3065
|
+
}, z$1.core.$strip>>;
|
|
3066
3066
|
recentActivities: z$1.ZodArray<z$1.ZodObject<{
|
|
3067
3067
|
toolName: z$1.ZodString;
|
|
3068
3068
|
input: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
3069
3069
|
activityDescription: z$1.ZodString;
|
|
3070
|
-
}, z$1.core.$
|
|
3071
|
-
}, z$1.core.$
|
|
3070
|
+
}, z$1.core.$strip>>;
|
|
3071
|
+
}, z$1.core.$strip>;
|
|
3072
3072
|
type AgentProgress = z$1.infer<typeof AgentProgressSchema>;
|
|
3073
3073
|
declare const TeammateUIStateSchema: z$1.ZodObject<{
|
|
3074
3074
|
name: z$1.ZodString;
|
|
@@ -3087,23 +3087,23 @@ declare const TeammateUIStateSchema: z$1.ZodObject<{
|
|
|
3087
3087
|
activeTools: z$1.ZodArray<z$1.ZodObject<{
|
|
3088
3088
|
toolId: z$1.ZodString;
|
|
3089
3089
|
toolName: z$1.ZodString;
|
|
3090
|
-
}, z$1.core.$
|
|
3090
|
+
}, z$1.core.$strip>>;
|
|
3091
3091
|
lastActivity: z$1.ZodOptional<z$1.ZodObject<{
|
|
3092
3092
|
toolName: z$1.ZodString;
|
|
3093
3093
|
input: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
3094
3094
|
activityDescription: z$1.ZodString;
|
|
3095
|
-
}, z$1.core.$
|
|
3095
|
+
}, z$1.core.$strip>>;
|
|
3096
3096
|
recentActivities: z$1.ZodArray<z$1.ZodObject<{
|
|
3097
3097
|
toolName: z$1.ZodString;
|
|
3098
3098
|
input: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
3099
3099
|
activityDescription: z$1.ZodString;
|
|
3100
|
-
}, z$1.core.$
|
|
3101
|
-
}, z$1.core.$
|
|
3100
|
+
}, z$1.core.$strip>>;
|
|
3101
|
+
}, z$1.core.$strip>;
|
|
3102
3102
|
originToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
3103
3103
|
startTime: z$1.ZodNumber;
|
|
3104
3104
|
spinnerVerb: z$1.ZodString;
|
|
3105
3105
|
lastMessage: z$1.ZodOptional<z$1.ZodString>;
|
|
3106
|
-
}, z$1.core.$
|
|
3106
|
+
}, z$1.core.$strip>;
|
|
3107
3107
|
type TeammateUIState = z$1.infer<typeof TeammateUIStateSchema>;
|
|
3108
3108
|
declare function createProgress(): AgentProgress;
|
|
3109
3109
|
declare function recordToolUse(p: AgentProgress, toolName: string, input: Record<string, unknown>): void;
|
|
@@ -3245,7 +3245,7 @@ declare const TeamMemberEntrySchema: z.ZodObject<{
|
|
|
3245
3245
|
worktreePath: z.ZodOptional<z.ZodString>;
|
|
3246
3246
|
backendType: z.ZodOptional<z.ZodString>;
|
|
3247
3247
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
3248
|
-
}, z.core.$
|
|
3248
|
+
}, z.core.$strip>;
|
|
3249
3249
|
type TeamMemberEntry = z.infer<typeof TeamMemberEntrySchema>;
|
|
3250
3250
|
/**
|
|
3251
3251
|
* On-disk representation of team configuration, stored at <teamsBaseDir>/<slug>/config.json.
|
|
@@ -3272,8 +3272,8 @@ declare const TeamFileSchema: z.ZodObject<{
|
|
|
3272
3272
|
worktreePath: z.ZodOptional<z.ZodString>;
|
|
3273
3273
|
backendType: z.ZodOptional<z.ZodString>;
|
|
3274
3274
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
3275
|
-
}, z.core.$
|
|
3276
|
-
}, z.core.$
|
|
3275
|
+
}, z.core.$strip>>;
|
|
3276
|
+
}, z.core.$strip>;
|
|
3277
3277
|
type TeamFile = z.infer<typeof TeamFileSchema>;
|
|
3278
3278
|
/**
|
|
3279
3279
|
* Root directory for all team data. Placed under the user's home directory rather than
|
|
@@ -3927,13 +3927,13 @@ declare const TranscriptEntrySchema: z.ZodObject<{
|
|
|
3927
3927
|
tool_use_id: z.ZodString;
|
|
3928
3928
|
tool_name: z.ZodString;
|
|
3929
3929
|
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3930
|
-
}, z.core.$
|
|
3930
|
+
}, z.core.$strip>>>;
|
|
3931
3931
|
tool_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3932
3932
|
tool_use_id: z.ZodString;
|
|
3933
3933
|
content: z.ZodString;
|
|
3934
3934
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
3935
|
-
}, z.core.$
|
|
3936
|
-
}, z.core.$
|
|
3935
|
+
}, z.core.$strip>>>;
|
|
3936
|
+
}, z.core.$strip>;
|
|
3937
3937
|
type TranscriptEntry = z.infer<typeof TranscriptEntrySchema>;
|
|
3938
3938
|
/**
|
|
3939
3939
|
* Persists a teammate's conversation history to disk for debugging and troubleshooting.
|
|
@@ -4188,7 +4188,7 @@ declare const CodeReviewTeamSchema: z.ZodObject<{
|
|
|
4188
4188
|
}, z.core.$strip>>;
|
|
4189
4189
|
createdAt: z.ZodString;
|
|
4190
4190
|
lastActive: z.ZodString;
|
|
4191
|
-
}, z.core.$
|
|
4191
|
+
}, z.core.$strip>;
|
|
4192
4192
|
type CodeReviewTeam = z.infer<typeof CodeReviewTeamSchema>;
|
|
4193
4193
|
declare class CodeReviewManager {
|
|
4194
4194
|
private teams;
|
|
@@ -5026,7 +5026,7 @@ declare const ModelSchema: z$1.ZodObject<{
|
|
|
5026
5026
|
id: z$1.ZodString;
|
|
5027
5027
|
display_name: z$1.ZodOptional<z$1.ZodString>;
|
|
5028
5028
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
5029
|
-
}, z$1.core.$
|
|
5029
|
+
}, z$1.core.$strip>;
|
|
5030
5030
|
type DiscoveryConfig = Pick<ProviderConfig, "protocol" | "base_url" | "api_key">;
|
|
5031
5031
|
type DiscoveredModel = z$1.infer<typeof ModelSchema>;
|
|
5032
5032
|
declare function modelListUrl(protocol: ProviderConfig["protocol"], baseUrl: string): string | undefined;
|
|
@@ -6230,7 +6230,7 @@ declare namespace log {
|
|
|
6230
6230
|
declare const QuestionOptionSchema: z$1.ZodObject<{
|
|
6231
6231
|
label: z$1.ZodString;
|
|
6232
6232
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
6233
|
-
}, z$1.core.$
|
|
6233
|
+
}, z$1.core.$strip>;
|
|
6234
6234
|
type QuestionOption = z$1.infer<typeof QuestionOptionSchema>;
|
|
6235
6235
|
declare const QuestionSchema: z$1.ZodObject<{
|
|
6236
6236
|
question: z$1.ZodString;
|
|
@@ -6238,7 +6238,7 @@ declare const QuestionSchema: z$1.ZodObject<{
|
|
|
6238
6238
|
options: z$1.ZodArray<z$1.ZodObject<{
|
|
6239
6239
|
label: z$1.ZodString;
|
|
6240
6240
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
6241
|
-
}, z$1.core.$
|
|
6241
|
+
}, z$1.core.$strip>>;
|
|
6242
6242
|
multiSelect: z$1.ZodBoolean;
|
|
6243
6243
|
}, z$1.core.$strip>;
|
|
6244
6244
|
type Question = z$1.infer<typeof QuestionSchema>;
|
package/dist/lib/index.js
CHANGED
|
@@ -42,23 +42,23 @@ import {
|
|
|
42
42
|
spillDir,
|
|
43
43
|
telemetry_exports,
|
|
44
44
|
tool_result_exports
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-DF3ITW4K.js";
|
|
46
46
|
import {
|
|
47
47
|
version,
|
|
48
48
|
version_exports
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-P3HXGEQQ.js";
|
|
50
50
|
import {
|
|
51
51
|
anthropic_exports,
|
|
52
52
|
decideAndApply,
|
|
53
53
|
strategy_exports
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-ENTAZT2J.js";
|
|
55
55
|
import {
|
|
56
56
|
SKIP_DIRS,
|
|
57
57
|
types_exports
|
|
58
58
|
} from "./chunk-F2YJG72O.js";
|
|
59
59
|
import {
|
|
60
60
|
openai_exports
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-E6VFL5IO.js";
|
|
62
62
|
import {
|
|
63
63
|
DEFAULT_CONTEXT_WINDOW,
|
|
64
64
|
DEFAULT_MAX_OUTPUT_TOKENS,
|
|
@@ -76,12 +76,12 @@ import {
|
|
|
76
76
|
isValidThinkingLevel,
|
|
77
77
|
loadConfig,
|
|
78
78
|
withProjectMcpServers
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-BMODZ6SU.js";
|
|
80
80
|
import {
|
|
81
81
|
PermissionChecker,
|
|
82
82
|
isSafeCommand,
|
|
83
83
|
permissions_exports
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-MDX24JQ5.js";
|
|
85
85
|
import {
|
|
86
86
|
MCPToolWrapper,
|
|
87
87
|
MCP_TOOL_PREFIX,
|
|
@@ -912,7 +912,7 @@ function commandName(base, full) {
|
|
|
912
912
|
const rel = full.slice(base.length + 1).replace(/\.md$/, "");
|
|
913
913
|
return rel.split(/[/\\]/).map((p) => p.toLowerCase().replace(/ /g, "-")).join(":");
|
|
914
914
|
}
|
|
915
|
-
var YamlFrontmatterSchema = z.
|
|
915
|
+
var YamlFrontmatterSchema = z.object({
|
|
916
916
|
description: z.string().optional(),
|
|
917
917
|
"argument-hint": z.string().optional(),
|
|
918
918
|
aliases: z.array(z.string()).optional()
|
|
@@ -1464,21 +1464,21 @@ __export(client_exports, {
|
|
|
1464
1464
|
async function createClient(config, systemPrompt) {
|
|
1465
1465
|
switch (config.protocol) {
|
|
1466
1466
|
case "anthropic": {
|
|
1467
|
-
const { AnthropicClient } = await import("./anthropic-
|
|
1467
|
+
const { AnthropicClient } = await import("./anthropic-MSGL4VBM.js");
|
|
1468
1468
|
return registerLlmClient(new AnthropicClient(config, systemPrompt), {
|
|
1469
1469
|
model: config.model,
|
|
1470
1470
|
protocol: config.protocol
|
|
1471
1471
|
});
|
|
1472
1472
|
}
|
|
1473
1473
|
case "openai": {
|
|
1474
|
-
const { OpenAIClient } = await import("./openai-
|
|
1474
|
+
const { OpenAIClient } = await import("./openai-DL5VBJR4.js");
|
|
1475
1475
|
return registerLlmClient(new OpenAIClient(config, systemPrompt), {
|
|
1476
1476
|
model: config.model,
|
|
1477
1477
|
protocol: config.protocol
|
|
1478
1478
|
});
|
|
1479
1479
|
}
|
|
1480
1480
|
case "openai-compat": {
|
|
1481
|
-
const { OpenAICompatClient } = await import("./openai-
|
|
1481
|
+
const { OpenAICompatClient } = await import("./openai-DL5VBJR4.js");
|
|
1482
1482
|
return registerLlmClient(new OpenAICompatClient(config, systemPrompt), {
|
|
1483
1483
|
model: config.model,
|
|
1484
1484
|
protocol: config.protocol
|
|
@@ -3217,7 +3217,7 @@ function formatFileSize(bytes) {
|
|
|
3217
3217
|
}
|
|
3218
3218
|
return `${(bytes / 1024 / 1024).toFixed(1)}MB`;
|
|
3219
3219
|
}
|
|
3220
|
-
var SelectedMemoriesSchema = z3.
|
|
3220
|
+
var SelectedMemoriesSchema = z3.object({
|
|
3221
3221
|
selected_memories: z3.array(z3.string())
|
|
3222
3222
|
});
|
|
3223
3223
|
var SELECT_MEMORIES_SYSTEM_PROMPT = `# Task
|
|
@@ -6700,7 +6700,7 @@ import {
|
|
|
6700
6700
|
import { join as join14 } from "path";
|
|
6701
6701
|
import z6, { safeParse } from "zod";
|
|
6702
6702
|
var log20 = createChildLogger({ module: "teams" });
|
|
6703
|
-
var FileMailMessageSchema = z6.
|
|
6703
|
+
var FileMailMessageSchema = z6.object({
|
|
6704
6704
|
from: z6.string(),
|
|
6705
6705
|
text: z6.string(),
|
|
6706
6706
|
timestamp: z6.string(),
|
|
@@ -6902,17 +6902,17 @@ __export(progress_exports, {
|
|
|
6902
6902
|
summarizeActivities: () => summarizeActivities
|
|
6903
6903
|
});
|
|
6904
6904
|
import { z as z7 } from "zod";
|
|
6905
|
-
var ToolActivitySchema = z7.
|
|
6905
|
+
var ToolActivitySchema = z7.object({
|
|
6906
6906
|
toolName: z7.string(),
|
|
6907
6907
|
input: z7.record(z7.string(), z7.unknown()),
|
|
6908
6908
|
activityDescription: z7.string()
|
|
6909
6909
|
// e.g. "Reading src/foo.ts"
|
|
6910
6910
|
});
|
|
6911
|
-
var ActiveToolSchema = z7.
|
|
6911
|
+
var ActiveToolSchema = z7.object({
|
|
6912
6912
|
toolId: z7.string(),
|
|
6913
6913
|
toolName: z7.string()
|
|
6914
6914
|
});
|
|
6915
|
-
var AgentProgressSchema = z7.
|
|
6915
|
+
var AgentProgressSchema = z7.object({
|
|
6916
6916
|
toolUseCount: z7.number(),
|
|
6917
6917
|
turnCount: z7.number(),
|
|
6918
6918
|
tokenCount: z7.number(),
|
|
@@ -6921,7 +6921,7 @@ var AgentProgressSchema = z7.looseObject({
|
|
|
6921
6921
|
recentActivities: z7.array(ToolActivitySchema)
|
|
6922
6922
|
// circular buffer, max 5
|
|
6923
6923
|
});
|
|
6924
|
-
var TeammateUIStateSchema = z7.
|
|
6924
|
+
var TeammateUIStateSchema = z7.object({
|
|
6925
6925
|
name: z7.string(),
|
|
6926
6926
|
teamName: z7.string(),
|
|
6927
6927
|
status: z7.enum(["running", "idle", "completed", "failed", "stopped"]),
|
|
@@ -7021,7 +7021,7 @@ __export(shared_task_exports, {
|
|
|
7021
7021
|
import { readFileSync as readFileSync11, writeFileSync as writeFileSync7, mkdirSync as mkdirSync7, existsSync as existsSync12 } from "fs";
|
|
7022
7022
|
import { dirname as dirname6 } from "path";
|
|
7023
7023
|
import z8, { parse as parse5 } from "zod";
|
|
7024
|
-
var SerializedTaskSchema = z8.
|
|
7024
|
+
var SerializedTaskSchema = z8.object({
|
|
7025
7025
|
id: z8.string(),
|
|
7026
7026
|
title: z8.string(),
|
|
7027
7027
|
description: z8.string().default(""),
|
|
@@ -7031,7 +7031,7 @@ var SerializedTaskSchema = z8.looseObject({
|
|
|
7031
7031
|
blocked_by: z8.array(z8.string()).default([]),
|
|
7032
7032
|
created_by: z8.string().default("")
|
|
7033
7033
|
});
|
|
7034
|
-
var StoreDataSchema = z8.
|
|
7034
|
+
var StoreDataSchema = z8.object({
|
|
7035
7035
|
next_id: z8.number().int().positive().default(1),
|
|
7036
7036
|
tasks: z8.array(SerializedTaskSchema).default([])
|
|
7037
7037
|
});
|
|
@@ -7177,7 +7177,7 @@ import {
|
|
|
7177
7177
|
import { homedir as homedir9 } from "os";
|
|
7178
7178
|
import { dirname as dirname7, join as join15 } from "path";
|
|
7179
7179
|
import z9 from "zod";
|
|
7180
|
-
var TeamMemberEntrySchema = z9.
|
|
7180
|
+
var TeamMemberEntrySchema = z9.object({
|
|
7181
7181
|
agentId: z9.string(),
|
|
7182
7182
|
name: z9.string(),
|
|
7183
7183
|
agentType: z9.string().optional(),
|
|
@@ -7187,7 +7187,7 @@ var TeamMemberEntrySchema = z9.looseObject({
|
|
|
7187
7187
|
backendType: z9.string().optional(),
|
|
7188
7188
|
isActive: z9.boolean().optional()
|
|
7189
7189
|
});
|
|
7190
|
-
var TeamFileSchema = z9.
|
|
7190
|
+
var TeamFileSchema = z9.object({
|
|
7191
7191
|
name: z9.string(),
|
|
7192
7192
|
description: z9.string().optional(),
|
|
7193
7193
|
createdAt: z9.number(),
|
|
@@ -7244,17 +7244,17 @@ import { mkdirSync as mkdirSync9, readFileSync as readFileSync13, writeFileSync
|
|
|
7244
7244
|
import { join as join16 } from "path";
|
|
7245
7245
|
import z10, { parse as parse6 } from "zod";
|
|
7246
7246
|
var log21 = createChildLogger({ module: "teams" });
|
|
7247
|
-
var TranscriptToolUseSchema = z10.
|
|
7247
|
+
var TranscriptToolUseSchema = z10.object({
|
|
7248
7248
|
tool_use_id: z10.string(),
|
|
7249
7249
|
tool_name: z10.string(),
|
|
7250
7250
|
arguments: z10.record(z10.string(), z10.unknown())
|
|
7251
7251
|
});
|
|
7252
|
-
var TranscriptToolResultSchema = z10.
|
|
7252
|
+
var TranscriptToolResultSchema = z10.object({
|
|
7253
7253
|
tool_use_id: z10.string(),
|
|
7254
7254
|
content: z10.string(),
|
|
7255
7255
|
is_error: z10.boolean().optional()
|
|
7256
7256
|
});
|
|
7257
|
-
var TranscriptEntrySchema = z10.
|
|
7257
|
+
var TranscriptEntrySchema = z10.object({
|
|
7258
7258
|
role: z10.string(),
|
|
7259
7259
|
content: z10.string().optional(),
|
|
7260
7260
|
tool_uses: z10.array(TranscriptToolUseSchema).optional(),
|
|
@@ -8200,7 +8200,7 @@ var TaskUpdateTool = class {
|
|
|
8200
8200
|
return { output: `Updated task #${taskId} status`, isError: false };
|
|
8201
8201
|
}
|
|
8202
8202
|
};
|
|
8203
|
-
var TaskUpdateArgsSchema = z12.
|
|
8203
|
+
var TaskUpdateArgsSchema = z12.object({
|
|
8204
8204
|
taskId: z12.string(),
|
|
8205
8205
|
subject: z12.string().optional(),
|
|
8206
8206
|
description: z12.string().optional(),
|
|
@@ -8320,7 +8320,7 @@ __export(ask_user_exports, {
|
|
|
8320
8320
|
AskUserQuestionTool: () => AskUserQuestionTool
|
|
8321
8321
|
});
|
|
8322
8322
|
import { safeParseAsync as safeParseAsync2, z as z13 } from "zod";
|
|
8323
|
-
var QuestionOptionSchema = z13.
|
|
8323
|
+
var QuestionOptionSchema = z13.object({
|
|
8324
8324
|
label: z13.string(),
|
|
8325
8325
|
description: z13.string().optional()
|
|
8326
8326
|
});
|
|
@@ -8411,7 +8411,7 @@ var AskUserQuestionTool = class {
|
|
|
8411
8411
|
data: argsData,
|
|
8412
8412
|
error
|
|
8413
8413
|
} = await safeParseAsync2(
|
|
8414
|
-
z13.
|
|
8414
|
+
z13.object({ questions: z13.array(QuestionSchema) }),
|
|
8415
8415
|
args
|
|
8416
8416
|
);
|
|
8417
8417
|
if (!success) {
|
|
@@ -9767,7 +9767,7 @@ var CoordinateSchema = z14.tuple([
|
|
|
9767
9767
|
z14.number().int().nonnegative(),
|
|
9768
9768
|
z14.number().int().nonnegative()
|
|
9769
9769
|
]);
|
|
9770
|
-
var PathPointSchema = z14.
|
|
9770
|
+
var PathPointSchema = z14.object({
|
|
9771
9771
|
x: z14.number().int().nonnegative(),
|
|
9772
9772
|
y: z14.number().int().nonnegative()
|
|
9773
9773
|
});
|
|
@@ -9783,7 +9783,7 @@ var OPENAI_ACTION_TYPES = [
|
|
|
9783
9783
|
"wait"
|
|
9784
9784
|
];
|
|
9785
9785
|
var MAX_BATCH_ACTIONS = 100;
|
|
9786
|
-
var OpenAIActionSchema = z14.
|
|
9786
|
+
var OpenAIActionSchema = z14.object({
|
|
9787
9787
|
type: z14.enum(OPENAI_ACTION_TYPES),
|
|
9788
9788
|
button: z14.enum(["left", "right", "wheel", "back", "forward"]).optional(),
|
|
9789
9789
|
x: z14.number().int().nonnegative().optional(),
|
|
@@ -9794,12 +9794,12 @@ var OpenAIActionSchema = z14.looseObject({
|
|
|
9794
9794
|
scrollY: z14.number().optional(),
|
|
9795
9795
|
text: z14.string().max(1e4).optional()
|
|
9796
9796
|
});
|
|
9797
|
-
var SafetyCheckSchema = z14.
|
|
9797
|
+
var SafetyCheckSchema = z14.object({
|
|
9798
9798
|
id: z14.string().min(1),
|
|
9799
9799
|
code: z14.string().optional(),
|
|
9800
9800
|
message: z14.string().optional()
|
|
9801
9801
|
});
|
|
9802
|
-
var ComputerUseInputSchema = z14.
|
|
9802
|
+
var ComputerUseInputSchema = z14.object({
|
|
9803
9803
|
action: z14.enum(ACTIONS).optional(),
|
|
9804
9804
|
actions: z14.array(OpenAIActionSchema).min(1).max(MAX_BATCH_ACTIONS).optional(),
|
|
9805
9805
|
pendingSafetyChecks: z14.array(SafetyCheckSchema).optional(),
|
|
@@ -11557,18 +11557,18 @@ var ToolSearchTool = class {
|
|
|
11557
11557
|
|
|
11558
11558
|
// src/remote/server.ts
|
|
11559
11559
|
var log26 = createChildLogger({ module: "remote" });
|
|
11560
|
-
var WsInboundSchema = z15.
|
|
11560
|
+
var WsInboundSchema = z15.object({
|
|
11561
11561
|
type: z15.string(),
|
|
11562
11562
|
data: z15.unknown()
|
|
11563
11563
|
});
|
|
11564
|
-
var UserMessageSchema = z15.
|
|
11564
|
+
var UserMessageSchema = z15.object({
|
|
11565
11565
|
content: z15.string()
|
|
11566
11566
|
});
|
|
11567
|
-
var PermissionResponseSchema = z15.
|
|
11567
|
+
var PermissionResponseSchema = z15.object({
|
|
11568
11568
|
id: z15.string(),
|
|
11569
11569
|
response: z15.enum(["allow", "deny", "allowAlways"])
|
|
11570
11570
|
});
|
|
11571
|
-
var AskUserResponseSchema = z15.
|
|
11571
|
+
var AskUserResponseSchema = z15.object({
|
|
11572
11572
|
id: z15.string(),
|
|
11573
11573
|
answers: z15.record(z15.string(), z15.string())
|
|
11574
11574
|
});
|
|
@@ -11765,8 +11765,8 @@ async function createRemoteAgent(opts) {
|
|
|
11765
11765
|
if (!client) {
|
|
11766
11766
|
throw new Error("no llm client (provider not initialized)");
|
|
11767
11767
|
}
|
|
11768
|
-
const { PermissionChecker: PC } = await import("./permissions-
|
|
11769
|
-
const { Agent: AgentClass } = await import("./agent-
|
|
11768
|
+
const { PermissionChecker: PC } = await import("./permissions-Q4FBU5VD.js");
|
|
11769
|
+
const { Agent: AgentClass } = await import("./agent-INEHZXP3.js");
|
|
11770
11770
|
const subConv = new ConversationManager();
|
|
11771
11771
|
subConv.addUserMessage(prompt);
|
|
11772
11772
|
const taskManager = new TaskManager();
|
|
@@ -14474,7 +14474,7 @@ var CodeReviewMemberSchema = z16.object({
|
|
|
14474
14474
|
expertise: z16.array(z16.string()),
|
|
14475
14475
|
active: z16.boolean()
|
|
14476
14476
|
});
|
|
14477
|
-
var CodeReviewTeamSchema = z16.
|
|
14477
|
+
var CodeReviewTeamSchema = z16.object({
|
|
14478
14478
|
name: z16.string(),
|
|
14479
14479
|
members: z16.array(CodeReviewMemberSchema),
|
|
14480
14480
|
createdAt: z16.string(),
|
|
@@ -14658,7 +14658,7 @@ import { readFileSync as readFileSync18, writeFileSync as writeFileSync12, mkdir
|
|
|
14658
14658
|
import { join as join23, dirname as dirname9 } from "path";
|
|
14659
14659
|
import { safeParse as safeParse3, z as z17 } from "zod";
|
|
14660
14660
|
var log31 = createChildLogger({ module: "commands" });
|
|
14661
|
-
var UsageEntrySchema = z17.
|
|
14661
|
+
var UsageEntrySchema = z17.object({
|
|
14662
14662
|
usageCount: z17.coerce.number(),
|
|
14663
14663
|
lastUsedAt: z17.coerce.number()
|
|
14664
14664
|
});
|
|
@@ -14803,12 +14803,12 @@ import { z as z19 } from "zod";
|
|
|
14803
14803
|
var DISCOVERY_TIMEOUT_MS = 5e3;
|
|
14804
14804
|
var MAX_MODEL_PAGES = 10;
|
|
14805
14805
|
var HttpUrlSchema = z19.url();
|
|
14806
|
-
var ModelSchema = z19.
|
|
14806
|
+
var ModelSchema = z19.object({
|
|
14807
14807
|
id: z19.string().trim().min(1),
|
|
14808
14808
|
display_name: z19.string().optional(),
|
|
14809
14809
|
name: z19.string().optional()
|
|
14810
14810
|
});
|
|
14811
|
-
var ModelListSchema = z19.
|
|
14811
|
+
var ModelListSchema = z19.object({
|
|
14812
14812
|
data: z19.array(ModelSchema),
|
|
14813
14813
|
has_more: z19.boolean().optional(),
|
|
14814
14814
|
last_id: z19.string().trim().min(1).nullable().optional()
|
|
@@ -15222,7 +15222,7 @@ import { homedir as homedir10 } from "os";
|
|
|
15222
15222
|
import { join as join26, resolve as resolve11, sep as sep2 } from "path";
|
|
15223
15223
|
import { z as z20 } from "zod";
|
|
15224
15224
|
var log34 = createChildLogger({ module: "vscode" });
|
|
15225
|
-
var LockfileSchema = z20.
|
|
15225
|
+
var LockfileSchema = z20.object({
|
|
15226
15226
|
workspaceFolders: z20.array(z20.string()).optional(),
|
|
15227
15227
|
pid: z20.number().optional(),
|
|
15228
15228
|
ideName: z20.string().optional(),
|
|
@@ -15388,9 +15388,9 @@ var WebSocketTransport = class {
|
|
|
15388
15388
|
|
|
15389
15389
|
// src/vscode/ide-client.ts
|
|
15390
15390
|
var log35 = createChildLogger({ module: "vscode" });
|
|
15391
|
-
var AtMentionedSchema = z21.
|
|
15391
|
+
var AtMentionedSchema = z21.object({
|
|
15392
15392
|
method: z21.literal("at_mentioned"),
|
|
15393
|
-
params: z21.
|
|
15393
|
+
params: z21.object({
|
|
15394
15394
|
filePath: z21.string(),
|
|
15395
15395
|
lineStart: z21.number().optional(),
|
|
15396
15396
|
lineEnd: z21.number().optional()
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
OpenAICompatClient,
|
|
4
4
|
buildChatCompletionMessages,
|
|
5
5
|
buildOpenAIInput
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-E6VFL5IO.js";
|
|
7
|
+
import "./chunk-BMODZ6SU.js";
|
|
8
8
|
import "./chunk-7SU77J32.js";
|
|
9
9
|
import "./chunk-MLKGABMK.js";
|
|
10
10
|
export {
|