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.
- package/README.md +1 -0
- package/package.json +6 -6
- package/partials/agents.md +247 -3174
- package/partials/guides/backend.md +155 -0
- package/partials/guides/content.md +314 -0
- package/partials/guides/data.md +216 -0
- package/partials/guides/foundation.md +339 -0
- package/partials/guides/i18n.md +71 -0
- package/partials/guides/index.json +52 -0
- package/partials/guides/migrate.md +27 -0
- package/partials/guides/services.md +176 -0
- package/partials/guides/ship.md +116 -0
- package/partials/guides/start.md +73 -0
- package/partials/guides/theme.md +123 -0
- package/partials/start.md +12 -11
- package/src/commands/add.js +2 -0
- package/src/commands/build.js +13 -6
- package/src/commands/export.js +4 -3
- package/src/commands/guide.js +89 -0
- package/src/commands/publish.js +6 -5
- package/src/commands/push.js +8 -6
- package/src/commands/status.js +21 -4
- package/src/framework-index.json +7 -7
- package/src/index.js +31 -1
- package/src/utils/agents-stamp.js +24 -10
- package/src/utils/flag-guard.js +3 -1
- package/src/utils/scaffold.js +3 -2
- package/templates/workspace/AGENTS.md.hbs +1 -2
- package/templates/workspace/README.md.hbs +2 -1
package/src/utils/scaffold.js
CHANGED
|
@@ -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
|
-
//
|
|
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
|
-
|
|
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
|
|