@snap/valdi 1.0.7 → 1.0.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.
Files changed (160) hide show
  1. package/README.md +12 -3
  2. package/bundled-skills/CONTRIBUTING_SKILLS.md +74 -0
  3. package/bundled-skills/registry.json +20 -0
  4. package/bundled-skills/skills/valdi-android/skill.md +89 -0
  5. package/bundled-skills/skills/valdi-async/skill.md +246 -0
  6. package/bundled-skills/skills/valdi-async/tests/BUILD.bazel +19 -0
  7. package/bundled-skills/skills/valdi-async/tests/README.md +25 -0
  8. package/bundled-skills/skills/valdi-async/tests/src/reference.tsx +210 -0
  9. package/bundled-skills/skills/valdi-async/tests/tsconfig.json +1 -0
  10. package/bundled-skills/skills/valdi-bazel/skill.md +122 -0
  11. package/bundled-skills/skills/valdi-compiler/skill.md +108 -0
  12. package/bundled-skills/skills/valdi-component-tests/skill.md +430 -0
  13. package/bundled-skills/skills/valdi-component-tests/tests/BUILD.bazel +24 -0
  14. package/bundled-skills/skills/valdi-component-tests/tests/README.md +35 -0
  15. package/bundled-skills/skills/valdi-component-tests/tests/src/ProfileCard.tsx +38 -0
  16. package/bundled-skills/skills/valdi-component-tests/tests/test/ProfileCardTest.spec.tsx +107 -0
  17. package/bundled-skills/skills/valdi-component-tests/tests/tsconfig.json +1 -0
  18. package/bundled-skills/skills/valdi-cpp-runtime/skill.md +103 -0
  19. package/bundled-skills/skills/valdi-custom-view/skill.md +62 -0
  20. package/bundled-skills/skills/valdi-ios/skill.md +93 -0
  21. package/bundled-skills/skills/valdi-migrate/skill.md +175 -0
  22. package/bundled-skills/skills/valdi-migrate/tests/BUILD.bazel +23 -0
  23. package/bundled-skills/skills/valdi-migrate/tests/README.md +70 -0
  24. package/bundled-skills/skills/valdi-migrate/tests/check_antipatterns.py +89 -0
  25. package/bundled-skills/skills/valdi-migrate/tests/compose_example.kt +94 -0
  26. package/bundled-skills/skills/valdi-migrate/tests/flutter_example.dart +129 -0
  27. package/bundled-skills/skills/valdi-migrate/tests/react_example.tsx +98 -0
  28. package/bundled-skills/skills/valdi-migrate/tests/src/expected_valdi.tsx +267 -0
  29. package/bundled-skills/skills/valdi-migrate/tests/tsconfig.json +3 -0
  30. package/bundled-skills/skills/valdi-overview/skill.md +63 -0
  31. package/bundled-skills/skills/valdi-perf/skill.md +197 -0
  32. package/bundled-skills/skills/valdi-perf/tests/BUILD.bazel +19 -0
  33. package/bundled-skills/skills/valdi-perf/tests/README.md +26 -0
  34. package/bundled-skills/skills/valdi-perf/tests/src/reference.tsx +202 -0
  35. package/bundled-skills/skills/valdi-perf/tests/tsconfig.json +1 -0
  36. package/bundled-skills/skills/valdi-polyglot-module/skill.md +85 -0
  37. package/bundled-skills/skills/valdi-setup/skill.md +129 -0
  38. package/bundled-skills/skills/valdi-testing/skill.md +65 -0
  39. package/bundled-skills/skills/valdi-tsx/skill.md +385 -0
  40. package/bundled-skills/skills/valdi-tsx/tests/BUILD.bazel +19 -0
  41. package/bundled-skills/skills/valdi-tsx/tests/README.md +29 -0
  42. package/bundled-skills/skills/valdi-tsx/tests/src/reference.tsx +173 -0
  43. package/bundled-skills/skills/valdi-tsx/tests/tsconfig.json +1 -0
  44. package/dist/commands/bootstrap.js +0 -7
  45. package/dist/commands/newModule.js +10 -14
  46. package/dist/commands/skills.js +16 -0
  47. package/dist/commands/skills_commands/create.js +125 -0
  48. package/dist/commands/skills_commands/install.js +96 -0
  49. package/dist/commands/skills_commands/list.js +83 -0
  50. package/dist/commands/skills_commands/remove.js +41 -0
  51. package/dist/commands/skills_commands/update.js +59 -0
  52. package/dist/core/constants.js +0 -1
  53. package/dist/setup/versions.js +1 -1
  54. package/dist/utils/skillsAdapters.js +140 -0
  55. package/dist/utils/skillsRegistry.js +40 -0
  56. package/package.json +6 -1
  57. package/.bazelignore +0 -2
  58. package/.bootstrap/apps/cli_application/BUILD.bazel.template +0 -7
  59. package/.bootstrap/apps/cli_application/modules/{{MODULE_NAME}}/BUILD.bazel.template +0 -11
  60. package/.bootstrap/apps/cli_application/modules/{{MODULE_NAME}}/src/index.ts +0 -1
  61. package/.bootstrap/apps/ui_application/.eslint.rc +0 -27
  62. package/.bootstrap/apps/ui_application/BUILD.bazel.template +0 -19
  63. package/.bootstrap/apps/ui_application/modules/{{MODULE_NAME}}/BUILD.bazel.template +0 -21
  64. package/.bootstrap/apps/ui_application/modules/{{MODULE_NAME}}/res/valdi@3x.png +0 -0
  65. package/.bootstrap/apps/ui_application/modules/{{MODULE_NAME}}/src/App.tsx +0 -133
  66. package/.bootstrap/apps/ui_application/package.json +0 -24
  67. package/.bootstrap/modules/cpp_bridge_module/BUILD.bazel.template +0 -21
  68. package/.bootstrap/modules/cpp_bridge_module/cpp/CalculatorModuleFactory.cpp.template +0 -28
  69. package/.bootstrap/modules/cpp_bridge_module/src/Calculator.d.ts +0 -4
  70. package/.bootstrap/modules/ios_android_bridge_module/BUILD.bazel.template +0 -39
  71. package/.bootstrap/modules/ios_android_bridge_module/android/CalculatorModuleFactory.kt.template +0 -18
  72. package/.bootstrap/modules/ios_android_bridge_module/ios/SCCCalculatorModuleFactory.m.template +0 -31
  73. package/.bootstrap/modules/ios_android_bridge_module/src/Calculator.d.ts +0 -4
  74. package/.bootstrap/modules/ios_android_view_module/BUILD.bazel.template +0 -41
  75. package/.bootstrap/modules/ios_android_view_module/android/CircleView.kt.template +0 -42
  76. package/.bootstrap/modules/ios_android_view_module/android/CircleViewAttributesBinder.kt.template +0 -60
  77. package/.bootstrap/modules/ios_android_view_module/ios/SCCCircleView.h +0 -6
  78. package/.bootstrap/modules/ios_android_view_module/ios/SCCCircleView.m +0 -82
  79. package/.bootstrap/modules/ios_android_view_module/src/Circle.tsx.template +0 -15
  80. package/.bootstrap/modules/ui_component/BUILD.bazel.template +0 -34
  81. package/.bootstrap/modules/ui_component/src/NewModuleComponent.tsx +0 -45
  82. package/.config/copyconfig.json +0 -10
  83. package/.editorconfig +0 -21
  84. package/.eslintignore +0 -1
  85. package/.eslintrc.js +0 -72
  86. package/.github/README.md +0 -164
  87. package/.metadata/.bazelrc.template +0 -91
  88. package/.metadata/.bazelversion.template +0 -1
  89. package/.metadata/.cursorrules.template +0 -60
  90. package/.metadata/.editorconfig.template +0 -37
  91. package/.metadata/.eslintrc.js.template +0 -27
  92. package/.metadata/.gitignore.template +0 -4
  93. package/.metadata/.prettierrc.json.template +0 -7
  94. package/.metadata/.watchmanconfig.template +0 -8
  95. package/.metadata/AGENTS.md.template +0 -282
  96. package/.metadata/README.md.template +0 -31
  97. package/.metadata/WORKSPACE.template +0 -57
  98. package/.metadata/config.yaml.template +0 -1
  99. package/.metadata/package.json.template +0 -23
  100. package/.prettierignore +0 -2
  101. package/.prettierrc.json +0 -7
  102. package/LINUX_COMPATIBILITY.md +0 -248
  103. package/prettier.config.js +0 -4
  104. package/scripts/sync-agents-md.sh +0 -44
  105. package/scripts/update-agents-templates.ts +0 -170
  106. package/spec/support/jasmine.json +0 -6
  107. package/src/commands/bootstrap.ts +0 -410
  108. package/src/commands/build.ts +0 -89
  109. package/src/commands/devSetup.ts +0 -17
  110. package/src/commands/doctor.ts +0 -1832
  111. package/src/commands/export.ts +0 -131
  112. package/src/commands/hotreload.ts +0 -108
  113. package/src/commands/install.ts +0 -93
  114. package/src/commands/lint.ts +0 -15
  115. package/src/commands/lint_commands/lintCheck.ts +0 -53
  116. package/src/commands/lint_commands/lintFormat.ts +0 -49
  117. package/src/commands/log.ts +0 -108
  118. package/src/commands/newModule.ts +0 -286
  119. package/src/commands/package.ts +0 -102
  120. package/src/commands/projectsync.ts +0 -488
  121. package/src/commands/test.ts +0 -68
  122. package/src/core/constants.ts +0 -98
  123. package/src/core/errors.ts +0 -10
  124. package/src/index.ts +0 -27
  125. package/src/setup/DevSetupHelper.ts +0 -290
  126. package/src/setup/linuxSetup.ts +0 -261
  127. package/src/setup/macOSSetup.ts +0 -156
  128. package/src/setup/setupEntryPoint.ts +0 -64
  129. package/src/setup/versions.ts +0 -8
  130. package/src/utils/ArgumentsResolver.ts +0 -23
  131. package/src/utils/BazelClient.ts +0 -285
  132. package/src/utils/Digraph.ts +0 -81
  133. package/src/utils/LoadingIndicator.ts +0 -43
  134. package/src/utils/applicationUtils.ts +0 -276
  135. package/src/utils/buildInfo.ts +0 -99
  136. package/src/utils/byString.ts +0 -3
  137. package/src/utils/cliUtils.ts +0 -112
  138. package/src/utils/copyBootstrapFiles.ts +0 -30
  139. package/src/utils/deviceUtils.ts +0 -76
  140. package/src/utils/errorUtils.ts +0 -63
  141. package/src/utils/fileUtils.ts +0 -257
  142. package/src/utils/githubUtils.ts +0 -102
  143. package/src/utils/jsonUtils.ts +0 -30
  144. package/src/utils/lintUtils.ts +0 -190
  145. package/src/utils/linuxDistro.spec.ts +0 -219
  146. package/src/utils/linuxDistro.ts +0 -326
  147. package/src/utils/logUtils.ts +0 -9
  148. package/src/utils/pathUtils.ts +0 -12
  149. package/src/utils/stringUtils.spec.ts +0 -95
  150. package/src/utils/stringUtils.ts +0 -103
  151. package/src/utils/tempDir.ts +0 -24
  152. package/src/utils/zipUtils.ts +0 -14
  153. package/test/ValdiSmokeTest.ts +0 -279
  154. package/test/helpers/AsyncHelpers.ts +0 -113
  155. package/test/helpers/CommandHelpers.ts +0 -37
  156. package/test/helpers/ProjectHelpers.ts +0 -153
  157. package/test/helpers/StreamHelpers.ts +0 -37
  158. package/test/helpers/TypeScriptClient.ts +0 -217
  159. package/tsconfig.dist.json +0 -8
  160. package/tsconfig.json +0 -42
@@ -30,9 +30,10 @@ my_application/ # Root directory of your application
30
30
  └── modules/
31
31
  ├── module_a/
32
32
  │ ├── BUILD.bazel
33
- │ ├── android/ # Native Android sources
34
- │ ├── ios/ # Native iOS sources
35
- │ ├── cpp/ # Native C++ sources
33
+ │ ├── android/ # Native Android sources (Kotlin)
34
+ │ ├── ios/ # Native iOS sources (Objective-C)
35
+ │ ├── macos/ # Native macOS sources (Objective-C)
36
+ │ ├── web/ # Web sources (TypeScript, compiled by tsc)
36
37
  │ └── src/ # Valdi sources
37
38
  │ └── ModuleAComponent.tsx
38
39
  ├── module_b/
@@ -54,19 +55,14 @@ const ALL_MODULE_TEMPLATES = [
54
55
  description: `Exports a Valdi component, which can render UI elements`,
55
56
  },
56
57
  {
57
- name: 'iOS/Android Bridge module',
58
- path: 'ios_android_bridge_module',
59
- description: `Bridge module with a TypeScript API backed by Objective-C and Kotlin implementation`,
58
+ name: 'Polyglot Bridge module',
59
+ path: 'polyglot_bridge_module',
60
+ description: `Bridge module with a TypeScript API backed by Kotlin (Android), Objective-C (iOS), and TypeScript (Web/macOS)`,
60
61
  },
61
62
  {
62
- name: 'C++ Bridge module',
63
- path: 'cpp_bridge_module',
64
- description: `Bridge module with a TypeScript API backed by a cross-platform C++ implementation`,
65
- },
66
- {
67
- name: 'iOS/Android View module',
68
- path: 'ios_android_view_module',
69
- description: `iOS and Android view exported to TypeScript, rendered through a Valdi component`,
63
+ name: 'Polyglot View module',
64
+ path: 'polyglot_view_module',
65
+ description: `Native view with <custom-view> implementations for all platforms: Android, iOS, macOS, and Web`,
70
66
  },
71
67
  ];
72
68
  async function promptChecks() {
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handler = exports.builder = exports.describe = exports.command = void 0;
4
+ exports.command = 'skills <command>';
5
+ exports.describe = 'Manage AI assistant skills for Valdi development';
6
+ const builder = (yargs) => {
7
+ return yargs
8
+ .commandDir('skills_commands', { extensions: ['js', 'ts'] })
9
+ .demandCommand(1, 'Use list, install, update, remove, or add')
10
+ .recommendCommands()
11
+ .wrap(yargs.terminalWidth())
12
+ .help();
13
+ };
14
+ exports.builder = builder;
15
+ const handler = () => { };
16
+ exports.handler = handler;
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handler = exports.builder = exports.describe = exports.command = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const fs = tslib_1.__importStar(require("fs"));
6
+ const path = tslib_1.__importStar(require("path"));
7
+ const inquirer_1 = tslib_1.__importDefault(require("inquirer"));
8
+ const errorUtils_1 = require("../../utils/errorUtils");
9
+ const constants_1 = require("../../core/constants");
10
+ const logUtils_1 = require("../../utils/logUtils");
11
+ function loadTemplate(filename, replacements) {
12
+ const raw = fs.readFileSync(path.join(constants_1.META_DIR_PATH, filename), 'utf8');
13
+ return Object.entries(replacements).reduce((content, [key, value]) => content.replaceAll(key, value), raw);
14
+ }
15
+ function toIosModuleName(skillName) {
16
+ const pascal = skillName
17
+ .split('-')
18
+ .map((w) => w.charAt(0).toUpperCase() + w.slice(1))
19
+ .join('');
20
+ return `SCCValdi${pascal}Ref`;
21
+ }
22
+ function findValdiRoot(dir) {
23
+ let current = path.resolve(dir);
24
+ while (true) {
25
+ if (fs.existsSync(path.join(current, 'ai-skills', 'registry.json'))) {
26
+ return current;
27
+ }
28
+ const parent = path.dirname(current);
29
+ if (parent === current)
30
+ return null;
31
+ current = parent;
32
+ }
33
+ }
34
+ async function skillsCreate(_argv) {
35
+ const valdiRoot = findValdiRoot(process.cwd());
36
+ if (valdiRoot == null) {
37
+ console.log((0, logUtils_1.wrapInColor)('Not inside a Valdi framework checkout. Run this command from within the Valdi repo.', constants_1.ANSI_COLORS.RED_COLOR));
38
+ console.log('Expected to find ai-skills/registry.json in the current directory or a parent.');
39
+ return;
40
+ }
41
+ const skillsDir = path.join(valdiRoot, 'ai-skills', 'skills');
42
+ const registryPath = path.join(valdiRoot, 'ai-skills', 'registry.json');
43
+ console.log((0, logUtils_1.wrapInColor)(`Valdi root: ${valdiRoot}\n`, constants_1.ANSI_COLORS.GRAY_COLOR));
44
+ console.log((0, logUtils_1.wrapInColor)('Create a new Valdi skill\n', constants_1.ANSI_COLORS.BLUE_COLOR));
45
+ const answers = await inquirer_1.default.prompt([
46
+ {
47
+ type: 'input',
48
+ name: 'name',
49
+ message: 'Skill name (e.g. valdi-animations):',
50
+ validate: (input) => {
51
+ if (!input.trim())
52
+ return 'Name is required';
53
+ if (!/^[\w-]+$/u.test(input.trim()))
54
+ return 'Name must be alphanumeric with hyphens only';
55
+ const existing = fs.existsSync(path.join(skillsDir, input.trim()));
56
+ if (existing)
57
+ return `Skill "${input.trim()}" already exists`;
58
+ return true;
59
+ },
60
+ filter: (input) => input.trim(),
61
+ },
62
+ {
63
+ type: 'input',
64
+ name: 'description',
65
+ message: 'Short description (one sentence):',
66
+ validate: (input) => (input.trim() ? true : 'Description is required'),
67
+ filter: (input) => input.trim(),
68
+ },
69
+ {
70
+ type: 'checkbox',
71
+ name: 'category',
72
+ message: 'Category (select all that apply):',
73
+ choices: [
74
+ { name: 'client — creating / updating / testing Valdi modules', value: 'client', checked: true },
75
+ { name: 'framework — working on the Valdi repo itself', value: 'framework' },
76
+ ],
77
+ validate: (input) => (input.length > 0 ? true : 'Select at least one category'),
78
+ },
79
+ {
80
+ type: 'input',
81
+ name: 'tags',
82
+ message: 'Tags (comma-separated, e.g. tsx,components):',
83
+ filter: (input) => input
84
+ .split(',')
85
+ .map((t) => t.trim())
86
+ .filter(Boolean)
87
+ .join(','),
88
+ },
89
+ ]);
90
+ const { name, description, category, tags } = answers;
91
+ const tagList = tags ? tags.split(',') : [];
92
+ const skillDir = path.join(skillsDir, name);
93
+ const skillFile = path.join(skillDir, 'skill.md');
94
+ const skillPath = `skills/${name}/skill.md`;
95
+ const testsDir = path.join(skillDir, 'tests');
96
+ const testsSrcDir = path.join(testsDir, 'src');
97
+ fs.mkdirSync(skillDir, { recursive: true });
98
+ fs.writeFileSync(skillFile, loadTemplate('skill.md.template', { SKILL_NAME: name, SKILL_DESCRIPTION: description }), 'utf8');
99
+ fs.mkdirSync(testsSrcDir, { recursive: true });
100
+ fs.writeFileSync(path.join(testsSrcDir, 'reference.tsx'), loadTemplate('skill-reference.tsx.template', { SKILL_NAME: name }), 'utf8');
101
+ fs.writeFileSync(path.join(testsDir, 'BUILD.bazel'), loadTemplate('skill-tests-BUILD.bazel.template', {
102
+ SKILL_NAME: name,
103
+ SKILL_IOS_MODULE_NAME: toIosModuleName(name),
104
+ }), 'utf8');
105
+ fs.writeFileSync(path.join(testsDir, 'tsconfig.json'), '{"extends": "../../../../src/valdi_modules/src/valdi/_configs/base.tsconfig.json"}\n', 'utf8');
106
+ fs.writeFileSync(path.join(testsDir, 'README.md'), loadTemplate('skill-tests-README.md.template', { SKILL_NAME: name }), 'utf8');
107
+ const registry = JSON.parse(fs.readFileSync(registryPath, 'utf8'));
108
+ const entry = { name, description, tags: tagList, path: skillPath, category };
109
+ registry.skills.push(entry);
110
+ fs.writeFileSync(registryPath, JSON.stringify(registry, null, 2) + '\n', 'utf8');
111
+ console.log(`\n${(0, logUtils_1.wrapInColor)('Created:', constants_1.ANSI_COLORS.GREEN_COLOR)} ${skillFile}`);
112
+ console.log(`${(0, logUtils_1.wrapInColor)('Created:', constants_1.ANSI_COLORS.GREEN_COLOR)} ${testsDir}/`);
113
+ console.log(`${(0, logUtils_1.wrapInColor)('Registered:', constants_1.ANSI_COLORS.GREEN_COLOR)} ${registryPath}`);
114
+ console.log(`\nNext steps:`);
115
+ console.log(` 1. Edit ${(0, logUtils_1.wrapInColor)(skillFile, constants_1.ANSI_COLORS.BLUE_COLOR)} — fill in the skill content`);
116
+ console.log(` 2. Edit ${(0, logUtils_1.wrapInColor)(path.join(testsDir, 'src', 'reference.tsx'), constants_1.ANSI_COLORS.BLUE_COLOR)} — add compile-check examples`);
117
+ console.log(` 3. Run ${(0, logUtils_1.wrapInColor)(`bazel build //ai-skills/skills/${name}/tests:tests`, constants_1.ANSI_COLORS.BLUE_COLOR)} to verify the reference compiles`);
118
+ console.log(` 4. Run ${(0, logUtils_1.wrapInColor)('valdi skills install', constants_1.ANSI_COLORS.BLUE_COLOR)} to test the skill locally`);
119
+ console.log(` 5. Open a PR against the Valdi repo to share it with the community`);
120
+ }
121
+ exports.command = 'create';
122
+ exports.describe = 'Scaffold a new skill in the Valdi framework checkout';
123
+ const builder = (_yargs) => { };
124
+ exports.builder = builder;
125
+ exports.handler = (0, errorUtils_1.makeCommandHandler)(skillsCreate);
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handler = exports.builder = exports.describe = exports.command = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ora_1 = tslib_1.__importDefault(require("ora"));
6
+ const errorUtils_1 = require("../../utils/errorUtils");
7
+ const skillsRegistry_1 = require("../../utils/skillsRegistry");
8
+ const skillsAdapters_1 = require("../../utils/skillsAdapters");
9
+ const constants_1 = require("../../core/constants");
10
+ const logUtils_1 = require("../../utils/logUtils");
11
+ async function skillsInstall(argv) {
12
+ const skillName = argv.getArgument('name');
13
+ const forAgent = argv.getArgument('for');
14
+ const categoryFilter = argv.getArgument('category');
15
+ let registry;
16
+ try {
17
+ registry = await (0, skillsRegistry_1.fetchRegistry)();
18
+ }
19
+ catch (error) {
20
+ console.log((0, logUtils_1.wrapInColor)(`Could not load skills: ${error instanceof Error ? error.message : String(error)}`, constants_1.ANSI_COLORS.RED_COLOR));
21
+ return;
22
+ }
23
+ let skillsToInstall = skillName
24
+ ? registry.skills.filter((s) => s.name === skillName)
25
+ : registry.skills;
26
+ if (skillName && skillsToInstall.length === 0) {
27
+ console.log((0, logUtils_1.wrapInColor)(`Skill "${skillName}" not found in registry.`, constants_1.ANSI_COLORS.RED_COLOR));
28
+ console.log(`Run ${(0, logUtils_1.wrapInColor)('valdi skills list', constants_1.ANSI_COLORS.BLUE_COLOR)} to see available skills.`);
29
+ return;
30
+ }
31
+ if (categoryFilter) {
32
+ skillsToInstall = skillsToInstall.filter((s) => s.category.includes(categoryFilter));
33
+ if (skillsToInstall.length === 0) {
34
+ console.log((0, logUtils_1.wrapInColor)(`No skills found for category "${categoryFilter}".`, constants_1.ANSI_COLORS.YELLOW_COLOR));
35
+ return;
36
+ }
37
+ }
38
+ let adapters = (0, skillsAdapters_1.detectAdapters)().filter((a) => a.name !== 'generic');
39
+ if (forAgent) {
40
+ if (forAgent === 'all') {
41
+ }
42
+ else {
43
+ const specific = (0, skillsAdapters_1.getAdapterByName)(forAgent);
44
+ if (!specific) {
45
+ console.log((0, logUtils_1.wrapInColor)(`Unknown agent "${forAgent}". Valid options: claude, cursor, copilot, all`, constants_1.ANSI_COLORS.RED_COLOR));
46
+ return;
47
+ }
48
+ adapters = [specific];
49
+ }
50
+ }
51
+ if (adapters.length === 0) {
52
+ console.log((0, logUtils_1.wrapInColor)('No supported AI agents detected.', constants_1.ANSI_COLORS.YELLOW_COLOR));
53
+ console.log('Use --for=claude, --for=cursor, or --for=copilot to install for a specific agent.');
54
+ return;
55
+ }
56
+ console.log(`Installing ${(0, logUtils_1.wrapInColor)(String(skillsToInstall.length), constants_1.ANSI_COLORS.GREEN_COLOR)} skill(s) for: ${(0, logUtils_1.wrapInColor)(adapters.map((a) => a.name).join(', '), constants_1.ANSI_COLORS.BLUE_COLOR)}\n`);
57
+ for (const skill of skillsToInstall) {
58
+ const installSpinner = (0, ora_1.default)(`Installing ${skill.name}…`).start();
59
+ try {
60
+ const content = await (0, skillsRegistry_1.fetchSkillContent)(skill.path);
61
+ for (const adapter of adapters) {
62
+ adapter.install(skill.name, content, skill);
63
+ }
64
+ installSpinner.succeed(`Installed ${(0, logUtils_1.wrapInColor)(skill.name, constants_1.ANSI_COLORS.GREEN_COLOR)}`);
65
+ }
66
+ catch (error) {
67
+ const message = error instanceof Error ? error.message : String(error);
68
+ installSpinner.fail(`Failed to install ${skill.name}: ${message}`);
69
+ }
70
+ }
71
+ console.log(`\nDone. Run ${(0, logUtils_1.wrapInColor)('valdi skills list', constants_1.ANSI_COLORS.BLUE_COLOR)} to see installed skills.`);
72
+ if (!categoryFilter) {
73
+ console.log(`Tip: install only module-development skills with ${(0, logUtils_1.wrapInColor)('valdi skills install --category=client', constants_1.ANSI_COLORS.BLUE_COLOR)}`);
74
+ }
75
+ }
76
+ exports.command = 'install [name]';
77
+ exports.describe = 'Install skills for detected AI agents (--category=framework|client to filter)';
78
+ const builder = (yargs) => {
79
+ yargs
80
+ .positional('name', {
81
+ describe: 'Skill name to install (omit to install all)',
82
+ type: 'string',
83
+ })
84
+ .option('for', {
85
+ describe: 'Target agent to install for',
86
+ type: 'string',
87
+ choices: ['claude', 'cursor', 'copilot', 'all'],
88
+ })
89
+ .option('category', {
90
+ describe: 'Only install skills in this category',
91
+ type: 'string',
92
+ choices: ['framework', 'client'],
93
+ });
94
+ };
95
+ exports.builder = builder;
96
+ exports.handler = (0, errorUtils_1.makeCommandHandler)(skillsInstall);
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handler = exports.builder = exports.describe = exports.command = void 0;
4
+ const errorUtils_1 = require("../../utils/errorUtils");
5
+ const skillsRegistry_1 = require("../../utils/skillsRegistry");
6
+ const skillsAdapters_1 = require("../../utils/skillsAdapters");
7
+ const constants_1 = require("../../core/constants");
8
+ const logUtils_1 = require("../../utils/logUtils");
9
+ async function skillsList(argv) {
10
+ const categoryFilter = argv.getArgument('category');
11
+ let registry;
12
+ try {
13
+ registry = await (0, skillsRegistry_1.fetchRegistry)();
14
+ }
15
+ catch (error) {
16
+ console.log((0, logUtils_1.wrapInColor)(`Could not load skills: ${error instanceof Error ? error.message : String(error)}`, constants_1.ANSI_COLORS.RED_COLOR));
17
+ return;
18
+ }
19
+ const adapters = (0, skillsAdapters_1.detectAdapters)();
20
+ const adapterNames = adapters.map((a) => a.name);
21
+ const installedByAdapter = new Map();
22
+ for (const adapter of adapters) {
23
+ installedByAdapter.set(adapter.name, new Set(adapter.listInstalled()));
24
+ }
25
+ const skills = categoryFilter
26
+ ? registry.skills.filter((s) => s.category.includes(categoryFilter))
27
+ : registry.skills;
28
+ if (categoryFilter && skills.length === 0) {
29
+ console.log((0, logUtils_1.wrapInColor)(`No skills found for category "${categoryFilter}".`, constants_1.ANSI_COLORS.YELLOW_COLOR));
30
+ return;
31
+ }
32
+ const nameWidth = 28;
33
+ const catWidth = 18;
34
+ const descWidth = 44;
35
+ const colWidth = 8;
36
+ const headerParts = [
37
+ 'NAME'.padEnd(nameWidth),
38
+ 'CATEGORY'.padEnd(catWidth),
39
+ 'DESCRIPTION'.padEnd(descWidth),
40
+ ...adapterNames.map((n) => n.toUpperCase().padEnd(colWidth)),
41
+ ];
42
+ console.log((0, logUtils_1.wrapInColor)(headerParts.join(' '), constants_1.ANSI_COLORS.GRAY_COLOR));
43
+ console.log((0, logUtils_1.wrapInColor)('-'.repeat(nameWidth + catWidth + descWidth + adapterNames.length * (colWidth + 2) + 4), constants_1.ANSI_COLORS.GRAY_COLOR));
44
+ const categories = [...new Set(skills.flatMap((s) => s.category))];
45
+ for (const cat of categories) {
46
+ const group = skills.filter((s) => s.category.includes(cat));
47
+ if (categories.length > 1) {
48
+ console.log((0, logUtils_1.wrapInColor)(`\n[${cat}]`, constants_1.ANSI_COLORS.BLUE_COLOR));
49
+ }
50
+ for (const skill of group) {
51
+ const name = skill.name.padEnd(nameWidth);
52
+ const category = skill.category.join(', ').padEnd(catWidth);
53
+ const desc = skill.description.length > descWidth - 1
54
+ ? skill.description.slice(0, descWidth - 1) + '…'
55
+ : skill.description.padEnd(descWidth);
56
+ const statusCols = adapterNames.map((adapterName) => {
57
+ const installed = installedByAdapter.get(adapterName)?.has(skill.name) ?? false;
58
+ const mark = installed
59
+ ? (0, logUtils_1.wrapInColor)('✓', constants_1.ANSI_COLORS.GREEN_COLOR)
60
+ : (0, logUtils_1.wrapInColor)('-', constants_1.ANSI_COLORS.GRAY_COLOR);
61
+ return mark.padEnd(colWidth);
62
+ });
63
+ console.log([name, category, desc, ...statusCols].join(' '));
64
+ }
65
+ }
66
+ console.log(`\n${(0, logUtils_1.wrapInColor)(`${skills.length} skill(s) available`, constants_1.ANSI_COLORS.GRAY_COLOR)}` +
67
+ ` Detected agents: ${(0, logUtils_1.wrapInColor)(adapterNames.join(', '), constants_1.ANSI_COLORS.GREEN_COLOR)}`);
68
+ console.log(`\nInstall a skill: ${(0, logUtils_1.wrapInColor)('valdi skills install <name>', constants_1.ANSI_COLORS.BLUE_COLOR)}`);
69
+ if (!categoryFilter) {
70
+ console.log(`Filter by category: ${(0, logUtils_1.wrapInColor)('valdi skills list --category=framework', constants_1.ANSI_COLORS.BLUE_COLOR)}`);
71
+ }
72
+ }
73
+ exports.command = 'list';
74
+ exports.describe = 'List available skills and their installation status';
75
+ const builder = (yargs) => {
76
+ yargs.option('category', {
77
+ describe: 'Filter by category (framework, client)',
78
+ type: 'string',
79
+ choices: ['framework', 'client'],
80
+ });
81
+ };
82
+ exports.builder = builder;
83
+ exports.handler = (0, errorUtils_1.makeCommandHandler)(skillsList);
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handler = exports.builder = exports.describe = exports.command = void 0;
4
+ const errorUtils_1 = require("../../utils/errorUtils");
5
+ const skillsAdapters_1 = require("../../utils/skillsAdapters");
6
+ const constants_1 = require("../../core/constants");
7
+ const logUtils_1 = require("../../utils/logUtils");
8
+ async function skillsRemove(argv) {
9
+ const skillName = argv.getArgument('name');
10
+ const adapters = (0, skillsAdapters_1.detectAdapters)();
11
+ let removedFromAny = false;
12
+ for (const adapter of adapters) {
13
+ const installed = adapter.listInstalled();
14
+ if (installed.includes(skillName)) {
15
+ try {
16
+ adapter.remove(skillName);
17
+ console.log(`Removed ${(0, logUtils_1.wrapInColor)(skillName, constants_1.ANSI_COLORS.GREEN_COLOR)} from ${(0, logUtils_1.wrapInColor)(adapter.name, constants_1.ANSI_COLORS.BLUE_COLOR)}`);
18
+ removedFromAny = true;
19
+ }
20
+ catch (error) {
21
+ const message = error instanceof Error ? error.message : String(error);
22
+ console.log((0, logUtils_1.wrapInColor)(`Failed to remove ${skillName} from ${adapter.name}: ${message}`, constants_1.ANSI_COLORS.RED_COLOR));
23
+ }
24
+ }
25
+ }
26
+ if (!removedFromAny) {
27
+ console.log((0, logUtils_1.wrapInColor)(`Skill "${skillName}" is not installed for any detected agent.`, constants_1.ANSI_COLORS.YELLOW_COLOR));
28
+ console.log(`Run ${(0, logUtils_1.wrapInColor)('valdi skills list', constants_1.ANSI_COLORS.BLUE_COLOR)} to see installed skills.`);
29
+ }
30
+ }
31
+ exports.command = 'remove <name>';
32
+ exports.describe = 'Remove a skill from all detected AI agents';
33
+ const builder = (yargs) => {
34
+ yargs.positional('name', {
35
+ describe: 'Name of the skill to remove',
36
+ type: 'string',
37
+ demandOption: true,
38
+ });
39
+ };
40
+ exports.builder = builder;
41
+ exports.handler = (0, errorUtils_1.makeCommandHandler)(skillsRemove);
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handler = exports.builder = exports.describe = exports.command = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ora_1 = tslib_1.__importDefault(require("ora"));
6
+ const errorUtils_1 = require("../../utils/errorUtils");
7
+ const skillsRegistry_1 = require("../../utils/skillsRegistry");
8
+ const skillsAdapters_1 = require("../../utils/skillsAdapters");
9
+ const constants_1 = require("../../core/constants");
10
+ const logUtils_1 = require("../../utils/logUtils");
11
+ async function skillsUpdate(_argv) {
12
+ const adapters = (0, skillsAdapters_1.detectAdapters)().filter((a) => a.name !== 'generic');
13
+ if (adapters.length === 0) {
14
+ console.log((0, logUtils_1.wrapInColor)('No supported AI agents detected. Nothing to update.', constants_1.ANSI_COLORS.YELLOW_COLOR));
15
+ return;
16
+ }
17
+ let registry;
18
+ try {
19
+ registry = await (0, skillsRegistry_1.fetchRegistry)();
20
+ }
21
+ catch (error) {
22
+ console.log((0, logUtils_1.wrapInColor)(`Could not load skills: ${error instanceof Error ? error.message : String(error)}`, constants_1.ANSI_COLORS.RED_COLOR));
23
+ return;
24
+ }
25
+ const installedSkillNames = new Set();
26
+ for (const adapter of adapters) {
27
+ for (const skillName of adapter.listInstalled()) {
28
+ installedSkillNames.add(skillName);
29
+ }
30
+ }
31
+ const skillsToUpdate = registry.skills.filter((s) => installedSkillNames.has(s.name));
32
+ if (skillsToUpdate.length === 0) {
33
+ console.log('No installed skills found to update.');
34
+ console.log(`Run ${(0, logUtils_1.wrapInColor)('valdi skills install', constants_1.ANSI_COLORS.BLUE_COLOR)} to install skills.`);
35
+ return;
36
+ }
37
+ console.log(`\nUpdating ${(0, logUtils_1.wrapInColor)(String(skillsToUpdate.length), constants_1.ANSI_COLORS.GREEN_COLOR)} installed skill(s) for: ${(0, logUtils_1.wrapInColor)(adapters.map((a) => a.name).join(', '), constants_1.ANSI_COLORS.BLUE_COLOR)}\n`);
38
+ for (const skill of skillsToUpdate) {
39
+ const updateSpinner = (0, ora_1.default)(`Updating ${skill.name}…`).start();
40
+ try {
41
+ const content = await (0, skillsRegistry_1.fetchSkillContent)(skill.path);
42
+ for (const adapter of adapters) {
43
+ if (adapter.listInstalled().includes(skill.name)) {
44
+ adapter.install(skill.name, content, skill);
45
+ }
46
+ }
47
+ updateSpinner.succeed(`Updated ${(0, logUtils_1.wrapInColor)(skill.name, constants_1.ANSI_COLORS.GREEN_COLOR)}`);
48
+ }
49
+ catch (error) {
50
+ updateSpinner.fail(`Failed to update ${skill.name}: ${error instanceof Error ? error.message : String(error)}`);
51
+ }
52
+ }
53
+ console.log(`\nAll installed skills updated.`);
54
+ }
55
+ exports.command = 'update';
56
+ exports.describe = 'Re-install all currently installed skills from the bundled package';
57
+ const builder = (_yargs) => { };
58
+ exports.builder = builder;
59
+ exports.handler = (0, errorUtils_1.makeCommandHandler)(skillsUpdate);
@@ -42,7 +42,6 @@ var TEMPLATE_BASE_PATHS;
42
42
  TEMPLATE_BASE_PATHS["WATCHMAN_CONFIG"] = ".watchmanconfig.template";
43
43
  TEMPLATE_BASE_PATHS["GIT_IGNORE"] = ".gitignore.template";
44
44
  TEMPLATE_BASE_PATHS["EDITOR_CONFIG"] = ".editorconfig.template";
45
- TEMPLATE_BASE_PATHS["CURSOR_RULES"] = ".cursorrules.template";
46
45
  TEMPLATE_BASE_PATHS["AGENTS"] = "AGENTS.md.template";
47
46
  })(TEMPLATE_BASE_PATHS || (exports.TEMPLATE_BASE_PATHS = TEMPLATE_BASE_PATHS = {}));
48
47
  exports.VALID_PLATFORMS = [PLATFORM.ANDROID, PLATFORM.IOS, PLATFORM.MACOS, PLATFORM.CLI];
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ANDROID_LINUX_COMMANDLINE_TOOLS = exports.ANDROID_MACOS_COMMANDLINE_TOOLS = exports.ANDROID_PLATFORM_VERSION = exports.ANDROID_NDK_VERSION = exports.ANDROID_BUILD_TOOLS_VERSION = void 0;
4
4
  exports.ANDROID_BUILD_TOOLS_VERSION = '34.0.0';
5
5
  exports.ANDROID_NDK_VERSION = '25.2.9519653';
6
- exports.ANDROID_PLATFORM_VERSION = 'android-35';
6
+ exports.ANDROID_PLATFORM_VERSION = 'android-36';
7
7
  exports.ANDROID_MACOS_COMMANDLINE_TOOLS = 'https://dl.google.com/android/repository/commandlinetools-mac-13114758_latest.zip';
8
8
  exports.ANDROID_LINUX_COMMANDLINE_TOOLS = 'https://dl.google.com/android/repository/commandlinetools-linux-13114758_latest.zip';
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ALL_ADAPTERS = void 0;
4
+ exports.detectAdapters = detectAdapters;
5
+ exports.getAdapterByName = getAdapterByName;
6
+ const tslib_1 = require("tslib");
7
+ const fs = tslib_1.__importStar(require("fs"));
8
+ const path = tslib_1.__importStar(require("path"));
9
+ const os = tslib_1.__importStar(require("os"));
10
+ const ClaudeCodeAdapter = {
11
+ name: 'claude',
12
+ detect() {
13
+ const claudeDir = path.join(os.homedir(), '.claude');
14
+ return fs.existsSync(claudeDir);
15
+ },
16
+ install(skillName, content, meta) {
17
+ const skillDir = path.join(os.homedir(), '.claude', 'plugins', 'valdi', 'skills', skillName);
18
+ fs.mkdirSync(skillDir, { recursive: true });
19
+ const frontmatter = `---\nname: ${meta.name}\ndescription: ${meta.description}\n---\n\n`;
20
+ fs.writeFileSync(path.join(skillDir, 'SKILL.md'), frontmatter + content, 'utf8');
21
+ },
22
+ remove(skillName) {
23
+ const skillDir = path.join(os.homedir(), '.claude', 'plugins', 'valdi', 'skills', skillName);
24
+ if (fs.existsSync(skillDir)) {
25
+ fs.rmSync(skillDir, { recursive: true, force: true });
26
+ }
27
+ },
28
+ listInstalled() {
29
+ const skillsDir = path.join(os.homedir(), '.claude', 'plugins', 'valdi', 'skills');
30
+ if (!fs.existsSync(skillsDir))
31
+ return [];
32
+ return fs
33
+ .readdirSync(skillsDir)
34
+ .filter((entry) => fs.statSync(path.join(skillsDir, entry)).isDirectory());
35
+ },
36
+ };
37
+ const CursorAdapter = {
38
+ name: 'cursor',
39
+ detect() {
40
+ const cursorDir = path.join(os.homedir(), '.cursor');
41
+ return fs.existsSync(cursorDir);
42
+ },
43
+ install(skillName, content, meta) {
44
+ const rulesDir = path.join(os.homedir(), '.cursor', 'rules');
45
+ fs.mkdirSync(rulesDir, { recursive: true });
46
+ const frontmatter = `---\ndescription: ${meta.description}\nalwaysApply: false\n---\n\n`;
47
+ fs.writeFileSync(path.join(rulesDir, `valdi-${skillName}.mdc`), frontmatter + content, 'utf8');
48
+ },
49
+ remove(skillName) {
50
+ const filePath = path.join(os.homedir(), '.cursor', 'rules', `valdi-${skillName}.mdc`);
51
+ if (fs.existsSync(filePath)) {
52
+ fs.unlinkSync(filePath);
53
+ }
54
+ },
55
+ listInstalled() {
56
+ const rulesDir = path.join(os.homedir(), '.cursor', 'rules');
57
+ if (!fs.existsSync(rulesDir))
58
+ return [];
59
+ return fs
60
+ .readdirSync(rulesDir)
61
+ .filter((f) => f.startsWith('valdi-') && f.endsWith('.mdc'))
62
+ .map((f) => f.replace(/^valdi-/u, '').replace(/\.mdc$/u, ''));
63
+ },
64
+ };
65
+ const CopilotAdapter = {
66
+ name: 'copilot',
67
+ detect() {
68
+ const githubDir = path.join(process.cwd(), '.github');
69
+ return fs.existsSync(githubDir);
70
+ },
71
+ install(skillName, content, _meta) {
72
+ const githubDir = path.join(process.cwd(), '.github');
73
+ fs.mkdirSync(githubDir, { recursive: true });
74
+ const instructionsFile = path.join(githubDir, 'copilot-instructions.md');
75
+ const section = `\n\n## ${skillName}\n\n${content}`;
76
+ if (fs.existsSync(instructionsFile)) {
77
+ fs.appendFileSync(instructionsFile, section, 'utf8');
78
+ }
79
+ else {
80
+ fs.writeFileSync(instructionsFile, `# Copilot Instructions${section}`, 'utf8');
81
+ }
82
+ },
83
+ remove(skillName) {
84
+ const instructionsFile = path.join(process.cwd(), '.github', 'copilot-instructions.md');
85
+ if (!fs.existsSync(instructionsFile))
86
+ return;
87
+ const contents = fs.readFileSync(instructionsFile, 'utf8');
88
+ const sectionRegex = new RegExp(`\\n\\n## ${skillName}\\n[\\s\\S]*?(?=\\n\\n## |$)`, 'u');
89
+ const updated = contents.replace(sectionRegex, '');
90
+ fs.writeFileSync(instructionsFile, updated, 'utf8');
91
+ },
92
+ listInstalled() {
93
+ const instructionsFile = path.join(process.cwd(), '.github', 'copilot-instructions.md');
94
+ if (!fs.existsSync(instructionsFile))
95
+ return [];
96
+ const contents = fs.readFileSync(instructionsFile, 'utf8');
97
+ const matches = contents.match(/^## (valdi-\S+)/gmu);
98
+ if (!matches)
99
+ return [];
100
+ return matches.map((m) => m.replace(/^## /u, ''));
101
+ },
102
+ };
103
+ const GenericAdapter = {
104
+ name: 'generic',
105
+ detect() {
106
+ return true;
107
+ },
108
+ install(skillName, content, _meta) {
109
+ const skillsDir = path.join(os.homedir(), '.valdi', 'skills');
110
+ fs.mkdirSync(skillsDir, { recursive: true });
111
+ fs.writeFileSync(path.join(skillsDir, `${skillName}.md`), content, 'utf8');
112
+ },
113
+ remove(skillName) {
114
+ const filePath = path.join(os.homedir(), '.valdi', 'skills', `${skillName}.md`);
115
+ if (fs.existsSync(filePath)) {
116
+ fs.unlinkSync(filePath);
117
+ }
118
+ },
119
+ listInstalled() {
120
+ const skillsDir = path.join(os.homedir(), '.valdi', 'skills');
121
+ if (!fs.existsSync(skillsDir))
122
+ return [];
123
+ return fs
124
+ .readdirSync(skillsDir)
125
+ .filter((f) => f.endsWith('.md'))
126
+ .map((f) => f.replace(/\.md$/u, ''));
127
+ },
128
+ };
129
+ exports.ALL_ADAPTERS = [
130
+ ClaudeCodeAdapter,
131
+ CursorAdapter,
132
+ CopilotAdapter,
133
+ GenericAdapter,
134
+ ];
135
+ function detectAdapters() {
136
+ return exports.ALL_ADAPTERS.filter((a) => a.detect());
137
+ }
138
+ function getAdapterByName(name) {
139
+ return exports.ALL_ADAPTERS.find((a) => a.name === name);
140
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loadLocalRegistry = loadLocalRegistry;
4
+ exports.fetchRegistry = fetchRegistry;
5
+ exports.fetchSkillContent = fetchSkillContent;
6
+ const tslib_1 = require("tslib");
7
+ const path = tslib_1.__importStar(require("path"));
8
+ const fs = tslib_1.__importStar(require("fs"));
9
+ function findBundledSkillsDir() {
10
+ const candidate = path.resolve(__dirname, '..', '..', 'bundled-skills');
11
+ return fs.existsSync(path.join(candidate, 'registry.json')) ? candidate : null;
12
+ }
13
+ function loadLocalRegistry() {
14
+ const bundledDir = findBundledSkillsDir();
15
+ if (bundledDir == null)
16
+ return null;
17
+ try {
18
+ return JSON.parse(fs.readFileSync(path.join(bundledDir, 'registry.json'), 'utf8'));
19
+ }
20
+ catch {
21
+ return null;
22
+ }
23
+ }
24
+ async function fetchRegistry() {
25
+ const local = loadLocalRegistry();
26
+ if (local != null) {
27
+ return local;
28
+ }
29
+ throw new Error('No bundled skills found. Re-install @snap/valdi to get the latest bundle.');
30
+ }
31
+ async function fetchSkillContent(skillPath) {
32
+ const bundledDir = findBundledSkillsDir();
33
+ if (bundledDir != null) {
34
+ const candidate = path.join(bundledDir, skillPath);
35
+ if (fs.existsSync(candidate)) {
36
+ return fs.readFileSync(candidate, 'utf8');
37
+ }
38
+ }
39
+ throw new Error(`Skill content not found for "${skillPath}". Re-install @snap/valdi to get the latest bundle.`);
40
+ }