iskills 0.2.45 → 0.2.47
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/LICENSE +21 -0
- package/README.md +9 -7
- package/README.zh-CN.md +8 -6
- package/bin/iskills.js +10 -2
- package/dist/src/cli.js +22 -7
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/browser-actions.d.ts +2 -0
- package/dist/src/commands/browser-actions.js +154 -49
- package/dist/src/commands/browser-actions.js.map +1 -1
- package/dist/src/commands/config.d.ts +5 -0
- package/dist/src/commands/config.js +23 -0
- package/dist/src/commands/config.js.map +1 -0
- package/dist/src/commands/create.js +12 -8
- package/dist/src/commands/create.js.map +1 -1
- package/dist/src/commands/index.d.ts +1 -0
- package/dist/src/commands/index.js +19 -77
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/library.d.ts +46 -12
- package/dist/src/commands/library.js +384 -230
- package/dist/src/commands/library.js.map +1 -1
- package/dist/src/commands/search.js +17 -39
- package/dist/src/commands/search.js.map +1 -1
- package/dist/src/domain/collection-write.d.ts +53 -2
- package/dist/src/domain/collection-write.js +293 -61
- package/dist/src/domain/collection-write.js.map +1 -1
- package/dist/src/domain/core.d.ts +46 -5
- package/dist/src/domain/core.js +164 -58
- package/dist/src/domain/core.js.map +1 -1
- package/dist/src/domain/cross-agent-install.d.ts +32 -0
- package/dist/src/domain/cross-agent-install.js +147 -0
- package/dist/src/domain/cross-agent-install.js.map +1 -0
- package/dist/src/domain/errors.d.ts +20 -0
- package/dist/src/domain/errors.js +31 -0
- package/dist/src/domain/errors.js.map +1 -0
- package/dist/src/domain/git.js +15 -14
- package/dist/src/domain/git.js.map +1 -1
- package/dist/src/domain/user-config.d.ts +12 -0
- package/dist/src/domain/user-config.js +55 -0
- package/dist/src/domain/user-config.js.map +1 -0
- package/dist/src/i18n/en.d.ts +5 -0
- package/dist/src/i18n/en.js +423 -0
- package/dist/src/i18n/en.js.map +1 -0
- package/dist/src/i18n/index.d.ts +54 -0
- package/dist/src/i18n/index.js +164 -0
- package/dist/src/i18n/index.js.map +1 -0
- package/dist/src/i18n/zh.d.ts +409 -0
- package/dist/src/i18n/zh.js +423 -0
- package/dist/src/i18n/zh.js.map +1 -0
- package/dist/src/ui/browser/browse-capabilities.d.ts +26 -0
- package/dist/src/ui/browser/browse-capabilities.js +130 -0
- package/dist/src/ui/browser/browse-capabilities.js.map +1 -0
- package/dist/src/ui/browser/browser.js +205 -62
- package/dist/src/ui/browser/browser.js.map +1 -1
- package/dist/src/ui/browser/detail.js +1 -1
- package/dist/src/ui/browser/detail.js.map +1 -1
- package/dist/src/ui/browser/footer.js +26 -88
- package/dist/src/ui/browser/footer.js.map +1 -1
- package/dist/src/ui/browser/format.d.ts +13 -20
- package/dist/src/ui/browser/format.js +81 -144
- package/dist/src/ui/browser/format.js.map +1 -1
- package/dist/src/ui/browser/index.js +35 -3
- package/dist/src/ui/browser/index.js.map +1 -1
- package/dist/src/ui/browser/shortcut-help.js +3 -4
- package/dist/src/ui/browser/shortcut-help.js.map +1 -1
- package/dist/src/ui/browser/store.d.ts +4 -0
- package/dist/src/ui/browser/store.js +2 -0
- package/dist/src/ui/browser/store.js.map +1 -1
- package/dist/src/ui/browser/types.d.ts +19 -4
- package/dist/src/ui/collection-match.d.ts +1 -1
- package/dist/src/ui/collection-match.js +8 -5
- package/dist/src/ui/collection-match.js.map +1 -1
- package/dist/src/ui/components/framed-panel.d.ts +6 -1
- package/dist/src/ui/components/framed-panel.js +7 -4
- package/dist/src/ui/components/framed-panel.js.map +1 -1
- package/dist/src/ui/components/modal-panel.d.ts +4 -1
- package/dist/src/ui/components/modal-panel.js +8 -2
- package/dist/src/ui/components/modal-panel.js.map +1 -1
- package/dist/src/ui/components/mouse/index.d.ts +1 -1
- package/dist/src/ui/components/mouse/index.js +1 -1
- package/dist/src/ui/components/mouse/index.js.map +1 -1
- package/dist/src/ui/components/mouse/parse.d.ts +0 -7
- package/dist/src/ui/components/mouse/parse.js +0 -41
- package/dist/src/ui/components/mouse/parse.js.map +1 -1
- package/dist/src/ui/components/multi-select.js +3 -10
- package/dist/src/ui/components/multi-select.js.map +1 -1
- package/dist/src/ui/components/options.d.ts +2 -0
- package/dist/src/ui/components/options.js +9 -0
- package/dist/src/ui/components/options.js.map +1 -1
- package/dist/src/ui/components/select.js +1 -1
- package/dist/src/ui/components/select.js.map +1 -1
- package/dist/src/ui/components/tag-editor.d.ts +1 -2
- package/dist/src/ui/components/tag-editor.js +6 -4
- package/dist/src/ui/components/tag-editor.js.map +1 -1
- package/dist/src/ui/components/termcn.d.ts +1 -5
- package/dist/src/ui/components/termcn.js +1 -4
- package/dist/src/ui/components/termcn.js.map +1 -1
- package/dist/src/ui/config/index.d.ts +11 -0
- package/dist/src/ui/config/index.js +22 -0
- package/dist/src/ui/config/index.js.map +1 -0
- package/dist/src/ui/config/settings.d.ts +17 -0
- package/dist/src/ui/config/settings.js +126 -0
- package/dist/src/ui/config/settings.js.map +1 -0
- package/dist/src/ui/footer/resolve-footer.js +54 -36
- package/dist/src/ui/footer/resolve-footer.js.map +1 -1
- package/dist/src/ui/footer/types.d.ts +12 -2
- package/dist/src/ui/import/review.js +5 -8
- package/dist/src/ui/import/review.js.map +1 -1
- package/dist/src/ui/import/skill-select.js +15 -33
- package/dist/src/ui/import/skill-select.js.map +1 -1
- package/dist/src/ui/install/review.js +18 -19
- package/dist/src/ui/install/review.js.map +1 -1
- package/dist/src/ui/overlay/bridge.d.ts +1 -1
- package/dist/src/ui/prompts/present.d.ts +4 -2
- package/dist/src/ui/prompts/present.js +70 -5
- package/dist/src/ui/prompts/present.js.map +1 -1
- package/dist/src/ui/search/index.js +9 -7
- package/dist/src/ui/search/index.js.map +1 -1
- package/dist/src/ui/shell/app-shell.d.ts +1 -1
- package/dist/src/ui/shell/app-shell.js +1 -1
- package/dist/src/ui/shell/run.d.ts +0 -11
- package/dist/src/ui/shell/run.js +0 -43
- package/dist/src/ui/shell/run.js.map +1 -1
- package/dist/src/ui/shell/terminal.d.ts +0 -1
- package/dist/src/ui/shell/terminal.js +2 -1
- package/dist/src/ui/shell/terminal.js.map +1 -1
- package/dist/src/ui/skill-labels.d.ts +10 -9
- package/dist/src/ui/skill-labels.js +14 -10
- package/dist/src/ui/skill-labels.js.map +1 -1
- package/dist/src/ui/tui/hooks.d.ts +1 -13
- package/dist/src/ui/tui/hooks.js +1 -11
- package/dist/src/ui/tui/hooks.js.map +1 -1
- package/dist/src/ui/tui/index.d.ts +1 -1
- package/dist/src/ui/tui/index.js +1 -1
- package/dist/src/ui/tui/index.js.map +1 -1
- package/package.json +10 -11
- package/bin/patch-react-reconciler.mjs +0 -71
- package/dist/src/ui/components/confirm.d.ts +0 -6
- package/dist/src/ui/components/confirm.js +0 -22
- package/dist/src/ui/components/confirm.js.map +0 -1
- package/dist/src/ui/components/link.d.ts +0 -7
- package/dist/src/ui/components/link.js +0 -17
- package/dist/src/ui/components/link.js.map +0 -1
- package/dist/src/ui/components/modal.d.ts +0 -16
- package/dist/src/ui/components/modal.js +0 -58
- package/dist/src/ui/components/modal.js.map +0 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { t } from '../i18n/index.js';
|
|
1
2
|
import { parseArgs } from 'node:util';
|
|
2
3
|
import { agentIds } from '../domain/core.js';
|
|
4
|
+
import { DomainError } from '../domain/errors.js';
|
|
3
5
|
import { configureCollectionRemote, initCollectionGit, } from '../domain/git.js';
|
|
4
6
|
export async function commandAdd(argv) {
|
|
5
7
|
return (await import('./library.js')).commandAdd(argv);
|
|
@@ -13,113 +15,53 @@ export async function commandImport(argv) {
|
|
|
13
15
|
export async function commandSearch(argv) {
|
|
14
16
|
return (await import('./search.js')).commandSearch(argv);
|
|
15
17
|
}
|
|
18
|
+
export async function commandConfig(argv = []) {
|
|
19
|
+
return (await import('./config.js')).commandConfig(argv);
|
|
20
|
+
}
|
|
16
21
|
export async function commandInit(argv = []) {
|
|
17
22
|
const { values } = parseArgs({
|
|
18
23
|
args: argv,
|
|
19
24
|
options: { remote: { type: 'string' } },
|
|
20
25
|
});
|
|
21
26
|
const initialized = await initCollectionGit();
|
|
22
|
-
console.log(initialized ? '
|
|
27
|
+
console.log(initialized ? t('git.initDone') : t('git.alreadyInit'));
|
|
23
28
|
let remote = values.remote;
|
|
24
29
|
if (!remote && initialized && process.stdin.isTTY) {
|
|
25
30
|
const [{ Modal }, { promptText }] = await Promise.all([
|
|
26
31
|
import('../ui/overlay/static.js'),
|
|
27
32
|
import('../ui/prompts/present.js'),
|
|
28
33
|
]);
|
|
29
|
-
if (await Modal.confirm({ title: '
|
|
30
|
-
remote = await promptText('
|
|
34
|
+
if (await Modal.confirm({ title: t('common.confirm'), message: t('git.configureRemotePrompt') })) {
|
|
35
|
+
remote = await promptText(t('git.remoteAddressPrompt'));
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
if (remote) {
|
|
34
39
|
await configureCollectionRemote(remote);
|
|
35
|
-
console.log('
|
|
40
|
+
console.log(t('git.remoteConfigured'));
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
43
|
function agentHelpNames() {
|
|
39
|
-
return agentIds().join('
|
|
44
|
+
return agentIds().join(t('common.listSep'));
|
|
40
45
|
}
|
|
41
46
|
function commandHelp() {
|
|
42
47
|
const agents = agentHelpNames();
|
|
43
48
|
return {
|
|
44
|
-
search:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
--replace 替换异源同名收藏
|
|
51
|
-
-h, --help 显示帮助
|
|
52
|
-
`,
|
|
53
|
-
add: `用法:
|
|
54
|
-
iskills add [技能...] [选项]
|
|
55
|
-
|
|
56
|
-
从收藏夹添加技能到当前项目或 Agent 全局目录。
|
|
57
|
-
|
|
58
|
-
选项:
|
|
59
|
-
--agent <名称> 限定 Agent,可重复使用(${agents})
|
|
60
|
-
-g, --global 添加到 Agent 全局 Skill 目录
|
|
61
|
-
--to <目录> 指定目标目录
|
|
62
|
-
--copy 复制而非创建软链
|
|
63
|
-
--replace 替换已存在的技能
|
|
64
|
-
-y, --yes 跳过确认
|
|
65
|
-
-h, --help 显示帮助
|
|
66
|
-
`,
|
|
67
|
-
create: `用法:
|
|
68
|
-
iskills create [名称]
|
|
69
|
-
|
|
70
|
-
在收藏夹新建技能,并打开技能目录。
|
|
71
|
-
|
|
72
|
-
选项:
|
|
73
|
-
-h, --help 显示帮助
|
|
74
|
-
`,
|
|
75
|
-
import: `用法:
|
|
76
|
-
iskills import [路径或 Git URL] [选项]
|
|
77
|
-
|
|
78
|
-
导入本地路径或 Git 来源到收藏夹。
|
|
79
|
-
|
|
80
|
-
选项:
|
|
81
|
-
-g, --global 扫描 Agent 全局 Skill 目录
|
|
82
|
-
--agent <名称> 限定 Agent,可重复使用(${agents})
|
|
83
|
-
--all 导入发现的全部技能
|
|
84
|
-
--replace 替换收藏夹中的同名技能
|
|
85
|
-
-y, --yes 跳过确认
|
|
86
|
-
-h, --help 显示帮助
|
|
87
|
-
`,
|
|
88
|
-
init: `用法:
|
|
89
|
-
iskills init [选项]
|
|
90
|
-
|
|
91
|
-
初始化收藏夹 Git 仓库并创建首次提交。
|
|
92
|
-
|
|
93
|
-
选项:
|
|
94
|
-
--remote <Git URL> 配置或更新 origin
|
|
95
|
-
-h, --help 显示帮助
|
|
96
|
-
`,
|
|
49
|
+
search: () => t('help.search'),
|
|
50
|
+
add: () => t('help.add', { agents }),
|
|
51
|
+
create: () => t('help.create'),
|
|
52
|
+
import: () => t('help.import', { agents }),
|
|
53
|
+
init: () => t('help.init'),
|
|
54
|
+
config: () => t('help.config'),
|
|
97
55
|
};
|
|
98
56
|
}
|
|
99
57
|
export function printHelp(command) {
|
|
100
58
|
const help = command ? commandHelp()[command] : undefined;
|
|
101
59
|
if (help) {
|
|
102
|
-
console.log(help);
|
|
60
|
+
console.log(help());
|
|
103
61
|
return;
|
|
104
62
|
}
|
|
105
63
|
if (command)
|
|
106
|
-
throw new
|
|
107
|
-
console.log(
|
|
108
|
-
|
|
109
|
-
用法:
|
|
110
|
-
iskills [命令] [选项]
|
|
111
|
-
|
|
112
|
-
命令:
|
|
113
|
-
search [关键词] 搜索技能并保存到收藏夹
|
|
114
|
-
add [技能...] 从收藏夹添加到当前项目
|
|
115
|
-
create [名称] 在收藏夹新建技能并打开目录
|
|
116
|
-
import [来源] 导入本地路径或 Git 来源
|
|
117
|
-
init 初始化收藏夹 Git
|
|
118
|
-
|
|
119
|
-
选项:
|
|
120
|
-
-h, --help 显示帮助(可用 iskills help <命令>)
|
|
121
|
-
-v, --version 显示版本
|
|
122
|
-
|
|
123
|
-
`);
|
|
64
|
+
throw new DomainError('cli.unknownCommand', { command });
|
|
65
|
+
console.log(t('help.root'));
|
|
124
66
|
}
|
|
125
67
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EACL,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EACL,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,IAAc;IAC7C,OAAO,CAAC,MAAM,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CA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,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1D,IAAI,IAAI,EAAE,CAAC;QACT,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;QACpB,OAAO;IACT,CAAC;IACD,IAAI,OAAO;QAAE,MAAM,IAAI,WAAW,CAAC,oBAAoB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -1,12 +1,30 @@
|
|
|
1
|
-
import type { CollectedSkill, Skill, SkillMetadata } from '../domain/types.js';
|
|
1
|
+
import type { CollectedSkill, CollectionMatch, GitImportContext, Skill, SkillMetadata } from '../domain/types.js';
|
|
2
|
+
export declare function formatSkillIdentity(meta: SkillMetadata): string;
|
|
3
|
+
export type ImportReplaceCandidate = {
|
|
4
|
+
name: string;
|
|
5
|
+
match: CollectionMatch;
|
|
6
|
+
current: SkillMetadata;
|
|
7
|
+
incoming: SkillMetadata;
|
|
8
|
+
};
|
|
2
9
|
export interface RemoteImportOptions {
|
|
3
10
|
replace?: boolean;
|
|
4
11
|
tags?: string[];
|
|
5
|
-
|
|
12
|
+
/** Same shape as batch import confirm (single-skill list for search). */
|
|
13
|
+
confirmReplace?: (candidates: ImportReplaceCandidate[]) => Promise<boolean>;
|
|
6
14
|
}
|
|
7
15
|
export interface RemoteImportResult {
|
|
8
16
|
name: string;
|
|
9
|
-
|
|
17
|
+
/** commit-failed: tree/metadata written, post-write Git commit soft-failed */
|
|
18
|
+
status: 'imported' | 'unchanged' | 'cancelled' | 'commit-failed';
|
|
19
|
+
}
|
|
20
|
+
export interface ImportToCollectionResult {
|
|
21
|
+
/** Skills written this run (0 when nothing installed or selection empty). */
|
|
22
|
+
count: number;
|
|
23
|
+
/**
|
|
24
|
+
* Post-write Git commit soft-failed after `count` skills were written.
|
|
25
|
+
* Success copy must not be shown; domainNotify already warned.
|
|
26
|
+
*/
|
|
27
|
+
commitFailed?: true;
|
|
10
28
|
}
|
|
11
29
|
export declare function importRemoteSkillToCollection(source: string, skillName: string, options?: RemoteImportOptions): Promise<RemoteImportResult>;
|
|
12
30
|
interface ImportToCollectionOptions {
|
|
@@ -14,16 +32,17 @@ interface ImportToCollectionOptions {
|
|
|
14
32
|
yes?: boolean;
|
|
15
33
|
quiet?: boolean;
|
|
16
34
|
tags?: string[];
|
|
17
|
-
|
|
35
|
+
/** Confirm only for conflicting / unverified same-name entries (not same-source). */
|
|
36
|
+
confirmReplace?: (candidates: ImportReplaceCandidate[]) => Promise<boolean>;
|
|
18
37
|
}
|
|
19
|
-
export declare function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
38
|
+
export declare function defaultReplaceConfirmMessage(candidates: ImportReplaceCandidate[]): {
|
|
39
|
+
message: string;
|
|
40
|
+
details: string[];
|
|
41
|
+
};
|
|
42
|
+
/** Shared replace confirm for CLI default, browser, and search. */
|
|
43
|
+
export declare function confirmCollectionReplace(candidates: ImportReplaceCandidate[]): Promise<boolean>;
|
|
44
|
+
export declare function importSkillsToCollection(skills: Skill[], options?: ImportToCollectionOptions): Promise<ImportToCollectionResult>;
|
|
45
|
+
export declare function importGitSkillsToCollection(skills: Skill[], gitContext: GitImportContext, options?: ImportToCollectionOptions): Promise<ImportToCollectionResult>;
|
|
27
46
|
export declare function commandImport(argv: string[]): Promise<void>;
|
|
28
47
|
interface AddValues {
|
|
29
48
|
agent?: string[];
|
|
@@ -39,5 +58,20 @@ export declare function addSkillsToProject(skills: CollectedSkill[], values?: Ad
|
|
|
39
58
|
count: number;
|
|
40
59
|
targetCount: number;
|
|
41
60
|
}>;
|
|
61
|
+
export interface InstallAcrossAgentsOptions {
|
|
62
|
+
/** One-shot confirm for all conflicting targets; default cancel semantics via caller. */
|
|
63
|
+
confirmReplaceAll?: (targets: string[]) => Promise<boolean>;
|
|
64
|
+
/** When true, replace conflicts without prompting. */
|
|
65
|
+
replace?: boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Install skills from one agent location into other agent roots (symlink only).
|
|
69
|
+
* Collection-backed refs link to the collection skill path; local dirs link to A.
|
|
70
|
+
* Conflict handling aligns with add (best-effort); replace is confirmed once for all conflicts.
|
|
71
|
+
*/
|
|
72
|
+
export declare function installSkillsAcrossAgents(skills: Skill[], targetRoots: string[], options?: InstallAcrossAgentsOptions): Promise<{
|
|
73
|
+
count: number;
|
|
74
|
+
targetCount: number;
|
|
75
|
+
}>;
|
|
42
76
|
export declare function commandAdd(argv: string[]): Promise<void>;
|
|
43
77
|
export {};
|