@ait-co/console-cli 0.1.38 → 0.1.40

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.en.md CHANGED
@@ -182,46 +182,38 @@ Every command accepts `--json`. When set:
182
182
 
183
183
  `agent-plugin` skills shell out with `--json` exclusively and parse stdout.
184
184
 
185
- ## Telemetry
186
-
187
- `aitcc` collects anonymous usage statistics split into two tiers. See the [privacy page](https://docs.aitc.dev/privacy) for details.
188
-
189
- ### Tier 0 — anonymous daily ping (on by default, opt-out)
185
+ ## Status
190
186
 
191
- Once per day per machine, a minimal anonymous ping is sent on every invocation. Collected: `{source, version, platform}`. No PII, no `anon_id` — the server derives a daily hash from IP + User-Agent using a rotating salt, and stores nothing else. This is the minimum signal needed to know "is anyone actually using this version?"
187
+ The following command groups are implemented end-to-end:
192
188
 
193
- Three ways to opt out:
189
+ - Auth & session: `login` / `logout` / `whoami` / `auth` (export/import)
190
+ - Workspace: `workspace` / `members` / `me` / `notices`
191
+ - Mini-app: `app` — `init` / `ls` / `show` / `status` / `deploy` / `register` / `ratings` / `reports` / `metrics` / `events` / `messages` / `share-rewards`, `app bundles` (`ls`/`deployed`/`upload`/`review`/`release`/`test-push`/`test-links`), `app certs` (`ls`/`show`/`issue`/`revoke`)
192
+ - Misc: Deploy Key issuance (`keys`), `upgrade` (self-update), `completion` (shell completion)
194
193
 
195
- - `AITCC_TELEMETRY=off` environment variable disables all telemetry for this shell session
196
- - `--no-telemetry` flag — disables for this single invocation only (not permanent)
197
- - `aitcc telemetry tier0-off` — permanently opts out (persisted to the state file)
194
+ `app logs` is deferred until the backend endpoint is available. See the [organization landing page](https://aitc.dev/) for the full roadmap.
198
195
 
199
- ### Tier 1 detailed events (off by default, opt-in)
196
+ ## Issuing a Deploy Key
200
197
 
201
- On first run in a TTY, the CLI prompts for consent. In CI or pipe environments it silently defaults to deny. Collected: command name, version, platform, random persistent anonymous ID (`anon_id`). No personally identifiable information (email, session, user ID, etc.) is ever sent.
198
+ Issue a workspace-scoped credential (Deploy Key) for deploy automation:
202
199
 
203
200
  ```sh
204
- aitcc telemetry status # show both tier status + anon ID
205
- aitcc telemetry status --json # machine-readable output
206
- aitcc telemetry enable # enable Tier 1 events
207
- aitcc telemetry disable # disable Tier 1 events
208
- aitcc telemetry delete # request deletion of Tier 1 server data + rotate local anon ID
209
- aitcc telemetry tier0-off # permanently opt out of Tier 0 daily ping
210
- aitcc telemetry tier0-on # re-enable Tier 0 after a previous tier0-off
201
+ aitcc keys create --name ci-deploy
211
202
  ```
212
203
 
213
- State file: `$XDG_CONFIG_HOME/aitcc/telemetry.json` (fallback `~/.config/aitcc/telemetry.json`, mode `0600`).
204
+ The key is automatically saved to `~/.ait/credentials` under the `ci-deploy` profile as soon as it is issued — no separate `ait token add` step required:
214
205
 
215
- ## Status
206
+ ```sh
207
+ ait deploy --profile ci-deploy ./bundle.ait
208
+ ```
216
209
 
217
- The following command groups are implemented end-to-end:
210
+ Only the plaintext key is written to stdout (pipe-friendly). stderr confirms which profile was saved. If you are piping the key into an external secret manager and do not need a local profile, pass `--no-save-profile`:
218
211
 
219
- - Auth & session: `login` / `logout` / `whoami` / `auth` (export/import)
220
- - Workspace: `workspace` / `members` / `me` / `notices`
221
- - Mini-app: `app` — `init` / `ls` / `show` / `status` / `deploy` / `register` / `ratings` / `reports` / `metrics` / `events` / `messages` / `share-rewards`, `app bundles` (`ls`/`deployed`/`upload`/`review`/`release`/`test-push`/`test-links`), `app certs` (`ls`/`show`/`issue`/`revoke`)
222
- - Misc: Deploy Key issuance (`keys`), `telemetry`, `upgrade` (self-update), `completion` (shell completion)
212
+ ```sh
213
+ aitcc keys create --name ci-deploy --no-save-profile | secret-tool store --label=… key password
214
+ ```
223
215
 
224
- `app logs` is deferred until the backend endpoint is available. See the [organization landing page](https://aitc.dev/) for the full roadmap.
216
+ To save the profile under a different name than `--name`, pass `--save-profile <other-name>`. The plaintext key is exposed once at issuance and cannot be retrieved later — if you lose it, revoke it with `aitcc keys revoke <id>` and issue a new one.
225
217
 
226
218
  ## Pre-commit hook
227
219
 
package/README.md CHANGED
@@ -182,46 +182,38 @@ aitcc app deploy ./aitc-sdk-example.ait --json
182
182
 
183
183
  `agent-plugin` skill은 항상 `--json`으로 shell out하고 stdout을 파싱합니다.
184
184
 
185
- ## 텔레메트리
186
-
187
- `aitcc`는 두 단계로 분리된 익명 사용 통계를 수집합니다. 자세한 내용은 [privacy 페이지](https://docs.aitc.dev/privacy) 참조.
188
-
189
- ### Tier 0 — 일별 익명 핑 (기본 ON, opt-out)
185
+ ## 진행 상황
190
186
 
191
- 실행 시 하루 한 번 익명 핑을 보냅니다. 수집 항목: `{source, version, platform}`. 개인 식별 정보 없음. `anon_id`도 없음 — 서버가 일별 saltIP+UA 해시를 계산해 저장하며, 그 외 정보는 저장하지 않습니다. "이 버전을 실제로 쓰는 사람이 있는가"를 파악하기 위한 최소 신호입니다.
187
+ 다음 명령군이 end-to-end동작합니다:
192
188
 
193
- opt-out 방법 (세 가지):
189
+ - 인증·세션: `login` / `logout` / `whoami` / `auth` (export/import)
190
+ - 워크스페이스: `workspace` / `members` / `me` / `notices`
191
+ - 미니앱: `app` — `init` / `ls` / `show` / `status` / `deploy` / `register` / `ratings` / `reports` / `metrics` / `events` / `messages` / `share-rewards`, `app bundles` (`ls`/`deployed`/`upload`/`review`/`release`/`test-push`/`test-links`), `app certs` (`ls`/`show`/`issue`/`revoke`)
192
+ - 그 외: Deploy Key 발급(`keys`), `upgrade`(self-update), `completion`(셸 자동완성)
194
193
 
195
- - `AITCC_TELEMETRY=off` 환경 변수 세션 전체 비활성
196
- - `--no-telemetry` 플래그 — 이 invocation만 비활성 (영구 X)
197
- - `aitcc telemetry tier0-off` — 영구 opt-out (state file에 저장)
194
+ `app logs`는 백엔드 endpoint 확보 구현 예정입니다. 전체 로드맵은 [organization landing page](https://aitc.dev/) 참조.
198
195
 
199
- ### Tier 1 — 세부 이벤트 (기본 OFF, opt-in)
196
+ ## Deploy Key 발급
200
197
 
201
- 처음 실행 TTY 환경에서만 동의를 묻습니다. CI/파이프 환경에선 자동으로 비활성화됩니다. 수집 항목: 실행된 명령 이름, 버전, 플랫폼, 임의 익명 ID (`anon_id`). 개인 식별 정보(이메일, 세션, 사용자 ID 등) 절대 전송하지 않습니다.
198
+ 배포 자동화를 위한 워크스페이스-scope 자격증명(Deploy Key) 발급합니다.
202
199
 
203
200
  ```sh
204
- aitcc telemetry status # tier 상태 + 익명 ID 확인
205
- aitcc telemetry status --json # machine-readable 출력
206
- aitcc telemetry enable # Tier 1 활성화
207
- aitcc telemetry disable # Tier 1 비활성화
208
- aitcc telemetry delete # 서버에 저장된 Tier 1 데이터 삭제 요청 + 로컬 익명 ID 교체
209
- aitcc telemetry tier0-off # Tier 0 익명 핑 영구 비활성화
210
- aitcc telemetry tier0-on # Tier 0 다시 활성화
201
+ aitcc keys create --name ci-deploy
211
202
  ```
212
203
 
213
- 상태 파일: `$XDG_CONFIG_HOME/aitcc/telemetry.json` (fallback `~/.config/aitcc/telemetry.json`, mode `0600`).
204
+ 발급 즉시 `~/.ait/credentials`에 `ci-deploy` 프로파일로 저장되므로, 별도 `ait token add` 단계 없이 바로 사용할 수 있습니다:
214
205
 
215
- ## 진행 상황
206
+ ```sh
207
+ ait deploy --profile ci-deploy ./bundle.ait
208
+ ```
216
209
 
217
- 다음 명령군이 end-to-end로 동작합니다:
210
+ stdout에는 plaintext 키 한 줄만 나옵니다 (파이프 친화적). stderr는 저장된 프로파일 이름을 확인해줍니다. CI 파이프에서 키를 외부 secret manager에 직접 주입할 때처럼 로컬 저장이 필요 없다면 `--no-save-profile`로 저장을 건너뜁니다:
218
211
 
219
- - 인증·세션: `login` / `logout` / `whoami` / `auth` (export/import)
220
- - 워크스페이스: `workspace` / `members` / `me` / `notices`
221
- - 미니앱: `app` — `init` / `ls` / `show` / `status` / `deploy` / `register` / `ratings` / `reports` / `metrics` / `events` / `messages` / `share-rewards`, `app bundles` (`ls`/`deployed`/`upload`/`review`/`release`/`test-push`/`test-links`), `app certs` (`ls`/`show`/`issue`/`revoke`)
222
- - 그 외: Deploy Key 발급(`keys`), `telemetry`, `upgrade`(self-update), `completion`(셸 자동완성)
212
+ ```sh
213
+ aitcc keys create --name ci-deploy --no-save-profile | secret-tool store --label=… key password
214
+ ```
223
215
 
224
- `app logs`는 백엔드 endpoint 확보 구현 예정입니다. 전체 로드맵은 [organization landing page](https://aitc.dev/) 참조.
216
+ 프로파일 이름을 `--name`과 다르게 지정하려면 `--save-profile <other-name>`을 사용합니다. plaintext 키는 발급 시 한 번만 노출되며 목록 endpoint에서 다시 확인할 없습니다 분실 `aitcc keys revoke <id>`로 무효화하고 재발급합니다.
225
217
 
226
218
  ## Pre-commit hook
227
219