@tanstack/intent 0.0.20 → 0.0.21

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.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  //#region src/cli.d.ts
3
- declare const USAGE = "TanStack Intent CLI\n\nUsage:\n intent list [--json] Discover intent-enabled packages\n intent meta [name] List meta-skills, or print one by name\n intent validate [<dir>] Validate skill files (default: skills/)\n intent install Print a skill that guides your coding agent to set up skill-to-task mappings\n intent scaffold Print maintainer scaffold prompt\n intent add-library-bin Generate bin/intent.{js,mjs} bridge file\n intent edit-package-json Wire package.json (files, bin) for skill publishing\n intent setup-github-actions Copy CI workflow templates to .github/workflows/\n intent stale [dir] [--json] Check skills for staleness";
3
+ declare const USAGE = "TanStack Intent CLI\n\nUsage:\n intent list [--json] Discover intent-enabled packages\n intent meta [name] List meta-skills, or print one by name\n intent validate [<dir>] Validate skill files (default: skills/)\n intent install Print a skill that guides your coding agent to set up skill-to-task mappings\n intent scaffold Print maintainer scaffold prompt\n intent edit-package-json Wire package.json (files, keywords) for skill publishing\n intent setup-github-actions Copy CI workflow templates to .github/workflows/\n intent stale [dir] [--json] Check skills for staleness";
4
4
  declare function main(argv?: Array<string>): Promise<number>;
5
5
  //#endregion
6
6
  export { USAGE, main };
package/dist/cli.mjs CHANGED
@@ -18,7 +18,7 @@ function isCliFailure(value) {
18
18
  return !!value && typeof value === "object" && "message" in value && typeof value.message === "string" && "exitCode" in value && typeof value.exitCode === "number";
19
19
  }
20
20
  async function scanIntentsOrFail() {
21
- const { scanForIntents } = await import("./scanner-BHPl60jH.mjs");
21
+ const { scanForIntents } = await import("./scanner-RWHFrJ_C.mjs");
22
22
  try {
23
23
  return await scanForIntents();
24
24
  } catch (err) {
@@ -155,15 +155,27 @@ function collectPackagingWarnings(root) {
155
155
  }
156
156
  const warnings = [];
157
157
  if (!pkgJson.devDependencies?.["@tanstack/intent"]) warnings.push("@tanstack/intent is not in devDependencies");
158
- if (!pkgJson.bin?.intent) warnings.push("Missing \"bin\": { \"intent\": ... } entry in package.json");
159
- const shimJs = join(root, "bin", "intent.js");
160
- const shimMjs = join(root, "bin", "intent.mjs");
161
- if (!existsSync(shimJs) && !existsSync(shimMjs)) warnings.push("No bin/intent.js or bin/intent.mjs shim found (run: npx @tanstack/intent add-library-bin)");
158
+ const keywords = pkgJson.keywords;
159
+ if (!Array.isArray(keywords) || !keywords.includes("tanstack-intent")) warnings.push("Missing \"tanstack-intent\" in keywords array");
162
160
  const files = pkgJson.files;
163
161
  if (Array.isArray(files)) {
164
162
  if (!files.includes("skills")) warnings.push("\"skills\" is not in the \"files\" array — skills won't be published");
165
- if (!files.includes("bin")) warnings.push("\"bin\" is not in the \"files\" array — shim won't be published");
166
- if (!files.includes("!skills/_artifacts")) warnings.push("\"!skills/_artifacts\" is not in the \"files\" array — artifacts will be published unnecessarily");
163
+ if (!(() => {
164
+ let dir = join(root, "..");
165
+ for (let i = 0; i < 5; i++) {
166
+ const parentPkg = join(dir, "package.json");
167
+ if (existsSync(parentPkg)) try {
168
+ const parent = JSON.parse(readFileSync(parentPkg, "utf8"));
169
+ return Array.isArray(parent.workspaces) || parent.workspaces?.packages;
170
+ } catch {
171
+ return false;
172
+ }
173
+ const next = dirname(dir);
174
+ if (next === dir) break;
175
+ dir = next;
176
+ }
177
+ return false;
178
+ })() && !files.includes("!skills/_artifacts")) warnings.push("\"!skills/_artifacts\" is not in the \"files\" array — artifacts will be published unnecessarily");
167
179
  }
168
180
  return warnings;
169
181
  }
@@ -361,11 +373,10 @@ This produces: individual SKILL.md files.
361
373
 
362
374
  1. Run \`intent validate\` in each package directory
363
375
  2. Commit skills/ and artifacts
364
- 3. For each publishable package, run: \`npx @tanstack/intent add-library-bin\`
365
- 4. For each publishable package, run: \`npx @tanstack/intent edit-package-json\`
366
- 5. Ensure each package has \`@tanstack/intent\` as a devDependency
367
- 6. Create a \`skill:<skill-name>\` label on the GitHub repo for each skill (use \`gh label create\`)
368
- 7. Add a README note: "If you use an AI agent, run \`npx @tanstack/intent@latest install\`"
376
+ 3. For each publishable package, run: \`npx @tanstack/intent edit-package-json\`
377
+ 4. Ensure each package has \`@tanstack/intent\` as a devDependency
378
+ 5. Create a \`skill:<skill-name>\` label on the GitHub repo for each skill (use \`gh label create\`)
379
+ 6. Add a README note: "If you use an AI agent, run \`npx @tanstack/intent@latest install\`"
369
380
  `;
370
381
  console.log(prompt);
371
382
  }
@@ -377,8 +388,7 @@ Usage:
377
388
  intent validate [<dir>] Validate skill files (default: skills/)
378
389
  intent install Print a skill that guides your coding agent to set up skill-to-task mappings
379
390
  intent scaffold Print maintainer scaffold prompt
380
- intent add-library-bin Generate bin/intent.{js,mjs} bridge file
381
- intent edit-package-json Wire package.json (files, bin) for skill publishing
391
+ intent edit-package-json Wire package.json (files, keywords) for skill publishing
382
392
  intent setup-github-actions Copy CI workflow templates to .github/workflows/
383
393
  intent stale [dir] [--json] Check skills for staleness`;
384
394
  const HELP_BY_COMMAND = {
@@ -415,12 +425,9 @@ Examples:
415
425
  intent stale
416
426
  intent stale packages/query
417
427
  intent stale --json`,
418
- "add-library-bin": `intent add-library-bin
419
-
420
- Generate bin/intent.{js,mjs} bridge files for publishable packages.`,
421
428
  "edit-package-json": `intent edit-package-json
422
429
 
423
- Update package.json files so skills and shims are published.`,
430
+ Update package.json files so skills are published.`,
424
431
  "setup-github-actions": `intent setup-github-actions
425
432
 
426
433
  Copy Intent CI workflow templates into .github/workflows/.`
@@ -491,11 +498,6 @@ async function main(argv = process.argv.slice(2)) {
491
498
  }
492
499
  return 0;
493
500
  }
494
- case "add-library-bin": {
495
- const { runAddLibraryBinAll } = await import("./setup.mjs");
496
- runAddLibraryBinAll(process.cwd());
497
- return 0;
498
- }
499
501
  case "edit-package-json": {
500
502
  const { runEditPackageJsonAll } = await import("./setup.mjs");
501
503
  runEditPackageJsonAll(process.cwd());
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as IntentProjectConfig, c as ScanResult, d as StalenessReport, i as IntentPackage, l as SkillEntry, n as FeedbackPayload, o as MetaFeedbackPayload, r as IntentConfig, s as MetaSkillName, t as AgentName, u as SkillStaleness } from "./types-ddLtccfV.mjs";
2
- import { d as runEditPackageJson, i as SetupGithubActionsResult, l as runAddLibraryBin, n as EditPackageJsonResult, p as runSetupGithubActions, t as AddLibraryBinResult } from "./setup-B-zdCBu4.mjs";
2
+ import { c as runEditPackageJson, r as SetupGithubActionsResult, t as EditPackageJsonResult, u as runSetupGithubActions } from "./setup-BNBVotfR.mjs";
3
3
 
4
4
  //#region src/scanner.d.ts
5
5
  declare function scanForIntents(root?: string): Promise<ScanResult>;
@@ -55,4 +55,4 @@ declare function resolveDepDir(depName: string, parentDir: string): string | nul
55
55
  */
56
56
  declare function parseFrontmatter(filePath: string): Record<string, unknown> | null;
57
57
  //#endregion
58
- export { type AddLibraryBinResult, type AgentName, type EditPackageJsonResult, type FeedbackPayload, type IntentConfig, type IntentPackage, type IntentProjectConfig, type MetaFeedbackPayload, type MetaSkillName, type ScanResult, type SetupGithubActionsResult, type SkillEntry, type SkillStaleness, type StalenessReport, checkStaleness, containsSecrets, findSkillFiles, getDeps, hasGhCli, metaToMarkdown, parseFrontmatter, resolveDepDir, resolveFrequency, runAddLibraryBin, runEditPackageJson, runSetupGithubActions, scanForIntents, submitFeedback, submitMetaFeedback, toMarkdown, validateMetaPayload, validatePayload };
58
+ export { type AgentName, type EditPackageJsonResult, type FeedbackPayload, type IntentConfig, type IntentPackage, type IntentProjectConfig, type MetaFeedbackPayload, type MetaSkillName, type ScanResult, type SetupGithubActionsResult, type SkillEntry, type SkillStaleness, type StalenessReport, checkStaleness, containsSecrets, findSkillFiles, getDeps, hasGhCli, metaToMarkdown, parseFrontmatter, resolveDepDir, resolveFrequency, runEditPackageJson, runSetupGithubActions, scanForIntents, submitFeedback, submitMetaFeedback, toMarkdown, validateMetaPayload, validatePayload };
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-BfjM1mQe.mjs";
2
- import { a as runAddLibraryBin, l as runSetupGithubActions, s as runEditPackageJson } from "./setup-mGV2dZrq.mjs";
3
- import { t as scanForIntents } from "./scanner-DVepyEwz.mjs";
2
+ import { a as runEditPackageJson, s as runSetupGithubActions } from "./setup-J7F7DIP2.mjs";
3
+ import { t as scanForIntents } from "./scanner-SHzOJKcz.mjs";
4
4
  import { t as checkStaleness } from "./staleness-DZKvsLVq.mjs";
5
5
  import { readFileSync, writeFileSync } from "node:fs";
6
6
  import { join } from "node:path";
@@ -269,4 +269,4 @@ function submitMetaFeedback(payload, opts) {
269
269
  }
270
270
 
271
271
  //#endregion
272
- export { checkStaleness, containsSecrets, findSkillFiles, getDeps, hasGhCli, metaToMarkdown, parseFrontmatter, resolveDepDir, resolveFrequency, runAddLibraryBin, runEditPackageJson, runSetupGithubActions, scanForIntents, submitFeedback, submitMetaFeedback, toMarkdown, validateMetaPayload, validatePayload };
272
+ export { checkStaleness, containsSecrets, findSkillFiles, getDeps, hasGhCli, metaToMarkdown, parseFrontmatter, resolveDepDir, resolveFrequency, runEditPackageJson, runSetupGithubActions, scanForIntents, submitFeedback, submitMetaFeedback, toMarkdown, validateMetaPayload, validatePayload };
@@ -2,7 +2,7 @@
2
2
  import "./utils-BfjM1mQe.mjs";
3
3
  import { t as INSTALL_PROMPT } from "./install-prompt-C0M-U3WZ.mjs";
4
4
  import { n as printSkillTree, r as printTable, t as computeSkillNameWidth } from "./display-DhsUxNJW.mjs";
5
- import { t as scanLibrary } from "./library-scanner-DBOEhfm8.mjs";
5
+ import { t as scanLibrary } from "./library-scanner-CU3ZHPYU.mjs";
6
6
 
7
7
  //#region src/intent-library.ts
8
8
  async function cmdList() {
@@ -19,10 +19,12 @@ function findHomeDir(scriptPath) {
19
19
  dir = parent;
20
20
  }
21
21
  }
22
- function hasIntentBin(pkg) {
22
+ function isIntentPackage(pkg) {
23
+ const keywords = pkg.keywords;
24
+ if (Array.isArray(keywords) && keywords.includes("tanstack-intent")) return true;
23
25
  const bin = pkg.bin;
24
- if (!bin || typeof bin !== "object") return false;
25
- return "intent" in bin;
26
+ if (bin && typeof bin === "object" && "intent" in bin) return true;
27
+ return false;
26
28
  }
27
29
  function discoverSkills(skillsDir) {
28
30
  const skills = [];
@@ -91,7 +93,7 @@ async function scanLibrary(scriptPath, _projectRoot) {
91
93
  const depDir = resolveDepDir(depName, dir);
92
94
  if (!depDir) continue;
93
95
  const depPkg = readPkgJson(depDir);
94
- if (depPkg && hasIntentBin(depPkg)) processPackage(depName, depDir);
96
+ if (depPkg && isIntentPackage(depPkg)) processPackage(depName, depDir);
95
97
  }
96
98
  }
97
99
  processPackage(homeName, homeDir);
@@ -1,4 +1,4 @@
1
1
  import "./utils-BfjM1mQe.mjs";
2
- import { t as scanLibrary } from "./library-scanner-DBOEhfm8.mjs";
2
+ import { t as scanLibrary } from "./library-scanner-CU3ZHPYU.mjs";
3
3
 
4
4
  export { scanLibrary };
@@ -0,0 +1,5 @@
1
+ import "./utils-BfjM1mQe.mjs";
2
+ import "./setup-J7F7DIP2.mjs";
3
+ import { t as scanForIntents } from "./scanner-SHzOJKcz.mjs";
4
+
5
+ export { scanForIntents };
@@ -1,5 +1,5 @@
1
1
  import { a as parseFrontmatter, i as listNodeModulesPackageDirs, o as resolveDepDir, r as getDeps, t as detectGlobalNodeModules } from "./utils-BfjM1mQe.mjs";
2
- import { i as resolveWorkspacePackages, n as findWorkspaceRoot, r as readWorkspacePatterns } from "./setup-mGV2dZrq.mjs";
2
+ import { i as resolveWorkspacePackages, n as findWorkspaceRoot, r as readWorkspacePatterns } from "./setup-J7F7DIP2.mjs";
3
3
  import { existsSync, readFileSync, readdirSync } from "node:fs";
4
4
  import { join, relative, sep } from "node:path";
5
5
 
@@ -1,8 +1,4 @@
1
1
  //#region src/setup.d.ts
2
- interface AddLibraryBinResult {
3
- shim: string | null;
4
- skipped: string | null;
5
- }
6
2
  interface EditPackageJsonResult {
7
3
  added: Array<string>;
8
4
  alreadyPresent: Array<string>;
@@ -15,7 +11,6 @@ interface MonorepoResult<T> {
15
11
  package: string;
16
12
  result: T;
17
13
  }
18
- declare function runAddLibraryBin(root: string): AddLibraryBinResult;
19
14
  declare function runEditPackageJson(root: string): EditPackageJsonResult;
20
15
  declare function readWorkspacePatterns(root: string): Array<string> | null;
21
16
  /**
@@ -30,7 +25,6 @@ declare function findWorkspaceRoot(start: string): string | null;
30
25
  */
31
26
  declare function findPackagesWithSkills(root: string): Array<string>;
32
27
  declare function runEditPackageJsonAll(root: string): Array<MonorepoResult<EditPackageJsonResult>> | EditPackageJsonResult;
33
- declare function runAddLibraryBinAll(root: string): Array<MonorepoResult<AddLibraryBinResult>> | AddLibraryBinResult;
34
28
  declare function runSetupGithubActions(root: string, metaDir: string): SetupGithubActionsResult;
35
29
  //#endregion
36
- export { findPackagesWithSkills as a, resolveWorkspacePackages as c, runEditPackageJson as d, runEditPackageJsonAll as f, SetupGithubActionsResult as i, runAddLibraryBin as l, EditPackageJsonResult as n, findWorkspaceRoot as o, runSetupGithubActions as p, MonorepoResult as r, readWorkspacePatterns as s, AddLibraryBinResult as t, runAddLibraryBinAll as u };
30
+ export { findWorkspaceRoot as a, runEditPackageJson as c, findPackagesWithSkills as i, runEditPackageJsonAll as l, MonorepoResult as n, readWorkspacePatterns as o, SetupGithubActionsResult as r, resolveWorkspacePackages as s, EditPackageJsonResult as t, runSetupGithubActions as u };
@@ -86,64 +86,6 @@ function copyTemplates(srcDir, destDir, vars) {
86
86
  skipped
87
87
  };
88
88
  }
89
- function getShimContent(ext) {
90
- return `#!/usr/bin/env node
91
- // Auto-generated by @tanstack/intent setup
92
- // Exposes the intent end-user CLI for consumers of this library.
93
- // Commit this file, then add to your package.json:
94
- // "bin": { "intent": "./bin/intent.${ext}" }
95
- try {
96
- await import('@tanstack/intent/intent-library')
97
- } catch (e) {
98
- if (e?.code === 'ERR_MODULE_NOT_FOUND' || e?.code === 'MODULE_NOT_FOUND') {
99
- console.error('@tanstack/intent is not installed.')
100
- console.error('')
101
- console.error('Install it as a dev dependency:')
102
- console.error(' npm add -D @tanstack/intent')
103
- console.error('')
104
- console.error('Or run directly:')
105
- console.error(' npx @tanstack/intent@latest list')
106
- process.exit(1)
107
- }
108
- throw e
109
- }
110
- `;
111
- }
112
- function detectShimExtension(root) {
113
- try {
114
- if (JSON.parse(readFileSync(join(root, "package.json"), "utf8")).type === "module") return "js";
115
- } catch (err) {
116
- if (!(err && typeof err === "object" && "code" in err && err.code === "ENOENT")) console.error(`Warning: could not read package.json: ${err instanceof Error ? err.message : err}`);
117
- }
118
- return "mjs";
119
- }
120
- function findExistingShim(root) {
121
- const shimJs = join(root, "bin", "intent.js");
122
- if (existsSync(shimJs)) return shimJs;
123
- const shimMjs = join(root, "bin", "intent.mjs");
124
- if (existsSync(shimMjs)) return shimMjs;
125
- return null;
126
- }
127
- function runAddLibraryBin(root) {
128
- const result = {
129
- shim: null,
130
- skipped: null
131
- };
132
- const existingShim = findExistingShim(root);
133
- if (existingShim) {
134
- result.skipped = existingShim;
135
- console.log(` Already exists: ${existingShim}`);
136
- return result;
137
- }
138
- const ext = detectShimExtension(root);
139
- const shimPath = join(root, "bin", `intent.${ext}`);
140
- mkdirSync(join(root, "bin"), { recursive: true });
141
- writeFileSync(shimPath, getShimContent(ext));
142
- result.shim = shimPath;
143
- console.log(`✓ Generated intent shim: ${shimPath}`);
144
- console.log(`\n Run \`npx @tanstack/intent edit-package-json\` to wire package.json.`);
145
- return result;
146
- }
147
89
  function runEditPackageJson(root) {
148
90
  const result = {
149
91
  added: [],
@@ -168,10 +110,10 @@ function runEditPackageJson(root) {
168
110
  const indentSize = indentMatch?.[1] ? indentMatch[1].length : 2;
169
111
  if (!Array.isArray(pkg.keywords)) pkg.keywords = [];
170
112
  const keywords = pkg.keywords;
171
- for (const kw of ["tanstack-intent"]) if (keywords.includes(kw)) result.alreadyPresent.push(`keywords: "${kw}"`);
113
+ if (keywords.includes("tanstack-intent")) result.alreadyPresent.push("keywords: \"tanstack-intent\"");
172
114
  else {
173
- keywords.push(kw);
174
- result.added.push(`keywords: "${kw}"`);
115
+ keywords.push("tanstack-intent");
116
+ result.added.push("keywords: \"tanstack-intent\"");
175
117
  }
176
118
  if (!Array.isArray(pkg.files)) pkg.files = [];
177
119
  const files = pkg.files;
@@ -191,39 +133,12 @@ function runEditPackageJson(root) {
191
133
  dir = next;
192
134
  }
193
135
  return false;
194
- })() ? ["skills", "bin"] : [
195
- "skills",
196
- "bin",
197
- "!skills/_artifacts"
198
- ];
136
+ })() ? ["skills"] : ["skills", "!skills/_artifacts"];
199
137
  for (const entry of requiredFiles) if (files.includes(entry)) result.alreadyPresent.push(`files: "${entry}"`);
200
138
  else {
201
139
  files.push(entry);
202
140
  result.added.push(`files: "${entry}"`);
203
141
  }
204
- const existingShim = findExistingShim(root);
205
- let ext;
206
- if (existingShim) ext = existingShim.endsWith(".mjs") ? "mjs" : "js";
207
- else ext = pkg.type === "module" ? "js" : "mjs";
208
- const shimRelative = `./bin/intent.${ext}`;
209
- if (typeof pkg.bin === "object" && pkg.bin !== null) {
210
- const binObj = pkg.bin;
211
- if (binObj.intent) result.alreadyPresent.push(`bin.intent`);
212
- else {
213
- binObj.intent = shimRelative;
214
- result.added.push(`bin.intent: "${shimRelative}"`);
215
- }
216
- } else if (!pkg.bin) {
217
- pkg.bin = { intent: shimRelative };
218
- result.added.push(`bin.intent: "${shimRelative}"`);
219
- } else if (typeof pkg.bin === "string") {
220
- const pkgName = typeof pkg.name === "string" ? pkg.name.replace(/^@[^/]+\//, "") : "unknown";
221
- pkg.bin = {
222
- [pkgName]: pkg.bin,
223
- intent: shimRelative
224
- };
225
- result.added.push(`bin.intent: "${shimRelative}" (converted bin from string to object)`);
226
- }
227
142
  writeFileSync(pkgPath, JSON.stringify(pkg, null, indentSize) + "\n");
228
143
  for (const a of result.added) console.log(`✓ Added ${a}`);
229
144
  for (const a of result.alreadyPresent) console.log(` Already present: ${a}`);
@@ -337,9 +252,6 @@ function runForEachPackage(root, runOne) {
337
252
  function runEditPackageJsonAll(root) {
338
253
  return runForEachPackage(root, runEditPackageJson);
339
254
  }
340
- function runAddLibraryBinAll(root) {
341
- return runForEachPackage(root, runAddLibraryBin);
342
- }
343
255
  function runSetupGithubActions(root, metaDir) {
344
256
  const workspaceRoot = findWorkspaceRoot(root) ?? root;
345
257
  const packageDirs = findPackagesWithSkills(workspaceRoot);
@@ -364,4 +276,4 @@ function runSetupGithubActions(root, metaDir) {
364
276
  }
365
277
 
366
278
  //#endregion
367
- export { runAddLibraryBin as a, runEditPackageJsonAll as c, resolveWorkspacePackages as i, runSetupGithubActions as l, findWorkspaceRoot as n, runAddLibraryBinAll as o, readWorkspacePatterns as r, runEditPackageJson as s, findPackagesWithSkills as t };
279
+ export { runEditPackageJson as a, resolveWorkspacePackages as i, findWorkspaceRoot as n, runEditPackageJsonAll as o, readWorkspacePatterns as r, runSetupGithubActions as s, findPackagesWithSkills as t };
package/dist/setup.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as findPackagesWithSkills, c as resolveWorkspacePackages, d as runEditPackageJson, f as runEditPackageJsonAll, i as SetupGithubActionsResult, l as runAddLibraryBin, n as EditPackageJsonResult, o as findWorkspaceRoot, p as runSetupGithubActions, r as MonorepoResult, s as readWorkspacePatterns, t as AddLibraryBinResult, u as runAddLibraryBinAll } from "./setup-B-zdCBu4.mjs";
2
- export { AddLibraryBinResult, EditPackageJsonResult, MonorepoResult, SetupGithubActionsResult, findPackagesWithSkills, findWorkspaceRoot, readWorkspacePatterns, resolveWorkspacePackages, runAddLibraryBin, runAddLibraryBinAll, runEditPackageJson, runEditPackageJsonAll, runSetupGithubActions };
1
+ import { a as findWorkspaceRoot, c as runEditPackageJson, i as findPackagesWithSkills, l as runEditPackageJsonAll, n as MonorepoResult, o as readWorkspacePatterns, r as SetupGithubActionsResult, s as resolveWorkspacePackages, t as EditPackageJsonResult, u as runSetupGithubActions } from "./setup-BNBVotfR.mjs";
2
+ export { EditPackageJsonResult, MonorepoResult, SetupGithubActionsResult, findPackagesWithSkills, findWorkspaceRoot, readWorkspacePatterns, resolveWorkspacePackages, runEditPackageJson, runEditPackageJsonAll, runSetupGithubActions };
package/dist/setup.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./utils-BfjM1mQe.mjs";
2
- import { a as runAddLibraryBin, c as runEditPackageJsonAll, i as resolveWorkspacePackages, l as runSetupGithubActions, n as findWorkspaceRoot, o as runAddLibraryBinAll, r as readWorkspacePatterns, s as runEditPackageJson, t as findPackagesWithSkills } from "./setup-mGV2dZrq.mjs";
2
+ import { a as runEditPackageJson, i as resolveWorkspacePackages, n as findWorkspaceRoot, o as runEditPackageJsonAll, r as readWorkspacePatterns, s as runSetupGithubActions, t as findPackagesWithSkills } from "./setup-J7F7DIP2.mjs";
3
3
 
4
- export { findPackagesWithSkills, findWorkspaceRoot, readWorkspacePatterns, resolveWorkspacePackages, runAddLibraryBin, runAddLibraryBinAll, runEditPackageJson, runEditPackageJsonAll, runSetupGithubActions };
4
+ export { findPackagesWithSkills, findWorkspaceRoot, readWorkspacePatterns, resolveWorkspacePackages, runEditPackageJson, runEditPackageJsonAll, runSetupGithubActions };
@@ -1,11 +1,10 @@
1
1
  # notify-intent.yml — Drop this into your library repo's .github/workflows/
2
2
  #
3
- # Fires a repository_dispatch event to TanStack/intent whenever docs or
4
- # source files change on merge to main. This triggers the skill staleness
5
- # check workflow in the intent repo.
3
+ # Fires a repository_dispatch event whenever docs or source files change
4
+ # on merge to main. This triggers the skill staleness check workflow.
6
5
  #
7
6
  # Requirements:
8
- # - A fine-grained PAT with contents:write on TanStack/intent stored
7
+ # - A fine-grained PAT with contents:write on this repository stored
9
8
  # as the INTENT_NOTIFY_TOKEN repository secret.
10
9
  #
11
10
  # Template variables (replaced by `intent setup`):
@@ -13,7 +12,7 @@
13
12
  # {{DOCS_PATH}} — e.g. docs/**
14
13
  # {{SRC_PATH}} — e.g. packages/query-core/src/**
15
14
 
16
- name: Notify Intent
15
+ name: Trigger Skill Review
17
16
 
18
17
  on:
19
18
  push:
@@ -24,7 +23,7 @@ on:
24
23
 
25
24
  jobs:
26
25
  notify:
27
- name: Notify TanStack Intent
26
+ name: Trigger Skill Review
28
27
  runs-on: ubuntu-latest
29
28
  steps:
30
29
  - name: Checkout
@@ -42,7 +41,7 @@ jobs:
42
41
  uses: peter-evans/repository-dispatch@v3
43
42
  with:
44
43
  token: ${{ secrets.INTENT_NOTIFY_TOKEN }}
45
- repository: TanStack/intent
44
+ repository: ${{ github.repository }}
46
45
  event-type: skill-check
47
46
  client-payload: |
48
47
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/intent",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "Ship compositional knowledge for AI coding agents alongside your npm packages",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,5 +0,0 @@
1
- import "./utils-BfjM1mQe.mjs";
2
- import "./setup-mGV2dZrq.mjs";
3
- import { t as scanForIntents } from "./scanner-DVepyEwz.mjs";
4
-
5
- export { scanForIntents };