@codeworksh/plugin 0.0.1-dev.20260925150557 → 0.1.0-canary.1.1.gc0ff5572
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 +13 -5
- package/{event-BnLveFBB.d.mts → event-6sTQ_4bq.d.mts} +53 -49
- package/event.d.mts +1 -1
- package/filesystem-CuGE9poU.d.mts +268 -0
- package/filesystem-omtKo08x.mjs +381 -0
- package/filesystem-omtKo08x.mjs.map +1 -0
- package/ids.mjs +1 -1
- package/ids.mjs.map +1 -1
- package/index.d.mts +4 -3
- package/index.mjs +3 -2
- package/io-Dgh8U41k.mjs +188 -0
- package/io-Dgh8U41k.mjs.map +1 -0
- package/{io-BYs7hbiY.d.mts → io-nhvNKC33.d.mts} +51 -8
- package/{location-D4hAfuXF.d.mts → location-Q39els63.d.mts} +9 -14
- package/location.d.mts +2 -2
- package/location.mjs +2 -5
- package/location.mjs.map +1 -1
- package/package.json +8 -3
- package/plugin/prompt.d.mts +1 -1
- package/plugin/prompt.mjs.map +1 -1
- package/plugin/section.d.mts +27 -0
- package/plugin/section.mjs +65 -0
- package/plugin/section.mjs.map +1 -0
- package/plugin/tool.d.mts +1 -1
- package/{plugin-B1M3SjEb.d.mts → plugin-Deb2QWIP.d.mts} +27 -9
- package/{plugin-lorpq7Oi.mjs → plugin-XaYYRsX-.mjs} +3 -1
- package/{plugin-lorpq7Oi.mjs.map → plugin-XaYYRsX-.mjs.map} +1 -1
- package/plugin.d.mts +5 -4
- package/plugin.mjs +3 -2
- package/prompt-DWaA5ZXj.d.mts +21 -0
- package/sandbox/driver.d.mts +1 -1
- package/sandbox/driver.mjs +7 -3
- package/sandbox/driver.mjs.map +1 -1
- package/sandbox/errors.d.mts +1 -1
- package/sandbox/filesystem.d.mts +2 -2
- package/sandbox/filesystem.mjs +2 -142
- package/sandbox/instance.d.mts +1 -1
- package/sandbox/io.d.mts +2 -2
- package/sandbox/io.mjs +3 -127
- package/sandbox.d.mts +3 -3
- package/sandbox.mjs +8 -5
- package/sandbox.mjs.map +1 -1
- package/schema.d.mts +3 -1
- package/schema.mjs +4 -2
- package/schema.mjs.map +1 -1
- package/settings-47Mzxhl0.d.mts +587 -0
- package/settings.d.mts +2 -2
- package/settings.mjs +56 -5
- package/settings.mjs.map +1 -1
- package/tool/progress.d.mts +1 -1
- package/{tool-BoVqkYvL.d.mts → tool-D4_I_rzy.d.mts} +2 -2
- package/{tool-DuYBgiJf.d.mts → tool-_ajVYIY5.d.mts} +20 -1
- package/tool.d.mts +1 -1
- package/tool.mjs +2 -1
- package/tool.mjs.map +1 -1
- package/filesystem-Cp-KapCE.d.mts +0 -142
- package/prompt-BcpagjGh.d.mts +0 -10
- package/sandbox/filesystem.mjs.map +0 -1
- package/sandbox/io.mjs.map +0 -1
- package/settings-bbJi7FiQ.d.mts +0 -207
package/settings-bbJi7FiQ.d.mts
DELETED
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { Model } from "@codeworksh/aikit";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
//#region src/settings.d.ts
|
|
4
|
-
declare const ThinkingLevel: Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>;
|
|
5
|
-
declare const ToolExecution: Schema.Literals<readonly ["sequential", "parallel"]>;
|
|
6
|
-
type ToolExecution = typeof ToolExecution.Type;
|
|
7
|
-
/** Aikit does not export its request schema; keep this routing surface checked against its public types. */
|
|
8
|
-
declare const requestFields: {
|
|
9
|
-
temperature: Schema.optional<Schema.Finite>;
|
|
10
|
-
maxTokens: Schema.optional<Schema.Finite>;
|
|
11
|
-
cacheRetention: Schema.optional<Schema.Literals<readonly ["none", "short", "long"]>>;
|
|
12
|
-
headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
13
|
-
timeoutMs: Schema.optional<Schema.Finite>;
|
|
14
|
-
maxRetries: Schema.optional<Schema.Finite>;
|
|
15
|
-
metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
16
|
-
thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
17
|
-
baseURL: Schema.optional<Schema.String>;
|
|
18
|
-
method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
19
|
-
};
|
|
20
|
-
/** The wire protocol a model speaks, which a catalog entry may have wrong for a local endpoint. */
|
|
21
|
-
declare const ModelProtocol: Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>;
|
|
22
|
-
declare const Block: Schema.StructWithRest<Schema.Struct<{
|
|
23
|
-
readonly temperature: Schema.optional<Schema.Finite>;
|
|
24
|
-
readonly maxTokens: Schema.optional<Schema.Finite>;
|
|
25
|
-
readonly cacheRetention: Schema.optional<Schema.Literals<readonly ["none", "short", "long"]>>;
|
|
26
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
27
|
-
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
28
|
-
readonly maxRetries: Schema.optional<Schema.Finite>;
|
|
29
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
30
|
-
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
31
|
-
readonly baseURL: Schema.optional<Schema.String>;
|
|
32
|
-
readonly method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
33
|
-
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
34
|
-
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
35
|
-
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
36
|
-
readonly contextWindow: Schema.optional<Schema.Finite>;
|
|
37
|
-
readonly extras: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
38
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
|
|
39
|
-
type Block = typeof Block.Type;
|
|
40
|
-
declare const Model$1: Schema.Struct<{
|
|
41
|
-
readonly provider: Schema.optional<Schema.String>;
|
|
42
|
-
readonly id: Schema.optional<Schema.String>;
|
|
43
|
-
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
44
|
-
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
45
|
-
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
46
|
-
readonly options: Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
47
|
-
readonly temperature: Schema.optional<Schema.Finite>;
|
|
48
|
-
readonly maxTokens: Schema.optional<Schema.Finite>;
|
|
49
|
-
readonly cacheRetention: Schema.optional<Schema.Literals<readonly ["none", "short", "long"]>>;
|
|
50
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
51
|
-
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
52
|
-
readonly maxRetries: Schema.optional<Schema.Finite>;
|
|
53
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
54
|
-
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
55
|
-
readonly baseURL: Schema.optional<Schema.String>;
|
|
56
|
-
readonly method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
57
|
-
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
58
|
-
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
59
|
-
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
60
|
-
readonly contextWindow: Schema.optional<Schema.Finite>;
|
|
61
|
-
readonly extras: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
62
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>>;
|
|
63
|
-
readonly providerOptions: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.StructWithRest<Schema.Struct<{
|
|
64
|
-
readonly temperature: Schema.optional<Schema.Finite>;
|
|
65
|
-
readonly maxTokens: Schema.optional<Schema.Finite>;
|
|
66
|
-
readonly cacheRetention: Schema.optional<Schema.Literals<readonly ["none", "short", "long"]>>;
|
|
67
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
68
|
-
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
69
|
-
readonly maxRetries: Schema.optional<Schema.Finite>;
|
|
70
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
71
|
-
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
72
|
-
readonly baseURL: Schema.optional<Schema.String>;
|
|
73
|
-
readonly method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
74
|
-
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
75
|
-
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
76
|
-
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
77
|
-
readonly contextWindow: Schema.optional<Schema.Finite>;
|
|
78
|
-
readonly extras: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
79
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>>>>;
|
|
80
|
-
}>;
|
|
81
|
-
declare const PluginPatch: Schema.Union<readonly [Schema.Struct<{
|
|
82
|
-
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
83
|
-
readonly options: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
84
|
-
readonly plugin: Schema.String;
|
|
85
|
-
}>, Schema.Struct<{
|
|
86
|
-
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
87
|
-
readonly options: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
88
|
-
readonly package: Schema.String;
|
|
89
|
-
}>]>;
|
|
90
|
-
declare const PluginEntry: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
91
|
-
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
92
|
-
readonly options: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
93
|
-
readonly plugin: Schema.String;
|
|
94
|
-
}>, Schema.Struct<{
|
|
95
|
-
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
96
|
-
readonly options: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
97
|
-
readonly package: Schema.String;
|
|
98
|
-
}>]>]>;
|
|
99
|
-
type PluginEntry = typeof PluginEntry.Type;
|
|
100
|
-
declare const Patch: Schema.Struct<{
|
|
101
|
-
readonly $schema: Schema.optional<Schema.String>;
|
|
102
|
-
readonly plugins: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
103
|
-
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
104
|
-
readonly options: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
105
|
-
readonly plugin: Schema.String;
|
|
106
|
-
}>, Schema.Struct<{
|
|
107
|
-
readonly enabled: Schema.optional<Schema.Boolean>;
|
|
108
|
-
readonly options: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
109
|
-
readonly package: Schema.String;
|
|
110
|
-
}>]>]>>>;
|
|
111
|
-
readonly model: Schema.optional<Schema.Struct<{
|
|
112
|
-
readonly provider: Schema.optional<Schema.String>;
|
|
113
|
-
readonly id: Schema.optional<Schema.String>;
|
|
114
|
-
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
115
|
-
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
116
|
-
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
117
|
-
readonly options: Schema.optional<Schema.StructWithRest<Schema.Struct<{
|
|
118
|
-
readonly temperature: Schema.optional<Schema.Finite>;
|
|
119
|
-
readonly maxTokens: Schema.optional<Schema.Finite>;
|
|
120
|
-
readonly cacheRetention: Schema.optional<Schema.Literals<readonly ["none", "short", "long"]>>;
|
|
121
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
122
|
-
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
123
|
-
readonly maxRetries: Schema.optional<Schema.Finite>;
|
|
124
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
125
|
-
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
126
|
-
readonly baseURL: Schema.optional<Schema.String>;
|
|
127
|
-
readonly method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
128
|
-
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
129
|
-
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
130
|
-
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
131
|
-
readonly contextWindow: Schema.optional<Schema.Finite>;
|
|
132
|
-
readonly extras: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
133
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>>;
|
|
134
|
-
readonly providerOptions: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.StructWithRest<Schema.Struct<{
|
|
135
|
-
readonly temperature: Schema.optional<Schema.Finite>;
|
|
136
|
-
readonly maxTokens: Schema.optional<Schema.Finite>;
|
|
137
|
-
readonly cacheRetention: Schema.optional<Schema.Literals<readonly ["none", "short", "long"]>>;
|
|
138
|
-
readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
139
|
-
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
140
|
-
readonly maxRetries: Schema.optional<Schema.Finite>;
|
|
141
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
142
|
-
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
143
|
-
readonly baseURL: Schema.optional<Schema.String>;
|
|
144
|
-
readonly method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
145
|
-
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
146
|
-
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
147
|
-
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
148
|
-
readonly contextWindow: Schema.optional<Schema.Finite>;
|
|
149
|
-
readonly extras: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
150
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>>>>;
|
|
151
|
-
}>>;
|
|
152
|
-
}>;
|
|
153
|
-
type Patch = typeof Patch.Type;
|
|
154
|
-
/**
|
|
155
|
-
* One plugin entry, and where it came from.
|
|
156
|
-
*
|
|
157
|
-
* Flattening every layer's `plugins` into one array loses the file that declared each entry, and
|
|
158
|
-
* that cannot be recovered afterwards: two layers may declare the same string, so attribution is
|
|
159
|
-
* genuinely gone rather than merely inconvenient. Three things need it -- anchoring a relative
|
|
160
|
-
* path, naming the declaring layer in `plugin list`, and the missing-plugin diagnostic -- so the
|
|
161
|
-
* loaded shape carries it from the start.
|
|
162
|
-
*
|
|
163
|
-
* In simple terms:
|
|
164
|
-
* `written` - is what module the developer is declaring - what
|
|
165
|
-
* `file` - where the module is being declared - where
|
|
166
|
-
* `entry` - the resolved path of the module, relative to the `file`; especially needed for local.
|
|
167
|
-
*
|
|
168
|
-
* Example:
|
|
169
|
-
* written: "@acme/x@^1"
|
|
170
|
-
* entry: "@acme/x@^1"
|
|
171
|
-
* file: "/Users/me/.codework/settings.jsonc"
|
|
172
|
-
*
|
|
173
|
-
* written: "./plugins/mine.mjs"
|
|
174
|
-
* entry: "/Users/me/.codework/plugins/mine.mjs"
|
|
175
|
-
* file: "/Users/me/.codework/settings.jsonc"
|
|
176
|
-
*/
|
|
177
|
-
interface Declared {
|
|
178
|
-
/** The entry exactly as the file spells it, which is the string a person will search for. */
|
|
179
|
-
readonly written: PluginEntry;
|
|
180
|
-
/** The same entry with any relative path anchored to the directory of its declaring file. */
|
|
181
|
-
readonly entry: PluginEntry;
|
|
182
|
-
/** The settings file that declared it. */
|
|
183
|
-
readonly file: string;
|
|
184
|
-
}
|
|
185
|
-
interface Info {
|
|
186
|
-
/**
|
|
187
|
-
* Plugin entries added to the harness selection, in order: every layer's entries, lowest
|
|
188
|
-
* priority first, so a project's list extends the user's rather than replacing it.
|
|
189
|
-
*
|
|
190
|
-
* Anchored, and stripped of provenance: this is the list the loader consumes. {@link Info.declared}
|
|
191
|
-
* is the same list with the file each entry came from.
|
|
192
|
-
*/
|
|
193
|
-
readonly plugins: ReadonlyArray<PluginEntry>;
|
|
194
|
-
/** {@link Info.plugins}, with the origin of each entry. Same order, same length. */
|
|
195
|
-
readonly declared: ReadonlyArray<Declared>;
|
|
196
|
-
readonly model: typeof Model$1.Type & {
|
|
197
|
-
readonly provider: string;
|
|
198
|
-
readonly id: string;
|
|
199
|
-
readonly thinkingLevel: Model.ThinkingLevel;
|
|
200
|
-
readonly toolExecution: ToolExecution;
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
/** Let aikit supply model-aware generation defaults. */
|
|
204
|
-
declare const defaults: Info;
|
|
205
|
-
//#endregion
|
|
206
|
-
export { ModelProtocol as a, PluginPatch as c, defaults as d, requestFields as f, Model$1 as i, ThinkingLevel as l, Declared as n, Patch as o, Info as r, PluginEntry as s, Block as t, ToolExecution as u };
|
|
207
|
-
//# sourceMappingURL=settings-bbJi7FiQ.d.mts.map
|