@opencode/client 0.0.0-beta-19507 → 0.0.0-dev-19276
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/effect/api/api.d.ts +24 -63
- package/dist/effect/client.d.ts +105 -34
- package/dist/effect/generated/client.d.ts +106 -35
- package/dist/effect/generated/client.js +6 -7
- package/dist/promise/client.d.ts +1 -1
- package/dist/promise/generated/client.d.ts +2 -2
- package/dist/promise/generated/client.js +9 -10
- package/dist/promise/generated/types.d.ts +183 -243
- package/dist/solid/data.d.ts +0 -2
- package/dist/solid/data.js +15 -22
- package/package.json +4 -4
|
@@ -807,8 +807,6 @@ export type SessionMessageCompactionFailed = {
|
|
|
807
807
|
status: "failed";
|
|
808
808
|
reason: "auto" | "manual";
|
|
809
809
|
error: SessionStructuredError;
|
|
810
|
-
cost?: MoneyUSD;
|
|
811
|
-
tokens?: TokenUsageInfo;
|
|
812
810
|
};
|
|
813
811
|
export type SessionProviderContext = {
|
|
814
812
|
version: 1;
|
|
@@ -840,6 +838,33 @@ export type InstructionEntrySnapshot = Array<{
|
|
|
840
838
|
value: JsonValue;
|
|
841
839
|
removed: boolean;
|
|
842
840
|
}>;
|
|
841
|
+
export type SessionCreated = {
|
|
842
|
+
id: string;
|
|
843
|
+
created: number;
|
|
844
|
+
metadata?: {
|
|
845
|
+
[x: string]: any;
|
|
846
|
+
};
|
|
847
|
+
type: "session.created";
|
|
848
|
+
durable: {
|
|
849
|
+
aggregateID: string;
|
|
850
|
+
seq: number;
|
|
851
|
+
version: 1;
|
|
852
|
+
};
|
|
853
|
+
location?: LocationRef;
|
|
854
|
+
data: {
|
|
855
|
+
sessionID: string;
|
|
856
|
+
projectID: string;
|
|
857
|
+
location: LocationRef;
|
|
858
|
+
subpath?: string;
|
|
859
|
+
parentID?: string;
|
|
860
|
+
slug: string;
|
|
861
|
+
title?: string;
|
|
862
|
+
agent?: string;
|
|
863
|
+
model?: ModelRef;
|
|
864
|
+
metadata?: SessionMetadata;
|
|
865
|
+
version: string;
|
|
866
|
+
};
|
|
867
|
+
};
|
|
843
868
|
export type SessionAgentSelected = {
|
|
844
869
|
id: string;
|
|
845
870
|
created: number;
|
|
@@ -1296,8 +1321,6 @@ export type SessionCompactionFailed = {
|
|
|
1296
1321
|
reason: "auto" | "manual";
|
|
1297
1322
|
error: SessionStructuredError;
|
|
1298
1323
|
inputID?: string;
|
|
1299
|
-
cost?: MoneyUSD;
|
|
1300
|
-
tokens?: TokenUsageInfo;
|
|
1301
1324
|
};
|
|
1302
1325
|
};
|
|
1303
1326
|
export type SessionRevertCleared = {
|
|
@@ -2033,7 +2056,6 @@ export type ProviderInfo = {
|
|
|
2033
2056
|
activation: "auto" | "enabled" | "disabled";
|
|
2034
2057
|
package: string;
|
|
2035
2058
|
compaction?: ProviderCompaction;
|
|
2036
|
-
websocket?: boolean;
|
|
2037
2059
|
settings?: {
|
|
2038
2060
|
[x: string]: any;
|
|
2039
2061
|
};
|
|
@@ -2338,6 +2360,32 @@ export type SessionInboxMove = {
|
|
|
2338
2360
|
payload: SessionInboxMovePayload;
|
|
2339
2361
|
delivery: SessionInboxDelivery;
|
|
2340
2362
|
};
|
|
2363
|
+
export type SessionInfo = {
|
|
2364
|
+
id: string;
|
|
2365
|
+
parentID?: string;
|
|
2366
|
+
fork?: {
|
|
2367
|
+
sessionID: string;
|
|
2368
|
+
boundary: SessionForkBoundary;
|
|
2369
|
+
};
|
|
2370
|
+
projectID: string;
|
|
2371
|
+
agent?: string;
|
|
2372
|
+
model?: ModelRef;
|
|
2373
|
+
cost: MoneyUSD;
|
|
2374
|
+
tokens: TokenUsageInfo;
|
|
2375
|
+
outcome?: "succeeded" | "failed" | "interrupted";
|
|
2376
|
+
time: {
|
|
2377
|
+
created: number;
|
|
2378
|
+
updated: number;
|
|
2379
|
+
idle?: number;
|
|
2380
|
+
viewed?: number;
|
|
2381
|
+
archived?: number;
|
|
2382
|
+
};
|
|
2383
|
+
title?: string;
|
|
2384
|
+
location: LocationRef;
|
|
2385
|
+
subpath?: string;
|
|
2386
|
+
metadata?: SessionMetadata;
|
|
2387
|
+
revert?: SessionRevert;
|
|
2388
|
+
};
|
|
2341
2389
|
export type SessionRevertStaged = {
|
|
2342
2390
|
id: string;
|
|
2343
2391
|
created: number;
|
|
@@ -2442,8 +2490,6 @@ export type SessionMessageCompactionCompleted = {
|
|
|
2442
2490
|
summary: string;
|
|
2443
2491
|
recent: string;
|
|
2444
2492
|
providerContext?: SessionProviderContext;
|
|
2445
|
-
cost?: MoneyUSD;
|
|
2446
|
-
tokens?: TokenUsageInfo;
|
|
2447
2493
|
};
|
|
2448
2494
|
export type SessionCompactionEnded = {
|
|
2449
2495
|
id: string;
|
|
@@ -2466,8 +2512,6 @@ export type SessionCompactionEnded = {
|
|
|
2466
2512
|
providerContext?: SessionProviderContext;
|
|
2467
2513
|
text: string;
|
|
2468
2514
|
recent: string;
|
|
2469
|
-
cost?: MoneyUSD;
|
|
2470
|
-
tokens?: TokenUsageInfo;
|
|
2471
2515
|
};
|
|
2472
2516
|
};
|
|
2473
2517
|
export type SessionForked = {
|
|
@@ -2575,7 +2619,6 @@ export type ModelInfo = {
|
|
|
2575
2619
|
compatibility?: ModelCompatibility;
|
|
2576
2620
|
package?: string;
|
|
2577
2621
|
compaction?: ProviderCompaction;
|
|
2578
|
-
websocket?: boolean;
|
|
2579
2622
|
settings?: {
|
|
2580
2623
|
[x: string]: any;
|
|
2581
2624
|
};
|
|
@@ -2643,79 +2686,6 @@ export type AgentInfo = {
|
|
|
2643
2686
|
steps?: number;
|
|
2644
2687
|
permissions: PermissionRuleset;
|
|
2645
2688
|
};
|
|
2646
|
-
export type SessionPermissionsUpdated = {
|
|
2647
|
-
id: string;
|
|
2648
|
-
created: number;
|
|
2649
|
-
metadata?: {
|
|
2650
|
-
[x: string]: any;
|
|
2651
|
-
};
|
|
2652
|
-
type: "session.permissions.updated";
|
|
2653
|
-
durable: {
|
|
2654
|
-
aggregateID: string;
|
|
2655
|
-
seq: number;
|
|
2656
|
-
version: 1;
|
|
2657
|
-
};
|
|
2658
|
-
location?: LocationRef;
|
|
2659
|
-
data: {
|
|
2660
|
-
sessionID: string;
|
|
2661
|
-
permissions: PermissionRuleset;
|
|
2662
|
-
};
|
|
2663
|
-
};
|
|
2664
|
-
export type SessionInfo = {
|
|
2665
|
-
id: string;
|
|
2666
|
-
parentID?: string;
|
|
2667
|
-
fork?: {
|
|
2668
|
-
sessionID: string;
|
|
2669
|
-
boundary: SessionForkBoundary;
|
|
2670
|
-
};
|
|
2671
|
-
projectID: string;
|
|
2672
|
-
agent?: string;
|
|
2673
|
-
model?: ModelRef;
|
|
2674
|
-
cost: MoneyUSD;
|
|
2675
|
-
tokens: TokenUsageInfo;
|
|
2676
|
-
outcome?: "succeeded" | "failed" | "interrupted";
|
|
2677
|
-
time: {
|
|
2678
|
-
created: number;
|
|
2679
|
-
updated: number;
|
|
2680
|
-
idle?: number;
|
|
2681
|
-
viewed?: number;
|
|
2682
|
-
archived?: number;
|
|
2683
|
-
};
|
|
2684
|
-
title?: string;
|
|
2685
|
-
location: LocationRef;
|
|
2686
|
-
subpath?: string;
|
|
2687
|
-
metadata?: SessionMetadata;
|
|
2688
|
-
permissions?: PermissionRuleset;
|
|
2689
|
-
revert?: SessionRevert;
|
|
2690
|
-
};
|
|
2691
|
-
export type SessionCreated = {
|
|
2692
|
-
id: string;
|
|
2693
|
-
created: number;
|
|
2694
|
-
metadata?: {
|
|
2695
|
-
[x: string]: any;
|
|
2696
|
-
};
|
|
2697
|
-
type: "session.created";
|
|
2698
|
-
durable: {
|
|
2699
|
-
aggregateID: string;
|
|
2700
|
-
seq: number;
|
|
2701
|
-
version: 1;
|
|
2702
|
-
};
|
|
2703
|
-
location?: LocationRef;
|
|
2704
|
-
data: {
|
|
2705
|
-
sessionID: string;
|
|
2706
|
-
projectID: string;
|
|
2707
|
-
location: LocationRef;
|
|
2708
|
-
subpath?: string;
|
|
2709
|
-
parentID?: string;
|
|
2710
|
-
slug: string;
|
|
2711
|
-
title?: string;
|
|
2712
|
-
agent?: string;
|
|
2713
|
-
model?: ModelRef;
|
|
2714
|
-
metadata?: SessionMetadata;
|
|
2715
|
-
permissions?: PermissionRuleset;
|
|
2716
|
-
version: string;
|
|
2717
|
-
};
|
|
2718
|
-
};
|
|
2719
2689
|
export type ConfigEntry = {
|
|
2720
2690
|
type: "document";
|
|
2721
2691
|
path?: string;
|
|
@@ -2898,7 +2868,6 @@ export type ConfigEntry = {
|
|
|
2898
2868
|
providers?: {
|
|
2899
2869
|
[x: string]: {
|
|
2900
2870
|
compaction?: ProviderCompaction;
|
|
2901
|
-
websocket?: boolean;
|
|
2902
2871
|
canonical?: string;
|
|
2903
2872
|
name?: string;
|
|
2904
2873
|
env?: Array<string>;
|
|
@@ -2915,7 +2884,6 @@ export type ConfigEntry = {
|
|
|
2915
2884
|
models?: {
|
|
2916
2885
|
[x: string]: {
|
|
2917
2886
|
compaction?: ProviderCompaction;
|
|
2918
|
-
websocket?: boolean;
|
|
2919
2887
|
modelID?: string;
|
|
2920
2888
|
family?: string;
|
|
2921
2889
|
name?: string;
|
|
@@ -2996,6 +2964,13 @@ export type ConfigEntry = {
|
|
|
2996
2964
|
type: "claude";
|
|
2997
2965
|
path: string;
|
|
2998
2966
|
};
|
|
2967
|
+
export type SessionsResponse = {
|
|
2968
|
+
data: Array<SessionInfo>;
|
|
2969
|
+
cursor: {
|
|
2970
|
+
previous?: string | null;
|
|
2971
|
+
next?: string | null;
|
|
2972
|
+
};
|
|
2973
|
+
};
|
|
2999
2974
|
export type SessionInboxUser = {
|
|
3000
2975
|
id: string;
|
|
3001
2976
|
sessionID: string;
|
|
@@ -3052,13 +3027,6 @@ export type SessionMessageAssistantTool1 = {
|
|
|
3052
3027
|
};
|
|
3053
3028
|
export type FormFields = [FormField, ...Array<FormField>];
|
|
3054
3029
|
export type FormFields2 = [FormField1, ...Array<FormField1>];
|
|
3055
|
-
export type SessionsResponse = {
|
|
3056
|
-
data: Array<SessionInfo>;
|
|
3057
|
-
cursor: {
|
|
3058
|
-
previous?: string | null;
|
|
3059
|
-
next?: string | null;
|
|
3060
|
-
};
|
|
3061
|
-
};
|
|
3062
3030
|
export type SessionInboxInfo = SessionInboxUser | SessionInboxSynthetic | SessionInboxCompaction | SessionInboxMove;
|
|
3063
3031
|
export type SessionInboxEnqueued = {
|
|
3064
3032
|
id: string;
|
|
@@ -3176,7 +3144,7 @@ export type SessionMessagesResponse = {
|
|
|
3176
3144
|
next?: string | null;
|
|
3177
3145
|
};
|
|
3178
3146
|
};
|
|
3179
|
-
export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed |
|
|
3147
|
+
export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionMessageContentUpdated | SessionUsageRecorded;
|
|
3180
3148
|
export type IntegrationInfo = {
|
|
3181
3149
|
id: string;
|
|
3182
3150
|
name: string;
|
|
@@ -3186,7 +3154,7 @@ export type IntegrationInfo = {
|
|
|
3186
3154
|
methods: Array<IntegrationMethod>;
|
|
3187
3155
|
connections: Array<ConnectionInfo>;
|
|
3188
3156
|
};
|
|
3189
|
-
export type V2Event = ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed |
|
|
3157
|
+
export type V2Event = ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionMessageContentUpdated | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginUpdated | ProjectUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventRpc | V2EventServerConnected;
|
|
3190
3158
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
3191
3159
|
export type InvalidRequestError = {
|
|
3192
3160
|
readonly _tag: "InvalidRequestError";
|
|
@@ -3641,11 +3609,6 @@ export type SessionCreateInput = {
|
|
|
3641
3609
|
readonly metadata?: {
|
|
3642
3610
|
readonly [x: string]: JsonValue;
|
|
3643
3611
|
} | null;
|
|
3644
|
-
readonly permissions?: ReadonlyArray<{
|
|
3645
|
-
readonly action: string;
|
|
3646
|
-
readonly resource: string;
|
|
3647
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
3648
|
-
}> | null;
|
|
3649
3612
|
}["id"];
|
|
3650
3613
|
readonly title?: {
|
|
3651
3614
|
readonly id?: string | null;
|
|
@@ -3663,11 +3626,6 @@ export type SessionCreateInput = {
|
|
|
3663
3626
|
readonly metadata?: {
|
|
3664
3627
|
readonly [x: string]: JsonValue;
|
|
3665
3628
|
} | null;
|
|
3666
|
-
readonly permissions?: ReadonlyArray<{
|
|
3667
|
-
readonly action: string;
|
|
3668
|
-
readonly resource: string;
|
|
3669
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
3670
|
-
}> | null;
|
|
3671
3629
|
}["title"];
|
|
3672
3630
|
readonly agent?: {
|
|
3673
3631
|
readonly id?: string | null;
|
|
@@ -3685,11 +3643,6 @@ export type SessionCreateInput = {
|
|
|
3685
3643
|
readonly metadata?: {
|
|
3686
3644
|
readonly [x: string]: JsonValue;
|
|
3687
3645
|
} | null;
|
|
3688
|
-
readonly permissions?: ReadonlyArray<{
|
|
3689
|
-
readonly action: string;
|
|
3690
|
-
readonly resource: string;
|
|
3691
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
3692
|
-
}> | null;
|
|
3693
3646
|
}["agent"];
|
|
3694
3647
|
readonly model?: {
|
|
3695
3648
|
readonly id?: string | null;
|
|
@@ -3707,11 +3660,6 @@ export type SessionCreateInput = {
|
|
|
3707
3660
|
readonly metadata?: {
|
|
3708
3661
|
readonly [x: string]: JsonValue;
|
|
3709
3662
|
} | null;
|
|
3710
|
-
readonly permissions?: ReadonlyArray<{
|
|
3711
|
-
readonly action: string;
|
|
3712
|
-
readonly resource: string;
|
|
3713
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
3714
|
-
}> | null;
|
|
3715
3663
|
}["model"];
|
|
3716
3664
|
readonly location?: {
|
|
3717
3665
|
readonly id?: string | null;
|
|
@@ -3729,11 +3677,6 @@ export type SessionCreateInput = {
|
|
|
3729
3677
|
readonly metadata?: {
|
|
3730
3678
|
readonly [x: string]: JsonValue;
|
|
3731
3679
|
} | null;
|
|
3732
|
-
readonly permissions?: ReadonlyArray<{
|
|
3733
|
-
readonly action: string;
|
|
3734
|
-
readonly resource: string;
|
|
3735
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
3736
|
-
}> | null;
|
|
3737
3680
|
}["location"];
|
|
3738
3681
|
readonly metadata?: {
|
|
3739
3682
|
readonly id?: string | null;
|
|
@@ -3751,34 +3694,7 @@ export type SessionCreateInput = {
|
|
|
3751
3694
|
readonly metadata?: {
|
|
3752
3695
|
readonly [x: string]: JsonValue;
|
|
3753
3696
|
} | null;
|
|
3754
|
-
readonly permissions?: ReadonlyArray<{
|
|
3755
|
-
readonly action: string;
|
|
3756
|
-
readonly resource: string;
|
|
3757
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
3758
|
-
}> | null;
|
|
3759
3697
|
}["metadata"];
|
|
3760
|
-
readonly permissions?: {
|
|
3761
|
-
readonly id?: string | null;
|
|
3762
|
-
readonly title?: string | null;
|
|
3763
|
-
readonly agent?: string | null;
|
|
3764
|
-
readonly model?: {
|
|
3765
|
-
readonly id: string;
|
|
3766
|
-
readonly providerID: string;
|
|
3767
|
-
readonly variant?: string;
|
|
3768
|
-
} | null;
|
|
3769
|
-
readonly location?: {
|
|
3770
|
-
readonly directory: string;
|
|
3771
|
-
readonly workspaceID?: string;
|
|
3772
|
-
} | null;
|
|
3773
|
-
readonly metadata?: {
|
|
3774
|
-
readonly [x: string]: JsonValue;
|
|
3775
|
-
} | null;
|
|
3776
|
-
readonly permissions?: ReadonlyArray<{
|
|
3777
|
-
readonly action: string;
|
|
3778
|
-
readonly resource: string;
|
|
3779
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
3780
|
-
}> | null;
|
|
3781
|
-
}["permissions"];
|
|
3782
3698
|
};
|
|
3783
3699
|
export type SessionCreateOutput = {
|
|
3784
3700
|
data: SessionInfo;
|
|
@@ -3832,11 +3748,6 @@ export type SessionImportInput = {
|
|
|
3832
3748
|
readonly metadata?: {
|
|
3833
3749
|
readonly [x: string]: JsonValue;
|
|
3834
3750
|
};
|
|
3835
|
-
readonly permissions?: ReadonlyArray<{
|
|
3836
|
-
readonly action: string;
|
|
3837
|
-
readonly resource: string;
|
|
3838
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
3839
|
-
}>;
|
|
3840
3751
|
readonly revert?: {
|
|
3841
3752
|
readonly messageID: string;
|
|
3842
3753
|
readonly partID?: string;
|
|
@@ -4205,16 +4116,6 @@ export type SessionImportInput = {
|
|
|
4205
4116
|
};
|
|
4206
4117
|
readonly messages: JsonValue;
|
|
4207
4118
|
};
|
|
4208
|
-
readonly cost?: number;
|
|
4209
|
-
readonly tokens?: {
|
|
4210
|
-
readonly input: number;
|
|
4211
|
-
readonly output: number;
|
|
4212
|
-
readonly reasoning: number;
|
|
4213
|
-
readonly cache: {
|
|
4214
|
-
readonly read: number;
|
|
4215
|
-
readonly write: number;
|
|
4216
|
-
};
|
|
4217
|
-
};
|
|
4218
4119
|
} | {
|
|
4219
4120
|
readonly type: "compaction";
|
|
4220
4121
|
readonly id: string;
|
|
@@ -4231,16 +4132,6 @@ export type SessionImportInput = {
|
|
|
4231
4132
|
readonly message: string;
|
|
4232
4133
|
readonly status?: number;
|
|
4233
4134
|
};
|
|
4234
|
-
readonly cost?: number;
|
|
4235
|
-
readonly tokens?: {
|
|
4236
|
-
readonly input: number;
|
|
4237
|
-
readonly output: number;
|
|
4238
|
-
readonly reasoning: number;
|
|
4239
|
-
readonly cache: {
|
|
4240
|
-
readonly read: number;
|
|
4241
|
-
readonly write: number;
|
|
4242
|
-
};
|
|
4243
|
-
};
|
|
4244
4135
|
})>;
|
|
4245
4136
|
readonly location?: {
|
|
4246
4137
|
readonly directory: string;
|
|
@@ -4295,11 +4186,6 @@ export type SessionImportInput = {
|
|
|
4295
4186
|
readonly metadata?: {
|
|
4296
4187
|
readonly [x: string]: JsonValue;
|
|
4297
4188
|
};
|
|
4298
|
-
readonly permissions?: ReadonlyArray<{
|
|
4299
|
-
readonly action: string;
|
|
4300
|
-
readonly resource: string;
|
|
4301
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
4302
|
-
}>;
|
|
4303
4189
|
readonly revert?: {
|
|
4304
4190
|
readonly messageID: string;
|
|
4305
4191
|
readonly partID?: string;
|
|
@@ -4668,16 +4554,6 @@ export type SessionImportInput = {
|
|
|
4668
4554
|
};
|
|
4669
4555
|
readonly messages: JsonValue;
|
|
4670
4556
|
};
|
|
4671
|
-
readonly cost?: number;
|
|
4672
|
-
readonly tokens?: {
|
|
4673
|
-
readonly input: number;
|
|
4674
|
-
readonly output: number;
|
|
4675
|
-
readonly reasoning: number;
|
|
4676
|
-
readonly cache: {
|
|
4677
|
-
readonly read: number;
|
|
4678
|
-
readonly write: number;
|
|
4679
|
-
};
|
|
4680
|
-
};
|
|
4681
4557
|
} | {
|
|
4682
4558
|
readonly type: "compaction";
|
|
4683
4559
|
readonly id: string;
|
|
@@ -4694,16 +4570,6 @@ export type SessionImportInput = {
|
|
|
4694
4570
|
readonly message: string;
|
|
4695
4571
|
readonly status?: number;
|
|
4696
4572
|
};
|
|
4697
|
-
readonly cost?: number;
|
|
4698
|
-
readonly tokens?: {
|
|
4699
|
-
readonly input: number;
|
|
4700
|
-
readonly output: number;
|
|
4701
|
-
readonly reasoning: number;
|
|
4702
|
-
readonly cache: {
|
|
4703
|
-
readonly read: number;
|
|
4704
|
-
readonly write: number;
|
|
4705
|
-
};
|
|
4706
|
-
};
|
|
4707
4573
|
})>;
|
|
4708
4574
|
readonly location?: {
|
|
4709
4575
|
readonly directory: string;
|
|
@@ -4758,11 +4624,6 @@ export type SessionImportInput = {
|
|
|
4758
4624
|
readonly metadata?: {
|
|
4759
4625
|
readonly [x: string]: JsonValue;
|
|
4760
4626
|
};
|
|
4761
|
-
readonly permissions?: ReadonlyArray<{
|
|
4762
|
-
readonly action: string;
|
|
4763
|
-
readonly resource: string;
|
|
4764
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
4765
|
-
}>;
|
|
4766
4627
|
readonly revert?: {
|
|
4767
4628
|
readonly messageID: string;
|
|
4768
4629
|
readonly partID?: string;
|
|
@@ -5131,16 +4992,6 @@ export type SessionImportInput = {
|
|
|
5131
4992
|
};
|
|
5132
4993
|
readonly messages: JsonValue;
|
|
5133
4994
|
};
|
|
5134
|
-
readonly cost?: number;
|
|
5135
|
-
readonly tokens?: {
|
|
5136
|
-
readonly input: number;
|
|
5137
|
-
readonly output: number;
|
|
5138
|
-
readonly reasoning: number;
|
|
5139
|
-
readonly cache: {
|
|
5140
|
-
readonly read: number;
|
|
5141
|
-
readonly write: number;
|
|
5142
|
-
};
|
|
5143
|
-
};
|
|
5144
4995
|
} | {
|
|
5145
4996
|
readonly type: "compaction";
|
|
5146
4997
|
readonly id: string;
|
|
@@ -5157,16 +5008,6 @@ export type SessionImportInput = {
|
|
|
5157
5008
|
readonly message: string;
|
|
5158
5009
|
readonly status?: number;
|
|
5159
5010
|
};
|
|
5160
|
-
readonly cost?: number;
|
|
5161
|
-
readonly tokens?: {
|
|
5162
|
-
readonly input: number;
|
|
5163
|
-
readonly output: number;
|
|
5164
|
-
readonly reasoning: number;
|
|
5165
|
-
readonly cache: {
|
|
5166
|
-
readonly read: number;
|
|
5167
|
-
readonly write: number;
|
|
5168
|
-
};
|
|
5169
|
-
};
|
|
5170
5011
|
})>;
|
|
5171
5012
|
readonly location?: {
|
|
5172
5013
|
readonly directory: string;
|
|
@@ -6041,6 +5882,127 @@ export type SessionMessageInput = {
|
|
|
6041
5882
|
export type SessionMessageOutput = {
|
|
6042
5883
|
data: SessionMessageInfo;
|
|
6043
5884
|
}["data"];
|
|
5885
|
+
export type SessionMessageUpdateInput = {
|
|
5886
|
+
readonly sessionID: {
|
|
5887
|
+
readonly sessionID: string;
|
|
5888
|
+
readonly messageID: string;
|
|
5889
|
+
}["sessionID"];
|
|
5890
|
+
readonly messageID: {
|
|
5891
|
+
readonly sessionID: string;
|
|
5892
|
+
readonly messageID: string;
|
|
5893
|
+
}["messageID"];
|
|
5894
|
+
readonly content: {
|
|
5895
|
+
readonly content: ReadonlyArray<{
|
|
5896
|
+
readonly type: "text";
|
|
5897
|
+
readonly text: string;
|
|
5898
|
+
readonly state?: {
|
|
5899
|
+
readonly [x: string]: JsonValue;
|
|
5900
|
+
};
|
|
5901
|
+
} | {
|
|
5902
|
+
readonly type: "reasoning";
|
|
5903
|
+
readonly text: string;
|
|
5904
|
+
readonly state?: {
|
|
5905
|
+
readonly [x: string]: JsonValue;
|
|
5906
|
+
};
|
|
5907
|
+
readonly time?: {
|
|
5908
|
+
readonly created: number;
|
|
5909
|
+
readonly completed?: number;
|
|
5910
|
+
};
|
|
5911
|
+
} | {
|
|
5912
|
+
readonly type: "tool";
|
|
5913
|
+
readonly id: string;
|
|
5914
|
+
readonly name: string;
|
|
5915
|
+
readonly executed?: boolean;
|
|
5916
|
+
readonly providerState?: {
|
|
5917
|
+
readonly [x: string]: JsonValue;
|
|
5918
|
+
};
|
|
5919
|
+
readonly providerResultState?: {
|
|
5920
|
+
readonly [x: string]: JsonValue;
|
|
5921
|
+
};
|
|
5922
|
+
readonly state: {
|
|
5923
|
+
readonly status: "streaming";
|
|
5924
|
+
readonly input: string;
|
|
5925
|
+
} | {
|
|
5926
|
+
readonly status: "running";
|
|
5927
|
+
readonly input: {
|
|
5928
|
+
readonly [x: string]: JsonValue;
|
|
5929
|
+
};
|
|
5930
|
+
readonly metadata: {
|
|
5931
|
+
readonly [x: string]: JsonValue;
|
|
5932
|
+
};
|
|
5933
|
+
} | {
|
|
5934
|
+
readonly status: "completed";
|
|
5935
|
+
readonly input: {
|
|
5936
|
+
readonly [x: string]: JsonValue;
|
|
5937
|
+
};
|
|
5938
|
+
readonly content: readonly [
|
|
5939
|
+
({
|
|
5940
|
+
readonly type: "text";
|
|
5941
|
+
readonly text: string;
|
|
5942
|
+
} | {
|
|
5943
|
+
readonly type: "file";
|
|
5944
|
+
readonly uri: string;
|
|
5945
|
+
readonly mime: string;
|
|
5946
|
+
readonly name?: string | null;
|
|
5947
|
+
}),
|
|
5948
|
+
...Array<{
|
|
5949
|
+
readonly type: "text";
|
|
5950
|
+
readonly text: string;
|
|
5951
|
+
} | {
|
|
5952
|
+
readonly type: "file";
|
|
5953
|
+
readonly uri: string;
|
|
5954
|
+
readonly mime: string;
|
|
5955
|
+
readonly name?: string | null;
|
|
5956
|
+
}>
|
|
5957
|
+
];
|
|
5958
|
+
readonly metadata?: {
|
|
5959
|
+
readonly [x: string]: JsonValue;
|
|
5960
|
+
};
|
|
5961
|
+
} | {
|
|
5962
|
+
readonly status: "error";
|
|
5963
|
+
readonly input: {
|
|
5964
|
+
readonly [x: string]: JsonValue;
|
|
5965
|
+
};
|
|
5966
|
+
readonly error: {
|
|
5967
|
+
readonly type: string;
|
|
5968
|
+
readonly message: string;
|
|
5969
|
+
readonly status?: number;
|
|
5970
|
+
};
|
|
5971
|
+
readonly content?: readonly [
|
|
5972
|
+
({
|
|
5973
|
+
readonly type: "text";
|
|
5974
|
+
readonly text: string;
|
|
5975
|
+
} | {
|
|
5976
|
+
readonly type: "file";
|
|
5977
|
+
readonly uri: string;
|
|
5978
|
+
readonly mime: string;
|
|
5979
|
+
readonly name?: string | null;
|
|
5980
|
+
}),
|
|
5981
|
+
...Array<{
|
|
5982
|
+
readonly type: "text";
|
|
5983
|
+
readonly text: string;
|
|
5984
|
+
} | {
|
|
5985
|
+
readonly type: "file";
|
|
5986
|
+
readonly uri: string;
|
|
5987
|
+
readonly mime: string;
|
|
5988
|
+
readonly name?: string | null;
|
|
5989
|
+
}>
|
|
5990
|
+
];
|
|
5991
|
+
readonly metadata?: {
|
|
5992
|
+
readonly [x: string]: JsonValue;
|
|
5993
|
+
};
|
|
5994
|
+
};
|
|
5995
|
+
readonly time: {
|
|
5996
|
+
readonly created: number;
|
|
5997
|
+
readonly ran?: number;
|
|
5998
|
+
readonly completed?: number;
|
|
5999
|
+
};
|
|
6000
|
+
}>;
|
|
6001
|
+
}["content"];
|
|
6002
|
+
};
|
|
6003
|
+
export type SessionMessageUpdateOutput = {
|
|
6004
|
+
data: SessionMessageAssistant;
|
|
6005
|
+
}["data"];
|
|
6044
6006
|
export type SessionEnvironmentInput = {
|
|
6045
6007
|
readonly sessionID: {
|
|
6046
6008
|
readonly sessionID: string;
|
|
@@ -6069,26 +6031,17 @@ export type MessageListInput = {
|
|
|
6069
6031
|
readonly limit?: number | undefined;
|
|
6070
6032
|
readonly order?: "asc" | "desc" | undefined;
|
|
6071
6033
|
readonly cursor?: string | undefined;
|
|
6072
|
-
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
|
|
6073
6034
|
}["limit"];
|
|
6074
6035
|
readonly order?: {
|
|
6075
6036
|
readonly limit?: number | undefined;
|
|
6076
6037
|
readonly order?: "asc" | "desc" | undefined;
|
|
6077
6038
|
readonly cursor?: string | undefined;
|
|
6078
|
-
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
|
|
6079
6039
|
}["order"];
|
|
6080
6040
|
readonly cursor?: {
|
|
6081
6041
|
readonly limit?: number | undefined;
|
|
6082
6042
|
readonly order?: "asc" | "desc" | undefined;
|
|
6083
6043
|
readonly cursor?: string | undefined;
|
|
6084
|
-
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
|
|
6085
6044
|
}["cursor"];
|
|
6086
|
-
readonly type?: {
|
|
6087
|
-
readonly limit?: number | undefined;
|
|
6088
|
-
readonly order?: "asc" | "desc" | undefined;
|
|
6089
|
-
readonly cursor?: string | undefined;
|
|
6090
|
-
readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
|
|
6091
|
-
}["type"];
|
|
6092
6045
|
};
|
|
6093
6046
|
export type MessageListOutput = SessionMessagesResponse;
|
|
6094
6047
|
export type ModelListInput = {
|
|
@@ -7738,19 +7691,6 @@ export type PermissionReplyInput = {
|
|
|
7738
7691
|
}["message"];
|
|
7739
7692
|
};
|
|
7740
7693
|
export type PermissionReplyOutput = void;
|
|
7741
|
-
export type PermissionRulesInput = {
|
|
7742
|
-
readonly sessionID: {
|
|
7743
|
-
readonly sessionID: string;
|
|
7744
|
-
}["sessionID"];
|
|
7745
|
-
readonly permissions: {
|
|
7746
|
-
readonly permissions: ReadonlyArray<{
|
|
7747
|
-
readonly action: string;
|
|
7748
|
-
readonly resource: string;
|
|
7749
|
-
readonly effect: "allow" | "deny" | "ask";
|
|
7750
|
-
}>;
|
|
7751
|
-
}["permissions"];
|
|
7752
|
-
};
|
|
7753
|
-
export type PermissionRulesOutput = void;
|
|
7754
7694
|
export type FileReadInput = {
|
|
7755
7695
|
readonly location?: {
|
|
7756
7696
|
readonly location?: {
|
package/dist/solid/data.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ type OpenCodeEventMap = {
|
|
|
9
9
|
export type CreateDataInput = {
|
|
10
10
|
readonly api: () => OpenCodeClient;
|
|
11
11
|
readonly directory: string;
|
|
12
|
-
/** Raw-message window used for an initial transcript read. Older pages retain their normal size. */
|
|
13
|
-
readonly initialMessageLimit?: () => number;
|
|
14
12
|
readonly event: {
|
|
15
13
|
readonly on: <Type extends OpenCodeEvent["type"]>(type: Type, handler: (event: OpenCodeEventMap[Type]) => void) => () => void;
|
|
16
14
|
readonly listen: (handler: (event: {
|