@mesh-tech/mesh-cli 0.23.0 → 0.23.1
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.
|
@@ -9,15 +9,15 @@ import { performance } from 'node:perf_hooks'
|
|
|
9
9
|
const AGENT = "claude"
|
|
10
10
|
const CATALOG_COMMAND = "pnpm exec intent list --json --no-notices"
|
|
11
11
|
const EDIT_TOOLS = new Set(["Edit","MultiEdit","NotebookEdit","Write"])
|
|
12
|
-
//
|
|
12
|
+
// Name the exact runnable commands, not a vague "follow the setup".
|
|
13
13
|
// An agent that hits this deny WITHOUT the SessionStart catalog in view (subagent,
|
|
14
14
|
// post-compaction, headless) otherwise has no command to run — the "guess a bare
|
|
15
|
-
// `intent`, fail, give up" loop
|
|
15
|
+
// `intent`, fail, give up" loop the catalog closed. Reuse
|
|
16
16
|
// CATALOG_COMMAND so the listing invocation stays in one place.
|
|
17
17
|
const GATE_DENY_REASON = `Blocked: load matching TanStack guidance before editing. Run \`${CATALOG_COMMAND}\` to see available skills, then \`pnpm exec intent load <package>#<skill>\` for the matching one, then retry the edit. (No bare \`intent\` on PATH — use \`pnpm exec intent\`.)`
|
|
18
18
|
const INTENT_COMMAND_PATTERN = /(?:^|&&|\|\||;|\|)\s*((?:bunx\s+@tanstack\/intent(?:@latest)?)|(?:pnpm\s+exec\s+intent)|(?:pnpm\s+dlx\s+@tanstack\/intent(?:@latest)?)|(?:npx\s+@tanstack\/intent(?:@latest)?)|(?:yarn\s+dlx\s+@tanstack\/intent(?:@latest)?)|(?:intent))\s+(list|load)(?:\s+([^\s|;&]+))?/i
|
|
19
19
|
|
|
20
|
-
// LOCAL HARDENING
|
|
20
|
+
// LOCAL HARDENING: this file started as `intent install` output, but it
|
|
21
21
|
// is committed and CLI-managed — `mesh skills sync` (and `mesh init app-tenant --fix`)
|
|
22
22
|
// overwrite it from the mesh-cli asset (libs/mesh-cli/assets/intent/intent-claude-gate.mjs
|
|
23
23
|
// in mesh-platform). Never fix one copy without the other; in mesh-platform,
|
|
@@ -131,7 +131,7 @@ function formatSessionCatalog(result) {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
function formatSkillCatalog(skills) {
|
|
134
|
-
// Render each skill as a copy-paste load command
|
|
134
|
+
// Render each skill as a copy-paste load command. `skill.use` is the
|
|
135
135
|
// exact `<package>#<skill>` id, so agents don't have to guess the invocation — the
|
|
136
136
|
// vague "load with the Intent CLI" wording made them try a non-existent bare
|
|
137
137
|
// `intent` and give up. LOCAL CUSTOMIZATION: re-apply if you re-run `intent install`.
|
package/bin/mesh.mjs
CHANGED
package/dist/build-info.json
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
install`) writes its skill-loading guidance to AGENTS.md, but Claude Code loads
|
|
5
5
|
CLAUDE.md, not AGENTS.md — without this import the guidance never reaches Claude,
|
|
6
6
|
and intent-skill activation drops to ~0% (agents guess a non-existent bare
|
|
7
|
-
`intent` command and give up). Keep this import.
|
|
7
|
+
`intent` command and give up). Keep this import. -->
|
|
8
8
|
@AGENTS.md
|