@tanstack/intent 0.0.34 → 0.0.35
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/README.md +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{install-QjryhQtg.mjs → install-2_wkomiT.mjs} +1 -1
- package/dist/intent-library.mjs +1 -1
- package/dist/{scanner-Dav1tzQK.mjs → scanner-B1j-wDhj.mjs} +13 -7
- package/dist/{scanner-BAZxWeUk.mjs → scanner-C2YjF4w_.mjs} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,7 +104,7 @@ npx @tanstack/intent@latest setup
|
|
|
104
104
|
| Node.js + pnpm | Supported | Use `pnpm dlx @tanstack/intent@latest <command>` |
|
|
105
105
|
| Node.js + Bun | Supported | Use `bunx @tanstack/intent@latest <command>` |
|
|
106
106
|
| Deno | Best-effort | Requires `npm:` interop and `node_modules` support |
|
|
107
|
-
| Yarn PnP |
|
|
107
|
+
| Yarn PnP | Supported | Uses Yarn's PnP API when `node_modules` is absent |
|
|
108
108
|
|
|
109
109
|
## Monorepos
|
|
110
110
|
|
package/dist/cli.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { n as findWorkspacePackages } from "./workspace-patterns-BN2A_60g.mjs";
|
|
|
4
4
|
import { i as parseSkillUse } from "./skill-use-BzuuvLM7.mjs";
|
|
5
5
|
import { r as resolveSkillUse } from "./resolver-Whd12ksO.mjs";
|
|
6
6
|
import { t as resolveProjectContext } from "./project-context-alYMNoNa.mjs";
|
|
7
|
-
import { a as scanIntentsOrFail, c as fail, i as resolveStaleTargets, l as isCliFailure, n as runInstallCommand, o as scanOptionsFromGlobalFlags, r as getMetaDir, s as printWarnings } from "./install-
|
|
7
|
+
import { a as scanIntentsOrFail, c as fail, i as resolveStaleTargets, l as isCliFailure, n as runInstallCommand, o as scanOptionsFromGlobalFlags, r as getMetaDir, s as printWarnings } from "./install-2_wkomiT.mjs";
|
|
8
8
|
import { appendFileSync, existsSync, readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as parseFrontmatter, n as findSkillFiles, o as resolveDepDir, r as getDeps } from "./utils-COlDcU72.mjs";
|
|
2
2
|
import "./skill-paths-8k9K9y26.mjs";
|
|
3
|
-
import { t as scanForIntents } from "./scanner-
|
|
3
|
+
import { t as scanForIntents } from "./scanner-B1j-wDhj.mjs";
|
|
4
4
|
import "./workspace-patterns-BN2A_60g.mjs";
|
|
5
5
|
import { t as readIntentArtifacts } from "./artifact-coverage-wLNVX8yC.mjs";
|
|
6
6
|
import { n as checkStaleness } from "./staleness-PdgakrCQ.mjs";
|
|
@@ -46,7 +46,7 @@ function getCheckSkillsWorkflowAdvisories(root) {
|
|
|
46
46
|
return [`Intent workflow update available: run \`npx @tanstack/intent@latest setup\` to refresh ${relative(process.cwd(), workflowPath) || workflowPath}.`];
|
|
47
47
|
}
|
|
48
48
|
async function scanIntentsOrFail(options) {
|
|
49
|
-
const { scanForIntents } = await import("./scanner-
|
|
49
|
+
const { scanForIntents } = await import("./scanner-C2YjF4w_.mjs");
|
|
50
50
|
try {
|
|
51
51
|
return scanForIntents(void 0, options);
|
|
52
52
|
} catch (err) {
|
package/dist/intent-library.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import "./utils-COlDcU72.mjs";
|
|
|
3
3
|
import "./skill-paths-8k9K9y26.mjs";
|
|
4
4
|
import "./workspace-patterns-BN2A_60g.mjs";
|
|
5
5
|
import "./project-context-alYMNoNa.mjs";
|
|
6
|
-
import { t as INSTALL_PROMPT } from "./install-
|
|
6
|
+
import { t as INSTALL_PROMPT } from "./install-2_wkomiT.mjs";
|
|
7
7
|
import { n as printSkillTree, r as printTable, t as computeSkillNameWidth } from "./display-CAof6doy.mjs";
|
|
8
8
|
import { t as scanLibrary } from "./library-scanner-fexXlPXb.mjs";
|
|
9
9
|
|
|
@@ -352,7 +352,6 @@ function scanForIntents(root, options = {}) {
|
|
|
352
352
|
const projectRoot = root ?? process.cwd();
|
|
353
353
|
const scanScope = getScanScope(options);
|
|
354
354
|
const packageManager = detectPackageManager(projectRoot);
|
|
355
|
-
const pnpApi = scanScope === "global" ? null : loadPnpApi(projectRoot);
|
|
356
355
|
const nodeModulesDir = join(projectRoot, "node_modules");
|
|
357
356
|
const explicitGlobalNodeModules = process.env.INTENT_GLOBAL_NODE_MODULES?.trim() || null;
|
|
358
357
|
const packages = [];
|
|
@@ -376,6 +375,12 @@ function scanForIntents(root, options = {}) {
|
|
|
376
375
|
const packageIndexes = /* @__PURE__ */ new Map();
|
|
377
376
|
const packageJsonCache = /* @__PURE__ */ new Map();
|
|
378
377
|
const packageVariants = /* @__PURE__ */ new Map();
|
|
378
|
+
let pnpApi;
|
|
379
|
+
function getPnpApi() {
|
|
380
|
+
if (scanScope === "global") return null;
|
|
381
|
+
if (pnpApi === void 0) pnpApi = loadPnpApi(projectRoot);
|
|
382
|
+
return pnpApi;
|
|
383
|
+
}
|
|
379
384
|
function rememberVariant(pkg) {
|
|
380
385
|
let variants = packageVariants.get(pkg.name);
|
|
381
386
|
if (!variants) {
|
|
@@ -427,9 +432,7 @@ function scanForIntents(root, options = {}) {
|
|
|
427
432
|
tryRegister,
|
|
428
433
|
warnings
|
|
429
434
|
});
|
|
430
|
-
function scanPnpPackages() {
|
|
431
|
-
if (!pnpApi) return;
|
|
432
|
-
const api = pnpApi;
|
|
435
|
+
function scanPnpPackages(api) {
|
|
433
436
|
const visited = /* @__PURE__ */ new Set();
|
|
434
437
|
const workspaceRoot = findWorkspaceRoot(projectRoot);
|
|
435
438
|
const projectLocator = api.findPackageLocator?.(projectRoot.endsWith(sep) ? projectRoot : `${projectRoot}${sep}`);
|
|
@@ -449,9 +452,12 @@ function scanForIntents(root, options = {}) {
|
|
|
449
452
|
for (const locator of roots) visit(locator);
|
|
450
453
|
}
|
|
451
454
|
function scanLocalPackages() {
|
|
452
|
-
if (
|
|
453
|
-
|
|
454
|
-
|
|
455
|
+
if (!nodeModules.local.exists) {
|
|
456
|
+
const api = getPnpApi();
|
|
457
|
+
if (api) {
|
|
458
|
+
scanPnpPackages(api);
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
455
461
|
}
|
|
456
462
|
assertLocalNodeModulesSupported(projectRoot);
|
|
457
463
|
scanTarget(nodeModules.local);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./utils-COlDcU72.mjs";
|
|
2
2
|
import "./skill-paths-8k9K9y26.mjs";
|
|
3
|
-
import { t as scanForIntents } from "./scanner-
|
|
3
|
+
import { t as scanForIntents } from "./scanner-B1j-wDhj.mjs";
|
|
4
4
|
import "./workspace-patterns-BN2A_60g.mjs";
|
|
5
5
|
|
|
6
6
|
export { scanForIntents };
|