@seedcli/core 0.1.7 → 0.1.8
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.
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { Toolbox } from "./toolbox.js";
|
|
2
|
+
/**
|
|
3
|
+
* The toolbox type exposed to extensions.
|
|
4
|
+
* Extensions run before any command, so args/flags are not available.
|
|
5
|
+
* All core modules (print, filesystem, etc.) and ToolboxExtensions are fully typed.
|
|
6
|
+
*/
|
|
7
|
+
export type ExtensionToolbox = Omit<Toolbox, "args" | "flags">;
|
|
2
8
|
/**
|
|
3
9
|
* Extension configuration — defines how a plugin extends the toolbox.
|
|
4
10
|
*/
|
|
@@ -10,9 +16,9 @@ export interface ExtensionConfig {
|
|
|
10
16
|
/** Other extensions this depends on (resolved via topological sort) */
|
|
11
17
|
dependencies?: string[];
|
|
12
18
|
/** Called during toolbox assembly, before any command runs */
|
|
13
|
-
setup: (toolbox:
|
|
19
|
+
setup: (toolbox: ExtensionToolbox) => Promise<void> | void;
|
|
14
20
|
/** Called during cleanup, after command completes */
|
|
15
|
-
teardown?: (toolbox:
|
|
21
|
+
teardown?: (toolbox: ExtensionToolbox) => Promise<void> | void;
|
|
16
22
|
}
|
|
17
23
|
/**
|
|
18
24
|
* Define an extension with type safety.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/types/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IAEb,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB,8DAA8D;IAC9D,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/types/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IAEb,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB,8DAA8D;IAC9D,KAAK,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAE3D,qDAAqD;IACrD,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC/D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe,CAExE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../../src/types/extension.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../../src/types/extension.ts"],"names":[],"mappings":"AA6BA;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,eAAe,CAAC,MAAuB;IACtD,OAAO,MAAM,CAAC;AACf,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type { Command, CommandConfig, Middleware } from "./command.js";
|
|
|
6
6
|
export { command } from "./command.js";
|
|
7
7
|
export type { SeedConfig } from "./config.js";
|
|
8
8
|
export { defineConfig } from "./config.js";
|
|
9
|
-
export type { ExtensionConfig } from "./extension.js";
|
|
9
|
+
export type { ExtensionConfig, ExtensionToolbox } from "./extension.js";
|
|
10
10
|
export { defineExtension } from "./extension.js";
|
|
11
11
|
export type { PluginConfig } from "./plugin.js";
|
|
12
12
|
export { definePlugin } from "./plugin.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EACX,MAAM,EACN,OAAO,EACP,OAAO,EACP,QAAQ,EACR,SAAS,EACT,UAAU,EACV,cAAc,EACd,eAAe,GACf,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EACX,MAAM,EACN,OAAO,EACP,OAAO,EACP,QAAQ,EACR,SAAS,EACT,UAAU,EACV,cAAc,EACd,eAAe,GACf,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seedcli/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Core runtime, builder API, command system, and arg parser for Seed CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
"typecheck": "tsc --noEmit"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@seedcli/completions": "^0.1.
|
|
47
|
-
"@seedcli/config": "^0.1.
|
|
48
|
-
"@seedcli/filesystem": "^0.1.
|
|
49
|
-
"@seedcli/http": "^0.1.
|
|
50
|
-
"@seedcli/package-manager": "^0.1.
|
|
51
|
-
"@seedcli/patching": "^0.1.
|
|
52
|
-
"@seedcli/print": "^0.1.
|
|
53
|
-
"@seedcli/prompt": "^0.1.
|
|
54
|
-
"@seedcli/semver": "^0.1.
|
|
55
|
-
"@seedcli/strings": "^0.1.
|
|
56
|
-
"@seedcli/system": "^0.1.
|
|
57
|
-
"@seedcli/template": "^0.1.
|
|
46
|
+
"@seedcli/completions": "^0.1.8",
|
|
47
|
+
"@seedcli/config": "^0.1.8",
|
|
48
|
+
"@seedcli/filesystem": "^0.1.8",
|
|
49
|
+
"@seedcli/http": "^0.1.8",
|
|
50
|
+
"@seedcli/package-manager": "^0.1.8",
|
|
51
|
+
"@seedcli/patching": "^0.1.8",
|
|
52
|
+
"@seedcli/print": "^0.1.8",
|
|
53
|
+
"@seedcli/prompt": "^0.1.8",
|
|
54
|
+
"@seedcli/semver": "^0.1.8",
|
|
55
|
+
"@seedcli/strings": "^0.1.8",
|
|
56
|
+
"@seedcli/system": "^0.1.8",
|
|
57
|
+
"@seedcli/template": "^0.1.8"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {}
|
|
60
60
|
}
|