@archangel70/cosmo 1.11.0 → 1.12.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.
- package/CHANGELOG.md +6 -0
- package/README.md +25 -5
- package/package.json +1 -1
- package/packages/cli/bin/cosmo.mjs +12 -1
- package/packages/cli/lib/self-update.mjs +9 -0
- package/plugins/agent-skills/cosmo/.cosmo-agent.json +1 -1
- package/plugins/agent-skills/cosmo/SKILL.md +2 -0
- package/plugins/antigravity/cosmo.md +3 -1
- package/plugins/claude-code/cosmo/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/cosmo/skills/cosmo/SKILL.md +2 -0
- package/templates/astro-site/.agents/skills/cosmo/SKILL.md +2 -0
- package/templates/astro-site/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable Cosmo changes are recorded here.
|
|
4
4
|
|
|
5
|
+
## 1.12.0 — One-command updates
|
|
6
|
+
|
|
7
|
+
- Added `cosmo update` to install the latest public npm release without requiring users to remember the package name.
|
|
8
|
+
- Refreshes the Claude, Codex, and Antigravity launchers through the normal Cosmo installation process while leaving website projects untouched.
|
|
9
|
+
- Rewrote the beginner update instructions around the new command and retained the npm command as a troubleshooting fallback.
|
|
10
|
+
|
|
5
11
|
## 1.11.0 — Evidence-controlled EntityMap
|
|
6
12
|
|
|
7
13
|
- Added optional EntityMap v1.0 generation from the Entity Canon and eligible final Astro content.
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Cosmo helps an AI coding assistant build a complete, original Astro website for
|
|
|
4
4
|
|
|
5
5
|
You do **not** need to know how to code. Cosmo supports Claude Code, Codex, and Google Antigravity.
|
|
6
6
|
|
|
7
|
-
Current version: **1.
|
|
7
|
+
Current version: **1.12.0**
|
|
8
8
|
|
|
9
9
|
## Quick install
|
|
10
10
|
|
|
@@ -82,7 +82,7 @@ This is the only part of the beginner setup that uses a terminal. It is one inst
|
|
|
82
82
|
cosmo --version
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
You should see `1.
|
|
85
|
+
You should see `1.12.0` or a newer version. Cosmo automatically installs its Claude, Codex, and Antigravity launchers.
|
|
86
86
|
|
|
87
87
|
### On Windows
|
|
88
88
|
|
|
@@ -99,7 +99,7 @@ You should see `1.11.0` or a newer version. Cosmo automatically installs its Cla
|
|
|
99
99
|
cosmo --version
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
You should see `1.
|
|
102
|
+
You should see `1.12.0` or a newer version. Cosmo automatically installs its Claude, Codex, and Antigravity launchers.
|
|
103
103
|
|
|
104
104
|
## Step 4: create your website folder
|
|
105
105
|
|
|
@@ -191,11 +191,30 @@ Cosmo will not automatically adopt an unrelated folder or overwrite a folder it
|
|
|
191
191
|
When a new version is announced, open Terminal or PowerShell and run:
|
|
192
192
|
|
|
193
193
|
```bash
|
|
194
|
-
|
|
194
|
+
cosmo update
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Cosmo downloads the latest published version and refreshes its Claude, Codex, and Antigravity launchers. Your website projects are not changed. When the update finishes, close and reopen your AI assistant, then confirm the installed version:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
195
200
|
cosmo --version
|
|
196
201
|
```
|
|
197
202
|
|
|
198
|
-
Updating Cosmo
|
|
203
|
+
### Updating from Cosmo 1.11.0 or older
|
|
204
|
+
|
|
205
|
+
Older versions do not have the `cosmo update` command yet. Run this longer command one final time:
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
npm install --global @archangel70/cosmo@latest
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
After that, use `cosmo update` for every future update.
|
|
212
|
+
|
|
213
|
+
If `cosmo update` reports a permissions or npm error, use the original installer as a fallback:
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
npm install --global @archangel70/cosmo@latest
|
|
217
|
+
```
|
|
199
218
|
|
|
200
219
|
## Remove Cosmo
|
|
201
220
|
|
|
@@ -622,6 +641,7 @@ Run `cosmo help` for the installed version's canonical syntax.
|
|
|
622
641
|
| `cosmo` | Show the friendly, context-aware next step for the current folder. |
|
|
623
642
|
| `cosmo start [directory]` | Show the guided next step for a specified folder. |
|
|
624
643
|
| `cosmo help` | Show the complete developer command reference. |
|
|
644
|
+
| `cosmo update` | Download the latest published Cosmo version and refresh all agent launchers. |
|
|
625
645
|
| `cosmo setup [--agent name]` | Install or repair all launchers, or only Claude, Codex, or Antigravity. |
|
|
626
646
|
| `cosmo agent list` | Show supported agents and whether each adapter is ready. |
|
|
627
647
|
| `cosmo agent install <name|all> [--replace]` | Install or update one or every agent adapter. |
|
package/package.json
CHANGED
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
writeJson,
|
|
42
42
|
} from '../lib/project.mjs';
|
|
43
43
|
import { run } from '../lib/process.mjs';
|
|
44
|
+
import { updateCosmo } from '../lib/self-update.mjs';
|
|
44
45
|
import { captureResearchSource, checkResearchWorkbench, scaffoldResearchWorkbench } from '../lib/research.mjs';
|
|
45
46
|
import { collectProjectStatus } from '../lib/status.mjs';
|
|
46
47
|
import { planSummary, readPlan } from '../lib/plan.mjs';
|
|
@@ -64,7 +65,7 @@ import {
|
|
|
64
65
|
workflowSummary,
|
|
65
66
|
} from '../lib/workflow.mjs';
|
|
66
67
|
|
|
67
|
-
const VERSION = '1.
|
|
68
|
+
const VERSION = '1.12.0';
|
|
68
69
|
const cliDirectory = path.dirname(fileURLToPath(import.meta.url));
|
|
69
70
|
const templateDirectory = path.resolve(cliDirectory, '../../../templates/astro-site');
|
|
70
71
|
const [command = 'start', ...rawArgs] = process.argv.slice(2);
|
|
@@ -81,6 +82,7 @@ Commands
|
|
|
81
82
|
cosmo Show the guided next step for this folder
|
|
82
83
|
cosmo start [directory] Show the guided next step for another folder
|
|
83
84
|
cosmo help Show the complete developer command reference
|
|
85
|
+
cosmo update Install the latest Cosmo version and refresh agent launchers
|
|
84
86
|
cosmo setup [--agent claude|codex|antigravity|all]
|
|
85
87
|
cosmo agent list
|
|
86
88
|
cosmo agent install <claude|codex|antigravity|all> [--replace]
|
|
@@ -169,6 +171,14 @@ function start(args) {
|
|
|
169
171
|
console.log(launcherGuide(projectDirectory(positional[0] ?? '.'), VERSION));
|
|
170
172
|
}
|
|
171
173
|
|
|
174
|
+
async function update() {
|
|
175
|
+
console.log(`Updating Cosmo ${VERSION} to the latest published version...`);
|
|
176
|
+
await updateCosmo();
|
|
177
|
+
console.log('Cosmo is up to date. Your website projects were not changed.');
|
|
178
|
+
console.log('Claude, Codex, and Antigravity launchers were refreshed during installation.');
|
|
179
|
+
console.log('Close and reopen your AI assistant, then run: cosmo --version');
|
|
180
|
+
}
|
|
181
|
+
|
|
172
182
|
async function init(args) {
|
|
173
183
|
const { options, positional } = parseOptions(args);
|
|
174
184
|
const target = projectDirectory(positional[0] ?? '.');
|
|
@@ -1079,6 +1089,7 @@ async function main() {
|
|
|
1079
1089
|
if (command === 'help' || command === '--help' || command === '-h') return help();
|
|
1080
1090
|
if (command === 'start') return start(rawArgs);
|
|
1081
1091
|
if (command === '--version' || command === '-v' || command === 'version') return console.log(VERSION);
|
|
1092
|
+
if (command === 'update') return update();
|
|
1082
1093
|
if (command === 'setup') return setup(rawArgs);
|
|
1083
1094
|
if (command === 'init') return init(rawArgs);
|
|
1084
1095
|
if (command === 'adopt') return adopt(rawArgs);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { run } from './process.mjs';
|
|
2
|
+
|
|
3
|
+
export const COSMO_PACKAGE = '@archangel70/cosmo';
|
|
4
|
+
|
|
5
|
+
export async function updateCosmo({ runner = run } = {}) {
|
|
6
|
+
const specification = `${COSMO_PACKAGE}@latest`;
|
|
7
|
+
await runner('npm', ['install', '--global', specification]);
|
|
8
|
+
return { packageName: COSMO_PACKAGE, specification };
|
|
9
|
+
}
|
|
@@ -77,3 +77,5 @@ Any supported agent may continue the project. Before switching, run appropriate
|
|
|
77
77
|
## Help
|
|
78
78
|
|
|
79
79
|
When asked what Cosmo can do, lead with four choices: build a new website, continue a Cosmo website, improve an existing Astro website, or review/publish a website. Show the simple journey `Discover → Brand → Design → Copy and page plan → Build → Quality checks → Preview and launch`. Mention advanced capabilities only if relevant or requested, and end with one clear question.
|
|
80
|
+
|
|
81
|
+
When the user asks to update Cosmo itself, run `cosmo update`. Explain that it updates the global npm package and agent launchers but does not modify website projects. Afterward, ask the user to restart their assistant.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- cosmo-agent-version: 1.
|
|
1
|
+
<!-- cosmo-agent-version: 1.12.0 -->
|
|
2
2
|
# Cosmo
|
|
3
3
|
|
|
4
4
|
Use the Cosmo website-building workflow in the current workspace.
|
|
@@ -7,6 +7,8 @@ If the user invokes `/cosmo` without a specific task, do not print the command r
|
|
|
7
7
|
|
|
8
8
|
First, look for `.agents/skills/cosmo/SKILL.md` and follow it completely when present. If it is absent, apply these minimum rules:
|
|
9
9
|
|
|
10
|
+
- If the user asks to update Cosmo itself, run `cosmo update`; this refreshes Cosmo and its agent launchers without changing website projects.
|
|
11
|
+
|
|
10
12
|
- Run `cosmo --version` and inspect the directory before changing anything.
|
|
11
13
|
- Resume when `.cosmo/project.json` exists.
|
|
12
14
|
- Offer adoption when an Astro project exists without `.cosmo/project.json`.
|
|
@@ -133,3 +133,5 @@ For design, explore at least three genuinely distinct directions and preserve th
|
|
|
133
133
|
## Help mode
|
|
134
134
|
|
|
135
135
|
If the user asks what Cosmo can do, lead with four choices: build a new website, continue a Cosmo website, improve an existing Astro website, or review/publish a website. Show the simple journey `Discover → Brand → Design → Copy and page plan → Build → Quality checks → Preview and launch`. Mention advanced capabilities only if relevant or requested, and end with one clear question.
|
|
136
|
+
|
|
137
|
+
If the user asks to update Cosmo itself, run `cosmo update`. Explain that it updates the global npm package and agent launchers without modifying website projects, then ask the user to restart Claude Code.
|
|
@@ -18,3 +18,5 @@ At each stage, read the contract and selected intelligence guidance, explain the
|
|
|
18
18
|
Advance generation one state at a time. After two unsuccessful repair cycles, leave the page for human review. Run `cosmo entity check .` during QA when EntityMap is enabled. Require the exact release to report READY before production deployment.
|
|
19
19
|
|
|
20
20
|
When switching tools, create a durable handoff with `cosmo handoff create . --from <current-agent> --to <next-agent> --note "<summary and open decisions>"`. The next agent must continue from repository state.
|
|
21
|
+
|
|
22
|
+
If the user asks to update Cosmo itself, run `cosmo update`. It updates the global package and agent launchers, never this website's files. Ask the user to restart their assistant when it finishes.
|