t3code-cli 0.10.0 → 0.11.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/README.md +33 -1
- package/dist/application.js +2 -2
- package/dist/auth.js +1 -1
- package/dist/bin.js +1566 -351
- package/dist/cli.js +1 -1
- package/dist/config.js +1 -1
- package/dist/connection.js +1 -11
- package/dist/index.js +1 -1
- package/dist/layout.js +1 -1
- package/dist/node.js +2 -0
- package/dist/orchestration.js +2 -2
- package/dist/rpc.js +2 -2
- package/dist/runtime.js +1 -1
- package/dist/scope.js +1 -1
- package/dist/shared.js +1740 -767
- package/dist/src/application/index.d.ts +3 -2
- package/dist/src/application/layer.d.ts +82 -841
- package/dist/src/application/model-selection.d.ts +15 -0
- package/dist/src/application/models.d.ts +1 -87
- package/dist/src/application/project-commands.d.ts +9 -0
- package/dist/src/application/projects.d.ts +13 -135
- package/dist/src/application/service.d.ts +84 -5
- package/dist/src/application/shell-sequence.d.ts +2 -12
- package/dist/src/application/terminals.d.ts +66 -0
- package/dist/src/application/thread-commands.d.ts +47 -0
- package/dist/src/application/thread-update.d.ts +8 -0
- package/dist/src/application/thread-wait.d.ts +3 -14
- package/dist/src/application/threads.d.ts +21 -50
- package/dist/src/cli/flags.d.ts +3 -0
- package/dist/src/cli/output-format.d.ts +2 -0
- package/dist/src/domain/error.d.ts +14 -1
- package/dist/src/domain/helpers.d.ts +0 -9
- package/dist/src/domain/model-config.d.ts +29 -3
- package/dist/src/domain/thread-lifecycle.d.ts +2 -10
- package/dist/src/node/index.d.ts +2 -0
- package/dist/src/orchestration/index.d.ts +1 -0
- package/dist/src/orchestration/layer.d.ts +177 -1032
- package/dist/src/orchestration/service.d.ts +1 -0
- package/dist/src/rpc/error.d.ts +4 -2
- package/dist/src/rpc/index.d.ts +5 -0
- package/dist/src/rpc/layer.d.ts +1097 -499
- package/dist/src/rpc/operation.d.ts +5752 -0
- package/dist/src/rpc/ws-group.d.ts +327 -147
- package/dist/src/runtime/layer.d.ts +1 -1
- package/dist/t3tools.js +2 -2
- package/dist/upstream-t3code/packages/contracts/src/environmentHttp.d.ts +10 -33
- package/dist/upstream-t3code/packages/contracts/src/ipc.d.ts +0 -6
- package/dist/upstream-t3code/packages/contracts/src/orchestration.d.ts +1 -657
- package/dist/upstream-t3code/packages/contracts/src/provider.d.ts +0 -14
- package/dist/upstream-t3code/packages/contracts/src/providerRuntime.d.ts +1 -175
- package/dist/upstream-t3code/packages/contracts/src/rpc.d.ts +0 -492
- package/dist/upstream-t3code/packages/contracts/src/server.d.ts +0 -45
- package/dist/upstream-t3code/packages/contracts/src/settings.d.ts +0 -21
- package/dist/upstream-t3code/packages/contracts/src/terminal.d.ts +3 -6
- package/package.json +6 -2
- package/src/application/index.ts +28 -2
- package/src/application/layer.ts +34 -5
- package/src/application/model-selection.ts +68 -2
- package/src/application/models.ts +14 -14
- package/src/application/project-commands.ts +15 -0
- package/src/application/projects.ts +43 -13
- package/src/application/service.ts +196 -77
- package/src/application/shell-sequence.ts +5 -7
- package/src/application/terminals.ts +207 -0
- package/src/application/thread-commands.test.ts +43 -0
- package/src/application/thread-commands.ts +81 -0
- package/src/application/thread-update.ts +72 -0
- package/src/application/thread-wait.ts +46 -47
- package/src/application/threads.test.ts +166 -0
- package/src/application/threads.ts +123 -40
- package/src/bin.ts +2 -0
- package/src/cli/app.ts +2 -0
- package/src/cli/confirm.ts +31 -0
- package/src/cli/error.ts +26 -3
- package/src/cli/flags.ts +15 -0
- package/src/cli/input/layer.ts +20 -0
- package/src/cli/input/service.ts +1 -0
- package/src/cli/output-format.ts +6 -2
- package/src/cli/project-format.ts +7 -0
- package/src/cli/project.ts +2 -1
- package/src/cli/projects/delete.ts +50 -0
- package/src/cli/self-action.ts +34 -0
- package/src/cli/terminal/attach.ts +32 -0
- package/src/cli/terminal/commands.test.ts +101 -0
- package/src/cli/terminal/create.ts +54 -0
- package/src/cli/terminal/destroy.ts +60 -0
- package/src/cli/terminal/encoding.test.ts +63 -0
- package/src/cli/terminal/encoding.ts +23 -0
- package/src/cli/terminal/error.ts +14 -0
- package/src/cli/terminal/io-node-layer.ts +82 -0
- package/src/cli/terminal/io-service.ts +25 -0
- package/src/cli/terminal/list.ts +35 -0
- package/src/cli/terminal/read.ts +102 -0
- package/src/cli/terminal/scope.ts +30 -0
- package/src/cli/terminal/shared.ts +250 -0
- package/src/cli/terminal/stream.ts +64 -0
- package/src/cli/terminal/wait.test.ts +146 -0
- package/src/cli/terminal/wait.ts +222 -0
- package/src/cli/terminal/write.ts +132 -0
- package/src/cli/terminal-format.ts +167 -0
- package/src/cli/terminal.ts +26 -0
- package/src/cli/thread-format.test.ts +32 -0
- package/src/cli/thread-format.ts +8 -1
- package/src/cli/thread.ts +8 -0
- package/src/cli/threads/archive.ts +11 -18
- package/src/cli/threads/delete.ts +61 -0
- package/src/cli/threads/interrupt.ts +52 -0
- package/src/cli/threads/list.test.ts +69 -0
- package/src/cli/threads/list.ts +15 -3
- package/src/cli/threads/send.ts +22 -2
- package/src/cli/threads/unarchive.ts +44 -0
- package/src/cli/threads/update.ts +150 -0
- package/src/domain/error.ts +20 -1
- package/src/domain/model-config.ts +4 -0
- package/src/domain/thread-lifecycle.ts +14 -0
- package/src/node/index.ts +2 -0
- package/src/orchestration/index.ts +1 -0
- package/src/orchestration/layer.ts +33 -85
- package/src/orchestration/service.ts +4 -0
- package/src/rpc/error.ts +10 -0
- package/src/rpc/index.ts +5 -0
- package/src/rpc/operation.ts +83 -0
- package/src/rpc/ws-group.ts +24 -0
- package/src/runtime/layer.ts +7 -2
package/README.md
CHANGED
|
@@ -56,6 +56,7 @@ t3cli auth status # Check current auth
|
|
|
56
56
|
```sh
|
|
57
57
|
t3cli project list # List known projects
|
|
58
58
|
t3cli project add [--path <path>] [--title <title>]
|
|
59
|
+
t3cli project delete [--project <ref>] [--force] [--yes]
|
|
59
60
|
```
|
|
60
61
|
|
|
61
62
|
The `--path` defaults to the current directory.
|
|
@@ -91,7 +92,7 @@ t3cli start [message]
|
|
|
91
92
|
### Common Thread Commands
|
|
92
93
|
|
|
93
94
|
```sh
|
|
94
|
-
t3cli list [--project <ref>]
|
|
95
|
+
t3cli list [--project <ref>] [--archived | --all]
|
|
95
96
|
t3cli show [--thread <id>] # Show thread details
|
|
96
97
|
t3cli send [--thread <id>] [message] # Send message to thread
|
|
97
98
|
t3cli transcript [--thread <id>] [--limit] # View messages
|
|
@@ -103,10 +104,41 @@ t3cli wait [--thread <id>] # Wait for completion
|
|
|
103
104
|
```sh
|
|
104
105
|
t3cli thread archive [--thread <id>] # Archive thread
|
|
105
106
|
t3cli thread approve --request <id> # Approve request
|
|
107
|
+
t3cli thread interrupt [--thread <id>] # Interrupt running turn
|
|
106
108
|
t3cli thread respond --request <id> # Respond to request
|
|
109
|
+
t3cli thread update [--thread <id>] # Update thread metadata
|
|
110
|
+
t3cli thread unarchive [--thread <id>] # Unarchive thread
|
|
111
|
+
t3cli thread delete [--thread <id>] [--yes] # Delete thread
|
|
107
112
|
t3cli thread callback --from <id> # Notify another thread on completion
|
|
108
113
|
```
|
|
109
114
|
|
|
115
|
+
## Terminal Commands
|
|
116
|
+
|
|
117
|
+
```sh
|
|
118
|
+
t3cli terminal list [--thread <id>] [--format auto|human|json]
|
|
119
|
+
t3cli terminal create [--thread <id>] [command] [--id <id>] [--attach] [--format auto|human|json]
|
|
120
|
+
t3cli terminal attach [--thread <id>] <terminal-id>
|
|
121
|
+
t3cli terminal read [--thread <id>] <terminal-id> [--history] [--format json|ndjson]
|
|
122
|
+
t3cli terminal read [--thread <id>] <terminal-id> --history --follow --format ndjson [--from-sequence <n>]
|
|
123
|
+
t3cli terminal stream [--thread <id>] <terminal-id> [--format ndjson] [--from-sequence <n>]
|
|
124
|
+
t3cli terminal wait [--thread <id>] <terminal-id> [--for exited|closed|ended] [--format auto|human|json]
|
|
125
|
+
t3cli terminal write [--thread <id>] <terminal-id> <data> [--format auto|human|json] [--quiet]
|
|
126
|
+
t3cli terminal write [--thread <id>] <terminal-id> --stdin [--format auto|human|json] [--quiet]
|
|
127
|
+
t3cli terminal write [--thread <id>] <terminal-id> --hex <hex> [--format auto|human|json] [--quiet]
|
|
128
|
+
t3cli terminal write [--thread <id>] <terminal-id> --base64 <base64> [--format auto|human|json] [--quiet]
|
|
129
|
+
t3cli terminal destroy [--thread <id>] <terminal-id> [--yes] [--format auto|human|json] [--quiet]
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
`terminal list` shows a one-shot snapshot of terminals for a thread. `terminal create` opens a server-owned terminal in the thread workspace, using the active thread worktree when present and the project workspace root otherwise. When `[command]` is provided, the CLI opens the terminal first and then writes `${command}\r`.
|
|
133
|
+
|
|
134
|
+
`terminal attach` replays terminal history and then streams live output while forwarding local input to the remote PTY. Use `Ctrl-]` to detach locally without destroying the remote terminal. `Ctrl-C` is forwarded to the remote terminal. Terminal resize events are forwarded to the server.
|
|
135
|
+
|
|
136
|
+
`terminal read` returns the current terminal snapshot. Add `--history` to include snapshot history. Add `--follow --format ndjson` to continue streaming structured events after the snapshot. `--from-sequence` is inclusive: events with sequence greater than or equal to `<n>` are emitted after the initial snapshot. `terminal stream` is the lower-level attach event stream for agents and always emits ndjson attach events.
|
|
137
|
+
|
|
138
|
+
`terminal wait` blocks until the terminal emits the requested lifecycle event. `exited` waits for the process to end, `closed` waits for the server-owned terminal session to be removed, and `ended` accepts either.
|
|
139
|
+
|
|
140
|
+
`terminal write` accepts exactly one payload source: raw argument text, `--stdin`, `--hex`, or `--base64`. Payloads are treated as raw bytes (latin1), not UTF-8 text. `terminal destroy` performs a destructive close with history deletion and requires `--yes` in non-interactive mode.
|
|
141
|
+
|
|
110
142
|
### Environment Variables
|
|
111
143
|
|
|
112
144
|
When flags are omitted, the CLI reads these environment variables (first match wins):
|
package/dist/application.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { T3Application };
|
|
1
|
+
import { B as T3ApplicationSlicesLive, Bd as T3ThreadApplication, G as makeT3Application, H as T3ProjectApplicationLive, Id as T3Application, Ld as T3ModelApplication, Rd as T3ProjectApplication, U as T3TerminalApplicationLive, V as T3ModelApplicationLive, W as T3ThreadApplicationLive, z as T3ApplicationLive, zd as T3TerminalApplication } from "./shared.js";
|
|
2
|
+
export { T3Application, T3ApplicationLive, T3ApplicationSlicesLive, T3ModelApplication, T3ModelApplicationLive, T3ProjectApplication, T3ProjectApplicationLive, T3TerminalApplication, T3TerminalApplicationLive, T3ThreadApplication, T3ThreadApplicationLive, makeT3Application };
|
package/dist/auth.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as AuthLocalDatabaseError, A as makeT3LocalAuth, C as makeT3Auth, D as parsePairingUrl, E as makeT3AuthPairing, F as T3LocalAuthOriginLive, I as makeT3LocalAuthOrigin, M as T3LocalAuthTokenLive, N as makeT3LocalAuthToken, O as T3LocalAuth, P as T3LocalAuthOrigin, Q as AuthConfigError, S as T3AuthLive, T as T3AuthPairingLive, et as AuthLocalError, if as T3Auth, it as AuthTransportError, j as T3LocalAuthToken, k as T3LocalAuthLive, nt as AuthLocalSigningError, rt as AuthPairingUrlError, tt as AuthLocalSecretError, w as T3AuthPairing } from "./shared.js";
|
|
2
2
|
export { AuthConfigError, AuthLocalDatabaseError, AuthLocalError, AuthLocalSecretError, AuthLocalSigningError, AuthPairingUrlError, AuthTransportError, T3Auth, T3AuthLive, T3AuthPairing, T3AuthPairingLive, T3LocalAuth, T3LocalAuthLive, T3LocalAuthOrigin, T3LocalAuthOriginLive, T3LocalAuthToken, T3LocalAuthTokenLive, makeT3Auth, makeT3AuthPairing, makeT3LocalAuth, makeT3LocalAuthOrigin, makeT3LocalAuthToken, parsePairingUrl };
|