@socialseal/cli 0.1.1 → 0.1.3
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/CHANGELOG.md +8 -0
- package/README.md +27 -0
- package/package.json +1 -1
- package/src/index.js +1266 -21
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.1.3 - 2026-03-19
|
|
6
|
+
- Republish the current CLI release line after the successful `0.1.2` npm publish, keeping the internal and OSS package versions aligned.
|
|
7
|
+
|
|
8
|
+
## 0.1.2 - 2026-03-18
|
|
9
|
+
- Add `search-journey-run` async CLI ergonomics: `--async` starts the backend async mode, polling is on by default, and `--no-poll` returns the initial `runId` immediately.
|
|
10
|
+
- Add `--poll-interval <ms>` for async `search-journey-run` status polling.
|
|
11
|
+
- Treat terminal async `search-journey-run` failures as non-zero CLI exits instead of silent `200` JSON output.
|
|
12
|
+
|
|
5
13
|
## 0.1.1 - 2026-03-13
|
|
6
14
|
- Document public base URL and CLI error output.
|
|
7
15
|
- Add request timeouts, verbose error output, and OSS-safe tool discovery behavior.
|
package/README.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
Environment variables:
|
|
10
10
|
- `SOCIALSEAL_API_KEY`
|
|
11
11
|
- `SOCIALSEAL_API_BASE` (default `https://api.socialseal.co`)
|
|
12
|
+
- `SOCIALSEAL_WORKSPACE_ID` (optional workspace override; takes precedence over config)
|
|
12
13
|
- `SOCIALSEAL_TIMEOUT_MS` (optional request timeout override)
|
|
13
14
|
- `SOCIALSEAL_AGENT_IDLE_TIMEOUT_MS` (optional agent WebSocket inactivity timeout override; default 300000)
|
|
14
15
|
|
|
@@ -19,14 +20,22 @@ Optional config file:
|
|
|
19
20
|
{
|
|
20
21
|
"apiKey": "ss_cli_...",
|
|
21
22
|
"apiBase": "https://api.socialseal.co",
|
|
23
|
+
"workspaceId": "00000000-0000-0000-0000-000000000000",
|
|
22
24
|
"timeoutMs": 30000,
|
|
23
25
|
"agentIdleTimeoutMs": 300000
|
|
24
26
|
}
|
|
25
27
|
```
|
|
26
28
|
|
|
27
29
|
## Commands
|
|
30
|
+
- Workspace discovery/defaults:
|
|
31
|
+
- `socialseal workspace list`
|
|
32
|
+
- `socialseal workspace current`
|
|
33
|
+
- `socialseal workspace use <workspace-id|slug|exact-name>`
|
|
34
|
+
- `socialseal workspace clear`
|
|
35
|
+
|
|
28
36
|
- Agent (non-interactive, streaming):
|
|
29
37
|
- `socialseal agent run --message "..." --api-base https://api.socialseal.co --api-key <key> [--workspace-id <uuid>]`
|
|
38
|
+
- `socialseal agent run --message "..." --continue <token>`
|
|
30
39
|
- `socialseal agent run --message "..." --timeout 60000`
|
|
31
40
|
- `socialseal agent run --message "..." --idle-timeout 300000 --verbose`
|
|
32
41
|
|
|
@@ -37,6 +46,8 @@ Optional config file:
|
|
|
37
46
|
- Tools (direct edge function call):
|
|
38
47
|
- `socialseal tools call --function <tool> --body @payload.json --api-base https://api.socialseal.co --api-key <key>`
|
|
39
48
|
- `socialseal tools call --function <tool> --body @payload.json --json`
|
|
49
|
+
- `socialseal tools call --function search-journey-run --body @payload.json --async --workspace-id <uuid>`
|
|
50
|
+
- `socialseal tools call --function search-journey-run --body @payload.json --async --no-poll --workspace-id <uuid>`
|
|
40
51
|
|
|
41
52
|
- Data exports (provisional):
|
|
42
53
|
- `socialseal data export-tracking --group-id 123 --time-period 30d --out out.csv`
|
|
@@ -46,12 +57,28 @@ Optional config file:
|
|
|
46
57
|
- `export-report` and `export_tracking_data` are provisional until CLI export specs are finalized.
|
|
47
58
|
- `tools list` ships a stable built-in registry of supported direct-call function targets. It is not live backend enumeration.
|
|
48
59
|
- `--timeout <ms>` controls HTTP request timeouts. Agent runs default to a 5-minute WebSocket inactivity timeout unless you set `--idle-timeout <ms>` (or the matching env/config value).
|
|
60
|
+
- `search-journey-run` supports CLI-managed async polling: `--async` starts backend async mode, polling is on by default, `--no-poll` returns the initial `runId`, and `--poll-interval <ms>` controls the status polling cadence.
|
|
61
|
+
- `socialseal agent run` now defaults to a fresh conversation. The CLI prints a continuation token to `stderr`; pass it back with `--continue <token>` to resume the same agent conversation explicitly.
|
|
62
|
+
- Effective workspace precedence is: `--workspace-id` → `SOCIALSEAL_WORKSPACE_ID` → config `workspaceId` → backend personal-workspace fallback.
|
|
63
|
+
- `socialseal workspace use ...` writes a local default workspace into `~/.config/socialseal/config.json`, which the CLI reuses for `agent`, `tools`, and `data` commands.
|
|
64
|
+
- `socialseal workspace list` discovers the workspaces accessible to the current CLI key and marks the active/suggested default.
|
|
65
|
+
- If a scoped CLI key cannot safely infer a workspace, `agent run` now fails closed and tells you to set `--workspace-id` or configure a local default first.
|
|
49
66
|
|
|
50
67
|
## Errors and exit codes
|
|
51
68
|
- Exit codes: `2` (usage), `3` (auth), `4` (not found), `5` (server), `1` (unknown)
|
|
52
69
|
- Add `--json` to `tools call` or `data` commands to emit machine-readable errors.
|
|
53
70
|
- Add `--verbose` to print error details plus agent session/tool progress diagnostics.
|
|
54
71
|
|
|
72
|
+
## Troubleshooting
|
|
73
|
+
- `SUPABASE_ANON_KEY not configured`
|
|
74
|
+
- This comes from the CLI gateway, not the local CLI install.
|
|
75
|
+
- The deployed gateway is missing its `SUPABASE_ANON_KEY` secret, so `/cli/tools/*` cannot proxy to Supabase Edge Functions.
|
|
76
|
+
- Fix on the server side with `wrangler secret put SUPABASE_ANON_KEY --env <staging|production>` for the gateway Worker, then re-run a `socialseal tools call ...` smoke test.
|
|
77
|
+
- `AI_UNSUPPORTED_LOCATION` or `The live agent is unavailable in this region right now.`
|
|
78
|
+
- This is raised when the upstream Gemini API rejects the worker egress location.
|
|
79
|
+
- The agent worker currently uses Google Gemini directly from Cloudflare Workers; there is no SocialSeal-side region allowlist in the CLI.
|
|
80
|
+
- If this reproduces from a supported Google AI region, treat it as an infrastructure/runtime issue. Practical workarounds are to run the agent from a worker placement/egress region that Google accepts, or switch the agent runtime to Vertex AI for server-side calls.
|
|
81
|
+
|
|
55
82
|
## Smoke Test (manual)
|
|
56
83
|
1. `SOCIALSEAL_API_KEY=... socialseal agent run --message "ping"`
|
|
57
84
|
2. `SOCIALSEAL_API_KEY=... socialseal tools call --function <tool> --body @payload.json`
|