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.
Files changed (52) hide show
  1. package/dist/cli/commands/index.d.ts +4 -0
  2. package/dist/cli/commands/index.d.ts.map +1 -1
  3. package/dist/cli/commands/login.d.ts +10 -0
  4. package/dist/cli/commands/login.d.ts.map +1 -0
  5. package/dist/cli/commands/logout.d.ts +9 -0
  6. package/dist/cli/commands/logout.d.ts.map +1 -0
  7. package/dist/cli/commands/publish.d.ts +32 -0
  8. package/dist/cli/commands/publish.d.ts.map +1 -0
  9. package/dist/cli/commands/uninstall.d.ts.map +1 -1
  10. package/dist/cli/commands/whoami.d.ts +9 -0
  11. package/dist/cli/commands/whoami.d.ts.map +1 -0
  12. package/dist/cli/index.js +2492 -32
  13. package/dist/core/auth-manager.d.ts +71 -0
  14. package/dist/core/auth-manager.d.ts.map +1 -0
  15. package/dist/core/config-loader.d.ts +12 -1
  16. package/dist/core/config-loader.d.ts.map +1 -1
  17. package/dist/core/extractor.d.ts +62 -0
  18. package/dist/core/extractor.d.ts.map +1 -0
  19. package/dist/core/git-resolver.d.ts +2 -0
  20. package/dist/core/git-resolver.d.ts.map +1 -1
  21. package/dist/core/http-resolver.d.ts +6 -2
  22. package/dist/core/http-resolver.d.ts.map +1 -1
  23. package/dist/core/index.d.ts +8 -0
  24. package/dist/core/index.d.ts.map +1 -1
  25. package/dist/core/install-directory.d.ts +81 -0
  26. package/dist/core/install-directory.d.ts.map +1 -0
  27. package/dist/core/installer.d.ts +4 -0
  28. package/dist/core/installer.d.ts.map +1 -1
  29. package/dist/core/publisher.d.ts +85 -0
  30. package/dist/core/publisher.d.ts.map +1 -0
  31. package/dist/core/registry-client.d.ts +141 -0
  32. package/dist/core/registry-client.d.ts.map +1 -0
  33. package/dist/core/registry-resolver.d.ts +62 -0
  34. package/dist/core/registry-resolver.d.ts.map +1 -0
  35. package/dist/core/skill-manager.d.ts +29 -0
  36. package/dist/core/skill-manager.d.ts.map +1 -1
  37. package/dist/core/skill-parser.d.ts +5 -1
  38. package/dist/core/skill-parser.d.ts.map +1 -1
  39. package/dist/core/skill-validator.d.ts +110 -0
  40. package/dist/core/skill-validator.d.ts.map +1 -0
  41. package/dist/index.js +971 -18
  42. package/dist/types/index.d.ts +30 -0
  43. package/dist/types/index.d.ts.map +1 -1
  44. package/dist/utils/git.d.ts +4 -3
  45. package/dist/utils/git.d.ts.map +1 -1
  46. package/dist/utils/index.d.ts +1 -0
  47. package/dist/utils/index.d.ts.map +1 -1
  48. package/dist/utils/registry-scope.d.ts +150 -0
  49. package/dist/utils/registry-scope.d.ts.map +1 -0
  50. package/dist/utils/registry.d.ts +22 -0
  51. package/dist/utils/registry.d.ts.map +1 -0
  52. 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,9 @@
1
+ /**
2
+ * logout command - Log out from a reskill registry
3
+ *
4
+ * Removes the token from ~/.reskillrc
5
+ */
6
+ import { Command } from 'commander';
7
+ export declare const logoutCommand: Command;
8
+ export default logoutCommand;
9
+ //# sourceMappingURL=logout.d.ts.map
@@ -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;AAKpC;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAoEzB,CAAC;AAEL,eAAe,gBAAgB,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"}