@mattstack/rt-client 0.3.0 → 0.4.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/dist/client.d.ts +88 -1
- package/dist/commands.d.ts +180 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +278 -21
- package/dist/repos.d.ts +9 -3
- package/dist/settings/identity.d.ts +43 -19
- package/package.json +1 -1
- package/src/client.ts +141 -1
- package/src/commands.ts +91 -1
- package/src/index.ts +37 -2
- package/src/repos.ts +85 -14
- package/src/settings/identity.ts +121 -28
- package/src/settings/registry-defs.ts +43 -6
|
@@ -136,7 +136,7 @@ export const REGISTRY: readonly SettingDef[] = [
|
|
|
136
136
|
merge: "deep",
|
|
137
137
|
repoScoped: true,
|
|
138
138
|
migrated: true,
|
|
139
|
-
description: "Branch-naming templates.
|
|
139
|
+
description: "Branch-naming templates, repoScoped. Read by the VS Code extension (extensions/vscode/rt-context), which lazily imports the legacy repos/<repo>/branch-naming.json into this key on first read; rt itself has no CLI-side reader.",
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
key: "rt.variations",
|
|
@@ -196,17 +196,14 @@ export const REGISTRY: readonly SettingDef[] = [
|
|
|
196
196
|
migrated: true,
|
|
197
197
|
description: "Age floor in days for the log janitor pruning every surface's rotated log files under ~/.mattstack/rt/logs (default 14). A fresh key, not an ownership-latch port, so a default is fine here.",
|
|
198
198
|
},
|
|
199
|
-
|
|
200
|
-
// --- migrated:false (deferred by ruling) --------------------------------
|
|
201
199
|
{
|
|
202
200
|
key: "rt.hooks",
|
|
203
201
|
type: "object",
|
|
204
202
|
scopes: ALL_SCOPES,
|
|
205
203
|
merge: "deep",
|
|
206
204
|
repoScoped: true,
|
|
207
|
-
migrated:
|
|
208
|
-
|
|
209
|
-
description: "User-defined lifecycle hooks rt runs around commands (pre/post command scripts).",
|
|
205
|
+
migrated: true,
|
|
206
|
+
description: "Per-repo git hook enable/disable state ({enabled, hooks: {<hookName>: boolean}}); ownership-latch port of repos/<repo>/hooks.json, store wins per field once it owns the key — including per-hook-name entries inside the nested hooks map, each defaulting to enabled when absent. The installed git-hook shim still greps repos/<repo>/hooks.json with zero process spawns (a hook fires on every git operation); that file is now a DERIVED CACHE this key writes through, kept current by commands/hooks.ts's regenerateHooksCache at every write seam.",
|
|
210
207
|
},
|
|
211
208
|
|
|
212
209
|
// --- mattstack (installer-lane) -----------------------------------------
|
|
@@ -231,6 +228,15 @@ export const REGISTRY: readonly SettingDef[] = [
|
|
|
231
228
|
merge: "replace",
|
|
232
229
|
description: "Absolute path to the installed mattstack.app bundle, written by the app at launch so rt stops hardcoding ~/Applications.",
|
|
233
230
|
},
|
|
231
|
+
{
|
|
232
|
+
key: "rt.integrations",
|
|
233
|
+
type: "object",
|
|
234
|
+
scopes: ["user"],
|
|
235
|
+
merge: "deep",
|
|
236
|
+
migrated: true,
|
|
237
|
+
description:
|
|
238
|
+
"User-confirmed integration hosts (forgeHost, switchboardUrl), written only by an explicit `rt setup <id> connect --host` after that host validates a real credential. The one trusted source a credential is ever sent to — mattstack.integrations' team-declared host is shown to the user but never auto-used for a fetch.",
|
|
239
|
+
},
|
|
234
240
|
|
|
235
241
|
// --- claude (installer-lane) --------------------------------------------
|
|
236
242
|
{
|
|
@@ -436,4 +442,35 @@ export const REGISTRY: readonly SettingDef[] = [
|
|
|
436
442
|
merge: "deep",
|
|
437
443
|
description: "gitq checkout-board config: tracked repos, local port, and the herdr workspace it launches into.",
|
|
438
444
|
},
|
|
445
|
+
|
|
446
|
+
// --- chat (RT-48 Task 7) -------------------------------------------------
|
|
447
|
+
{
|
|
448
|
+
key: "chat.handle",
|
|
449
|
+
type: "string",
|
|
450
|
+
scopes: ["user"],
|
|
451
|
+
merge: "replace",
|
|
452
|
+
description: "Explicit rt chat handle for this developer on this machine; overrides the derived <repo>-<dir> handle when set.",
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
key: "chat.humanHandle",
|
|
456
|
+
type: "string",
|
|
457
|
+
scopes: ["user"],
|
|
458
|
+
default: "matt",
|
|
459
|
+
merge: "replace",
|
|
460
|
+
description: "The human's own chat handle, so agents can @-mention them by name.",
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
key: "chat.push.provider",
|
|
464
|
+
type: "string",
|
|
465
|
+
scopes: ["user"],
|
|
466
|
+
merge: "replace",
|
|
467
|
+
description: "Push notification provider used to alert the human of chat mentions when away from a terminal.",
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
key: "chat.push.target",
|
|
471
|
+
type: "string",
|
|
472
|
+
scopes: ["user"],
|
|
473
|
+
merge: "replace",
|
|
474
|
+
description: "Destination (topic/URL/token) the configured chat.push.provider sends to.",
|
|
475
|
+
},
|
|
439
476
|
];
|