@meistrari/tela-cli 0.1.1 → 0.3.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.
@@ -17,12 +17,12 @@ export interface CommandMetadata {
17
17
  const COMMANDS: CommandMetadata[] = [
18
18
  {
19
19
  name: 'setup',
20
- summary: 'Configure Tela CLI, choose an Agent API target, and verify the local environment',
21
- whenToUse: 'Run this first on a new machine, or any time your Agent API target/origin, clone root, or key changes.',
20
+ summary: 'Configure Tela CLI, sign in with device flow, choose the workspace organization, provision Forgejo access, and verify the local environment',
21
+ whenToUse: 'Run this first on a new machine, or any time your environment target, clone root, Tela session, or SSH key changes.',
22
22
  examples: [
23
23
  {
24
24
  command: 'tela setup',
25
- description: 'Choose production, staging, or a custom API origin and run post-setup checks',
25
+ description: 'Choose production, staging, or a custom environment, complete browser-based sign-in, select the workspace organization, and provision Forgejo access with an SSH key',
26
26
  },
27
27
  ],
28
28
  supportsJson: false,
@@ -115,7 +115,7 @@ const COMMANDS: CommandMetadata[] = [
115
115
  },
116
116
  {
117
117
  name: 'status',
118
- summary: 'Show Tela config, tool availability, repo state, and Agent API origin reachability',
118
+ summary: 'Show Tela config, session state, tool availability, repo state, and Agent API reachability',
119
119
  whenToUse: 'Use this for a quick snapshot of whether the local environment is ready before running mutating commands.',
120
120
  examples: [
121
121
  {
@@ -132,7 +132,7 @@ const COMMANDS: CommandMetadata[] = [
132
132
  },
133
133
  {
134
134
  name: 'doctor',
135
- summary: 'Diagnose config, tools, filesystem state, repo health, and Agent API origin reachability',
135
+ summary: 'Diagnose config, auth session, tools, filesystem state, repo health, and Agent API reachability',
136
136
  aliases: ['diag'],
137
137
  whenToUse: 'Use this when Tela fails or behaves unexpectedly and you need exact remediation steps.',
138
138
  examples: [
@@ -164,6 +164,18 @@ export function renderReadmeMarkdown(): string {
164
164
  '',
165
165
  'Tela CLI is a one-shot terminal tool for syncing Tela repositories, running local agents, preparing pushes, and applying commit feedback with Claude.',
166
166
  '',
167
+ '## Installation',
168
+ '',
169
+ '```bash',
170
+ 'bun install -g @meistrari/tela-cli',
171
+ '```',
172
+ '',
173
+ 'This installs the package globally and adds a `tela` alias to your `~/.zshrc`. After installing, either open a new terminal or run:',
174
+ '',
175
+ '```bash',
176
+ 'source ~/.zshrc',
177
+ '```',
178
+ '',
167
179
  '## Commands',
168
180
  '',
169
181
  ]
@@ -192,7 +204,6 @@ export function renderReadmeMarkdown(): string {
192
204
  lines.push('')
193
205
  lines.push('- Human output is structured for terminal use with grouped summaries and next actions.')
194
206
  lines.push('- `--json` is available on read-heavy flows and on `tela run` for the final execution envelope.')
195
- lines.push('- `--silent-bark` disables bark audio during interactive Ink startup while keeping the visual intro.')
196
207
  lines.push('')
197
208
  lines.push('## First run')
198
209
  lines.push('')
@@ -22,9 +22,18 @@ export function renderStatusReport(report: StatusReport, options: RenderOptions
22
22
  { label: 'Path', value: report.config.path },
23
23
  { label: 'Present', value: report.config.present ? 'yes' : 'no' },
24
24
  { label: 'Valid', value: report.config.valid ? 'yes' : 'no' },
25
+ { label: 'Environment', value: report.config.environment ?? '<unconfigured>' },
25
26
  { label: 'Agent API origin', value: report.config.agentApiUrl ?? '<unconfigured>' },
27
+ { label: 'Auth API URL', value: report.config.authApiUrl ?? '<unconfigured>' },
28
+ { label: 'Tela API URL', value: report.config.telaApiUrl ?? '<unconfigured>' },
26
29
  { label: 'Clone root', value: report.config.cloneRoot ?? '<unconfigured>' },
27
- { label: 'API key', value: report.config.apiKey ?? '<unconfigured>' },
30
+ { label: 'User', value: report.config.user ?? '<signed out>' },
31
+ { label: 'Workspace', value: report.config.workspace ?? '<signed out>' },
32
+ { label: 'Organization', value: report.config.forgejoOrganization ?? '<not selected>' },
33
+ { label: 'Forgejo user', value: report.config.forgejoUserRegistered == null ? '<unknown>' : (report.config.forgejoUserRegistered ? 'registered' : 'pending') },
34
+ { label: 'Access token', value: report.config.accessToken ?? '<missing>' },
35
+ { label: 'Session expiry', value: report.config.sessionExpiresAt ? new Date(report.config.sessionExpiresAt).toISOString() : '<missing>' },
36
+ { label: 'Refresh token', value: report.config.hasRefreshToken ? 'present' : 'missing' },
28
37
  ], options), options)
29
38
 
30
39
  const repoSection = section('Repository', kvList([