@ssobig/writer-cli 0.2.1 → 0.2.2
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 +1 -1
- package/package.json +1 -1
- package/tools/writer-cli/package-lock.json +2 -2
- package/tools/writer-cli/package.json +1 -1
- package/tools/writer-cli/skills/ssobig-writer-cli/references/errors.md +1 -1
- package/tools/writer-cli/skills/ssobig-writer-cli/references/install-auth.md +1 -1
- package/tools/writer-cli/src/update-remediation.cjs +4 -0
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ npm uninstall --global @ssobig/writer-cli
|
|
|
34
34
|
|
|
35
35
|
0.2.0부터 npm `latest`보다 낮은 CLI의 서버 접속 명령은 실행 전에 `E_CLI_UPDATE_REQUIRED`로 중단된다. help, targeted `command-schema`, `version --check`, `doctor`, `skills *`, logout과 daemon 정리 명령은 업데이트 전에도 사용할 수 있다. 0.1.0 사용자는 위 npm 설치 명령을 다시 실행해 0.2.0 이상으로 전환해야 한다. registry가 일시적으로 응답하지 않으면 새 작업을 차단하지 않지만, 로컬 cache가 이미 더 높은 버전을 확인했다면 계속 업데이트를 요구한다.
|
|
36
36
|
|
|
37
|
-
CLI를 업데이트한 뒤에는 각 작업공간에서 `skills status`를 확인하고, `missing`이면 `skills install`, `update-available`이면 `skills update`를 실행한다. 그다음 새 Codex 또는 Claude 작업을 열어 갱신된 프로젝트 로컬 스킬을 다시 탐색한다. CLI 설치는 작업공간을 자동 변경하지 않는다.
|
|
37
|
+
CLI를 업데이트한 뒤에는 각 작업공간에서 `skills status`를 확인하고, `missing`이면 `skills install`, `update-available`이면 `skills update`를 실행한다. 그다음 새 Codex 또는 Claude 작업을 열어 갱신된 프로젝트 로컬 스킬을 다시 탐색한다. CLI 설치는 작업공간을 자동 변경하지 않는다. CLI 배포는 npm만 지원하며 ZIP이나 운영체제별 installer는 제공하지 않는다.
|
|
38
38
|
|
|
39
39
|
`doctor`는 설치·최신 버전·credential session 존재·Auth health·실행 backend 버전을 읽기 전용으로 진단하고 token, 이메일, 원고 값을 출력하지 않는다. macOS 세션은 Keychain에 저장되고 private Unix daemon을 사용한다. Windows 세션은 현재 Windows 사용자만 해독할 수 있도록 DPAPI CurrentUser로 보호되며 CLI는 background daemon 대신 in-process backend를 자동 사용한다. 따라서 Windows에서는 `agent start`와 `agent stop`이 지원되지 않는다.
|
|
40
40
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssobig/writer-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@ssobig/writer-cli",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.2",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@supabase/supabase-js": "2.110.9"
|
|
12
12
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Errors and boundaries
|
|
2
2
|
|
|
3
|
-
- `E_CLI_UPDATE_REQUIRED`: the original operation was not sent. Follow the returned `installCommand
|
|
3
|
+
- `E_CLI_UPDATE_REQUIRED`: the original operation was not sent. Follow the returned npm `installCommand`; ZIP installers are unsupported. Then run the returned `skillCommands.status`, use `skillCommands.install` when missing or `skillCommands.update` when `update-available`, and start a new agent task before retrying.
|
|
4
4
|
- `E_CODE_CHANGE_REQUIRED`: hard boundary; do not use SQL or another client. Separate a code or migration task.
|
|
5
5
|
- `E_CONFLICT`: authoritative data changed after the plan. Read again and create a new plan.
|
|
6
6
|
- `E_AUTH_REQUIRED`, `E_AUTH_EXPIRED`, `E_AUTHORIZATION`: use the supported login flow or ask an authorized staff member; never handle tokens directly.
|
|
@@ -7,7 +7,7 @@ Check `version --check` before long work. From CLI 0.2.0 onward, outdated server
|
|
|
7
7
|
Follow this complete lifecycle whenever the CLI reports an update:
|
|
8
8
|
|
|
9
9
|
1. Run `ssobig-writer version --check` and preserve its sanitized `registry.remediation` details. The equivalent `doctor` check exposes the same lifecycle as additive `remediationDetails`, while keeping its existing remediation string.
|
|
10
|
-
2. Update
|
|
10
|
+
2. Update with `npm install --global @ssobig/writer-cli@latest`. npm is the only supported distribution channel; do not look for or use ZIP installers.
|
|
11
11
|
3. Run `ssobig-writer skills status --target <workspace>` from the updated CLI.
|
|
12
12
|
4. If the skill is missing, run `ssobig-writer skills install --target <workspace>`. If it reports `update-available`, run `ssobig-writer skills update --target <workspace>`. Do nothing when it reports `current`.
|
|
13
13
|
5. Start a new Codex or Claude task so the agent reloads the updated project-local skill.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const INSTALL_COMMAND = "npm install --global @ssobig/writer-cli@latest";
|
|
4
4
|
const DOWNLOAD_URL = "https://writer.ssobig.com/cli-download";
|
|
5
|
+
const PACKAGE_URL = "https://www.npmjs.com/package/@ssobig/writer-cli";
|
|
5
6
|
const SKILL_COMMANDS = Object.freeze({
|
|
6
7
|
status: "ssobig-writer skills status --target <workspace>",
|
|
7
8
|
install: "ssobig-writer skills install --target <workspace>",
|
|
@@ -10,8 +11,10 @@ const SKILL_COMMANDS = Object.freeze({
|
|
|
10
11
|
|
|
11
12
|
function updateRemediation() {
|
|
12
13
|
return Object.freeze({
|
|
14
|
+
distribution: "npm",
|
|
13
15
|
installCommand: INSTALL_COMMAND,
|
|
14
16
|
downloadUrl: DOWNLOAD_URL,
|
|
17
|
+
packageUrl: PACKAGE_URL,
|
|
15
18
|
skillCommands: SKILL_COMMANDS,
|
|
16
19
|
agentReloadRequired: true
|
|
17
20
|
});
|
|
@@ -20,6 +23,7 @@ function updateRemediation() {
|
|
|
20
23
|
module.exports = Object.freeze({
|
|
21
24
|
INSTALL_COMMAND,
|
|
22
25
|
DOWNLOAD_URL,
|
|
26
|
+
PACKAGE_URL,
|
|
23
27
|
SKILL_COMMANDS,
|
|
24
28
|
updateRemediation
|
|
25
29
|
});
|