@chanlerdev/scorel 0.0.3 → 0.0.4

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.
@@ -0,0 +1,58 @@
1
+ # S0102 Device Only Config
2
+
3
+ ## Goal
4
+
5
+ Remove project-level config as a product concept. A Scorel device has exactly one editable config, stored at that device's Scorel home `config.toml`.
6
+
7
+ Projects are workspace/session objects. They do not own Provider, Model, Memory, Runtime, or Extension settings.
8
+
9
+ ## Scope
10
+
11
+ - Core config loading reads only the device/user config file.
12
+ - Remove `.scorel/config.toml` from the public config schema and runtime loading contract.
13
+ - Settings writes always target the device config, even if an older request still includes a `projectId`.
14
+ - CLI daemon, CLI chat, GUI local host, and daemon fallback config reads pass the device `scorelHomeDir` explicitly so custom device roots do not read the process user's real `~/.scorel/config.toml`.
15
+ - Update current config docs/specs that describe project-scoped config.
16
+
17
+ ## Not In Scope
18
+
19
+ - Changing Project/session ownership.
20
+ - Removing Project registry or remote Project selection.
21
+ - Adding migration for old project `.scorel/config.toml` files.
22
+ - Changing project-scoped Memory status or runtime stats, which are activity/status data, not config ownership.
23
+
24
+ ## Acceptance Criteria
25
+
26
+ - `loadScorelConfig` and `loadScorelConfigProfile` ignore project `.scorel/config.toml`.
27
+ - If device config is missing, config loading reports the missing device config path.
28
+ - Provider/model/memory/runtime/extension Settings writes go to device `config.toml`.
29
+ - Requests with `projectId` do not create or mutate project `.scorel/config.toml`.
30
+ - Runtime creation for a Project still uses that device's single config.
31
+ - Docs describe config as device-only.
32
+
33
+ ## Test Requirements
34
+
35
+ - Core config tests load from device/user config and prove project `.scorel/config.toml` is ignored.
36
+ - Daemon embedded tests prove Settings writes with `projectId` still write device config only.
37
+ - CLI daemon idle test continues to prove custom device state roots do not inherit active IM from the real user config.
38
+ - Run `pnpm typecheck && pnpm test`.
39
+
40
+ ## Impacted Files
41
+
42
+ - `packages/core/src/config/index.ts`
43
+ - `packages/core/src/config/config.test.ts`
44
+ - `packages/daemon/src/index.ts`
45
+ - `packages/daemon/src/embedded/embedded.test.ts`
46
+ - `apps/cli/src/index.ts`
47
+ - `apps/cli/src/daemon-cli.ts`
48
+ - `apps/gui/src/main/local-host.ts`
49
+ - `docs/spec/extensions.md`
50
+ - `docs/spec/ship/S0097-rtk-token-saving-settings.md`
51
+ - `docs/spec/ship/S0086-auto-compact-and-session-memory.md`
52
+ - `docs/ROADMAP.md`
53
+ - `docs/CHANGELOG.md`
54
+
55
+ ## Risks And Boundaries
56
+
57
+ - Pre-1.0 development rules allow removing this stale config surface rather than preserving compatibility.
58
+ - Old project `.scorel/config.toml` files may remain on disk, but runtime no longer treats them as config.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chanlerdev/scorel",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Replayable, recoverable, remotely controllable AI Agent workspace.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@11.1.2",
@@ -36,7 +36,9 @@
36
36
  "typecheck": "pnpm -r typecheck",
37
37
  "test": "pnpm -r test",
38
38
  "verify:m8-relay": "node --import tsx scripts/verify-m8-relay-e2e.ts",
39
- "verify:m9-gui": "node --import tsx scripts/verify-m9-gui-e2e.ts",
39
+ "verify:m9-gui": "pnpm verify:m9-gui:service && pnpm verify:m9-gui:cdp",
40
+ "verify:m9-gui:service": "node --import tsx scripts/verify-m9-gui-e2e.ts",
41
+ "verify:m9-gui:cdp": "node --import tsx scripts/verify-m9-gui-cdp-e2e.ts",
40
42
  "scorel": "node --import tsx apps/cli/src/index.ts",
41
43
  "dev": "node --import tsx apps/cli/src/index.ts up",
42
44
  "gui": "pnpm --filter @scorel/app-gui dev"