@treeport/treeport 0.5.0 → 0.6.1

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.
@@ -71,6 +71,20 @@
71
71
  "when": 1786800000000,
72
72
  "tag": "0009_open_folders",
73
73
  "breakpoints": true
74
+ },
75
+ {
76
+ "idx": 10,
77
+ "version": "6",
78
+ "when": 1787565462059,
79
+ "tag": "0010_browser_panels_and_permissions",
80
+ "breakpoints": true
81
+ },
82
+ {
83
+ "idx": 11,
84
+ "version": "6",
85
+ "when": 1787939530241,
86
+ "tag": "0011_free_magdalene",
87
+ "breakpoints": true
74
88
  }
75
89
  ]
76
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeport/treeport",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "A tree-first terminal driver for persistent development workspaces.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -38,20 +38,23 @@
38
38
  "@hono/node-server": "^2.0.10",
39
39
  "@hono/zod-validator": "^0.9.0",
40
40
  "@libsql/client": "^0.17.4",
41
+ "@playwright/cli": "0.1.18",
41
42
  "@radix-ui/react-context-menu": "^2.3.7",
42
43
  "@vitejs/plugin-react": "5.2.0",
43
44
  "@xterm/headless": "^6.0.0",
45
+ "cmdk": "^1.1.1",
44
46
  "commander": "14.0.3",
45
47
  "drizzle-orm": "^0.45.2",
46
48
  "effect": "^3.22.0",
47
49
  "hono": "^4.11.7",
48
50
  "jsonc-parser": "^3.3.1",
49
51
  "node-pty": "1.2.0-beta.14",
52
+ "playwright": "1.61.1",
50
53
  "socket.io": "4.8.3",
51
54
  "socket.io-client": "4.8.3",
52
55
  "vite": "8.1.5",
53
56
  "zod": "^4.3.6",
54
- "@treeport/panel-sdk": "0.5.0"
57
+ "@treeport/panel-sdk": "0.6.1"
55
58
  },
56
59
  "devDependencies": {
57
60
  "@fontsource-variable/inter": "^5.2.8",
@@ -1,11 +1,13 @@
1
1
  ---
2
2
  name: treeport
3
- description: Understand Treeport-managed terminal context and safely create persistent, observable terminals and child trees with the Treeport CLI. Use when an agent or extension needs to inspect its Treeport environment, open another session, or spawn work in a separate tree.
3
+ description: Detailed Treeport CLI guidance for child-tree orchestration, lifecycle, services, remote access, updates, and recovery. Use when compact Pi guidance or command help is not sufficient. Do not load for routine background processes or browser tabs in a managed Pi session.
4
4
  compatibility: Requires the treeport CLI on PATH and a reachable Treeport daemon. Creation commands also require the requested child executable to be installed.
5
5
  ---
6
6
 
7
7
  # Treeport
8
8
 
9
+ In a managed Pi session, use the injected CLI guidance for routine terminal and browser operations. Load this skill only when you need more detail.
10
+
9
11
  Treeport is a generic terminal and tree layer. Its terminals are persistent tmux sessions that appear in the Treeport UI. A user can open a created terminal, take control of the normal application TUI, and continue working in the same session.
10
12
 
11
13
  Treeport does not define task sources, planning or approval states, agent tool policies, or provider-specific workflows. The caller owns names, commands, prompts, and higher-level orchestration.
@@ -37,7 +39,7 @@ Run:
37
39
  treeport context
38
40
  ```
39
41
 
40
- Inside a managed terminal, this reports the current project, tree, terminal, paths, statuses, IDs, and daemon URL. It reports whether Treeport, the OS service, or an external process manages the daemon lifecycle. It resolves the injected IDs strictly. It does not guess identity from the current path.
42
+ Inside a managed terminal, this reports the current project, tree, terminal, paths, statuses, IDs, tree context values, and daemon URL. User-supplied context can contain an issue identifier, a task description, or other information for the tree. Use these values as task input when the caller asks you to work from the tree context. It reports whether Treeport, the OS service, or an external process manages the daemon lifecycle. It resolves the injected IDs strictly. It does not guess identity from the current path.
41
43
 
42
44
  Outside Treeport it reports that the terminal is not managed and exits successfully. `TREEPORT_API_URL` may be configured outside a managed terminal; if any context ID is present, however, all injected values are required. Partial IDs or IDs that no longer belong together fail instead of falling back to path inference.
43
45
 
@@ -133,6 +135,60 @@ treeport terminal wait <terminal-id> --until exit
133
135
 
134
136
  Treeport does not infer agent settlement. An orchestrator can inspect first, wait for `working` if no progress cycle has been observed, and then wait for `idle`. Progress depends on the child application emitting OSC `9;4`; for Pi, `terminal.showTerminalProgress` must be enabled. Applications should clear progress or refresh active progress more frequently than the five-minute lease. A null progress value is not proof that every application supports progress reporting.
135
137
 
138
+ ## Inspect the worktree application in a browser tab
139
+
140
+ The Browser primitive has one live runtime for each browser tab.
141
+
142
+ Electron owns the visible `<webview>` page for a local desktop connection.
143
+
144
+ Playwright controls managed Chromium for a web or remote desktop connection.
145
+
146
+ Never attach Treeport to a personal browser profile.
147
+
148
+ First, inspect the available browser tabs:
149
+
150
+ ```sh
151
+ treeport browser list
152
+ ```
153
+
154
+ If no browser tab is open, open one in the current tree:
155
+
156
+ ```sh
157
+ treeport browser open --worktree .
158
+ ```
159
+
160
+ Use these commands on the current live page:
161
+
162
+ ```sh
163
+ treeport browser snapshot
164
+ treeport browser click e12
165
+ treeport browser fill e14 "value"
166
+ treeport browser press Enter
167
+ treeport browser console
168
+ treeport browser network
169
+ treeport browser screenshot
170
+ ```
171
+
172
+ The commands select the only browser tab in the current tree.
173
+
174
+ When more than one browser tab exists, add `--panel <panel-id>`.
175
+
176
+ Snapshot references belong to one runtime generation.
177
+
178
+ Take a new snapshot after navigation or a runtime change.
179
+
180
+ A local desktop owner does not need managed Chromium.
181
+
182
+ If no local owner exists, check managed Chromium before daemon automation:
183
+
184
+ ```sh
185
+ treeport browser status
186
+ ```
187
+
188
+ Ask the user before you run `treeport browser install`.
189
+
190
+ Leave the browser tab open so the user can inspect the result.
191
+
136
192
  ## Automation and integrations
137
193
 
138
194
  Extensions and scripts should add `--json` before the `--` command separator: