specialist-agent 2.8.1 → 2.9.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.
Files changed (2) hide show
  1. package/cli/index.mjs +24 -7
  2. package/package.json +1 -1
package/cli/index.mjs CHANGED
@@ -201,12 +201,17 @@ function detectFramework(pkgPath, availablePacks) {
201
201
 
202
202
  // ── Guidance texts ───────────────────────────────────
203
203
 
204
- function buildGettingStarted(agentNames, installedSkills) {
204
+ function buildGettingStarted(agentNames, installedSkills, archInstalled) {
205
205
  const lines = []
206
206
 
207
- lines.push('Agents enforce the architecture defined in docs/ARCHITECTURE.md.')
208
- lines.push('They ensure consistency across modules \u2014 the more you use them,')
209
- lines.push('the more value they deliver.')
207
+ if (archInstalled) {
208
+ lines.push('Agents enforce the architecture defined in docs/ARCHITECTURE.md.')
209
+ lines.push('They ensure consistency across modules \u2014 the more you use them,')
210
+ lines.push('the more value they deliver.')
211
+ } else {
212
+ lines.push('Agents use generic best practices for your framework.')
213
+ lines.push('To customize patterns, add a docs/ARCHITECTURE.md to your project.')
214
+ }
210
215
  lines.push('')
211
216
  lines.push('Examples:')
212
217
  lines.push('')
@@ -928,6 +933,18 @@ async function main() {
928
933
  }
929
934
  }
930
935
 
936
+ // ── Architecture Guide (optional) ─────────────────
937
+
938
+ let installArch = false
939
+
940
+ const wantArch = await clack.confirm({
941
+ message: `Install architecture guide? ${DIM}(docs/ARCHITECTURE.md)${NC}`,
942
+ initialValue: false,
943
+ })
944
+
945
+ if (clack.isCancel(wantArch)) handleCancel()
946
+ installArch = wantArch
947
+
931
948
  // ── Install files ──────────────────────────────────
932
949
 
933
950
  const packDir = join(ROOT, 'packs', framework)
@@ -1033,10 +1050,10 @@ async function main() {
1033
1050
  nativeHooksInstalled = setupNativeHooks(cwd, selectedHooks)
1034
1051
  }
1035
1052
 
1036
- // Install ARCHITECTURE.md
1053
+ // Install ARCHITECTURE.md (only if user opted in)
1037
1054
  const archDest = join(cwd, 'docs', 'ARCHITECTURE.md')
1038
1055
  let archInstalled = false
1039
- if (!existsSync(archDest) && existsSync(archSource)) {
1056
+ if (installArch && !existsSync(archDest) && existsSync(archSource)) {
1040
1057
  mkdirSync(dirname(archDest), { recursive: true })
1041
1058
  cpSync(archSource, archDest)
1042
1059
  archInstalled = true
@@ -1080,7 +1097,7 @@ async function main() {
1080
1097
  ? readdirSync(skillsDest, { withFileTypes: true }).filter(d => d.isDirectory()).map(d => '/' + d.name)
1081
1098
  : []
1082
1099
 
1083
- clack.note(buildGettingStarted(agentNames, installedSkills), 'Getting started')
1100
+ clack.note(buildGettingStarted(agentNames, installedSkills, archInstalled), 'Getting started')
1084
1101
 
1085
1102
  if (mode === 'lite') {
1086
1103
  clack.log.info(`${DIM}Lite mode: agents run on Haiku (lower cost, faster).${NC}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specialist-agent",
3
- "version": "2.8.1",
3
+ "version": "2.9.0",
4
4
  "type": "module",
5
5
  "description": "AI agents for Claude Code — any framework, any stack",
6
6
  "bin": {