@openspecui/core 1.6.2 → 2.0.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.mts +10 -2
- package/dist/index.mjs +36 -16
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1622,7 +1622,11 @@ declare class CliExecutor {
|
|
|
1622
1622
|
/**
|
|
1623
1623
|
* 执行 openspec init(非交互式)
|
|
1624
1624
|
*/
|
|
1625
|
-
init(
|
|
1625
|
+
init(options?: {
|
|
1626
|
+
tools?: string[] | 'all' | 'none';
|
|
1627
|
+
profile?: 'core' | 'custom';
|
|
1628
|
+
force?: boolean;
|
|
1629
|
+
}): Promise<CliResult>;
|
|
1626
1630
|
/**
|
|
1627
1631
|
* 执行 openspec archive <changeId>(非交互式)
|
|
1628
1632
|
*/
|
|
@@ -1667,7 +1671,11 @@ declare class CliExecutor {
|
|
|
1667
1671
|
/**
|
|
1668
1672
|
* 流式执行 openspec init
|
|
1669
1673
|
*/
|
|
1670
|
-
initStream(
|
|
1674
|
+
initStream(options: {
|
|
1675
|
+
tools?: string[] | 'all' | 'none';
|
|
1676
|
+
profile?: 'core' | 'custom';
|
|
1677
|
+
force?: boolean;
|
|
1678
|
+
}, onEvent: (event: CliStreamEvent) => void): Promise<() => void>;
|
|
1671
1679
|
/**
|
|
1672
1680
|
* 流式执行 openspec archive
|
|
1673
1681
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -1473,7 +1473,7 @@ var OpenSpecAdapter = class {
|
|
|
1473
1473
|
});
|
|
1474
1474
|
}
|
|
1475
1475
|
async collectChangeFiles(root, dir) {
|
|
1476
|
-
const names = await reactiveReadDir(dir, { includeHidden:
|
|
1476
|
+
const names = await reactiveReadDir(dir, { includeHidden: true });
|
|
1477
1477
|
const files = [];
|
|
1478
1478
|
for (const name of names) {
|
|
1479
1479
|
const fullPath = join(dir, name);
|
|
@@ -2619,13 +2619,15 @@ var CliExecutor = class {
|
|
|
2619
2619
|
/**
|
|
2620
2620
|
* 执行 openspec init(非交互式)
|
|
2621
2621
|
*/
|
|
2622
|
-
async init(
|
|
2623
|
-
const
|
|
2624
|
-
|
|
2625
|
-
"
|
|
2626
|
-
"--tools",
|
|
2627
|
-
|
|
2628
|
-
|
|
2622
|
+
async init(options) {
|
|
2623
|
+
const args = ["init"];
|
|
2624
|
+
if (options?.tools !== void 0) {
|
|
2625
|
+
const toolsArg = Array.isArray(options.tools) ? options.tools.join(",") : options.tools;
|
|
2626
|
+
args.push("--tools", toolsArg);
|
|
2627
|
+
}
|
|
2628
|
+
if (options?.profile) args.push("--profile", options.profile);
|
|
2629
|
+
if (options?.force) args.push("--force");
|
|
2630
|
+
return this.execute(args);
|
|
2629
2631
|
}
|
|
2630
2632
|
/**
|
|
2631
2633
|
* 执行 openspec archive <changeId>(非交互式)
|
|
@@ -2792,13 +2794,15 @@ var CliExecutor = class {
|
|
|
2792
2794
|
/**
|
|
2793
2795
|
* 流式执行 openspec init
|
|
2794
2796
|
*/
|
|
2795
|
-
initStream(
|
|
2796
|
-
const
|
|
2797
|
-
|
|
2798
|
-
"
|
|
2799
|
-
"--tools",
|
|
2800
|
-
|
|
2801
|
-
|
|
2797
|
+
initStream(options, onEvent) {
|
|
2798
|
+
const args = ["init"];
|
|
2799
|
+
if (options.tools !== void 0) {
|
|
2800
|
+
const toolsArg = Array.isArray(options.tools) ? options.tools.join(",") : options.tools;
|
|
2801
|
+
args.push("--tools", toolsArg);
|
|
2802
|
+
}
|
|
2803
|
+
if (options.profile) args.push("--profile", options.profile);
|
|
2804
|
+
if (options.force) args.push("--force");
|
|
2805
|
+
return this.executeStream(args, onEvent);
|
|
2802
2806
|
}
|
|
2803
2807
|
/**
|
|
2804
2808
|
* 流式执行 openspec archive
|
|
@@ -2883,7 +2887,9 @@ const SKILL_NAMES = [
|
|
|
2883
2887
|
"openspec-sync-specs",
|
|
2884
2888
|
"openspec-archive-change",
|
|
2885
2889
|
"openspec-bulk-archive-change",
|
|
2886
|
-
"openspec-verify-change"
|
|
2890
|
+
"openspec-verify-change",
|
|
2891
|
+
"openspec-onboard",
|
|
2892
|
+
"openspec-propose"
|
|
2887
2893
|
];
|
|
2888
2894
|
/**
|
|
2889
2895
|
* 所有支持的 AI 工具配置
|
|
@@ -3002,6 +3008,13 @@ const AI_TOOLS = [
|
|
|
3002
3008
|
successLabel: "Kilo Code",
|
|
3003
3009
|
skillsDir: ".kilocode"
|
|
3004
3010
|
},
|
|
3011
|
+
{
|
|
3012
|
+
name: "Kiro",
|
|
3013
|
+
value: "kiro",
|
|
3014
|
+
available: true,
|
|
3015
|
+
successLabel: "Kiro",
|
|
3016
|
+
skillsDir: ".kiro"
|
|
3017
|
+
},
|
|
3005
3018
|
{
|
|
3006
3019
|
name: "OpenCode",
|
|
3007
3020
|
value: "opencode",
|
|
@@ -3009,6 +3022,13 @@ const AI_TOOLS = [
|
|
|
3009
3022
|
successLabel: "OpenCode",
|
|
3010
3023
|
skillsDir: ".opencode"
|
|
3011
3024
|
},
|
|
3025
|
+
{
|
|
3026
|
+
name: "Pi",
|
|
3027
|
+
value: "pi",
|
|
3028
|
+
available: true,
|
|
3029
|
+
successLabel: "Pi",
|
|
3030
|
+
skillsDir: ".pi"
|
|
3031
|
+
},
|
|
3012
3032
|
{
|
|
3013
3033
|
name: "Qoder",
|
|
3014
3034
|
value: "qoder",
|