@tanstack/intent 0.0.43 → 0.0.44

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.
@@ -31,7 +31,7 @@ function getCheckSkillsWorkflowAdvisories(root) {
31
31
  return [`Intent workflow update available: run \`npx @tanstack/intent@latest setup\` to refresh ${relative(process.cwd(), workflowPath) || workflowPath}.`];
32
32
  }
33
33
  async function scanIntentsOrFail(options) {
34
- const { scanForIntents } = await import("./scanner-DNM8orwt.mjs");
34
+ const { scanForIntents } = await import("./scanner-BV7X5n_z.mjs");
35
35
  try {
36
36
  return scanForIntents(void 0, options);
37
37
  } catch (err) {
@@ -1,6 +1,6 @@
1
1
  import "./utils-9fhWAVua.mjs";
2
2
  import "./workspace-patterns-BffPlZ1D.mjs";
3
3
  import "./project-context-BRIMzhi4.mjs";
4
- import { a as printDebugInfo, c as scanOptionsFromGlobalFlags, i as getMetaDir, l as printWarnings, n as coreOptionsFromGlobalFlags, o as resolveStaleTargets, r as getCheckSkillsWorkflowAdvisories, s as scanIntentsOrFail, t as INTENT_CHECK_SKILLS_WORKFLOW_VERSION } from "./cli-support-DzDBzS3-.mjs";
4
+ import { a as printDebugInfo, c as scanOptionsFromGlobalFlags, i as getMetaDir, l as printWarnings, n as coreOptionsFromGlobalFlags, o as resolveStaleTargets, r as getCheckSkillsWorkflowAdvisories, s as scanIntentsOrFail, t as INTENT_CHECK_SKILLS_WORKFLOW_VERSION } from "./cli-support-BNDR3l1g.mjs";
5
5
 
6
6
  export { INTENT_CHECK_SKILLS_WORKFLOW_VERSION, coreOptionsFromGlobalFlags, getCheckSkillsWorkflowAdvisories, getMetaDir, printDebugInfo, printWarnings, resolveStaleTargets, scanIntentsOrFail, scanOptionsFromGlobalFlags };
package/dist/cli.mjs CHANGED
@@ -9,31 +9,31 @@ function createCli() {
9
9
  const cli = cac("intent");
10
10
  cli.usage("<command> [options]");
11
11
  cli.command("list", "Discover intent-enabled packages from the project or workspace").usage("list [--json] [--debug] [--exclude <pattern>] [--global] [--global-only]").option("--json", "Output JSON").option("--debug", "Print discovery debug details to stderr").option("--exclude <pattern>", "Exclude package name glob").option("--global", "Include global packages after project packages").option("--global-only", "List global packages only").example("list").example("list --json").example("list --global").action(async (options) => {
12
- const { runListCommand } = await import("./list-DQvWxgPM.mjs");
12
+ const { runListCommand } = await import("./list-DrChOziX.mjs");
13
13
  await runListCommand(options);
14
14
  });
15
15
  cli.command("load [use]", "Load a compact skill use and print its SKILL.md").usage("load <use> [--path] [--json] [--debug] [--exclude <pattern>] [--global] [--global-only]").option("--path", "Print the resolved skill path instead of file content").option("--json", "Output JSON").option("--debug", "Print resolution debug details to stderr").option("--exclude <pattern>", "Exclude package name glob").option("--global", "Load from project packages, then global packages").option("--global-only", "Load from global packages only").example("load @tanstack/query#core").example("load @tanstack/query#core --path").action(async (use, options) => {
16
- const { runLoadCommand } = await import("./load-D5MM8OW9.mjs");
16
+ const { runLoadCommand } = await import("./load-ll7s5E3J.mjs");
17
17
  await runLoadCommand(use, options);
18
18
  });
19
19
  cli.command("meta [name]", "List meta-skills, or print one by name").usage("meta [name]").example("meta").example("meta domain-discovery").action(async (name) => {
20
- const [{ getMetaDir }, { runMetaCommand }] = await Promise.all([import("./cli-support-DV41R1Re.mjs"), import("./meta-BEJIfnPG.mjs")]);
20
+ const [{ getMetaDir }, { runMetaCommand }] = await Promise.all([import("./cli-support-BtHFD7gl.mjs"), import("./meta-BEJIfnPG.mjs")]);
21
21
  await runMetaCommand(name, getMetaDir());
22
22
  });
23
23
  cli.command("validate [dir]", "Validate skill files").usage("validate [dir] [--github-summary]").option("--github-summary", "Write a GitHub Actions step summary").example("validate").example("validate packages/query/skills").action(async (dir, options) => {
24
- const { runValidateCommand } = await import("./validate-CZ65_6Li.mjs");
24
+ const { runValidateCommand } = await import("./validate-CEhp9gDs.mjs");
25
25
  await runValidateCommand(dir, options);
26
26
  });
27
27
  cli.command("install", "Create or update skill loading guidance in an agent config file").usage("install [--map] [--dry-run] [--print-prompt] [--global] [--global-only]").option("--map", "Write explicit skill-to-task mappings").option("--dry-run", "Print the generated block without writing").option("--print-prompt", "Print the legacy agent setup prompt instead of writing").option("--global", "Include global packages after project packages").option("--global-only", "Install mappings from global packages only").example("install").example("install --map").example("install --dry-run").example("install --print-prompt").example("install --global").action(async (options) => {
28
- const [{ scanIntentsOrFail }, { runInstallCommand }] = await Promise.all([import("./cli-support-DV41R1Re.mjs"), import("./install-BW__b6st.mjs")]);
28
+ const [{ scanIntentsOrFail }, { runInstallCommand }] = await Promise.all([import("./cli-support-BtHFD7gl.mjs"), import("./install-D1dsnbr9.mjs")]);
29
29
  await runInstallCommand(options, scanIntentsOrFail);
30
30
  });
31
31
  cli.command("scaffold", "Print maintainer scaffold prompt").usage("scaffold").action(async () => {
32
- const [{ getMetaDir }, { runScaffoldCommand }] = await Promise.all([import("./cli-support-DV41R1Re.mjs"), import("./scaffold-CLM6bt3c.mjs")]);
32
+ const [{ getMetaDir }, { runScaffoldCommand }] = await Promise.all([import("./cli-support-BtHFD7gl.mjs"), import("./scaffold-CLM6bt3c.mjs")]);
33
33
  runScaffoldCommand(getMetaDir());
34
34
  });
35
35
  cli.command("stale [dir]", "Check skills for staleness in the current package or workspace").usage("stale [dir] [--json] [--github-review]").option("--json", "Output JSON").option("--github-review", "Write GitHub Actions review PR files").option("--package-label <label>", "Fallback package label for review PRs").example("stale").example("stale packages/query").example("stale --json").action(async (targetDir, options) => {
36
- const [{ resolveStaleTargets }, { runStaleCommand }] = await Promise.all([import("./cli-support-DV41R1Re.mjs"), import("./stale-C6dPKQ98.mjs")]);
36
+ const [{ resolveStaleTargets }, { runStaleCommand }] = await Promise.all([import("./cli-support-BtHFD7gl.mjs"), import("./stale-C6dPKQ98.mjs")]);
37
37
  await runStaleCommand(targetDir, options, resolveStaleTargets);
38
38
  });
39
39
  cli.command("edit-package-json", "Update package.json files so skills are published").usage("edit-package-json").action(async () => {
@@ -41,11 +41,11 @@ function createCli() {
41
41
  await runEditPackageJsonCommand(process.cwd());
42
42
  });
43
43
  cli.command("setup", "Copy Intent CI workflow templates into .github/workflows/").usage("setup").action(async () => {
44
- const [{ getMetaDir }, { runSetupGithubActionsCommand }] = await Promise.all([import("./cli-support-DV41R1Re.mjs"), import("./setup-github-actions-CUd1oncY.mjs")]);
44
+ const [{ getMetaDir }, { runSetupGithubActionsCommand }] = await Promise.all([import("./cli-support-BtHFD7gl.mjs"), import("./setup-github-actions-CUd1oncY.mjs")]);
45
45
  await runSetupGithubActionsCommand(process.cwd(), getMetaDir());
46
46
  });
47
47
  cli.command("setup-github-actions", "Copy Intent CI workflow templates into .github/workflows/").usage("setup-github-actions").action(async () => {
48
- const [{ getMetaDir }, { runSetupGithubActionsCommand }] = await Promise.all([import("./cli-support-DV41R1Re.mjs"), import("./setup-github-actions-CUd1oncY.mjs")]);
48
+ const [{ getMetaDir }, { runSetupGithubActionsCommand }] = await Promise.all([import("./cli-support-BtHFD7gl.mjs"), import("./setup-github-actions-CUd1oncY.mjs")]);
49
49
  await runSetupGithubActionsCommand(process.cwd(), getMetaDir());
50
50
  });
51
51
  cli.command("help [command]", "Display help for a command").action((commandName) => {
@@ -1,5 +1,5 @@
1
1
  import { i as getDeps, l as resolveDepDir, u as toPosixPath } from "./utils-9fhWAVua.mjs";
2
- import { n as scanIntentPackageAtRoot, r as createIntentFsCache, t as scanForIntents } from "./scanner-D3tAqvbj.mjs";
2
+ import { n as scanIntentPackageAtRoot, r as createIntentFsCache, t as scanForIntents } from "./scanner-DaG82zNc.mjs";
3
3
  import { n as findWorkspacePackages } from "./workspace-patterns-BffPlZ1D.mjs";
4
4
  import { i as parseSkillUse, n as formatSkillUse } from "./skill-use-umYvZl94.mjs";
5
5
  import { t as resolveProjectContext } from "./project-context-BRIMzhi4.mjs";
package/dist/core.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import "./utils-9fhWAVua.mjs";
2
2
  import "./skill-paths-B-j0dWDA.mjs";
3
- import "./scanner-D3tAqvbj.mjs";
3
+ import "./scanner-DaG82zNc.mjs";
4
4
  import "./workspace-patterns-BffPlZ1D.mjs";
5
5
  import "./project-context-BRIMzhi4.mjs";
6
6
  import "./resolver-D9cjsz11.mjs";
7
- import { i as resolveIntentSkill, n as listIntentSkills, r as loadIntentSkill, t as IntentCoreError } from "./core-C7hpf0Tt.mjs";
7
+ import { i as resolveIntentSkill, n as listIntentSkills, r as loadIntentSkill, t as IntentCoreError } from "./core-qlBI_aQL.mjs";
8
8
 
9
9
  export { IntentCoreError, listIntentSkills, loadIntentSkill, resolveIntentSkill };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { c as parseFrontmatter, i as getDeps, l as resolveDepDir, r as findSkillFiles } from "./utils-9fhWAVua.mjs";
2
2
  import "./skill-paths-B-j0dWDA.mjs";
3
- import { t as scanForIntents } from "./scanner-D3tAqvbj.mjs";
3
+ import { t as scanForIntents } from "./scanner-DaG82zNc.mjs";
4
4
  import "./workspace-patterns-BffPlZ1D.mjs";
5
5
  import { t as readIntentArtifacts } from "./artifact-coverage-DgWuVqUp.mjs";
6
6
  import { n as checkStaleness } from "./staleness-BGFfic-Y.mjs";
@@ -4,7 +4,7 @@ import { t as detectPackageManager } from "./package-manager-BUgTjW9Q.mjs";
4
4
  import { i as parseSkillUse, n as formatSkillUse } from "./skill-use-umYvZl94.mjs";
5
5
  import "./project-context-BRIMzhi4.mjs";
6
6
  import { t as fail } from "./cli-error-BrMXlbtx.mjs";
7
- import { c as scanOptionsFromGlobalFlags, l as printWarnings } from "./cli-support-DzDBzS3-.mjs";
7
+ import { c as scanOptionsFromGlobalFlags, l as printWarnings } from "./cli-support-BNDR3l1g.mjs";
8
8
  import { t as formatIntentCommand } from "./command-runner-C0yCOHLi.mjs";
9
9
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
10
10
  import { dirname, join, relative } from "node:path";
@@ -1,11 +1,11 @@
1
1
  import "./utils-9fhWAVua.mjs";
2
2
  import "./skill-paths-B-j0dWDA.mjs";
3
- import "./scanner-D3tAqvbj.mjs";
3
+ import "./scanner-DaG82zNc.mjs";
4
4
  import "./workspace-patterns-BffPlZ1D.mjs";
5
5
  import "./project-context-BRIMzhi4.mjs";
6
6
  import "./resolver-D9cjsz11.mjs";
7
- import { n as listIntentSkills } from "./core-C7hpf0Tt.mjs";
8
- import { a as printDebugInfo, l as printWarnings, n as coreOptionsFromGlobalFlags } from "./cli-support-DzDBzS3-.mjs";
7
+ import { n as listIntentSkills } from "./core-qlBI_aQL.mjs";
8
+ import { a as printDebugInfo, l as printWarnings, n as coreOptionsFromGlobalFlags } from "./cli-support-BNDR3l1g.mjs";
9
9
  import { t as formatIntentCommand } from "./command-runner-C0yCOHLi.mjs";
10
10
 
11
11
  //#region src/commands/list.ts
@@ -1,12 +1,12 @@
1
1
  import "./utils-9fhWAVua.mjs";
2
2
  import "./skill-paths-B-j0dWDA.mjs";
3
- import "./scanner-D3tAqvbj.mjs";
3
+ import "./scanner-DaG82zNc.mjs";
4
4
  import "./workspace-patterns-BffPlZ1D.mjs";
5
5
  import "./project-context-BRIMzhi4.mjs";
6
6
  import "./resolver-D9cjsz11.mjs";
7
7
  import { t as fail } from "./cli-error-BrMXlbtx.mjs";
8
- import { i as resolveIntentSkill, r as loadIntentSkill, t as IntentCoreError } from "./core-C7hpf0Tt.mjs";
9
- import { a as printDebugInfo, n as coreOptionsFromGlobalFlags } from "./cli-support-DzDBzS3-.mjs";
8
+ import { i as resolveIntentSkill, r as loadIntentSkill, t as IntentCoreError } from "./core-qlBI_aQL.mjs";
9
+ import { a as printDebugInfo, n as coreOptionsFromGlobalFlags } from "./cli-support-BNDR3l1g.mjs";
10
10
 
11
11
  //#region src/commands/load.ts
12
12
  function printLoadDebug(loaded) {
@@ -1,6 +1,6 @@
1
1
  import "./utils-9fhWAVua.mjs";
2
2
  import "./skill-paths-B-j0dWDA.mjs";
3
- import { n as scanIntentPackageAtRoot, t as scanForIntents } from "./scanner-D3tAqvbj.mjs";
3
+ import { n as scanIntentPackageAtRoot, t as scanForIntents } from "./scanner-DaG82zNc.mjs";
4
4
  import "./workspace-patterns-BffPlZ1D.mjs";
5
5
 
6
6
  export { scanForIntents };
@@ -117,7 +117,7 @@ function createDependencyWalker(opts) {
117
117
  opts.warnings.push(`Could not read package.json for ${pkgName} (skipping dependency walk)`);
118
118
  return;
119
119
  }
120
- walkDepsOf(pkgJson, pkgDir);
120
+ walkDepsOf(pkgJson, pkgKey);
121
121
  }
122
122
  function walkKnownPackages() {
123
123
  for (const pkg of [...opts.packages]) walkDeps(pkg.packageRoot, pkg.name);
@@ -2,7 +2,7 @@ import "./utils-9fhWAVua.mjs";
2
2
  import { n as findWorkspacePackages } from "./workspace-patterns-BffPlZ1D.mjs";
3
3
  import { t as resolveProjectContext } from "./project-context-BRIMzhi4.mjs";
4
4
  import { n as isCliFailure, t as fail } from "./cli-error-BrMXlbtx.mjs";
5
- import { l as printWarnings } from "./cli-support-DzDBzS3-.mjs";
5
+ import { l as printWarnings } from "./cli-support-BNDR3l1g.mjs";
6
6
  import { appendFileSync, existsSync, readFileSync } from "node:fs";
7
7
  import { basename, dirname, join, relative, resolve, sep } from "node:path";
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/intent",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "Ship compositional knowledge for AI coding agents alongside your npm packages",
5
5
  "license": "MIT",
6
6
  "type": "module",