t3code-cli 0.14.2 → 0.15.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 +36 -1
- package/dist/application.d.ts +2 -2
- package/dist/application.js +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +1 -1
- package/dist/bin.js +935 -336
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/client-runtime/authorization.d.ts +1 -1
- package/dist/client-runtime/authorization.js +1 -1
- package/dist/client-runtime/connection.d.ts +1 -1
- package/dist/client-runtime/connection.js +1 -1
- package/dist/client-runtime/environment.d.ts +3 -1
- package/dist/client-runtime/environment.js +1 -1
- package/dist/client-runtime/errors.js +1 -1
- package/dist/client-runtime/operations/projects.d.ts +1 -1
- package/dist/client-runtime/operations.d.ts +1 -1
- package/dist/client-runtime/platform.d.ts +1 -1
- package/dist/client-runtime/platform.js +1 -1
- package/dist/client-runtime/relay.d.ts +9 -2
- package/dist/client-runtime/relay.js +12 -2
- package/dist/client-runtime/rpc.d.ts +2 -2
- package/dist/client-runtime/rpc.js +2 -2
- package/dist/client-runtime/state/assets.d.ts +1 -1
- package/dist/client-runtime/state/assets.js +1 -1
- package/dist/client-runtime/state/auth.d.ts +1 -1
- package/dist/client-runtime/state/auth.js +1 -1
- package/dist/client-runtime/state/connections.js +1 -1
- package/dist/client-runtime/state/entities.d.ts +1 -1
- package/dist/client-runtime/state/filesystem.d.ts +1 -1
- package/dist/client-runtime/state/filesystem.js +1 -1
- package/dist/client-runtime/state/git.d.ts +2 -1
- package/dist/client-runtime/state/git.js +1 -1
- package/dist/client-runtime/state/models.d.ts +1 -1
- package/dist/client-runtime/state/models.js +1 -1
- package/dist/client-runtime/state/orchestration.d.ts +1 -1
- package/dist/client-runtime/state/orchestration.js +1 -1
- package/dist/client-runtime/state/presentation.d.ts +7 -1
- package/dist/client-runtime/state/presentation.js +1 -1
- package/dist/client-runtime/state/preview.d.ts +5 -2
- package/dist/client-runtime/state/preview.js +3 -2
- package/dist/client-runtime/state/project-grouping.d.ts +1 -1
- package/dist/client-runtime/state/project-grouping.js +1 -1
- package/dist/client-runtime/state/projects.d.ts +1 -1
- package/dist/client-runtime/state/pull-requests.d.ts +478 -0
- package/dist/client-runtime/state/pull-requests.js +172 -0
- package/dist/client-runtime/state/relay.d.ts +1 -1
- package/dist/client-runtime/state/relay.js +1 -1
- package/dist/client-runtime/state/review.d.ts +1 -1
- package/dist/client-runtime/state/review.js +1 -1
- package/dist/client-runtime/state/runtime.d.ts +2 -2
- package/dist/client-runtime/state/runtime.js +2 -2
- package/dist/client-runtime/state/server.d.ts +13 -1
- package/dist/client-runtime/state/server.js +1 -1
- package/dist/client-runtime/state/session.d.ts +13 -1
- package/dist/client-runtime/state/session.js +1 -1
- package/dist/client-runtime/state/shell.d.ts +7 -1
- package/dist/client-runtime/state/shell.js +1 -1
- package/dist/client-runtime/state/source-control.d.ts +1 -1
- package/dist/client-runtime/state/source-control.js +1 -1
- package/dist/client-runtime/state/subagentRuntime.d.ts +1 -1
- package/dist/client-runtime/state/terminal.d.ts +1 -1
- package/dist/client-runtime/state/terminal.js +1 -1
- package/dist/client-runtime/state/thread-search.d.ts +1 -1
- package/dist/client-runtime/state/thread-search.js +1 -1
- package/dist/client-runtime/state/thread-settled.d.ts +11 -8
- package/dist/client-runtime/state/thread-settled.js +2 -229
- package/dist/client-runtime/state/thread-sort.d.ts +1 -1
- package/dist/client-runtime/state/thread-sort.js +1 -1
- package/dist/client-runtime/state/threads.d.ts +1 -1
- package/dist/client-runtime/state/threads.js +1 -1
- package/dist/client-runtime/state/vcs.d.ts +1 -1
- package/dist/client-runtime/state/vcs.js +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/connection.d.ts +1 -1
- package/dist/connection.js +1 -1
- package/dist/contracts.d.ts +1 -1
- package/dist/contracts.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +1 -1
- package/dist/orchestration.d.ts +12 -6
- package/dist/orchestration.js +2 -2
- package/dist/preview.d.ts +1 -1
- package/dist/rpc.d.ts +4 -9
- package/dist/rpc.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/shared/DrainableWorker.js +1 -1
- package/dist/shared/KeyedCoalescingWorker.js +1 -1
- package/dist/shared/Net.d.ts +6 -0
- package/dist/shared/Net.js +2 -1
- package/dist/shared/advertisedEndpoint.d.ts +1 -1
- package/dist/shared/advertisedEndpoint.js +1 -1
- package/dist/shared/agentAwareness.d.ts +1 -1
- package/dist/shared/backgroundActivitySettings.d.ts +1 -1
- package/dist/shared/connectAuth.d.ts +23 -4
- package/dist/shared/connectAuth.js +40 -7
- package/dist/shared/devHome.js +1 -1
- package/dist/shared/dpop.js +1 -1
- package/dist/shared/git.d.ts +1 -1
- package/dist/shared/httpObservability.js +1 -1
- package/dist/shared/httpReadiness.js +1 -1
- package/dist/shared/keybindings.d.ts +1 -1
- package/dist/shared/model.d.ts +1 -1
- package/dist/shared/oauthScope.js +1 -1
- package/dist/shared/observability.js +1 -1
- package/dist/shared/preview.js +1 -1
- package/dist/shared/previewViewport.d.ts +1 -1
- package/dist/shared/previewViewport.js +1 -1
- package/dist/shared/projectScripts.d.ts +1 -1
- package/dist/shared/relayAuth.js +1 -1
- package/dist/shared/relayClient.d.ts +1 -1
- package/dist/shared/relayClient.js +1 -1
- package/dist/shared/relayJwt.js +1 -1
- package/dist/shared/relayTracing.js +1 -1
- package/dist/shared/relayUrl.js +1 -1
- package/dist/shared/remote.js +1 -1
- package/dist/shared/schemaYaml.js +1 -1
- package/dist/shared/serverSettings.d.ts +1 -1
- package/dist/shared/serverSettings.js +1 -1
- package/dist/shared/shell.js +1 -1
- package/dist/shared/sourceControl.d.ts +1 -1
- package/dist/shared/t3ProjectFile.d.ts +1 -1
- package/dist/shared/t3ProjectFile.js +1 -1
- package/dist/shared/terminalLabels.d.ts +1 -1
- package/dist/shared/threadEnvMode.d.ts +1 -1
- package/dist/shared/toolActivity.d.ts +1 -1
- package/dist/shared/usageFormat.d.ts +16 -3
- package/dist/shared/usageFormat.js +92 -6
- package/dist/shared/usageMerge.d.ts +13 -2
- package/dist/shared/usageMerge.js +23 -0
- package/dist/shared.d.ts +3470 -378
- package/dist/shared.js +2434 -617
- package/dist/t3tools.d.ts +2 -2
- package/dist/t3tools.js +2 -2
- package/package.json +2 -2
- package/src/application/error.ts +2 -2
- package/src/application/index.ts +1 -0
- package/src/application/service.ts +38 -4
- package/src/application/thread-commands.ts +78 -0
- package/src/application/threads.ts +113 -16
- package/src/cli/app.ts +2 -0
- package/src/cli/ask-lifecycle.ts +331 -0
- package/src/cli/ask.ts +390 -0
- package/src/cli/error.ts +70 -0
- package/src/cli/format/thread.ts +26 -6
- package/src/cli/thread.ts +12 -0
- package/src/cli/threads/messages.ts +33 -3
- package/src/cli/threads/pin.ts +46 -0
- package/src/cli/threads/send.ts +5 -1
- package/src/cli/threads/settle.ts +46 -0
- package/src/cli/threads/snooze.ts +117 -0
- package/src/cli/threads/start.ts +6 -1
- package/src/cli/threads/unpin.ts +48 -0
- package/src/cli/threads/unsettle.ts +48 -0
- package/src/cli/threads/unsnooze.ts +48 -0
- package/src/connection/prepared.ts +12 -2
- package/src/orchestration/error.ts +10 -0
- package/src/orchestration/index.ts +1 -0
- package/src/orchestration/layer.ts +72 -0
- package/src/orchestration/service.ts +11 -3
- package/src/rpc/ws-group.ts +1 -0
- package/src/runtime/layer.ts +9 -4
package/README.md
CHANGED
|
@@ -39,6 +39,14 @@ Install it with:
|
|
|
39
39
|
npx skills add tarik02-org/t3code-cli
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
## Nix
|
|
43
|
+
|
|
44
|
+
On NixOS or another system with Nix installed:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
nix profile install github:tarik02-org/t3code-cli
|
|
48
|
+
```
|
|
49
|
+
|
|
42
50
|
## Authentication
|
|
43
51
|
|
|
44
52
|
`t3cli` stores multiple named auth environments in `~/.config/t3cli/config.json` (or `$XDG_CONFIG_HOME/t3cli/config.json`). Tokens are encrypted at rest with AES-256-GCM; the master key is stored in the OS keyring when available, otherwise in `~/.config/t3cli/key`.
|
|
@@ -169,6 +177,22 @@ Lists available provider models. Use `--all` to include hidden or unavailable en
|
|
|
169
177
|
|
|
170
178
|
## Thread Workflow
|
|
171
179
|
|
|
180
|
+
### Asking One Question
|
|
181
|
+
|
|
182
|
+
`ask` waits for one answer and prints only the assistant text by default:
|
|
183
|
+
|
|
184
|
+
```sh
|
|
185
|
+
t3cli ask "Which package owns this API?" --project /path/to/project
|
|
186
|
+
t3cli ask "Summarize the decision" --thread <id>
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Without `--thread`, it creates a thread and archives it after a successful answer. With
|
|
190
|
+
`--thread`, it leaves the existing thread active unless `--archive` is set explicitly.
|
|
191
|
+
`--archive` accepts `never`, `always`, `on-success`, or `on-failure`.
|
|
192
|
+
|
|
193
|
+
Existing busy threads are rejected. `--timeout 5m` limits the response wait. Unlike other
|
|
194
|
+
thread-scoped commands, `ask` uses only an explicit `--thread` and ignores `T3CODE_THREAD_ID`.
|
|
195
|
+
|
|
172
196
|
### Starting Threads
|
|
173
197
|
|
|
174
198
|
```sh
|
|
@@ -194,17 +218,27 @@ t3cli list [--project <ref>] [--archived | --all]
|
|
|
194
218
|
t3cli search <query> [--limit <1-50>] # Search conversation content
|
|
195
219
|
t3cli show [--thread <id>] # Show thread details
|
|
196
220
|
t3cli send [--thread <id>] [message] # Send message to thread
|
|
197
|
-
t3cli transcript [--thread <id>] [--limit]
|
|
221
|
+
t3cli transcript [--thread <id>] [--turn-limit N] [--before-cursor <cursor>] [--all] # View messages
|
|
198
222
|
t3cli wait [--thread <id>] # Wait for completion
|
|
199
223
|
```
|
|
200
224
|
|
|
225
|
+
`transcript` loads the latest 10 user turns by default and includes pagination metadata in JSON
|
|
226
|
+
output. Pass the returned `page.beforeCursor` to `--before-cursor` for the next older page, use
|
|
227
|
+
`--turn-limit` to set the page size, or use `--all` to load the complete transcript.
|
|
228
|
+
|
|
201
229
|
### Advanced Thread Commands
|
|
202
230
|
|
|
203
231
|
```sh
|
|
204
232
|
t3cli thread archive [--thread <id>] # Archive thread
|
|
205
233
|
t3cli thread approve --request <id> # Approve request
|
|
206
234
|
t3cli thread interrupt [--thread <id>] # Interrupt running turn
|
|
235
|
+
t3cli thread pin [--thread <id>] # Pin thread
|
|
207
236
|
t3cli thread respond --request <id> # Respond to request
|
|
237
|
+
t3cli thread settle [--thread <id>] # Settle thread
|
|
238
|
+
t3cli thread snooze [--thread <id>] (--until <ISO-8601> | --preset hour|evening|tomorrow|next-week)
|
|
239
|
+
t3cli thread unpin [--thread <id>] # Unpin thread
|
|
240
|
+
t3cli thread unsnooze [--thread <id>] # Wake snoozed thread
|
|
241
|
+
t3cli thread unsettle [--thread <id>] # Unsettle thread
|
|
208
242
|
t3cli thread update [--thread <id>] # Update thread metadata
|
|
209
243
|
t3cli thread unarchive [--thread <id>] # Unarchive thread
|
|
210
244
|
t3cli thread delete [--thread <id>] [--yes] # Delete thread
|
|
@@ -286,6 +320,7 @@ Most commands support:
|
|
|
286
320
|
Thread commands also support `ndjson` for streaming:
|
|
287
321
|
|
|
288
322
|
```sh
|
|
323
|
+
t3cli ask "task" --format ndjson
|
|
289
324
|
t3cli start "task" --format ndjson --wait
|
|
290
325
|
t3cli wait --format ndjson
|
|
291
326
|
```
|
package/dist/application.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ai as
|
|
2
|
-
export { type AddProjectActionInput, type ApplicationError, type ProjectActionDeleteResult, type ProjectActionMutationResult, type ProjectActionRunResult, type ProjectActionSelector, type SendThreadInput, type StartThreadInput, type StartThreadPolicy, T3ActionApplication, T3ActionApplicationLive, type T3ActionApplicationService, T3Application, T3ApplicationLive, T3ApplicationSlicesLive, T3ModelApplication, T3ModelApplicationLive, T3ProjectApplication, T3ProjectApplicationLive, T3TerminalApplication, T3TerminalApplicationLive, T3ThreadApplication, T3ThreadApplicationLive, type ThreadSearchResult, type UpdateProjectActionInput, type UpdateThreadInput, type WaitEvent, makeT3Application };
|
|
1
|
+
import { Ai as SnoozeThreadInput, Bi as UpdateProjectActionInput, Di as ProjectActionRunResult, Ei as ProjectActionMutationResult, Fi as T3Application, Hi as WaitEvent, Ii as T3ModelApplication, Ki as ApplicationError, Li as T3ProjectApplication, Mi as StartThreadPolicy, Ni as T3ActionApplication, Oi as ProjectActionSelector, Pi as T3ActionApplicationService, Ri as T3TerminalApplication, Ti as ProjectActionDeleteResult, Ui as ThreadSearchResult, Vi as UpdateThreadInput, ci as T3ActionApplicationLive, di as T3ModelApplicationLive, fi as T3ProjectApplicationLive, hi as makeT3Application, ji as StartThreadInput, ki as SendThreadInput, li as T3ApplicationLive, mi as T3ThreadApplicationLive, pi as T3TerminalApplicationLive, ui as T3ApplicationSlicesLive, wi as AddProjectActionInput, zi as T3ThreadApplication } from "./shared.js";
|
|
2
|
+
export { type AddProjectActionInput, type ApplicationError, type ProjectActionDeleteResult, type ProjectActionMutationResult, type ProjectActionRunResult, type ProjectActionSelector, type SendThreadInput, type SnoozeThreadInput, type StartThreadInput, type StartThreadPolicy, T3ActionApplication, T3ActionApplicationLive, type T3ActionApplicationService, T3Application, T3ApplicationLive, T3ApplicationSlicesLive, T3ModelApplication, T3ModelApplicationLive, T3ProjectApplication, T3ProjectApplicationLive, T3TerminalApplication, T3TerminalApplicationLive, T3ThreadApplication, T3ThreadApplicationLive, type ThreadSearchResult, type UpdateProjectActionInput, type UpdateThreadInput, type WaitEvent, makeT3Application };
|
package/dist/application.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Gi as
|
|
1
|
+
import { Gi as T3ActionApplicationLive, Ji as T3ModelApplicationLive, Ki as T3ApplicationLive, Qi as makeT3Application, Xi as T3TerminalApplicationLive, Yi as T3ProjectApplicationLive, Zi as T3ThreadApplicationLive, cO as T3Application, dO as T3TerminalApplication, fO as T3ThreadApplication, lO as T3ModelApplication, qi as T3ApplicationSlicesLive, sO as T3ActionApplication, uO as T3ProjectApplication } from "./shared.js";
|
|
2
2
|
export { T3ActionApplication, T3ActionApplicationLive, T3Application, T3ApplicationLive, T3ApplicationSlicesLive, T3ModelApplication, T3ModelApplicationLive, T3ProjectApplication, T3ProjectApplicationLive, T3TerminalApplication, T3TerminalApplicationLive, T3ThreadApplication, T3ThreadApplicationLive, makeT3Application };
|
package/dist/auth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $r as
|
|
1
|
+
import { $r as AuthError, Br as AuthSessionRole, Fr as AuthConfigInput, Gr as LocalAuthOriginInput, Hr as AuthUnpairResult, Ir as AuthEnvironmentListItem, Jr as LocalAuthTokenResult, Kr as LocalAuthResult, Lr as AuthEnvironmentSummary, MO as AuthClientPresentationMetadata, Pr as T3Auth, Qr as AuthConfigError, Rr as AuthPairInput, Ur as AuthUseResult, Vr as AuthStatusResult, Wr as LocalAuthInput, Xr as PairingUrl, Yr as PairResult, Zr as PersistEnvironmentInput, _r as T3Config, ai as AuthTransportError, ar as makeT3AuthPairing, cr as T3LocalAuth, dr as T3LocalAuthToken, ei as AuthLocalDatabaseError, fr as T3LocalAuthTokenLive, gr as makeT3LocalAuthOrigin, hr as T3LocalAuthOriginLive, ii as AuthPairingUrlError, ir as T3AuthPairingLive, lr as T3LocalAuthLive, mr as T3LocalAuthOrigin, ni as AuthLocalSecretError, oi as AuthSessionState, or as parsePairingUrl, pr as makeT3LocalAuthToken, qr as LocalAuthTokenInput, ri as AuthLocalSigningError, rr as T3AuthPairing, si as AuthWebSocketTicketResult, sr as T3AuthTransport, ti as AuthLocalError, ur as makeT3LocalAuth, zr as AuthResolvedConfig } from "./shared.js";
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
3
|
import * as Layer from "effect/Layer";
|
|
4
4
|
//#region src/auth/layer.d.ts
|
package/dist/auth.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ai as
|
|
1
|
+
import { Ai as makeT3LocalAuth, Bi as AuthLocalError, Ci as makeT3Auth, Di as parsePairingUrl, Ei as makeT3AuthPairing, Fi as T3LocalAuthOriginLive, Hi as AuthLocalSigningError, Ii as makeT3LocalAuthOrigin, Mi as T3LocalAuthTokenLive, Ni as makeT3LocalAuthToken, Oi as T3LocalAuth, Pi as T3LocalAuthOrigin, Ri as AuthConfigError, Si as T3AuthLive, Ti as T3AuthPairingLive, Ui as AuthPairingUrlError, Vi as AuthLocalSecretError, Wi as AuthTransportError, ji as T3LocalAuthToken, ki as T3LocalAuthLive, rc as T3Auth, wi as T3AuthPairing, zi as AuthLocalDatabaseError } 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 };
|