uniweb 1.25.4 → 1.25.6

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.
@@ -18,6 +18,7 @@ import {
18
18
  } from '../templates/processor.js'
19
19
  import { getVersionsForTemplates, getCliVersion } from '../versions.js'
20
20
  import { writeJsonPreservingStyleAsync } from './json-file.js'
21
+ import { generateAgentsContent } from './agents-stamp.js'
21
22
 
22
23
  const __dirname = dirname(fileURLToPath(import.meta.url))
23
24
  const TEMPLATES_DIR = join(__dirname, '..', '..', 'templates')
@@ -46,8 +47,8 @@ export async function scaffoldWorkspace(targetDir, context, options = {}) {
46
47
  // because an empty packages: [] makes pnpm search parent directories.
47
48
  const skip = context.workspaceGlobs?.length ? [] : ['pnpm-workspace.yaml']
48
49
 
49
- // Inject CLI version for AGENTS.md stamp
50
- context = { ...context, cliVersion: getCliVersion() }
50
+ // AGENTS.md comes from the one writer `update` uses too, so `create` and `update` can't differ.
51
+ context = { ...context, cliVersion: getCliVersion(), agentsContent: generateAgentsContent() }
51
52
 
52
53
  const templatePath = join(TEMPLATES_DIR, 'workspace')
53
54
  await copyTemplateDirectory(templatePath, targetDir, context, {
@@ -1,2 +1 @@
1
- <!-- uniweb-agents v{{cliVersion}} -->
2
- {{> agents}}
1
+ {{{agentsContent}}}
@@ -133,7 +133,8 @@ conventions, instead of a blank canvas. What an agent builds here, authors can u
133
133
  after the next sync.
134
134
 
135
135
  [AGENTS.md](./AGENTS.md) is written for developers and AI agents alike. Many coding agents read it
136
- on their own when they start in this folder; point any other agent at it first.
136
+ on their own when they start in this folder; point any other agent at it first. `npx uniweb guide`
137
+ prints the rest of the manual, one subject at a time.
137
138
  `npx uniweb@latest update` moves the project to the latest release of Uniweb, and AGENTS.md with
138
139
  it.
139
140