@uniswap/ai-toolkit-nx-claude 0.5.11 → 0.5.12-next.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/generators/add-agent/generator.cjs +20 -0
- package/dist/generators/add-command/generator.cjs +20 -0
- package/dist/generators/addons/generator.cjs +188 -300
- package/dist/generators/addons/schema.json +32 -21
- package/dist/generators/hooks/generator.cjs +20 -0
- package/dist/generators/hooks/schema.json +0 -3
- package/dist/generators/init/generator.cjs +214 -333
- package/dist/generators/init/schema.json +59 -3
- package/dist/index.cjs +189 -301
- package/dist/packages/ai-toolkit-nx-claude/src/generators/addons/generator.d.ts.map +1 -1
- package/dist/packages/ai-toolkit-nx-claude/src/generators/init/generator.d.ts.map +1 -1
- package/dist/packages/ai-toolkit-nx-claude/src/utils/prompt-utils.d.ts +2 -0
- package/dist/packages/ai-toolkit-nx-claude/src/utils/prompt-utils.d.ts.map +1 -1
- package/package.json +4 -5
|
@@ -119,6 +119,9 @@ async function promptForMissingOptions(options, schemaPath, context = {}, explic
|
|
|
119
119
|
result.hooksMode = "sound";
|
|
120
120
|
result.installAddons = true;
|
|
121
121
|
result.dry = false;
|
|
122
|
+
result.commandSelectionMode = "all";
|
|
123
|
+
result.agentSelectionMode = "all";
|
|
124
|
+
result.addonSelectionMode = "all";
|
|
122
125
|
if (context.defaultCommands) {
|
|
123
126
|
result.commands = context.defaultCommands;
|
|
124
127
|
}
|
|
@@ -134,6 +137,9 @@ async function promptForMissingOptions(options, schemaPath, context = {}, explic
|
|
|
134
137
|
explicitlyProvidedOptions.set("hooksMode", "sound");
|
|
135
138
|
explicitlyProvidedOptions.set("installAddons", true);
|
|
136
139
|
explicitlyProvidedOptions.set("dry", false);
|
|
140
|
+
explicitlyProvidedOptions.set("commandSelectionMode", "all");
|
|
141
|
+
explicitlyProvidedOptions.set("agentSelectionMode", "all");
|
|
142
|
+
explicitlyProvidedOptions.set("addonSelectionMode", "all");
|
|
137
143
|
if (context.defaultCommands) {
|
|
138
144
|
explicitlyProvidedOptions.set("commands", context.defaultCommands);
|
|
139
145
|
}
|
|
@@ -241,6 +247,20 @@ async function promptForProperty(key, property, context, currentValues) {
|
|
|
241
247
|
installationType
|
|
242
248
|
);
|
|
243
249
|
}
|
|
250
|
+
if (key === "addons" && context.availableAddons) {
|
|
251
|
+
return await promptMultiSelectWithAll(
|
|
252
|
+
promptMessage,
|
|
253
|
+
context.availableAddons,
|
|
254
|
+
"addons",
|
|
255
|
+
context.addonDescriptions,
|
|
256
|
+
void 0,
|
|
257
|
+
// No existing set for addons
|
|
258
|
+
void 0,
|
|
259
|
+
// No other location set for addons
|
|
260
|
+
void 0
|
|
261
|
+
// No installation type for addons
|
|
262
|
+
);
|
|
263
|
+
}
|
|
244
264
|
return [];
|
|
245
265
|
}
|
|
246
266
|
if (property.type === "string") {
|
|
@@ -119,6 +119,9 @@ async function promptForMissingOptions(options, schemaPath, context = {}, explic
|
|
|
119
119
|
result.hooksMode = "sound";
|
|
120
120
|
result.installAddons = true;
|
|
121
121
|
result.dry = false;
|
|
122
|
+
result.commandSelectionMode = "all";
|
|
123
|
+
result.agentSelectionMode = "all";
|
|
124
|
+
result.addonSelectionMode = "all";
|
|
122
125
|
if (context.defaultCommands) {
|
|
123
126
|
result.commands = context.defaultCommands;
|
|
124
127
|
}
|
|
@@ -134,6 +137,9 @@ async function promptForMissingOptions(options, schemaPath, context = {}, explic
|
|
|
134
137
|
explicitlyProvidedOptions.set("hooksMode", "sound");
|
|
135
138
|
explicitlyProvidedOptions.set("installAddons", true);
|
|
136
139
|
explicitlyProvidedOptions.set("dry", false);
|
|
140
|
+
explicitlyProvidedOptions.set("commandSelectionMode", "all");
|
|
141
|
+
explicitlyProvidedOptions.set("agentSelectionMode", "all");
|
|
142
|
+
explicitlyProvidedOptions.set("addonSelectionMode", "all");
|
|
137
143
|
if (context.defaultCommands) {
|
|
138
144
|
explicitlyProvidedOptions.set("commands", context.defaultCommands);
|
|
139
145
|
}
|
|
@@ -241,6 +247,20 @@ async function promptForProperty(key, property, context, currentValues) {
|
|
|
241
247
|
installationType
|
|
242
248
|
);
|
|
243
249
|
}
|
|
250
|
+
if (key === "addons" && context.availableAddons) {
|
|
251
|
+
return await promptMultiSelectWithAll(
|
|
252
|
+
promptMessage,
|
|
253
|
+
context.availableAddons,
|
|
254
|
+
"addons",
|
|
255
|
+
context.addonDescriptions,
|
|
256
|
+
void 0,
|
|
257
|
+
// No existing set for addons
|
|
258
|
+
void 0,
|
|
259
|
+
// No other location set for addons
|
|
260
|
+
void 0
|
|
261
|
+
// No installation type for addons
|
|
262
|
+
);
|
|
263
|
+
}
|
|
244
264
|
return [];
|
|
245
265
|
}
|
|
246
266
|
if (property.type === "string") {
|