reskill 1.2.0 → 1.3.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/cli/commands/index.d.ts +4 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/login.d.ts +10 -0
- package/dist/cli/commands/login.d.ts.map +1 -0
- package/dist/cli/commands/logout.d.ts +9 -0
- package/dist/cli/commands/logout.d.ts.map +1 -0
- package/dist/cli/commands/publish.d.ts +32 -0
- package/dist/cli/commands/publish.d.ts.map +1 -0
- package/dist/cli/commands/uninstall.d.ts.map +1 -1
- package/dist/cli/commands/whoami.d.ts +9 -0
- package/dist/cli/commands/whoami.d.ts.map +1 -0
- package/dist/cli/index.js +2492 -32
- package/dist/core/auth-manager.d.ts +71 -0
- package/dist/core/auth-manager.d.ts.map +1 -0
- package/dist/core/config-loader.d.ts +12 -1
- package/dist/core/config-loader.d.ts.map +1 -1
- package/dist/core/extractor.d.ts +62 -0
- package/dist/core/extractor.d.ts.map +1 -0
- package/dist/core/git-resolver.d.ts +2 -0
- package/dist/core/git-resolver.d.ts.map +1 -1
- package/dist/core/http-resolver.d.ts +6 -2
- package/dist/core/http-resolver.d.ts.map +1 -1
- package/dist/core/index.d.ts +8 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/install-directory.d.ts +81 -0
- package/dist/core/install-directory.d.ts.map +1 -0
- package/dist/core/installer.d.ts +4 -0
- package/dist/core/installer.d.ts.map +1 -1
- package/dist/core/publisher.d.ts +85 -0
- package/dist/core/publisher.d.ts.map +1 -0
- package/dist/core/registry-client.d.ts +141 -0
- package/dist/core/registry-client.d.ts.map +1 -0
- package/dist/core/registry-resolver.d.ts +62 -0
- package/dist/core/registry-resolver.d.ts.map +1 -0
- package/dist/core/skill-manager.d.ts +29 -0
- package/dist/core/skill-manager.d.ts.map +1 -1
- package/dist/core/skill-parser.d.ts +5 -1
- package/dist/core/skill-parser.d.ts.map +1 -1
- package/dist/core/skill-validator.d.ts +110 -0
- package/dist/core/skill-validator.d.ts.map +1 -0
- package/dist/index.js +971 -18
- package/dist/types/index.d.ts +30 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/git.d.ts +4 -3
- package/dist/utils/git.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/registry-scope.d.ts +150 -0
- package/dist/utils/registry-scope.d.ts.map +1 -0
- package/dist/utils/registry.d.ts +22 -0
- package/dist/utils/registry.d.ts.map +1 -0
- package/package.json +4 -2
|
@@ -4,7 +4,11 @@ export { infoCommand } from './info.js';
|
|
|
4
4
|
export { initCommand } from './init.js';
|
|
5
5
|
export { installCommand } from './install.js';
|
|
6
6
|
export { listCommand } from './list.js';
|
|
7
|
+
export { loginCommand } from './login.js';
|
|
8
|
+
export { logoutCommand } from './logout.js';
|
|
7
9
|
export { outdatedCommand } from './outdated.js';
|
|
10
|
+
export { publishCommand } from './publish.js';
|
|
8
11
|
export { uninstallCommand } from './uninstall.js';
|
|
9
12
|
export { updateCommand } from './update.js';
|
|
13
|
+
export { whoamiCommand } from './whoami.js';
|
|
10
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* login command - Authenticate with a reskill registry
|
|
3
|
+
*
|
|
4
|
+
* Token-only login: requires a pre-generated token from Web UI.
|
|
5
|
+
* Logs in to the registry and stores the token in ~/.reskillrc
|
|
6
|
+
*/
|
|
7
|
+
import { Command } from 'commander';
|
|
8
|
+
export declare const loginCommand: Command;
|
|
9
|
+
export default loginCommand;
|
|
10
|
+
//# sourceMappingURL=login.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/login.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsFpC,eAAO,MAAM,YAAY,SAOH,CAAC;AAEvB,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/logout.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4CpC,eAAO,MAAM,aAAa,SAGH,CAAC;AAExB,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* publish command - Publish a skill to the registry
|
|
3
|
+
*
|
|
4
|
+
* Validates and publishes skill metadata to the reskill registry.
|
|
5
|
+
* Use --dry-run to validate without actually publishing.
|
|
6
|
+
*/
|
|
7
|
+
import { Command } from 'commander';
|
|
8
|
+
/**
|
|
9
|
+
* Build the full skill name for publishing
|
|
10
|
+
*
|
|
11
|
+
* Priority:
|
|
12
|
+
* 1. If name already contains scope (e.g., "@scope/name"), use as-is
|
|
13
|
+
* 2. If registry has a configured scope, use that scope
|
|
14
|
+
* 3. Throw error if no scope configured (no fallback)
|
|
15
|
+
*
|
|
16
|
+
* @param name - Skill name (may or may not include scope)
|
|
17
|
+
* @param registry - Registry URL
|
|
18
|
+
* @param _userHandle - Deprecated, no longer used (kept for backward compatibility)
|
|
19
|
+
* @returns Full skill name with scope (e.g., "@kanyun/planning-with-files")
|
|
20
|
+
* @throws Error if registry has no configured scope
|
|
21
|
+
*
|
|
22
|
+
* @internal Exported for testing
|
|
23
|
+
*/
|
|
24
|
+
export declare function buildPublishSkillName(name: string, registry: string, _userHandle?: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Check if a registry URL is a blocked public registry
|
|
27
|
+
* @internal Exported for testing
|
|
28
|
+
*/
|
|
29
|
+
export declare function isBlockedPublicRegistry(registryUrl: string): boolean;
|
|
30
|
+
export declare const publishCommand: Command;
|
|
31
|
+
export default publishCommand;
|
|
32
|
+
//# sourceMappingURL=publish.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/publish.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiDpC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,GACnB,MAAM,CAcR;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAYpE;AA4ZD,eAAO,MAAM,cAAc,SAYH,CAAC;AAEzB,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/uninstall.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/uninstall.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAgFzB,CAAC;AAEL,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* whoami command - Show current authenticated user
|
|
3
|
+
*
|
|
4
|
+
* Displays the currently logged in user for a registry
|
|
5
|
+
*/
|
|
6
|
+
import { Command } from 'commander';
|
|
7
|
+
export declare const whoamiCommand: Command;
|
|
8
|
+
export default whoamiCommand;
|
|
9
|
+
//# sourceMappingURL=whoami.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whoami.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/whoami.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmEpC,eAAO,MAAM,aAAa,SAMH,CAAC;AAExB,eAAe,aAAa,CAAC"}
|