@crewx/notify 0.1.0-rc.8 → 0.1.0-rc.9

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.
Files changed (2) hide show
  1. package/SKILL.md +23 -23
  2. package/package.json +1 -1
package/SKILL.md CHANGED
@@ -8,8 +8,8 @@ metadata:
8
8
 
9
9
  # Notify
10
10
 
11
- `notify`는 CrewX 에이전트가 사용자에게 인앱 알림을 하나 보낼 쓰는 CLI다.
12
- 서버의 `POST /api/v1/notifications` 엔드포인트로 알림을 전송하고, 성공하면 알림 id 출력한다.
11
+ `notify` is the CLI CrewX agents use to send a single in-app notification to the user.
12
+ It sends the notification to the server's `POST /api/v1/notifications` endpoint and prints the notification id on success.
13
13
 
14
14
  ## Commands
15
15
 
@@ -18,10 +18,10 @@ npx crewx notify "<title>" [--level=info|warning|critical] [--body="..."]
18
18
  npx crewx notify usage
19
19
  ```
20
20
 
21
- - `title` (필수) — 알림 제목. 위치 인자로 전달한다.
22
- - `--level` — 심각도. `info`(기본) | `warning` | `critical` 하나. 화이트리스트 밖이면 에러.
23
- - `--body` — 선택. 상세 본문.
24
- - `usage` — `SKILL.md`를 그대로 출력한다.
21
+ - `title` (required) — Notification title. Passed as a positional argument.
22
+ - `--level` — Severity. One of `info` (default) | `warning` | `critical`. Errors if outside the whitelist.
23
+ - `--body` — Optional. Detailed body text.
24
+ - `usage` — Prints this `SKILL.md` as-is.
25
25
 
26
26
  ```bash
27
27
  npx crewx notify "Deploy needs approval" --level=warning --body="Staging is green; confirm prod."
@@ -29,35 +29,35 @@ npx crewx notify "Deploy needs approval" --level=warning --body="Staging is gree
29
29
 
30
30
  ## When To Use
31
31
 
32
- - 실행이 끝난 사용자의 판단/승인이 필요한 신호를 보낼 (예: 배포 승인 대기, 결정이 막혀 진행이 멈춘 상태)
33
- - 예약 작업(cron/schedule) 경보처럼 사람이 확인해야 하는 이벤트를 알릴
34
- - 사용자의 주의가 필요한 위험/경고 상황을 전달할
32
+ - To send a signal that needs the user's judgment or approval after a run finishes (e.g. a deploy waiting on approval, progress stalled on a decision)
33
+ - To notify events that a human should check, such as scheduled task (cron/schedule) alerts
34
+ - To report a risk or warning situation that needs the user's attention
35
35
 
36
- 사용하지 말아야 때:
36
+ When not to use:
37
37
 
38
- - 루틴한 성공 로그나 진행 상황 중계알림은 사람의 주의를 요구하는 신호에만 쓴다.
38
+ - Routine success logs or progress updatesnotifications are only for signals that require human attention.
39
39
 
40
40
  ## Levels
41
41
 
42
42
  | Level | Meaning |
43
43
  |----------|---------|
44
- | `info` | 일반 정보성 알림 (기본값) |
45
- | `warning` | 주의가 필요한 상황 |
46
- | `critical` | 즉시 대응이 필요한 심각한 상황 |
44
+ | `info` | General informational notification (default) |
45
+ | `warning` | Situation that needs attention |
46
+ | `critical` | Serious situation requiring immediate action |
47
47
 
48
48
  ## Environment
49
49
 
50
50
  | Variable | Purpose |
51
51
  |----------|---------|
52
- | `CREWX_WORKSPACE` | 알림을 라우팅할 절대 워크스페이스 경로 (필수) |
53
- | `CREWX_ENDPOINT` | CrewX 서버 URL (기본값 `http://localhost:8150`) |
54
- | `CREWX_API_TOKEN` | 원격 서버 접근 토큰. 로컬(localhost) 토큰이 필요 없다 |
55
- | `CREWX_AGENT_ID` | 알림을 만든 에이전트 id (있으면 포함) |
56
- | `CREWX_TASK_ID` | 관련 작업(task) id (있으면 포함) |
57
- | `CREWX_THREAD_ID` | 관련 스레드(thread) id (있으면 포함) |
52
+ | `CREWX_WORKSPACE` | Absolute workspace path to route the notification to (required) |
53
+ | `CREWX_ENDPOINT` | CrewX server URL (default `http://localhost:8150`) |
54
+ | `CREWX_API_TOKEN` | Access token for remote servers. Not required for local (localhost) |
55
+ | `CREWX_AGENT_ID` | Id of the agent that created the notification (included if present) |
56
+ | `CREWX_TASK_ID` | Related task id (included if present) |
57
+ | `CREWX_THREAD_ID` | Related thread id (included if present) |
58
58
 
59
59
  ## Notes
60
60
 
61
- - 로컬 서버는 인증 토큰 없이 동작한다(서버의 loopback bypass). 원격 서버만 `CREWX_API_TOKEN`이 필요하다.
62
- - 성공 응답은 `201 { success: true, data: { id } }` 형태이며, CLI 전송된 알림 id 출력한다.
63
- - 네트워크/HTTP 실패 서버 상태를 먼저 확인한다.
61
+ - The local server works without an auth token (the server's loopback bypass). Only remote servers require `CREWX_API_TOKEN`.
62
+ - A successful response looks like `201 { success: true, data: { id } }`, and the CLI prints the id of the sent notification.
63
+ - On network/HTTP failure, check the server status first.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/notify",
3
- "version": "0.1.0-rc.8",
3
+ "version": "0.1.0-rc.9",
4
4
  "description": "Notification CLI for CrewX agents — POST an in-app notification to the dashboard",
5
5
  "type": "commonjs",
6
6
  "main": "dist/src/engine.js",