@astrale-os/cli 1.0.0-beta.26 → 1.0.0-beta.28
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 +31 -5
- package/dist/astrale.js +1201 -358
- package/package.json +3 -2
- package/src/commands/__tests__/domain-install-operation.test.ts +23 -0
- package/src/commands/__tests__/install-identity-override.test.ts +3 -3
- package/src/commands/domain/install.ts +19 -11
- package/src/commands/get.ts +1 -1
- package/src/commands/identity/register.ts +3 -4
- package/src/commands/logs.ts +2 -5
- package/src/commands/session/analyze.ts +26 -4
- package/src/commands/update.ts +61 -40
- package/src/lib/__tests__/skills.test.ts +809 -0
- package/src/lib/skills/lock.ts +117 -0
- package/src/lib/skills/sync.ts +814 -0
- package/src/lib/skills.ts +1 -52
- package/src/program/__tests__/program.test.ts +1 -1
- package/src/setup/steps/skills.ts +40 -38
- package/src/telemetry/__tests__/retention.test.ts +180 -0
- package/src/telemetry/__tests__/settings.test.ts +102 -0
- package/src/telemetry/__tests__/store-scan.test.ts +128 -0
- package/src/telemetry/__tests__/trigger.test.ts +33 -4
- package/src/telemetry/recorder.ts +6 -3
- package/src/telemetry/retention.ts +129 -0
- package/src/telemetry/session.ts +18 -12
- package/src/telemetry/settings.ts +64 -11
- package/src/telemetry/store.ts +87 -9
- package/src/telemetry/trigger.ts +16 -28
- package/studio/client/dist/assets/index-BFVFs_8x.js +81 -0
- package/studio/client/dist/assets/index-DuB9iUdu.css +2 -0
- package/studio/client/dist/assets/schema-studio--a0kX3QU.css +1 -0
- package/studio/client/dist/assets/schema-studio-DH6oEWME.js +8 -0
- package/studio/client/dist/index.html +3 -3
- package/studio/server/agent/prompts/anchors.test.ts +17 -4
- package/studio/server/agent/prompts/anchors.ts +3 -2
- package/studio/server/agent/prompts/system.test.ts +2 -3
- package/studio/server/agent/prompts/system.ts +3 -3
- package/studio/server/agent/run/preparation.ts +1 -1
- package/studio/server/api/context.ts +1 -1
- package/studio/server/api/deployment.ts +1 -1
- package/studio/server/api/views.ts +2 -2
- package/studio/server/api/workspace.ts +1 -1
- package/studio/server/cache.test.ts +3 -8
- package/studio/server/cache.ts +4 -45
- package/studio/server/cli-consumers.test.ts +31 -2
- package/studio/server/handoff/copy.ts +1 -1
- package/studio/server/introspect/canonical-schema.test.ts +154 -128
- package/studio/server/introspect/canonical-schema.ts +183 -302
- package/studio/server/introspect/core.ts +14 -21
- package/studio/server/introspect/extractor.ts +11 -15
- package/studio/server/introspect/overlay-tsmorph.test.ts +1 -5
- package/studio/server/introspect/overlay-tsmorph.ts +0 -1
- package/studio/server/introspect/overlay.ts +3 -24
- package/studio/server/introspect/revision.test.ts +24 -28
- package/studio/server/introspect/revision.ts +10 -21
- package/studio/server/introspect/runtime.test.ts +14 -14
- package/studio/server/introspect/runtime.ts +1 -46
- package/studio/server/lifecycle.ts +4 -1
- package/studio/server/state/documents.test.ts +69 -0
- package/studio/server/state/documents.ts +57 -10
- package/studio/server/workspace/updates.ts +23 -1
- package/studio/shared/contracts/runtime.ts +4 -0
- package/studio/shared/contracts/schema.ts +10 -26
- package/studio/shared/contracts/surface.test.ts +2 -2
- package/studio/shared/contracts/workspace.ts +3 -0
- package/studio/shared/schema/identity.ts +0 -1
- package/tsconfig.json +1 -1
- package/studio/client/dist/assets/index-C0FAnwNw.css +0 -2
- package/studio/client/dist/assets/index-OeJK1TjG.js +0 -81
- package/studio/client/dist/assets/schema-studio-BilUNb6Z.css +0 -1
- package/studio/client/dist/assets/schema-studio-DRdfu_cQ.js +0 -8
- package/studio/server/introspect/core-extractor.ts +0 -30
- package/studio/server/introspect/overlay.test.ts +0 -44
- package/studio/server/introspect/source-overlay/annotations.ts +0 -14
package/README.md
CHANGED
|
@@ -87,12 +87,12 @@ Install the browser driver once:
|
|
|
87
87
|
|
|
88
88
|
```bash
|
|
89
89
|
npm install -g agent-browser && agent-browser install
|
|
90
|
-
npx skills add astrale-os/cli # installs
|
|
90
|
+
npx skills add astrale-os/cli # installs every Astrale skill published by this repository
|
|
91
91
|
npx skills add vercel-labs/agent-browser
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
To install just one
|
|
95
|
-
`npx skills add astrale-os/cli@astrale-
|
|
94
|
+
To install just one, select `astrale-cli`, `astrale-domain`, `astrale-frontend-design`, or
|
|
95
|
+
`astrale-services`, for example: `npx skills add astrale-os/cli@astrale-frontend-design`.
|
|
96
96
|
|
|
97
97
|
## Updating
|
|
98
98
|
|
|
@@ -101,8 +101,11 @@ astrale update --check
|
|
|
101
101
|
astrale update
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
`astrale update` upgrades official script installs
|
|
105
|
-
|
|
104
|
+
`astrale update` upgrades official script installs, ensures every Astrale agent skill published
|
|
105
|
+
from `astrale-os/cli` is installed and healthy, and follows the beta channel by default. It reports
|
|
106
|
+
whether the skill pass was unchanged, installed, updated, or repaired. Use `--check`,
|
|
107
|
+
`--channel <channel>`, or `--version <version>` to control the CLI release target; skills always
|
|
108
|
+
track the repository's current `main` source. `--no-skills` is the explicit opt-out.
|
|
106
109
|
|
|
107
110
|
## Commands
|
|
108
111
|
|
|
@@ -145,6 +148,29 @@ CLI state lives under `~/.astrale/`:
|
|
|
145
148
|
- `identities.json`
|
|
146
149
|
- keypairs
|
|
147
150
|
- cached IdP sessions
|
|
151
|
+
- `sessions/` — locally recorded work sessions (see below)
|
|
152
|
+
|
|
153
|
+
### Session retention
|
|
154
|
+
|
|
155
|
+
Each invocation appends one line to a local session record under
|
|
156
|
+
`~/.astrale/sessions/`; `astrale session list` shows them. The store is swept
|
|
157
|
+
automatically against two bounds — sessions idle past `maxAgeDays` are dropped,
|
|
158
|
+
then the store is trimmed to `maxBytes`, oldest first. Both are optional:
|
|
159
|
+
|
|
160
|
+
```jsonc
|
|
161
|
+
// ~/.astrale/config.json
|
|
162
|
+
{
|
|
163
|
+
"telemetry": {
|
|
164
|
+
"enabled": true, // false disables recording (the sweep still runs)
|
|
165
|
+
"maxAgeDays": 30, // default
|
|
166
|
+
"maxBytes": 52428800 // default: 50 MB
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
`ASTRALE_TELEMETRY_MAX_AGE_DAYS` and `ASTRALE_TELEMETRY_MAX_BYTES` override the
|
|
172
|
+
config for one invocation. Values that are not positive numbers are ignored in
|
|
173
|
+
favour of the default, so a typo cannot leave the store unbounded.
|
|
148
174
|
|
|
149
175
|
## Development
|
|
150
176
|
|