@meistrari/tela-cli 0.7.0 → 0.7.4
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 +56 -106
- package/dist/commands/auth.d.ts +2 -0
- package/dist/commands/context.d.ts +2 -0
- package/dist/commands/doctor-auth.d.ts +2 -0
- package/dist/commands/env.d.ts +2 -0
- package/dist/credentials.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7027 -0
- package/dist/output.d.ts +13 -0
- package/dist/program.d.ts +2 -0
- package/package.json +17 -24
- package/scripts/install-skills.cjs +127 -0
- package/skills/tela-cli/SKILL.md +20 -0
- package/skills/tela-cli/references/agent.md +111 -0
- package/cli.ts +0 -25
- package/postinstall.sh +0 -19
- package/src/agent-api.ts +0 -300
- package/src/assets.d.ts +0 -4
- package/src/auth.ts +0 -432
- package/src/claude.ts +0 -101
- package/src/commands/doctor.ts +0 -35
- package/src/commands/feedback.ts +0 -701
- package/src/commands/metadata.ts +0 -242
- package/src/commands/push.ts +0 -208
- package/src/commands/run.ts +0 -1699
- package/src/commands/status.ts +0 -109
- package/src/commands/sync.ts +0 -245
- package/src/commit-message.ts +0 -69
- package/src/config.ts +0 -799
- package/src/diagnostics.ts +0 -813
- package/src/errors.ts +0 -122
- package/src/forgejo.ts +0 -233
- package/src/git.ts +0 -457
- package/src/ink/assets/160092__jorickhoofd__dog-bark-1.mp3 +0 -0
- package/src/ink/bark.tsx +0 -241
- package/src/ink/components.tsx +0 -178
- package/src/ink/runtime.tsx +0 -90
- package/src/ink/screens/feedback-screen.tsx +0 -395
- package/src/ink/screens/push-screen.tsx +0 -232
- package/src/ink/screens/run-screen.tsx +0 -292
- package/src/ink/screens/setup/breadcrumb.tsx +0 -24
- package/src/ink/screens/setup/setup-screen.tsx +0 -612
- package/src/ink/screens/setup/step-frame.tsx +0 -31
- package/src/ink/screens/setup/steps/done-step.tsx +0 -29
- package/src/ink/screens/setup/steps/environment-step.tsx +0 -23
- package/src/ink/screens/setup/steps/organization-step.tsx +0 -35
- package/src/ink/screens/setup/steps/review-step.tsx +0 -78
- package/src/ink/screens/setup/steps/running-step.tsx +0 -37
- package/src/ink/screens/setup/steps/ssh-key-step.tsx +0 -48
- package/src/ink/screens/setup/steps/text-field-step.tsx +0 -18
- package/src/ink/screens/setup/steps.ts +0 -156
- package/src/ink/screens/setup/types.ts +0 -65
- package/src/ink/screens/sync-screen.tsx +0 -283
- package/src/process.ts +0 -251
- package/src/program.ts +0 -2105
- package/src/runtime.ts +0 -147
- package/src/types.ts +0 -165
- package/src/ui.ts +0 -295
- package/src/version.ts +0 -3
package/README.md
CHANGED
|
@@ -1,129 +1,79 @@
|
|
|
1
1
|
# Tela CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@meistrari/tela-cli` owns the local `tela` binary for scriptable access to
|
|
4
|
+
Tela Local state and agent workflows.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
The CLI reads and writes the same `~/.tela/config.json` state as Tela Dock
|
|
7
|
+
through `@meistrari/tela-local-config`. It should not parse local config files
|
|
8
|
+
directly, and normal output must not print token material.
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
bun install -g @meistrari/tela-cli
|
|
9
|
-
```
|
|
10
|
+
## Commands
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
Current first-slice commands:
|
|
12
13
|
|
|
13
14
|
```bash
|
|
14
|
-
|
|
15
|
+
tela auth token --json
|
|
16
|
+
tela auth token --raw
|
|
17
|
+
tela context current --json
|
|
18
|
+
tela context list --json
|
|
19
|
+
tela context show <context-id> --json
|
|
20
|
+
tela context use <context-id>
|
|
21
|
+
tela env list --json
|
|
22
|
+
tela doctor auth --json
|
|
23
|
+
tela agent sync [repo] --current --all --dry-run --json --verbose
|
|
24
|
+
tela agent run --input <name=path>... --plain --json --verbose
|
|
25
|
+
tela agent push --message <text> --claude --manual --dry-run --json --verbose
|
|
26
|
+
tela agent feedback --list --apply <all|select> --json --verbose
|
|
15
27
|
```
|
|
16
28
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
List workspace repositories that are available to sync locally.
|
|
22
|
-
|
|
23
|
-
When to use: Run this with no subcommand when you want to see which workspace repositories are available before using `tela sync <repo>`.
|
|
24
|
-
|
|
25
|
-
Examples:
|
|
26
|
-
- `tela` — Render the available repositories in a human-readable table
|
|
27
|
-
- `tela --json` — Emit the available repositories as JSON
|
|
28
|
-
|
|
29
|
-
## Version
|
|
30
|
-
|
|
31
|
-
Examples:
|
|
32
|
-
- `tela --version` — Print the current Tela CLI version
|
|
33
|
-
- `tela -v` — Print the current Tela CLI version
|
|
34
|
-
|
|
35
|
-
## Commands
|
|
36
|
-
|
|
37
|
-
### `setup`
|
|
38
|
-
|
|
39
|
-
Configure Tela CLI, sign in with device flow, choose the workspace organization, provision Forgejo access, and verify the local environment
|
|
40
|
-
|
|
41
|
-
When to use: Run this first on a new machine, or any time your environment target, clone root, Tela session, or SSH key changes.
|
|
42
|
-
|
|
43
|
-
Examples:
|
|
44
|
-
- `tela setup` — Choose production, staging, or a custom environment, complete browser-based sign-in, select the workspace organization, and provision Forgejo access with an SSH key
|
|
45
|
-
|
|
46
|
-
### `sync [repo]`
|
|
47
|
-
|
|
48
|
-
Clone or update a Tela repository, or refresh the current checkout
|
|
49
|
-
|
|
50
|
-
When to use: Use this before coding to get a clean local checkout, or to refresh every repository under the configured clone root. SSH-backed sync automatically accepts first-seen host keys during clone and update flows.
|
|
51
|
-
|
|
52
|
-
Examples:
|
|
53
|
-
- `tela sync agent-api` — Clone or update a specific repository under the clone root
|
|
54
|
-
- `tela sync --current` — Sync the repository for the current working directory
|
|
55
|
-
- `tela sync --all` — Refresh every repository directly under the clone root
|
|
56
|
-
|
|
57
|
-
### `run`
|
|
29
|
+
`context use` is the only normal config mutation in this slice. `auth token`
|
|
30
|
+
may refresh a user-session credential in Keychain before returning metadata or
|
|
31
|
+
printing a raw token. Creating, removing, editing, and repairing contexts are
|
|
32
|
+
Dock-first workflows.
|
|
58
33
|
|
|
59
|
-
|
|
34
|
+
## Development
|
|
60
35
|
|
|
61
|
-
|
|
36
|
+
From the repository root:
|
|
62
37
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### `push`
|
|
69
|
-
|
|
70
|
-
Preview, commit, and push the current repository
|
|
71
|
-
|
|
72
|
-
When to use: Use this after reviewing local changes when you want Tela to stage everything, produce a commit message, and push the branch.
|
|
73
|
-
|
|
74
|
-
Examples:
|
|
75
|
-
- `tela push` — Choose the commit-message flow interactively
|
|
76
|
-
- `tela push --claude` — Generate a commit message from the current worktree
|
|
77
|
-
- `tela push --message "Update feedback flow"` — Skip prompts and use an explicit commit message
|
|
78
|
-
|
|
79
|
-
### `feedback`
|
|
80
|
-
|
|
81
|
-
Guided review of commit feedback with optional Claude handoff
|
|
82
|
-
|
|
83
|
-
When to use: Use this after pushing or after a feedback-producing commit when you want a guided review of the feedback, a prompt preview before launch, and an outcome summary after Claude exits.
|
|
84
|
-
|
|
85
|
-
Examples:
|
|
86
|
-
- `tela feedback --list` — Open the guided review flow without launching Claude
|
|
87
|
-
- `tela feedback --apply all` — Preview and launch Claude against every actionable suggestion
|
|
88
|
-
- `tela feedback --apply select` — Choose specific actionable suggestions before launching Claude
|
|
89
|
-
|
|
90
|
-
### `status`
|
|
91
|
-
|
|
92
|
-
Show Tela config, session state, tool availability, repo state, and Agent API reachability
|
|
93
|
-
|
|
94
|
-
When to use: Use this for a quick snapshot of whether the local environment is ready before running mutating commands.
|
|
95
|
-
|
|
96
|
-
Examples:
|
|
97
|
-
- `tela status` — Render a human-readable environment summary
|
|
98
|
-
- `tela status --json` — Emit a machine-readable status report
|
|
38
|
+
```bash
|
|
39
|
+
pnpm cli:build
|
|
40
|
+
pnpm cli:test
|
|
41
|
+
pnpm --filter @meistrari/tela-cli run typecheck
|
|
42
|
+
```
|
|
99
43
|
|
|
100
|
-
|
|
44
|
+
Run the built binary directly during development:
|
|
101
45
|
|
|
102
|
-
|
|
46
|
+
```bash
|
|
47
|
+
node apps/tela-cli/dist/index.js context current --json
|
|
48
|
+
node apps/tela-cli/dist/index.js auth token --json
|
|
49
|
+
```
|
|
103
50
|
|
|
104
|
-
|
|
51
|
+
Use `TELA_HOME` to point the CLI at an isolated config directory:
|
|
105
52
|
|
|
106
|
-
|
|
53
|
+
```bash
|
|
54
|
+
TELA_HOME=/tmp/tela-home node apps/tela-cli/dist/index.js env list --json
|
|
55
|
+
```
|
|
107
56
|
|
|
108
|
-
|
|
109
|
-
- `tela doctor` — Run the full diagnostic suite with remediation guidance
|
|
110
|
-
- `tela doctor --json` — Emit structured diagnostic output for scripts
|
|
57
|
+
## Credential Behavior
|
|
111
58
|
|
|
112
|
-
|
|
59
|
+
The CLI uses the credential adapter contract from `local-config`.
|
|
113
60
|
|
|
114
|
-
-
|
|
115
|
-
-
|
|
61
|
+
- `env` credentials read `TELA_ACCESS_TOKEN`, `TELA_REFRESH_TOKEN`, or `TELA_DATA_TOKEN`.
|
|
62
|
+
- macOS `keychain` credentials use the system `security` command.
|
|
63
|
+
- expired user-session access tokens with a refresh token are reported as
|
|
64
|
+
`refreshable`, not as a hard auth failure.
|
|
65
|
+
- `auth token` refreshes expired user-session access tokens when a refresh token
|
|
66
|
+
is available.
|
|
67
|
+
- unsupported providers report diagnostic status instead of exposing secrets.
|
|
116
68
|
|
|
117
|
-
|
|
69
|
+
`auth token --raw` is the explicit token-export escape hatch for shell scripts.
|
|
70
|
+
Default and `--json` output stay redacted.
|
|
118
71
|
|
|
119
|
-
|
|
120
|
-
- Remaining external inputs are explicit: Claude's built-in system prompt, managed enterprise settings, auth/provider credentials, minimal shell runtime environment, and the default model when `agent.config.json` does not set one.
|
|
72
|
+
## Tests
|
|
121
73
|
|
|
122
|
-
|
|
74
|
+
Tests are black-box `node --test` cases that execute the compiled CLI with an
|
|
75
|
+
isolated `TELA_HOME`.
|
|
123
76
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
4. `tela run`
|
|
128
|
-
5. `tela push`
|
|
129
|
-
6. `tela feedback --list`
|
|
77
|
+
```bash
|
|
78
|
+
pnpm --filter @meistrari/tela-cli run test
|
|
79
|
+
```
|
package/dist/index.d.ts
ADDED