@north-light/crouter 0.3.163 → 0.3.165
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/build-root.d.ts +6 -6
- package/dist/build-root.js +12 -13
- package/dist/builtin-memory/00-runtime-base.md +3 -4
- package/dist/builtin-memory/01-spine/01-no-manager.md +1 -1
- package/dist/builtin-memory/02-lifecycle/00-terminal.md +2 -0
- package/dist/builtin-memory/04-orchestration-kernel.md +16 -18
- package/dist/builtin-memory/05-kinds/advisor/00-base.md +0 -2
- package/dist/builtin-memory/05-kinds/advisor/01-orchestrator.md +3 -9
- package/dist/builtin-memory/05-kinds/developer/00-base.md +1 -3
- package/dist/builtin-memory/05-kinds/developer/01-orchestrator.md +2 -10
- package/dist/builtin-memory/05-kinds/explore/00-base.md +2 -2
- package/dist/builtin-memory/05-kinds/explore/01-orchestrator.md +0 -2
- package/dist/builtin-memory/05-kinds/general/00-base.md +3 -5
- package/dist/builtin-memory/05-kinds/general/01-orchestrator.md +0 -4
- package/dist/builtin-memory/05-kinds/plan/01-orchestrator.md +1 -3
- package/dist/builtin-memory/05-kinds/plan/reviewers/00-base.md +12 -0
- package/dist/builtin-memory/05-kinds/plan/reviewers/architecture-fit.md +0 -2
- package/dist/builtin-memory/05-kinds/plan/reviewers/code-smells.md +0 -2
- package/dist/builtin-memory/05-kinds/plan/reviewers/pattern-consistency.md +0 -2
- package/dist/builtin-memory/05-kinds/plan/reviewers/requirements-coverage.md +1 -1
- package/dist/builtin-memory/05-kinds/plan/reviewers/security.md +0 -2
- package/dist/builtin-memory/05-kinds/review/00-base.md +0 -2
- package/dist/builtin-memory/05-kinds/review/01-orchestrator.md +1 -3
- package/dist/builtin-memory/05-kinds/spec/00-base.md +1 -1
- package/dist/builtin-memory/05-kinds/spec/01-orchestrator.md +2 -4
- package/dist/builtin-memory/05-kinds/spec/requirements.md +1 -1
- package/dist/builtin-memory/advisor/council.md +40 -0
- package/dist/builtin-memory/design.md +8 -11
- package/dist/builtin-memory/development.md +6 -9
- package/dist/builtin-memory/internal/INDEX.md +5 -5
- package/dist/builtin-memory/internal/agent-shaping.md +5 -7
- package/dist/builtin-memory/internal/examples/imessage-assistant.md +3 -3
- package/dist/builtin-memory/internal/marketplaces.md +13 -14
- package/dist/builtin-memory/internal/memory-loading.md +45 -0
- package/dist/builtin-memory/internal/nodes-and-canvas.md +4 -4
- package/dist/builtin-memory/internal/plugins.md +61 -45
- package/dist/builtin-memory/planning.md +4 -7
- package/dist/builtin-memory/spec.md +9 -12
- package/dist/builtin-memory/wedged-child-on-runaway-bash.md +8 -22
- package/dist/cli.js +1 -1
- package/dist/clients/attach/__tests__/attach-keybindings.test.js +17 -4
- package/dist/clients/attach/__tests__/context-message.test.js +31 -20
- package/dist/clients/attach/__tests__/crtr-output-coverage.test.js +1 -1
- package/dist/clients/attach/__tests__/crtr-output.test.js +39 -30
- package/dist/clients/attach/__tests__/edit-diff.test.js +21 -20
- package/dist/clients/attach/render/chat-view.d.ts +20 -20
- package/dist/clients/attach/render/chat-view.js +88 -89
- package/dist/clients/attach/render/{frozen-history.d.ts → condensed-history.d.ts} +1 -18
- package/dist/clients/attach/render/condensed-history.js +60 -0
- package/dist/clients/attach/render/context-message.js +9 -14
- package/dist/clients/attach/render/crtr-output.d.ts +2 -1
- package/dist/clients/attach/render/crtr-output.js +4 -4
- package/dist/clients/attach/render/edit-diff.d.ts +21 -6
- package/dist/clients/attach/render/edit-diff.js +90 -91
- package/dist/clients/attach/render/tool-calls.d.ts +14 -18
- package/dist/clients/attach/render/tool-calls.js +66 -41
- package/dist/clients/attach/session/bindings.d.ts +5 -3
- package/dist/clients/attach/session/bindings.js +7 -13
- package/dist/clients/attach/session/keys.d.ts +2 -0
- package/dist/clients/attach/session/keys.js +36 -37
- package/dist/clients/attach/session/profile-files.d.ts +8 -0
- package/dist/clients/attach/session/profile-files.js +157 -0
- package/dist/clients/attach/viewer.js +530 -528
- package/dist/commands/memory/lint.js +1 -1
- package/dist/commands/memory/write.js +1 -1
- package/dist/commands/node.js +2 -2
- package/dist/commands/pkg/plugin-inspect.js +6 -7
- package/dist/commands/pkg/plugin-manage.d.ts +1 -1
- package/dist/commands/pkg/plugin-manage.js +131 -19
- package/dist/commands/pkg/plugin.js +2 -2
- package/dist/commands/pkg.js +6 -11
- package/dist/commands/profile/env.js +3 -3
- package/dist/commands/sys/config.js +17 -76
- package/dist/commands/sys/doctor.js +5 -91
- package/dist/commands/sys/setup-wizard.d.ts +9 -11
- package/dist/commands/sys/setup-wizard.js +47 -81
- package/dist/core/__tests__/base-worker-prompt.test.js +18 -21
- package/dist/core/__tests__/command-plugins-surfaces.test.js +39 -5
- package/dist/core/__tests__/command-plugins.test.js +36 -16
- package/dist/core/__tests__/review-model-floor.test.js +2 -2
- package/dist/core/__tests__/tmux-surface.test.js +10 -1
- package/dist/core/command-manifests/manifest.d.ts +24 -0
- package/dist/core/{configured-clis → command-manifests}/manifest.js +21 -25
- package/dist/core/command-manifests/registry.d.ts +1 -2
- package/dist/core/command-manifests/registry.js +2 -2
- package/dist/core/command-manifests/schema.d.ts +11 -13
- package/dist/core/command-manifests/schema.js +53 -192
- package/dist/core/command-plugins/compose.d.ts +0 -6
- package/dist/core/command-plugins/compose.js +28 -75
- package/dist/core/command-plugins/discovery.d.ts +25 -58
- package/dist/core/command-plugins/discovery.js +152 -259
- package/dist/core/command-plugins/endpoint.d.ts +24 -0
- package/dist/core/command-plugins/endpoint.js +48 -0
- package/dist/core/command-plugins/store.d.ts +16 -0
- package/dist/core/command-plugins/store.js +64 -0
- package/dist/core/command-plugins/{adapter.d.ts → transport/exec-invoke.d.ts} +3 -3
- package/dist/core/command-plugins/{adapter.js → transport/exec-invoke.js} +4 -4
- package/dist/core/{configured-clis/fetch.d.ts → command-plugins/transport/http-fetch.d.ts} +9 -18
- package/dist/core/{configured-clis/fetch.js → command-plugins/transport/http-fetch.js} +15 -35
- package/dist/core/{configured-clis/invoker.d.ts → command-plugins/transport/http-invoke.d.ts} +7 -7
- package/dist/core/{configured-clis/invoker.js → command-plugins/transport/http-invoke.js} +21 -23
- package/dist/core/command.d.ts +8 -9
- package/dist/core/command.js +6 -9
- package/dist/core/config.js +6 -10
- package/dist/core/env-name.d.ts +6 -0
- package/dist/core/env-name.js +9 -0
- package/dist/core/io.d.ts +1 -1
- package/dist/core/keybindings/__tests__/resolve.test.js +40 -3
- package/dist/core/keybindings/attach-control.d.ts +37 -0
- package/dist/core/keybindings/attach-control.js +38 -0
- package/dist/core/keybindings/catalog.d.ts +5 -4
- package/dist/core/keybindings/catalog.js +16 -8
- package/dist/core/keybindings/index.d.ts +1 -0
- package/dist/core/keybindings/index.js +1 -0
- package/dist/core/keybindings/types.d.ts +1 -1
- package/dist/core/preview-registry.js +41 -74
- package/dist/core/runtime/bearings.d.ts +2 -5
- package/dist/core/runtime/bearings.js +2 -5
- package/dist/core/runtime/front-door.d.ts +1 -1
- package/dist/core/runtime/front-door.js +2 -2
- package/dist/core/runtime/kickoff.d.ts +3 -3
- package/dist/core/runtime/kickoff.js +4 -3
- package/dist/core/runtime/situational-context.d.ts +1 -1
- package/dist/core/runtime/situational-context.js +1 -1
- package/dist/core/runtime/spawn.js +9 -9
- package/dist/core/runtime/tmux.js +29 -2
- package/dist/core/scope.d.ts +0 -5
- package/dist/core/scope.js +0 -10
- package/dist/core/user-settings.d.ts +193 -0
- package/dist/core/user-settings.js +252 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/pi-extensions/canvas-stophook.js +3 -2
- package/dist/pi-extensions/canvas-tool-guide.js +4 -1
- package/dist/shared/generated-context.d.ts +34 -0
- package/dist/shared/generated-context.js +98 -0
- package/dist/types.d.ts +23 -16
- package/dist/types.js +3 -14
- package/dist/web-client/assets/{index-NIuSCOHM.js → index-BMTOGuOZ.js} +19 -19
- package/dist/web-client/assets/index-DvA6Zw-R.css +2 -0
- package/dist/web-client/index.html +2 -2
- package/dist/web-client/sw.js +1 -1
- package/docs/public-api.md +1 -0
- package/package.json +2 -2
- package/runtime.lock.json +6 -6
- package/dist/builtin-memory/05-kinds/product/00-base.md +0 -25
- package/dist/builtin-memory/05-kinds/product/01-orchestrator.md +0 -15
- package/dist/builtin-memory/05-kinds/product/teardown.md +0 -15
- package/dist/builtin-memory/internal/workflow-codification.md +0 -82
- package/dist/builtin-memory/product.md +0 -80
- package/dist/clients/attach/render/frozen-history.js +0 -100
- package/dist/commands/pkg/cli-inspect.d.ts +0 -17
- package/dist/commands/pkg/cli-inspect.js +0 -190
- package/dist/commands/pkg/cli-manage.d.ts +0 -3
- package/dist/commands/pkg/cli-manage.js +0 -206
- package/dist/commands/pkg/cli.d.ts +0 -1
- package/dist/commands/pkg/cli.js +0 -14
- package/dist/core/configured-clis/cache.d.ts +0 -16
- package/dist/core/configured-clis/cache.js +0 -57
- package/dist/core/configured-clis/compose.d.ts +0 -14
- package/dist/core/configured-clis/compose.js +0 -60
- package/dist/core/configured-clis/discovery.d.ts +0 -47
- package/dist/core/configured-clis/discovery.js +0 -173
- package/dist/core/configured-clis/manifest.d.ts +0 -24
- package/dist/core/configured-clis/registration.d.ts +0 -40
- package/dist/core/configured-clis/registration.js +0 -201
- package/dist/web-client/assets/index-CqLKj8Xu.css +0 -2
package/dist/types.d.ts
CHANGED
|
@@ -13,6 +13,14 @@ export interface OwnerRef {
|
|
|
13
13
|
name?: string;
|
|
14
14
|
email?: string;
|
|
15
15
|
}
|
|
16
|
+
export type PluginTransport = {
|
|
17
|
+
kind: 'exec';
|
|
18
|
+
executable: string;
|
|
19
|
+
} | {
|
|
20
|
+
kind: 'http';
|
|
21
|
+
endpoint: string;
|
|
22
|
+
authEnv?: string;
|
|
23
|
+
};
|
|
16
24
|
export interface PluginManifest {
|
|
17
25
|
name: string;
|
|
18
26
|
version?: string;
|
|
@@ -26,6 +34,7 @@ export interface PluginManifest {
|
|
|
26
34
|
* crtr owns parse/help/render/errors and direct-spawns the plugin's one
|
|
27
35
|
* executable per leaf invocation. See `src/core/command-plugins/`. */
|
|
28
36
|
commands?: string;
|
|
37
|
+
transport?: PluginTransport;
|
|
29
38
|
}
|
|
30
39
|
export interface MarketplacePluginEntry {
|
|
31
40
|
name: string;
|
|
@@ -50,10 +59,6 @@ export interface ConfigPluginEntry {
|
|
|
50
59
|
source_marketplace?: string;
|
|
51
60
|
version?: string;
|
|
52
61
|
}
|
|
53
|
-
export interface ConfigConfiguredCliEntry {
|
|
54
|
-
endpoint: string;
|
|
55
|
-
authEnvVar?: string;
|
|
56
|
-
}
|
|
57
62
|
export type AutoUpdateMode = 'notify' | 'apply' | false;
|
|
58
63
|
export interface AutoUpdateConfig {
|
|
59
64
|
crtr: AutoUpdateMode;
|
|
@@ -139,9 +144,13 @@ export interface ScopeConfig {
|
|
|
139
144
|
schema_version: number;
|
|
140
145
|
marketplaces: Record<string, ConfigMarketplaceEntry>;
|
|
141
146
|
plugins: Record<string, ConfigPluginEntry>;
|
|
142
|
-
configuredClis: Record<string, ConfigConfiguredCliEntry>;
|
|
143
147
|
auto_update: AutoUpdateConfig;
|
|
144
148
|
max_panes_per_window: number;
|
|
149
|
+
/** Open a managed child's viewer beside its parent when that parent has a
|
|
150
|
+
* live tmux viewer. Turning this off leaves every new managed child running
|
|
151
|
+
* as a detached broker until someone focuses or attaches it explicitly.
|
|
152
|
+
* Independent attended roots keep their normal viewer behavior. */
|
|
153
|
+
auto_open_child_viewers: boolean;
|
|
145
154
|
brokerThresholds: BrokerThresholdsConfig;
|
|
146
155
|
/** Ring a short completion sound in the attach viewer when the node you are
|
|
147
156
|
* watching finishes a turn and hands control back (the Claude-Code Stop-hook
|
|
@@ -149,13 +158,13 @@ export interface ScopeConfig {
|
|
|
149
158
|
* node with no viewer attached is silent regardless. Default true. */
|
|
150
159
|
completion_bell: boolean;
|
|
151
160
|
/** How many trailing refresh-yield CYCLES the attach viewer renders at full
|
|
152
|
-
* fidelity. Older cycles are condensed
|
|
153
|
-
* `condensed_history` admits
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
161
|
+
* fidelity. Older cycles are condensed to cycle dividers plus whatever
|
|
162
|
+
* `condensed_history` admits. No tool components are built for them, while
|
|
163
|
+
* retained prose re-wraps when the pane width changes. Tool calls and results
|
|
164
|
+
* measure ~63% of a transcript's rendered lines and ~69% of its build time,
|
|
165
|
+
* so excluding them is the dominant attach-time saving for a long multi-cycle
|
|
166
|
+
* node. Full detail for every cycle stays in the session file. Minimum 1 (the
|
|
167
|
+
* live cycle is never condensed). Default 2. */
|
|
159
168
|
live_cycles: number;
|
|
160
169
|
/** What survives from a CONDENSED cycle (one older than the trailing
|
|
161
170
|
* `live_cycles`). The cycle dividers always remain as seams so you can see
|
|
@@ -310,10 +319,8 @@ export declare function defaultRemoteCanvasConfig(): RemoteCanvasConfig;
|
|
|
310
319
|
* base-worker defaults; `orchestratorModel` optionally raises the default
|
|
311
320
|
* for a coordinating persona. Roadmap-shaping guidance is orchestrator-only —
|
|
312
321
|
* an orchestrator-gated memory doc keyed to the kind, not baked into the
|
|
313
|
-
* registry entry. Sub-persona `availableTo` is
|
|
314
|
-
*
|
|
315
|
-
* ancestor) — `product/teardown` is included explicitly below for parity
|
|
316
|
-
* even though its value equals the default. */
|
|
322
|
+
* registry entry. Sub-persona `availableTo` is omitted where it only
|
|
323
|
+
* reproduces the default (its own top-level ancestor). */
|
|
317
324
|
export declare function defaultKindsConfig(): Record<string, KindConfig>;
|
|
318
325
|
export declare function defaultModelLaddersConfig(): ModelLaddersConfig;
|
|
319
326
|
export declare function defaultScopeState(): ScopeState;
|
package/dist/types.js
CHANGED
|
@@ -31,9 +31,9 @@ export function defaultScopeConfig() {
|
|
|
31
31
|
schema_version: SCHEMA_VERSION,
|
|
32
32
|
marketplaces: {},
|
|
33
33
|
plugins: {},
|
|
34
|
-
configuredClis: {},
|
|
35
34
|
auto_update: { crtr: 'notify', content: 'notify', interval_hours: 24 },
|
|
36
35
|
max_panes_per_window: DEFAULT_MAX_PANES_PER_WINDOW,
|
|
36
|
+
auto_open_child_viewers: true,
|
|
37
37
|
brokerThresholds: { warning: 128, automaticReviveCap: 256 },
|
|
38
38
|
completion_bell: true,
|
|
39
39
|
live_cycles: DEFAULT_LIVE_CYCLES,
|
|
@@ -56,10 +56,8 @@ export function defaultRemoteCanvasConfig() {
|
|
|
56
56
|
* base-worker defaults; `orchestratorModel` optionally raises the default
|
|
57
57
|
* for a coordinating persona. Roadmap-shaping guidance is orchestrator-only —
|
|
58
58
|
* an orchestrator-gated memory doc keyed to the kind, not baked into the
|
|
59
|
-
* registry entry. Sub-persona `availableTo` is
|
|
60
|
-
*
|
|
61
|
-
* ancestor) — `product/teardown` is included explicitly below for parity
|
|
62
|
-
* even though its value equals the default. */
|
|
59
|
+
* registry entry. Sub-persona `availableTo` is omitted where it only
|
|
60
|
+
* reproduces the default (its own top-level ancestor). */
|
|
63
61
|
export function defaultKindsConfig() {
|
|
64
62
|
return {
|
|
65
63
|
general: {
|
|
@@ -89,10 +87,6 @@ export function defaultKindsConfig() {
|
|
|
89
87
|
whenToUse: 'Collaborate with the user to discover what to build, then write the spec — behavior, non-goals, interfaces, edge cases, testable acceptance criteria.',
|
|
90
88
|
model: 'anthropic/strong',
|
|
91
89
|
},
|
|
92
|
-
product: {
|
|
93
|
-
whenToUse: 'Discover the real user need behind a request and define the product experience that meets it — use cases, how it should feel and look, grounded in how comparable products solve it. Hands off to spec.',
|
|
94
|
-
model: 'anthropic/strong',
|
|
95
|
-
},
|
|
96
90
|
review: {
|
|
97
91
|
whenToUse: 'Validate or critique code, a plan, or a spec — deliver a complete, severity-rated verdict without adjudicating.',
|
|
98
92
|
model: 'openai/medium',
|
|
@@ -126,11 +120,6 @@ export function defaultKindsConfig() {
|
|
|
126
120
|
whenToUse: 'Derive testable EARS requirements from a finished, approved design — in isolation, from the rendered design text alone.',
|
|
127
121
|
model: 'medium',
|
|
128
122
|
},
|
|
129
|
-
'product/teardown': {
|
|
130
|
-
whenToUse: 'Tear down ONE comparable product against a specific job-to-be-done — how it solves it, where it succeeds and fails its users, and what to borrow, avoid, or differentiate from.',
|
|
131
|
-
model: 'medium',
|
|
132
|
-
availableTo: ['product'],
|
|
133
|
-
},
|
|
134
123
|
};
|
|
135
124
|
}
|
|
136
125
|
export function defaultModelLaddersConfig() {
|