@michaelfromyeg/weft-adapter-kit 1.4.1 → 1.5.0
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/index.d.ts +23 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,28 @@ interface HarnessCompat {
|
|
|
148
148
|
readonly versionCommand?: string;
|
|
149
149
|
/** Semver range the emitted format is known-good for (e.g. ">=0.121.0 <0.130.0"). */
|
|
150
150
|
readonly range: string;
|
|
151
|
+
/**
|
|
152
|
+
* How this harness registers + installs from a marketplace, so `weft marketplace`
|
|
153
|
+
* can drive every tool from one command. `cli` harnesses are scripted via their
|
|
154
|
+
* binary; `gui` harnesses (e.g. Cursor) have no headless command, so weft prints
|
|
155
|
+
* the documented in-app steps. Omit for harnesses with no marketplace (OpenCode).
|
|
156
|
+
*/
|
|
157
|
+
readonly marketplace?: {
|
|
158
|
+
cli: HarnessMarketplaceCli;
|
|
159
|
+
} | {
|
|
160
|
+
gui: string;
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
/** The native CLI invocations weft shells out to for one harness's marketplace. */
|
|
164
|
+
interface HarnessMarketplaceCli {
|
|
165
|
+
/** The CLI binary, e.g. "claude" | "codex" | "copilot". */
|
|
166
|
+
readonly bin: string;
|
|
167
|
+
/** argv (after `bin`) to register a marketplace from a repo/path/URL source. */
|
|
168
|
+
add(source: string): string[];
|
|
169
|
+
/** argv to remove a registered marketplace by its name. */
|
|
170
|
+
remove(name: string): string[];
|
|
171
|
+
/** argv to install a plugin from a registered marketplace. */
|
|
172
|
+
install(plugin: string, marketplace: string): string[];
|
|
151
173
|
}
|
|
152
174
|
/**
|
|
153
175
|
* The seam between Weft's canonical model and one harness's native format
|
|
@@ -227,4 +249,4 @@ interface GenericSkillsConfig {
|
|
|
227
249
|
*/
|
|
228
250
|
declare function genericSkillsAdapter(cfg: GenericSkillsConfig): HarnessAdapter;
|
|
229
251
|
|
|
230
|
-
export { type ArtifactKind, type CatalogEntry, type CompiledArtifact, type Frontmatter, type GenericSkillsConfig, type HarnessAdapter, type HarnessCompat, type HarnessDriver, type ImportOptions, type ImportResult, type ImportedMarketplace, type ImportedPlugin, type InstallPaths, type PluginCtx, type ResolvedMarketplace, type RunOptions, type ToolCall, type Transcript, artifact, expandTilde, genericSkillsAdapter, parseFrontmatter, resolveUnder, withFrontmatter };
|
|
252
|
+
export { type ArtifactKind, type CatalogEntry, type CompiledArtifact, type Frontmatter, type GenericSkillsConfig, type HarnessAdapter, type HarnessCompat, type HarnessDriver, type HarnessMarketplaceCli, type ImportOptions, type ImportResult, type ImportedMarketplace, type ImportedPlugin, type InstallPaths, type PluginCtx, type ResolvedMarketplace, type RunOptions, type ToolCall, type Transcript, artifact, expandTilde, genericSkillsAdapter, parseFrontmatter, resolveUnder, withFrontmatter };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michaelfromyeg/weft-adapter-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Public HarnessAdapter / HarnessDriver interfaces and helpers. The contract a community adapter implements.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"yaml": "^2.6.1",
|
|
20
|
-
"@michaelfromyeg/weft-schema": "1.
|
|
20
|
+
"@michaelfromyeg/weft-schema": "1.5.0"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"author": "Michael DeMarco",
|