@tanstack/cli 0.64.6 → 0.65.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.js +8 -0
- package/dist/command-line.js +1 -0
- package/dist/dev-watch.js +1 -0
- package/dist/types/types.d.ts +1 -0
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -114,6 +114,7 @@ function getCreateTelemetryProperties(projectName, options) {
|
|
|
114
114
|
framework: options.framework ? sanitizeId(options.framework) : undefined,
|
|
115
115
|
git: options.git,
|
|
116
116
|
install: options.install !== false,
|
|
117
|
+
intent: options.intent !== false,
|
|
117
118
|
interactive: !!options.interactive,
|
|
118
119
|
json: !!options.json,
|
|
119
120
|
non_interactive: !!options.nonInteractive || !!options.yes,
|
|
@@ -139,6 +140,7 @@ function getResolvedCreateTelemetryProperties(finalOptions, cliOptions) {
|
|
|
139
140
|
framework: sanitizeId(finalOptions.framework.id),
|
|
140
141
|
git: finalOptions.git,
|
|
141
142
|
install: finalOptions.install !== false,
|
|
143
|
+
intent: finalOptions.intent,
|
|
142
144
|
package_manager: finalOptions.packageManager,
|
|
143
145
|
router_only: !!cliOptions.routerOnly,
|
|
144
146
|
toolchain: toolchain ? sanitizeId(toolchain.id) : undefined,
|
|
@@ -598,6 +600,8 @@ export function cli({ name, appName, forcedAddOns = [], forcedDeployment, defaul
|
|
|
598
600
|
.option('--json', 'output JSON for automation', false)
|
|
599
601
|
.option('--git', 'create a git repository')
|
|
600
602
|
.option('--no-git', 'do not create a git repository')
|
|
603
|
+
.option('--intent', 'set up TanStack Intent skill mappings for coding agents')
|
|
604
|
+
.option('--no-intent', 'skip TanStack Intent setup')
|
|
601
605
|
.option('--target-dir <path>', 'the target directory for the application root')
|
|
602
606
|
.option('--add-on-config <config>', 'JSON string with add-on configuration options')
|
|
603
607
|
.option('-f, --force', 'force project creation even if the target directory is not empty', false);
|
|
@@ -1018,6 +1022,8 @@ Remove your node_modules directory and package lock file and re-install.`);
|
|
|
1018
1022
|
.addOption(new Option(AGENT_FLAG, 'internal: invocation originated from an agent').hideHelp())
|
|
1019
1023
|
.argument('[add-on...]', 'Name of the add-ons (or add-ons separated by spaces or commas)')
|
|
1020
1024
|
.option('--forced', 'Force the add-on to be added', false)
|
|
1025
|
+
.option('--intent', 'set up TanStack Intent skill mappings for coding agents')
|
|
1026
|
+
.option('--no-intent', 'skip TanStack Intent setup')
|
|
1021
1027
|
.action(async (addOns, options) => {
|
|
1022
1028
|
try {
|
|
1023
1029
|
await runWithTelemetry('add', {
|
|
@@ -1044,6 +1050,7 @@ Remove your node_modules directory and package lock file and re-install.`);
|
|
|
1044
1050
|
if (selectedAddOns.length) {
|
|
1045
1051
|
await addToApp(environment, selectedAddOns, resolve(process.cwd()), {
|
|
1046
1052
|
forced: options.forced,
|
|
1053
|
+
intent: options.intent,
|
|
1047
1054
|
});
|
|
1048
1055
|
}
|
|
1049
1056
|
return;
|
|
@@ -1055,6 +1062,7 @@ Remove your node_modules directory and package lock file and re-install.`);
|
|
|
1055
1062
|
});
|
|
1056
1063
|
await addToApp(environment, parsedAddOns, resolve(process.cwd()), {
|
|
1057
1064
|
forced: options.forced,
|
|
1065
|
+
intent: options.intent,
|
|
1058
1066
|
});
|
|
1059
1067
|
});
|
|
1060
1068
|
}
|
package/dist/command-line.js
CHANGED
|
@@ -381,6 +381,7 @@ export async function normalizeOptions(cliOptions, forcedAddOns, opts) {
|
|
|
381
381
|
DEFAULT_PACKAGE_MANAGER,
|
|
382
382
|
git: cliOptions.git ?? true,
|
|
383
383
|
install: cliOptions.install,
|
|
384
|
+
intent: cliOptions.intent ?? true,
|
|
384
385
|
chosenAddOns,
|
|
385
386
|
addOnOptions: {
|
|
386
387
|
...populateAddOnOptionsDefaults(chosenAddOns),
|
package/dist/dev-watch.js
CHANGED
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
4
4
|
"description": "TanStack CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"tempy": "^3.1.0",
|
|
45
45
|
"validate-npm-package-name": "^7.0.0",
|
|
46
46
|
"zod": "^3.24.2",
|
|
47
|
-
"@tanstack/create": "0.
|
|
47
|
+
"@tanstack/create": "0.64.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@playwright/test": "^1.58.2",
|