@opencode-ai/sdk 0.1.0-alpha.2 → 0.1.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +200 -0
- package/README.md +27 -9
- package/client.d.mts +25 -50
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -50
- package/client.d.ts.map +1 -1
- package/client.js +28 -55
- package/client.js.map +1 -1
- package/client.mjs +28 -55
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +263 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +258 -0
- package/core/streaming.mjs.map +1 -0
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +44 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +44 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +6 -6
- package/internal/types.d.mts +8 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +8 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.js +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +26 -5
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +26 -5
- package/internal/utils/path.mjs.map +1 -1
- package/package.json +12 -2
- package/resources/app.d.mts +127 -0
- package/resources/app.d.mts.map +1 -0
- package/resources/app.d.ts +127 -0
- package/resources/app.d.ts.map +1 -0
- package/resources/app.js +39 -0
- package/resources/app.js.map +1 -0
- package/resources/app.mjs +35 -0
- package/resources/app.mjs.map +1 -0
- package/resources/config.d.mts +391 -0
- package/resources/config.d.mts.map +1 -0
- package/resources/config.d.ts +391 -0
- package/resources/config.d.ts.map +1 -0
- package/resources/{config-get.js → config.js} +6 -6
- package/resources/config.js.map +1 -0
- package/resources/{config-get.mjs → config.mjs} +4 -4
- package/resources/config.mjs.map +1 -0
- package/resources/event.d.mts +104 -32
- package/resources/event.d.mts.map +1 -1
- package/resources/event.d.ts +104 -32
- package/resources/event.d.ts.map +1 -1
- package/resources/event.js +1 -1
- package/resources/event.js.map +1 -1
- package/resources/event.mjs +1 -1
- package/resources/event.mjs.map +1 -1
- package/resources/file.d.mts +31 -0
- package/resources/file.d.mts.map +1 -0
- package/resources/file.d.ts +31 -0
- package/resources/file.d.ts.map +1 -0
- package/resources/file.js +21 -0
- package/resources/file.js.map +1 -0
- package/resources/file.mjs +17 -0
- package/resources/file.mjs.map +1 -0
- package/resources/find.d.mts +87 -0
- package/resources/find.d.mts.map +1 -0
- package/resources/find.d.ts +87 -0
- package/resources/find.d.ts.map +1 -0
- package/resources/find.js +27 -0
- package/resources/find.js.map +1 -0
- package/resources/find.mjs +23 -0
- package/resources/find.mjs.map +1 -0
- package/resources/index.d.mts +7 -16
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -16
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -33
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -16
- package/resources/index.mjs.map +1 -1
- package/resources/session.d.mts +357 -0
- package/resources/session.d.mts.map +1 -0
- package/resources/session.d.ts +357 -0
- package/resources/session.d.ts.map +1 -0
- package/resources/session.js +82 -0
- package/resources/session.js.map +1 -0
- package/resources/session.mjs +78 -0
- package/resources/session.mjs.map +1 -0
- package/resources/shared.d.mts +24 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +24 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/tui.d.mts +22 -0
- package/resources/tui.d.mts.map +1 -0
- package/resources/tui.d.ts +22 -0
- package/resources/tui.d.ts.map +1 -0
- package/resources/tui.js +21 -0
- package/resources/tui.js.map +1 -0
- package/resources/tui.mjs +17 -0
- package/resources/tui.mjs.map +1 -0
- package/src/client.ts +157 -122
- package/src/core/streaming.ts +315 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +55 -0
- package/src/internal/types.ts +9 -6
- package/src/internal/uploads.ts +1 -1
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +32 -7
- package/src/resources/app.ts +192 -0
- package/src/resources/config.ts +492 -0
- package/src/resources/event.ts +147 -39
- package/src/resources/file.ts +52 -0
- package/src/resources/find.ts +134 -0
- package/src/resources/index.ts +74 -31
- package/src/resources/session.ts +605 -0
- package/src/resources/shared.ts +33 -0
- package/src/resources/tui.ts +37 -0
- package/src/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +2 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +2 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +2 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/app-info.d.mts +0 -31
- package/resources/app-info.d.mts.map +0 -1
- package/resources/app-info.d.ts +0 -31
- package/resources/app-info.d.ts.map +0 -1
- package/resources/app-info.js +0 -15
- package/resources/app-info.js.map +0 -1
- package/resources/app-info.mjs +0 -11
- package/resources/app-info.mjs.map +0 -1
- package/resources/app-initialize.d.mts +0 -14
- package/resources/app-initialize.d.mts.map +0 -1
- package/resources/app-initialize.d.ts +0 -14
- package/resources/app-initialize.d.ts.map +0 -1
- package/resources/app-initialize.js +0 -15
- package/resources/app-initialize.js.map +0 -1
- package/resources/app-initialize.mjs +0 -11
- package/resources/app-initialize.mjs.map +0 -1
- package/resources/config-get.d.mts +0 -236
- package/resources/config-get.d.mts.map +0 -1
- package/resources/config-get.d.ts +0 -236
- package/resources/config-get.d.ts.map +0 -1
- package/resources/config-get.js.map +0 -1
- package/resources/config-get.mjs.map +0 -1
- package/resources/file-search.d.mts +0 -17
- package/resources/file-search.d.mts.map +0 -1
- package/resources/file-search.d.ts +0 -17
- package/resources/file-search.d.ts.map +0 -1
- package/resources/file-search.js +0 -15
- package/resources/file-search.js.map +0 -1
- package/resources/file-search.mjs +0 -11
- package/resources/file-search.mjs.map +0 -1
- package/resources/installation-info.d.mts +0 -17
- package/resources/installation-info.d.mts.map +0 -1
- package/resources/installation-info.d.ts +0 -17
- package/resources/installation-info.d.ts.map +0 -1
- package/resources/installation-info.js +0 -15
- package/resources/installation-info.js.map +0 -1
- package/resources/installation-info.mjs +0 -11
- package/resources/installation-info.mjs.map +0 -1
- package/resources/path-get.d.mts +0 -19
- package/resources/path-get.d.mts.map +0 -1
- package/resources/path-get.d.ts +0 -19
- package/resources/path-get.d.ts.map +0 -1
- package/resources/path-get.js +0 -15
- package/resources/path-get.js.map +0 -1
- package/resources/path-get.mjs +0 -11
- package/resources/path-get.mjs.map +0 -1
- package/resources/provider-list.d.mts +0 -58
- package/resources/provider-list.d.mts.map +0 -1
- package/resources/provider-list.d.ts +0 -58
- package/resources/provider-list.d.ts.map +0 -1
- package/resources/provider-list.js +0 -15
- package/resources/provider-list.js.map +0 -1
- package/resources/provider-list.mjs +0 -11
- package/resources/provider-list.mjs.map +0 -1
- package/resources/session-abort.d.mts +0 -17
- package/resources/session-abort.d.mts.map +0 -1
- package/resources/session-abort.d.ts +0 -17
- package/resources/session-abort.d.ts.map +0 -1
- package/resources/session-abort.js +0 -15
- package/resources/session-abort.js.map +0 -1
- package/resources/session-abort.mjs +0 -11
- package/resources/session-abort.mjs.map +0 -1
- package/resources/session-chat.d.mts +0 -160
- package/resources/session-chat.d.mts.map +0 -1
- package/resources/session-chat.d.ts +0 -160
- package/resources/session-chat.d.ts.map +0 -1
- package/resources/session-chat.js +0 -15
- package/resources/session-chat.js.map +0 -1
- package/resources/session-chat.mjs +0 -11
- package/resources/session-chat.mjs.map +0 -1
- package/resources/session-create.d.mts +0 -30
- package/resources/session-create.d.mts.map +0 -1
- package/resources/session-create.d.ts +0 -30
- package/resources/session-create.d.ts.map +0 -1
- package/resources/session-create.js +0 -15
- package/resources/session-create.js.map +0 -1
- package/resources/session-create.mjs +0 -11
- package/resources/session-create.mjs.map +0 -1
- package/resources/session-initialize.d.mts +0 -19
- package/resources/session-initialize.d.mts.map +0 -1
- package/resources/session-initialize.d.ts +0 -19
- package/resources/session-initialize.d.ts.map +0 -1
- package/resources/session-initialize.js +0 -15
- package/resources/session-initialize.js.map +0 -1
- package/resources/session-initialize.mjs +0 -11
- package/resources/session-initialize.mjs.map +0 -1
- package/resources/session-list.d.mts +0 -15
- package/resources/session-list.d.mts.map +0 -1
- package/resources/session-list.d.ts +0 -15
- package/resources/session-list.d.ts.map +0 -1
- package/resources/session-list.js +0 -15
- package/resources/session-list.js.map +0 -1
- package/resources/session-list.mjs +0 -11
- package/resources/session-list.mjs.map +0 -1
- package/resources/session-messages.d.mts +0 -18
- package/resources/session-messages.d.mts.map +0 -1
- package/resources/session-messages.d.ts +0 -18
- package/resources/session-messages.d.ts.map +0 -1
- package/resources/session-messages.js +0 -15
- package/resources/session-messages.js.map +0 -1
- package/resources/session-messages.mjs +0 -11
- package/resources/session-messages.mjs.map +0 -1
- package/resources/session-share.d.mts +0 -17
- package/resources/session-share.d.mts.map +0 -1
- package/resources/session-share.d.ts +0 -17
- package/resources/session-share.d.ts.map +0 -1
- package/resources/session-share.js +0 -15
- package/resources/session-share.js.map +0 -1
- package/resources/session-share.mjs +0 -11
- package/resources/session-share.mjs.map +0 -1
- package/resources/session-summarize.d.mts +0 -19
- package/resources/session-summarize.d.mts.map +0 -1
- package/resources/session-summarize.d.ts +0 -19
- package/resources/session-summarize.d.ts.map +0 -1
- package/resources/session-summarize.js +0 -15
- package/resources/session-summarize.js.map +0 -1
- package/resources/session-summarize.mjs +0 -11
- package/resources/session-summarize.mjs.map +0 -1
- package/resources/session-unshare.d.mts +0 -17
- package/resources/session-unshare.d.mts.map +0 -1
- package/resources/session-unshare.d.ts +0 -17
- package/resources/session-unshare.d.ts.map +0 -1
- package/resources/session-unshare.js +0 -15
- package/resources/session-unshare.js.map +0 -1
- package/resources/session-unshare.mjs +0 -11
- package/resources/session-unshare.mjs.map +0 -1
- package/src/resources/app-info.ts +0 -46
- package/src/resources/app-initialize.ts +0 -20
- package/src/resources/config-get.ts +0 -294
- package/src/resources/file-search.ts +0 -27
- package/src/resources/installation-info.ts +0 -24
- package/src/resources/path-get.ts +0 -28
- package/src/resources/provider-list.ts +0 -80
- package/src/resources/session-abort.ts +0 -27
- package/src/resources/session-chat.ts +0 -250
- package/src/resources/session-create.ts +0 -44
- package/src/resources/session-initialize.ts +0 -34
- package/src/resources/session-list.ts +0 -21
- package/src/resources/session-messages.ts +0 -31
- package/src/resources/session-share.ts +0 -23
- package/src/resources/session-summarize.ts +0 -34
- package/src/resources/session-unshare.ts +0 -26
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as ConfigAPI from "./config.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class ConfigResource extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get config info
|
|
8
|
+
*/
|
|
9
|
+
get(options?: RequestOptions): APIPromise<Config>;
|
|
10
|
+
}
|
|
11
|
+
export interface Config {
|
|
12
|
+
/**
|
|
13
|
+
* JSON schema reference for configuration validation
|
|
14
|
+
*/
|
|
15
|
+
$schema?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Modes configuration, see https://opencode.ai/docs/modes
|
|
18
|
+
*/
|
|
19
|
+
agent?: Config.Agent;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use 'share' field instead. Share newly created sessions
|
|
22
|
+
* automatically
|
|
23
|
+
*/
|
|
24
|
+
autoshare?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Automatically update to the latest version
|
|
27
|
+
*/
|
|
28
|
+
autoupdate?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Disable providers that are loaded automatically
|
|
31
|
+
*/
|
|
32
|
+
disabled_providers?: Array<string>;
|
|
33
|
+
experimental?: Config.Experimental;
|
|
34
|
+
/**
|
|
35
|
+
* Additional instruction files or patterns to include
|
|
36
|
+
*/
|
|
37
|
+
instructions?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Custom keybind configurations
|
|
40
|
+
*/
|
|
41
|
+
keybinds?: KeybindsConfig;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Always uses stretch layout.
|
|
44
|
+
*/
|
|
45
|
+
layout?: 'auto' | 'stretch';
|
|
46
|
+
/**
|
|
47
|
+
* MCP (Model Context Protocol) server configurations
|
|
48
|
+
*/
|
|
49
|
+
mcp?: {
|
|
50
|
+
[key: string]: McpLocalConfig | McpRemoteConfig;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Modes configuration, see https://opencode.ai/docs/modes
|
|
54
|
+
*/
|
|
55
|
+
mode?: Config.Mode;
|
|
56
|
+
/**
|
|
57
|
+
* Model to use in the format of provider/model, eg anthropic/claude-2
|
|
58
|
+
*/
|
|
59
|
+
model?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Custom provider configurations and model overrides
|
|
62
|
+
*/
|
|
63
|
+
provider?: {
|
|
64
|
+
[key: string]: Config.Provider;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Control sharing behavior:'manual' allows manual sharing via commands, 'auto'
|
|
68
|
+
* enables automatic sharing, 'disabled' disables all sharing
|
|
69
|
+
*/
|
|
70
|
+
share?: 'manual' | 'auto' | 'disabled';
|
|
71
|
+
/**
|
|
72
|
+
* Small model to use for tasks like summarization and title generation in the
|
|
73
|
+
* format of provider/model
|
|
74
|
+
*/
|
|
75
|
+
small_model?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Theme name to use for the interface
|
|
78
|
+
*/
|
|
79
|
+
theme?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Custom username to display in conversations instead of system username
|
|
82
|
+
*/
|
|
83
|
+
username?: string;
|
|
84
|
+
}
|
|
85
|
+
export declare namespace Config {
|
|
86
|
+
/**
|
|
87
|
+
* Modes configuration, see https://opencode.ai/docs/modes
|
|
88
|
+
*/
|
|
89
|
+
interface Agent {
|
|
90
|
+
general?: Agent.General;
|
|
91
|
+
[k: string]: Agent.AgentConfig | undefined;
|
|
92
|
+
}
|
|
93
|
+
namespace Agent {
|
|
94
|
+
interface General extends ConfigAPI.ModeConfig {
|
|
95
|
+
description: string;
|
|
96
|
+
}
|
|
97
|
+
interface AgentConfig extends ConfigAPI.ModeConfig {
|
|
98
|
+
description: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
interface AgentConfig extends ConfigAPI.ModeConfig {
|
|
102
|
+
description: string;
|
|
103
|
+
}
|
|
104
|
+
interface AgentConfig extends ConfigAPI.ModeConfig {
|
|
105
|
+
description: string;
|
|
106
|
+
}
|
|
107
|
+
interface Experimental {
|
|
108
|
+
hook?: Experimental.Hook;
|
|
109
|
+
}
|
|
110
|
+
namespace Experimental {
|
|
111
|
+
interface Hook {
|
|
112
|
+
file_edited?: {
|
|
113
|
+
[key: string]: Array<Hook.FileEdited>;
|
|
114
|
+
};
|
|
115
|
+
session_completed?: Array<Hook.SessionCompleted>;
|
|
116
|
+
}
|
|
117
|
+
namespace Hook {
|
|
118
|
+
interface FileEdited {
|
|
119
|
+
command: Array<string>;
|
|
120
|
+
environment?: {
|
|
121
|
+
[key: string]: string;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
interface SessionCompleted {
|
|
125
|
+
command: Array<string>;
|
|
126
|
+
environment?: {
|
|
127
|
+
[key: string]: string;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Modes configuration, see https://opencode.ai/docs/modes
|
|
134
|
+
*/
|
|
135
|
+
interface Mode {
|
|
136
|
+
build?: ConfigAPI.ModeConfig;
|
|
137
|
+
plan?: ConfigAPI.ModeConfig;
|
|
138
|
+
[k: string]: ConfigAPI.ModeConfig | undefined;
|
|
139
|
+
}
|
|
140
|
+
interface Provider {
|
|
141
|
+
models: {
|
|
142
|
+
[key: string]: Provider.Models;
|
|
143
|
+
};
|
|
144
|
+
id?: string;
|
|
145
|
+
api?: string;
|
|
146
|
+
env?: Array<string>;
|
|
147
|
+
name?: string;
|
|
148
|
+
npm?: string;
|
|
149
|
+
options?: Provider.Options;
|
|
150
|
+
}
|
|
151
|
+
namespace Provider {
|
|
152
|
+
interface Models {
|
|
153
|
+
id?: string;
|
|
154
|
+
attachment?: boolean;
|
|
155
|
+
cost?: Models.Cost;
|
|
156
|
+
limit?: Models.Limit;
|
|
157
|
+
name?: string;
|
|
158
|
+
options?: {
|
|
159
|
+
[key: string]: unknown;
|
|
160
|
+
};
|
|
161
|
+
reasoning?: boolean;
|
|
162
|
+
release_date?: string;
|
|
163
|
+
temperature?: boolean;
|
|
164
|
+
tool_call?: boolean;
|
|
165
|
+
}
|
|
166
|
+
namespace Models {
|
|
167
|
+
interface Cost {
|
|
168
|
+
input: number;
|
|
169
|
+
output: number;
|
|
170
|
+
cache_read?: number;
|
|
171
|
+
cache_write?: number;
|
|
172
|
+
}
|
|
173
|
+
interface Limit {
|
|
174
|
+
context: number;
|
|
175
|
+
output: number;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
interface Options {
|
|
179
|
+
apiKey?: string;
|
|
180
|
+
baseURL?: string;
|
|
181
|
+
[k: string]: unknown;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
export interface KeybindsConfig {
|
|
186
|
+
/**
|
|
187
|
+
* Exit the application
|
|
188
|
+
*/
|
|
189
|
+
app_exit: string;
|
|
190
|
+
/**
|
|
191
|
+
* Show help dialog
|
|
192
|
+
*/
|
|
193
|
+
app_help: string;
|
|
194
|
+
/**
|
|
195
|
+
* Open external editor
|
|
196
|
+
*/
|
|
197
|
+
editor_open: string;
|
|
198
|
+
/**
|
|
199
|
+
* Close file
|
|
200
|
+
*/
|
|
201
|
+
file_close: string;
|
|
202
|
+
/**
|
|
203
|
+
* Split/unified diff
|
|
204
|
+
*/
|
|
205
|
+
file_diff_toggle: string;
|
|
206
|
+
/**
|
|
207
|
+
* List files
|
|
208
|
+
*/
|
|
209
|
+
file_list: string;
|
|
210
|
+
/**
|
|
211
|
+
* Search file
|
|
212
|
+
*/
|
|
213
|
+
file_search: string;
|
|
214
|
+
/**
|
|
215
|
+
* Clear input field
|
|
216
|
+
*/
|
|
217
|
+
input_clear: string;
|
|
218
|
+
/**
|
|
219
|
+
* Insert newline in input
|
|
220
|
+
*/
|
|
221
|
+
input_newline: string;
|
|
222
|
+
/**
|
|
223
|
+
* Paste from clipboard
|
|
224
|
+
*/
|
|
225
|
+
input_paste: string;
|
|
226
|
+
/**
|
|
227
|
+
* Submit input
|
|
228
|
+
*/
|
|
229
|
+
input_submit: string;
|
|
230
|
+
/**
|
|
231
|
+
* Leader key for keybind combinations
|
|
232
|
+
*/
|
|
233
|
+
leader: string;
|
|
234
|
+
/**
|
|
235
|
+
* Copy message
|
|
236
|
+
*/
|
|
237
|
+
messages_copy: string;
|
|
238
|
+
/**
|
|
239
|
+
* Navigate to first message
|
|
240
|
+
*/
|
|
241
|
+
messages_first: string;
|
|
242
|
+
/**
|
|
243
|
+
* Scroll messages down by half page
|
|
244
|
+
*/
|
|
245
|
+
messages_half_page_down: string;
|
|
246
|
+
/**
|
|
247
|
+
* Scroll messages up by half page
|
|
248
|
+
*/
|
|
249
|
+
messages_half_page_up: string;
|
|
250
|
+
/**
|
|
251
|
+
* Navigate to last message
|
|
252
|
+
*/
|
|
253
|
+
messages_last: string;
|
|
254
|
+
/**
|
|
255
|
+
* Toggle layout
|
|
256
|
+
*/
|
|
257
|
+
messages_layout_toggle: string;
|
|
258
|
+
/**
|
|
259
|
+
* Navigate to next message
|
|
260
|
+
*/
|
|
261
|
+
messages_next: string;
|
|
262
|
+
/**
|
|
263
|
+
* Scroll messages down by one page
|
|
264
|
+
*/
|
|
265
|
+
messages_page_down: string;
|
|
266
|
+
/**
|
|
267
|
+
* Scroll messages up by one page
|
|
268
|
+
*/
|
|
269
|
+
messages_page_up: string;
|
|
270
|
+
/**
|
|
271
|
+
* Navigate to previous message
|
|
272
|
+
*/
|
|
273
|
+
messages_previous: string;
|
|
274
|
+
/**
|
|
275
|
+
* Redo message
|
|
276
|
+
*/
|
|
277
|
+
messages_redo: string;
|
|
278
|
+
/**
|
|
279
|
+
* @deprecated use messages_undo. Revert message
|
|
280
|
+
*/
|
|
281
|
+
messages_revert: string;
|
|
282
|
+
/**
|
|
283
|
+
* Undo message
|
|
284
|
+
*/
|
|
285
|
+
messages_undo: string;
|
|
286
|
+
/**
|
|
287
|
+
* List available models
|
|
288
|
+
*/
|
|
289
|
+
model_list: string;
|
|
290
|
+
/**
|
|
291
|
+
* Create/update AGENTS.md
|
|
292
|
+
*/
|
|
293
|
+
project_init: string;
|
|
294
|
+
/**
|
|
295
|
+
* Compact the session
|
|
296
|
+
*/
|
|
297
|
+
session_compact: string;
|
|
298
|
+
/**
|
|
299
|
+
* Export session to editor
|
|
300
|
+
*/
|
|
301
|
+
session_export: string;
|
|
302
|
+
/**
|
|
303
|
+
* Interrupt current session
|
|
304
|
+
*/
|
|
305
|
+
session_interrupt: string;
|
|
306
|
+
/**
|
|
307
|
+
* List all sessions
|
|
308
|
+
*/
|
|
309
|
+
session_list: string;
|
|
310
|
+
/**
|
|
311
|
+
* Create a new session
|
|
312
|
+
*/
|
|
313
|
+
session_new: string;
|
|
314
|
+
/**
|
|
315
|
+
* Share current session
|
|
316
|
+
*/
|
|
317
|
+
session_share: string;
|
|
318
|
+
/**
|
|
319
|
+
* Unshare current session
|
|
320
|
+
*/
|
|
321
|
+
session_unshare: string;
|
|
322
|
+
/**
|
|
323
|
+
* Next mode
|
|
324
|
+
*/
|
|
325
|
+
switch_mode: string;
|
|
326
|
+
/**
|
|
327
|
+
* Previous Mode
|
|
328
|
+
*/
|
|
329
|
+
switch_mode_reverse: string;
|
|
330
|
+
/**
|
|
331
|
+
* List available themes
|
|
332
|
+
*/
|
|
333
|
+
theme_list: string;
|
|
334
|
+
/**
|
|
335
|
+
* Toggle tool details
|
|
336
|
+
*/
|
|
337
|
+
tool_details: string;
|
|
338
|
+
}
|
|
339
|
+
export interface McpLocalConfig {
|
|
340
|
+
/**
|
|
341
|
+
* Command and arguments to run the MCP server
|
|
342
|
+
*/
|
|
343
|
+
command: Array<string>;
|
|
344
|
+
/**
|
|
345
|
+
* Type of MCP server connection
|
|
346
|
+
*/
|
|
347
|
+
type: 'local';
|
|
348
|
+
/**
|
|
349
|
+
* Enable or disable the MCP server on startup
|
|
350
|
+
*/
|
|
351
|
+
enabled?: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* Environment variables to set when running the MCP server
|
|
354
|
+
*/
|
|
355
|
+
environment?: {
|
|
356
|
+
[key: string]: string;
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
export interface McpRemoteConfig {
|
|
360
|
+
/**
|
|
361
|
+
* Type of MCP server connection
|
|
362
|
+
*/
|
|
363
|
+
type: 'remote';
|
|
364
|
+
/**
|
|
365
|
+
* URL of the remote MCP server
|
|
366
|
+
*/
|
|
367
|
+
url: string;
|
|
368
|
+
/**
|
|
369
|
+
* Enable or disable the MCP server on startup
|
|
370
|
+
*/
|
|
371
|
+
enabled?: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* Headers to send with the request
|
|
374
|
+
*/
|
|
375
|
+
headers?: {
|
|
376
|
+
[key: string]: string;
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
export interface ModeConfig {
|
|
380
|
+
disable?: boolean;
|
|
381
|
+
model?: string;
|
|
382
|
+
prompt?: string;
|
|
383
|
+
temperature?: number;
|
|
384
|
+
tools?: {
|
|
385
|
+
[key: string]: boolean;
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
export declare namespace ConfigResource {
|
|
389
|
+
export { type Config as Config, type KeybindsConfig as KeybindsConfig, type McpLocalConfig as McpLocalConfig, type McpRemoteConfig as McpRemoteConfig, type ModeConfig as ModeConfig, };
|
|
390
|
+
}
|
|
391
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/resources/config.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAGlD;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,OAA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KAAK,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACpC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,UAAU,IAAI,UAAU,GAC9B,CAAC;CACH"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.ConfigResource = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class
|
|
6
|
+
class ConfigResource extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Get config info
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
return this._client.
|
|
10
|
+
get(options) {
|
|
11
|
+
return this._client.get('/config', options);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
exports.
|
|
15
|
-
//# sourceMappingURL=config
|
|
14
|
+
exports.ConfigResource = ConfigResource;
|
|
15
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/resources/config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;OAEG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF;AAPD,wCAOC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
export class
|
|
3
|
+
export class ConfigResource extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Get config info
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
return this._client.
|
|
7
|
+
get(options) {
|
|
8
|
+
return this._client.get('/config', options);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=config
|
|
11
|
+
//# sourceMappingURL=config.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.mjs","sourceRoot":"","sources":["../src/resources/config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF"}
|
package/resources/event.d.mts
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as SessionAPI from "./session.mjs";
|
|
3
|
+
import * as Shared from "./shared.mjs";
|
|
4
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
+
import { Stream } from "../core/streaming.mjs";
|
|
5
6
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
7
|
export declare class Event extends APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* Get events
|
|
9
10
|
*/
|
|
10
|
-
list(options?: RequestOptions): APIPromise<EventListResponse
|
|
11
|
+
list(options?: RequestOptions): APIPromise<Stream<EventListResponse>>;
|
|
11
12
|
}
|
|
12
|
-
export type EventListResponse = EventListResponse.
|
|
13
|
+
export type EventListResponse = EventListResponse.EventInstallationUpdated | EventListResponse.EventLspClientDiagnostics | EventListResponse.EventMessageUpdated | EventListResponse.EventMessageRemoved | EventListResponse.EventMessagePartUpdated | EventListResponse.EventMessagePartRemoved | EventListResponse.EventStorageWrite | EventListResponse.EventPermissionUpdated | EventListResponse.EventFileEdited | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionIdle | EventListResponse.EventSessionError | EventListResponse.EventFileWatcherUpdated | EventListResponse.EventIdeInstalled;
|
|
13
14
|
export declare namespace EventListResponse {
|
|
14
|
-
interface EventStorageWrite {
|
|
15
|
-
properties: EventStorageWrite.Properties;
|
|
16
|
-
type: 'storage.write';
|
|
17
|
-
}
|
|
18
|
-
namespace EventStorageWrite {
|
|
19
|
-
interface Properties {
|
|
20
|
-
key: string;
|
|
21
|
-
content?: unknown;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
15
|
interface EventInstallationUpdated {
|
|
25
16
|
properties: EventInstallationUpdated.Properties;
|
|
26
17
|
type: 'installation.updated';
|
|
@@ -40,6 +31,54 @@ export declare namespace EventListResponse {
|
|
|
40
31
|
serverID: string;
|
|
41
32
|
}
|
|
42
33
|
}
|
|
34
|
+
interface EventMessageUpdated {
|
|
35
|
+
properties: EventMessageUpdated.Properties;
|
|
36
|
+
type: 'message.updated';
|
|
37
|
+
}
|
|
38
|
+
namespace EventMessageUpdated {
|
|
39
|
+
interface Properties {
|
|
40
|
+
info: SessionAPI.Message;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
interface EventMessageRemoved {
|
|
44
|
+
properties: EventMessageRemoved.Properties;
|
|
45
|
+
type: 'message.removed';
|
|
46
|
+
}
|
|
47
|
+
namespace EventMessageRemoved {
|
|
48
|
+
interface Properties {
|
|
49
|
+
messageID: string;
|
|
50
|
+
sessionID: string;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
interface EventMessagePartUpdated {
|
|
54
|
+
properties: EventMessagePartUpdated.Properties;
|
|
55
|
+
type: 'message.part.updated';
|
|
56
|
+
}
|
|
57
|
+
namespace EventMessagePartUpdated {
|
|
58
|
+
interface Properties {
|
|
59
|
+
part: SessionAPI.Part;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
interface EventMessagePartRemoved {
|
|
63
|
+
properties: EventMessagePartRemoved.Properties;
|
|
64
|
+
type: 'message.part.removed';
|
|
65
|
+
}
|
|
66
|
+
namespace EventMessagePartRemoved {
|
|
67
|
+
interface Properties {
|
|
68
|
+
messageID: string;
|
|
69
|
+
partID: string;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
interface EventStorageWrite {
|
|
73
|
+
properties: EventStorageWrite.Properties;
|
|
74
|
+
type: 'storage.write';
|
|
75
|
+
}
|
|
76
|
+
namespace EventStorageWrite {
|
|
77
|
+
interface Properties {
|
|
78
|
+
key: string;
|
|
79
|
+
content?: unknown;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
43
82
|
interface EventPermissionUpdated {
|
|
44
83
|
properties: EventPermissionUpdated.Properties;
|
|
45
84
|
type: 'permission.updated';
|
|
@@ -60,24 +99,13 @@ export declare namespace EventListResponse {
|
|
|
60
99
|
}
|
|
61
100
|
}
|
|
62
101
|
}
|
|
63
|
-
interface
|
|
64
|
-
properties:
|
|
65
|
-
type: '
|
|
66
|
-
}
|
|
67
|
-
namespace EventMessageUpdated {
|
|
68
|
-
interface Properties {
|
|
69
|
-
info: SessionChatAPI.MessageInfo;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
interface EventMessagePartUpdated {
|
|
73
|
-
properties: EventMessagePartUpdated.Properties;
|
|
74
|
-
type: 'message.part.updated';
|
|
102
|
+
interface EventFileEdited {
|
|
103
|
+
properties: EventFileEdited.Properties;
|
|
104
|
+
type: 'file.edited';
|
|
75
105
|
}
|
|
76
|
-
namespace
|
|
106
|
+
namespace EventFileEdited {
|
|
77
107
|
interface Properties {
|
|
78
|
-
|
|
79
|
-
part: SessionChatAPI.MessagePart;
|
|
80
|
-
sessionID: string;
|
|
108
|
+
file: string;
|
|
81
109
|
}
|
|
82
110
|
}
|
|
83
111
|
interface EventSessionUpdated {
|
|
@@ -86,7 +114,25 @@ export declare namespace EventListResponse {
|
|
|
86
114
|
}
|
|
87
115
|
namespace EventSessionUpdated {
|
|
88
116
|
interface Properties {
|
|
89
|
-
info:
|
|
117
|
+
info: SessionAPI.Session;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
interface EventSessionDeleted {
|
|
121
|
+
properties: EventSessionDeleted.Properties;
|
|
122
|
+
type: 'session.deleted';
|
|
123
|
+
}
|
|
124
|
+
namespace EventSessionDeleted {
|
|
125
|
+
interface Properties {
|
|
126
|
+
info: SessionAPI.Session;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
interface EventSessionIdle {
|
|
130
|
+
properties: EventSessionIdle.Properties;
|
|
131
|
+
type: 'session.idle';
|
|
132
|
+
}
|
|
133
|
+
namespace EventSessionIdle {
|
|
134
|
+
interface Properties {
|
|
135
|
+
sessionID: string;
|
|
90
136
|
}
|
|
91
137
|
}
|
|
92
138
|
interface EventSessionError {
|
|
@@ -95,7 +141,33 @@ export declare namespace EventListResponse {
|
|
|
95
141
|
}
|
|
96
142
|
namespace EventSessionError {
|
|
97
143
|
interface Properties {
|
|
98
|
-
error?:
|
|
144
|
+
error?: Shared.ProviderAuthError | Shared.UnknownError | Properties.MessageOutputLengthError | Shared.MessageAbortedError;
|
|
145
|
+
sessionID?: string;
|
|
146
|
+
}
|
|
147
|
+
namespace Properties {
|
|
148
|
+
interface MessageOutputLengthError {
|
|
149
|
+
data: unknown;
|
|
150
|
+
name: 'MessageOutputLengthError';
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
interface EventFileWatcherUpdated {
|
|
155
|
+
properties: EventFileWatcherUpdated.Properties;
|
|
156
|
+
type: 'file.watcher.updated';
|
|
157
|
+
}
|
|
158
|
+
namespace EventFileWatcherUpdated {
|
|
159
|
+
interface Properties {
|
|
160
|
+
event: 'rename' | 'change';
|
|
161
|
+
file: string;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
interface EventIdeInstalled {
|
|
165
|
+
properties: EventIdeInstalled.Properties;
|
|
166
|
+
type: 'ide.installed';
|
|
167
|
+
}
|
|
168
|
+
namespace EventIdeInstalled {
|
|
169
|
+
interface Properties {
|
|
170
|
+
ide: string;
|
|
99
171
|
}
|
|
100
172
|
}
|
|
101
173
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.mts","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"event.d.mts","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;CAGtE;AAED,MAAM,MAAM,iBAAiB,GACzB,iBAAiB,CAAC,wBAAwB,GAC1C,iBAAiB,CAAC,yBAAyB,GAC3C,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,uBAAuB,GACzC,iBAAiB,CAAC,uBAAuB,GACzC,iBAAiB,CAAC,iBAAiB,GACnC,iBAAiB,CAAC,sBAAsB,GACxC,iBAAiB,CAAC,eAAe,GACjC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,gBAAgB,GAClC,iBAAiB,CAAC,iBAAiB,GACnC,iBAAiB,CAAC,uBAAuB,GACzC,iBAAiB,CAAC,iBAAiB,CAAC;AAExC,yBAAiB,iBAAiB,CAAC;IACjC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