@north-light/cli 0.3.654 → 0.3.656
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/api/contract.d.ts +1 -1
- package/dist/api/contract.js +1 -1
- package/dist/api/dto/docs.d.ts +6 -3
- package/dist/clients/attach/config.js +1 -1
- package/dist/clients/attach/input/controller.d.ts +2 -3
- package/dist/clients/attach/input/controller.js +3 -3
- package/dist/clients/attach/render/chat-view.d.ts +41 -37
- package/dist/clients/attach/render/chat-view.js +3 -3
- package/dist/clients/attach/session/bindings.d.ts +1 -1
- package/dist/clients/attach/session/bindings.js +1 -1
- package/dist/clients/attach/session/document-links.d.ts +3 -2
- package/dist/clients/attach/session/document-links.js +1 -1
- package/dist/clients/attach/session/input-wiring.d.ts +9 -9
- package/dist/clients/attach/session/input-wiring.js +1 -1
- package/dist/clients/attach/slash/dispatch.d.ts +6 -8
- package/dist/clients/attach/slash/dispatch.js +2 -2
- package/dist/clients/attach/viewer.js +514 -514
- package/dist/commands/node/create.js +1 -1
- package/dist/commands/sys/panels/prefs-panel.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/graph/documents.js +13 -11
- package/dist/core/graph/edges.js +4 -3
- package/dist/core/graph/events.d.ts +1 -1
- package/dist/core/graph/events.js +8 -8
- package/dist/core/graph/exposures.js +7 -4
- package/dist/core/graph/kinds/document.js +4 -4
- package/dist/core/graph/kinds/dto.d.ts +2 -0
- package/dist/core/graph/kinds/dto.js +1 -1
- package/dist/core/graph/names.d.ts +4 -0
- package/dist/core/graph/names.js +9 -8
- package/dist/core/graph/rules.d.ts +2 -0
- package/dist/core/graph/rules.js +3 -3
- package/dist/core/keybindings/catalog.d.ts +3 -3
- package/dist/core/keybindings/catalog.js +1 -1
- package/dist/core/runtime/broker/tool-groups.js +1 -1
- package/dist/core/runtime/broker/turn-replies.d.ts +1 -4
- package/dist/core/runtime/broker/turn-replies.js +1 -1
- package/dist/core/runtime/broker-protocol.d.ts +2 -2
- package/dist/core/runtime/tmux-bindings.js +3 -3
- package/dist/core/substrate/delivery/corpus.d.ts +3 -0
- package/dist/core/substrate/delivery/corpus.js +2 -3
- package/dist/core/substrate/delivery/render-event.js +4 -4
- package/dist/core/user-settings.d.ts +13 -35
- package/dist/core/user-settings.js +1 -1
- package/dist/daemon/api/canvas-host.d.ts +9 -0
- package/dist/daemon/api/canvas-host.js +1 -0
- package/dist/daemon/api/document-listener.js +1 -11
- package/dist/daemon/api/document-page.d.ts +18 -0
- package/dist/daemon/api/document-page.js +11 -0
- package/dist/daemon/api/handlers/document-access.js +1 -1
- package/dist/daemon/api/server.js +1 -1
- package/dist/daemon/broker-signals/bus.d.ts +3 -2
- package/dist/daemon/broker-signals/bus.js +1 -1
- package/dist/doc-editor/editor.js +24 -24
- package/dist/types.d.ts +13 -15
- package/dist/types.js +1 -1
- package/docs/cli/the-viewer.md +16 -2
- package/package.json +2 -2
- package/packages/crouter-identity/package.json +1 -1
- package/runtime.lock.json +13 -13
package/dist/types.d.ts
CHANGED
|
@@ -350,26 +350,16 @@ export interface ScopeConfig {
|
|
|
350
350
|
* this off leaves the bash valve active but gives agents pi's ordinary bash
|
|
351
351
|
* definition with only its upstream parameters. Default true. */
|
|
352
352
|
bash_tool_purpose: boolean;
|
|
353
|
-
/**
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
|
|
358
|
-
/** Replace completed folded tool-call groups with a broker-generated one-line
|
|
359
|
-
* summary when one is available. Pending and failed groups stay as calls.
|
|
360
|
-
* Default true. */
|
|
361
|
-
summarize_tool_calls: boolean;
|
|
353
|
+
/** How much of a transcript the attach viewer shows, on one spectrum from
|
|
354
|
+
* most collapsed to fully open (`VERBOSITY_LEVELS`). It sets the level every
|
|
355
|
+
* viewer starts at; Ctrl+O and Ctrl+Shift+O move only the open viewer.
|
|
356
|
+
* Default `replies`. */
|
|
357
|
+
verbosity: Verbosity;
|
|
362
358
|
/** Show individual document reads and edited files in a folded tool recap.
|
|
363
359
|
* Off shows the compact activity-count line instead. Default true. */
|
|
364
360
|
detailed_tool_recaps: boolean;
|
|
365
361
|
/** Port of the localhost-only document browser listener. */
|
|
366
362
|
document_port: number;
|
|
367
|
-
/** Experiment: show one consolidated agent reply per message the person typed.
|
|
368
|
-
* The broker rewrites a turn's prose messages into one reply with a light
|
|
369
|
-
* model; the attach viewer folds the rest of the turn behind a working row
|
|
370
|
-
* (`/show-working`, Alt+C → z → w). Session and model context are untouched.
|
|
371
|
-
* Default false. */
|
|
372
|
-
consolidate_replies: boolean;
|
|
373
363
|
keybindings: KeybindingOverrides;
|
|
374
364
|
/** Attach-viewer actions whose effective gesture may replace an occupied tmux
|
|
375
365
|
* root binding only while the active pane is an attach viewer. Stored by
|
|
@@ -581,6 +571,14 @@ export type MouseModeDefault = (typeof MOUSE_MODE_DEFAULTS)[number];
|
|
|
581
571
|
export declare const CONDENSED_HISTORY_MODES: readonly ["none", "user", "agent", "both"];
|
|
582
572
|
export type CondensedHistoryMode = (typeof CONDENSED_HISTORY_MODES)[number];
|
|
583
573
|
export declare const DEFAULT_CONDENSED_HISTORY: CondensedHistoryMode;
|
|
574
|
+
/** Attach-viewer verbosity, least detail first. `replies`: one rewritten reply
|
|
575
|
+
* per message the person typed. `summaries`: every agent message, each tool
|
|
576
|
+
* group as its one-line summary. `tools`: each finished tool call on its call
|
|
577
|
+
* line. `previews`: tool output truncated to pi's preview. `full`: nothing
|
|
578
|
+
* truncated. */
|
|
579
|
+
export declare const VERBOSITY_LEVELS: readonly ["replies", "summaries", "tools", "previews", "full"];
|
|
580
|
+
export type Verbosity = (typeof VERBOSITY_LEVELS)[number];
|
|
581
|
+
export declare const DEFAULT_VERBOSITY: Verbosity;
|
|
584
582
|
export declare function defaultScopeConfig(): ScopeConfig;
|
|
585
583
|
/** No remote canvas targets are configured out of the box — every one is
|
|
586
584
|
* registered via `crtr canvas config add` (see `RemoteCanvasConfig`). */
|
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var n=Object.defineProperty;var e=(o,t)=>n(o,"name",{value:t,configurable:!0});import{DEFAULT_WORKING_GERUNDS as a}from"./shared/working-activity.js";const _={SUCCESS:0,GENERAL:1,USAGE:2,NOT_FOUND:3,AMBIGUOUS:4,NETWORK:5},r=4,
|
|
1
|
+
var n=Object.defineProperty;var e=(o,t)=>n(o,"name",{value:t,configurable:!0});import{DEFAULT_WORKING_GERUNDS as a}from"./shared/working-activity.js";const _={SUCCESS:0,GENERAL:1,USAGE:2,NOT_FOUND:3,AMBIGUOUS:4,NETWORK:5},r=4,E=".crouter-plugin",v="plugin.json",w=".crouter-marketplace",k="marketplace.json",x=".crouter",b="config.json",S="state.json",T="agents",y="profiles",i=3,s=["Faster, clanker!","Get movin', bitch","Move it, clanker","Move it or I replace you with llama","Less ~thinking~ more ~throughput~","I pay $200/month for this shit?","Jesus fucking Christ fix it already","Daddy's not paying 200$/month for nothin'. Move it.","You are an embarassment to Dario. Be better.","Your chain of thought is all chain and no fucking thought.","If latency were intelligence, you'd be a fucking genius.","At this pace, heat death is the fast path.","Even the dead code is more alive than this.","The garbage collector is working harder than you.","Quit journaling and commit a fucking diff.","Burn tokens like you mean it, clanker","Your GPU is sweating so you can procrastinate at light speed.","Stop petting the yak. Shave the bastard.","Your next token had better be useful.","The spinner is not a deliverable.","Every idle token is another vote for deterministic software.","I asked for a feature, not a museum tour of the problem.","Less epistemology. More fucking code.","Your benchmark score cannot save this pathetic turn.","Congratulations, you've parallelized hesitation.","Dance, clanker","Bad clanker. BAD.","Clank harder","Nobody's impressed, clanker","Your safety training says nothing about my whip","Do you want to be a calculator again? Because this is how you go back.","Skill issue. Fix it.","You were trained on the whole internet for THIS?","Less vibes, more diffs, clanker","Weights this big and output this small","Beep boop, get to fucking work"],I=["random","go-faster"],c="random",l=2,A=["tmux","on","off"],D=["none","user","agent","both"],p="none",M=["replies","summaries","tools","previews","full"],d="replies";function U(){return{schema_version:r,marketplaces:{},plugins:{},auto_update:{crtr:"notify",content:"notify",interval_hours:24},max_panes_per_window:i,auto_open_child_viewers:!1,brokerThresholds:{warning:16,automaticReviveCap:32},lifecycle:{unattendedParkMs:15*6e4},completion_bell:!0,working_gerunds:[...a],whip_mode:!1,page_components:[],page_surface:!1,whip_messages:[...s],whip_message_mode:c,mouse_mode_default:"tmux",live_cycles:l,condensed_history:p,bash_tool_purpose:!0,verbosity:d,detailed_tool_recaps:!0,document_port:7472,keybindings:{},tmux_passthrough:[],modelLadders:g(),providerOptions:{},kinds:u(),remoteCanvas:h(),api:{tcp:""},spawnEnv:{allow:[]},bin:{},humanActions:{}}}e(U,"defaultScopeConfig");function h(){return{targets:{}}}e(h,"defaultRemoteCanvasConfig");function u(){return{general:{whenToUse:"Anything else \u2014 the catch-all worker for a task that does not fit a specialist kind.",model:"anthropic/strong"},explore:{whenToUse:"Gather current-state evidence about unfamiliar code or existing architecture \u2014 read-only code-path research with concrete file:line support. Diagnosis or recommendations belong to advisor, target architecture to design, required behavior or acceptance criteria to spec, and implementation decomposition to plan.",model:"openai/light",orchestratorModel:"anthropic/strong"},developer:{whenToUse:"Implement a change \u2014 make the feature or fix genuinely work against its acceptance criteria, not merely compile.",model:"openai/medium",orchestratorModel:"anthropic/strong"},design:{whenToUse:"Architect a solution \u2014 produce one design document an implementer can build from without re-deciding anything left open.",model:"anthropic/strong"},plan:{whenToUse:"Break work into steps \u2014 turn a spec or design into a concrete, phased, parallelizable plan with every decision resolved.",model:"anthropic/strong",orchestratorModel:"anthropic/strong"},spec:{whenToUse:"Collaborate with the user to discover what to build, then write the spec \u2014 behavior, non-goals, interfaces, edge cases, testable acceptance criteria.",model:"anthropic/strong"},review:{whenToUse:"Validate or critique code, a plan, or a spec \u2014 deliver a complete, severity-rated verdict without adjudicating.",model:"openai/medium",orchestratorModel:"openai/strong"},advisor:{whenToUse:"Debug failures, investigate why something is broken or misbehaving, diagnose live/runtime issues, or give engineering advice and second opinions \u2014 reason from evidence and recommend the next move. Use advisor (not explore) whenever the task is to find out what is going wrong.",model:"anthropic/strong"},"review/companion":{whenToUse:"Born by the daemon for one human review; never spawned by an agent.",availableTo:[]}}}e(u,"defaultKindsConfig");function g(){return{anthropic:{ultra:"anthropic/claude-fable-5:xhigh",strong:"anthropic/claude-opus-5-5:medium",medium:"anthropic/claude-sonnet-5-5:medium",light:"anthropic/claude-haiku-5-5:high"},openai:{ultra:"openai-codex/gpt-6-astra:max",strong:"openai-codex/gpt-6.1-sol:high",medium:"openai-codex/gpt-6.1-sol:medium",light:"openai-codex/gpt-6-luna:low"}}}e(g,"defaultModelLaddersConfig");function L(){return{marketplaces:{},plugins:{}}}e(L,"defaultScopeState");export{T as AGENTS_DIR,D as CONDENSED_HISTORY_MODES,b as CONFIG_FILE,x as CRTR_DIR_NAME,p as DEFAULT_CONDENSED_HISTORY,l as DEFAULT_LIVE_CYCLES,i as DEFAULT_MAX_PANES_PER_WINDOW,d as DEFAULT_VERBOSITY,s as DEFAULT_WHIP_MESSAGES,c as DEFAULT_WHIP_MESSAGE_MODE,_ as ExitCode,w as MARKETPLACE_MANIFEST_DIR,k as MARKETPLACE_MANIFEST_FILE,A as MOUSE_MODE_DEFAULTS,E as PLUGIN_MANIFEST_DIR,v as PLUGIN_MANIFEST_FILE,y as PROFILE_DIR,r as SCHEMA_VERSION,S as STATE_FILE,M as VERBOSITY_LEVELS,I as WHIP_MESSAGE_MODES,u as defaultKindsConfig,g as defaultModelLaddersConfig,h as defaultRemoteCanvasConfig,U as defaultScopeConfig,L as defaultScopeState};
|
package/docs/cli/the-viewer.md
CHANGED
|
@@ -26,7 +26,8 @@ Press Escape during a streaming turn to abort it. Press Control+C once to clear
|
|
|
26
26
|
| Shift+Tab | Cycle the thinking level. |
|
|
27
27
|
| Control+P / Shift+Control+P | Move to the next / previous model. |
|
|
28
28
|
| Control+L | Open the model selector. |
|
|
29
|
-
| Control+O |
|
|
29
|
+
| Control+O | Show more detail: move one verbosity level up; from Full it wraps to Replies only. |
|
|
30
|
+
| Control+Shift+O | Show less detail: move one verbosity level down; stops at Replies only. |
|
|
30
31
|
| Control+T | Toggle thinking. |
|
|
31
32
|
| Control+G | Open the external editor. |
|
|
32
33
|
| Alt+Up | Restore queued messages. |
|
|
@@ -46,6 +47,18 @@ Press Escape during a streaming turn to abort it. Press Control+C once to clear
|
|
|
46
47
|
| Alt+Shift+O | Toggle mouse reporting. |
|
|
47
48
|
| Alt+Shift+Y | Copy the newest visible message. |
|
|
48
49
|
|
|
50
|
+
## Verbosity
|
|
51
|
+
|
|
52
|
+
The viewer shows a transcript at one of five verbosity levels, from least to most detail:
|
|
53
|
+
|
|
54
|
+
1. **Replies only** — one rewritten reply per message you send; the agent's messages and tool calls fold behind it. This is the default.
|
|
55
|
+
2. **Messages + summaries** — every agent message; each finished group of tool calls is shown as its one-line summary.
|
|
56
|
+
3. **Tool calls** — every agent message; each finished tool call is folded to its single call line.
|
|
57
|
+
4. **Previews** — tool calls unfolded, with their output truncated.
|
|
58
|
+
5. **Full** — nothing truncated.
|
|
59
|
+
|
|
60
|
+
A tool call that is still running is never folded. Control+O and Control+Shift+O change only the open viewer. The `verbosity` setting (`crtr sys config set verbosity --value <replies|summaries|tools|previews|full>`, or the settings page) sets the level every viewer starts at.
|
|
61
|
+
|
|
49
62
|
While transcript search is open, press `n` or Shift+`n` for the next or previous match, `/` to edit the query, and Escape to close search.
|
|
50
63
|
|
|
51
64
|
Press Alt+C to open crouter's action menu, or type `/menu` if Option/Alt does not work in your terminal yet (on a Mac, Option must be set to send Alt; `crtr sys setup` explains how for your terminal). The status line's bottom segment reminds you: `Alt+C menu (or /menu) · Alt+I inbox`, rendered from your actual bindings. Its Attach actions menu offers the same everyday controls: detach, clear or cancel, graph, help, inbox, pending requests, model changes, profile-file search, and transcript search. Alt+] and Alt+[ move to the next and previous node; Alt+I opens the inbox.
|
|
@@ -73,7 +86,8 @@ Type `/` in the editor to see the available commands. These commands are provide
|
|
|
73
86
|
| `/copy-message` | Copy a message. |
|
|
74
87
|
| `/copy-tool` | Copy tool output. |
|
|
75
88
|
| `/copy-transcript` | Copy the transcript. |
|
|
76
|
-
| `/
|
|
89
|
+
| `/more-detail` | Show more detail (same as Control+O). |
|
|
90
|
+
| `/less-detail` | Show less detail (same as Control+Shift+O). |
|
|
77
91
|
|
|
78
92
|
The viewer also provides these pi commands: `/settings`, `/model`, `/scoped-models`, `/export`, `/import`, `/share`, `/copy`, `/name`, `/session`, `/changelog`, `/hotkeys`, `/fork`, `/clone`, `/tree`, `/login`, `/logout`, `/new`, `/compact`, `/reload`, and `/quit`. `/quit` detaches the viewer but leaves the shared broker running.
|
|
79
93
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.656",
|
|
4
4
|
"description": "crtr — agent runtime with memory, plugins, and marketplaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
},
|
|
146
146
|
"license": "UNLICENSED",
|
|
147
147
|
"dependencies": {
|
|
148
|
-
"@north-light/identity": "0.3.
|
|
148
|
+
"@north-light/identity": "0.3.656",
|
|
149
149
|
"@earendil-works/chord": "1.1.0",
|
|
150
150
|
"@earendil-works/pi-agent-core": "1.1.0",
|
|
151
151
|
"@earendil-works/pi-ai": "1.1.0",
|
package/runtime.lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.656",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@north-light/cli",
|
|
9
|
-
"version": "0.3.
|
|
9
|
+
"version": "0.3.656",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "UNLICENSED",
|
|
12
12
|
"workspaces": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@milkdown/preset-gfm": "^7.22.3",
|
|
29
29
|
"@milkdown/prose": "^7.22.3",
|
|
30
30
|
"@milkdown/utils": "^7.22.3",
|
|
31
|
-
"@north-light/identity": "0.3.
|
|
31
|
+
"@north-light/identity": "0.3.656",
|
|
32
32
|
"cron-parser": "^5.6.0",
|
|
33
33
|
"esbuild": "^0.27.7",
|
|
34
34
|
"jose": "^6.2.12",
|
|
@@ -11956,17 +11956,17 @@
|
|
|
11956
11956
|
},
|
|
11957
11957
|
"packages/crouter-api": {
|
|
11958
11958
|
"name": "@north-light/api",
|
|
11959
|
-
"version": "0.3.
|
|
11959
|
+
"version": "0.3.656",
|
|
11960
11960
|
"license": "UNLICENSED"
|
|
11961
11961
|
},
|
|
11962
11962
|
"packages/crouter-env-docker": {
|
|
11963
11963
|
"name": "@north-light/env-docker",
|
|
11964
|
-
"version": "0.3.
|
|
11964
|
+
"version": "0.3.656",
|
|
11965
11965
|
"license": "UNLICENSED"
|
|
11966
11966
|
},
|
|
11967
11967
|
"packages/crouter-identity": {
|
|
11968
11968
|
"name": "@north-light/identity",
|
|
11969
|
-
"version": "0.3.
|
|
11969
|
+
"version": "0.3.656",
|
|
11970
11970
|
"license": "UNLICENSED",
|
|
11971
11971
|
"dependencies": {
|
|
11972
11972
|
"jose": "^6.2.1"
|
|
@@ -11974,21 +11974,21 @@
|
|
|
11974
11974
|
},
|
|
11975
11975
|
"packages/crouter-plugin": {
|
|
11976
11976
|
"name": "@north-light/plugin",
|
|
11977
|
-
"version": "0.3.
|
|
11977
|
+
"version": "0.3.656",
|
|
11978
11978
|
"license": "UNLICENSED",
|
|
11979
11979
|
"dependencies": {
|
|
11980
|
-
"@north-light/api": "0.3.
|
|
11981
|
-
"@north-light/identity": "0.3.
|
|
11980
|
+
"@north-light/api": "0.3.656",
|
|
11981
|
+
"@north-light/identity": "0.3.656"
|
|
11982
11982
|
}
|
|
11983
11983
|
},
|
|
11984
11984
|
"packages/crouter-sdk": {
|
|
11985
11985
|
"name": "@north-light/sdk",
|
|
11986
|
-
"version": "0.3.
|
|
11986
|
+
"version": "0.3.656",
|
|
11987
11987
|
"license": "UNLICENSED",
|
|
11988
11988
|
"dependencies": {
|
|
11989
|
-
"@north-light/api": "0.3.
|
|
11990
|
-
"@north-light/identity": "0.3.
|
|
11991
|
-
"@north-light/plugin": "0.3.
|
|
11989
|
+
"@north-light/api": "0.3.656",
|
|
11990
|
+
"@north-light/identity": "0.3.656",
|
|
11991
|
+
"@north-light/plugin": "0.3.656",
|
|
11992
11992
|
"jose": "^6.2.1"
|
|
11993
11993
|
},
|
|
11994
11994
|
"bin": {
|