@socialseal/cli 0.1.9 → 0.1.10

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 CHANGED
@@ -2,24 +2,33 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.1.10 - 2026-06-10
6
+
7
+ - Clarify ranked search exports now include publish/observed dates and scoped tracked-search resurfacing history fields when the backend export template is deployed.
8
+ - Update `data export-options` metadata to distinguish search capture, metrics capture, platform publish, and SocialSeal observed-history timestamps.
9
+
5
10
  ## 0.1.9 - 2026-05-13
11
+
6
12
  - Fail `group-management add_items` on backend partial failures, expected-count mismatches, and failed backend verification.
7
13
  - Add `data export-group-evidence` to route social ranked evidence and Google AI evidence to the right raw export template with metadata.
8
14
  - Add `data group-completeness` with backend-first completeness checks, manifest fallback, and refresh status visibility.
9
15
  - Harden `tools status --wait` terminal failure handling and empty group refresh guardrails.
10
16
 
11
17
  ## 0.1.8 - 2026-04-13
18
+
12
19
  - Increase default CLI timeout from 30s to 5m to reduce false timeout failures on heavy tool/export workflows.
13
20
  - Harden async `search-journey-run` polling to accept additional active/terminal status labels (`queued`, `in_progress`, `running`, `succeeded`, `error`) instead of failing on unexpected variants.
14
21
  - Fix async `search-journey-run` polling workspace propagation to always reuse the resolved effective workspace scope.
15
22
 
16
23
  ## 0.1.7 - 2026-03-20
24
+
17
25
  - Add `socialseal data export-search-results` for CLI-first enriched ranked-search exports, including direct CSV download handling.
18
26
  - Add `search_results_enriched` as an alias on `socialseal data export-report` to map to the ranked-search export template.
19
27
  - Add `socialseal data export-options` to make available export workflows discoverable from the CLI.
20
28
  - Improve export ergonomics with local report-type validation and instructive failure guidance for processing, failed, and expired-download states.
21
29
 
22
30
  ## 0.1.6 - 2026-03-19
31
+
23
32
  - Fix runtime version reporting so `socialseal --version` reads from package metadata instead of a hardcoded source string.
24
33
  - Fix `tracking` create request translation so `--workspace-id` is sent on the REST query path the backend uses for workspace binding.
25
34
  - Improve tracked-video extraction failure messages by avoiding `[object Object]` item errors and returning explicit guidance when `videoId` is actually a search-result id or tracking item id.
@@ -28,28 +37,34 @@
28
37
  - Clarify in workspace discovery output and docs that `workspace_id` and `brand_id` are different identifiers.
29
38
 
30
39
  ## 0.1.5 - 2026-03-19
40
+
31
41
  - Add first-class tracked-video workflows with `video queue-analysis` and `video extract`.
32
42
  - Make `--video-id` the primary ergonomic selector for tracked-video analysis and asset extraction, while keeping `--search-result-id` as a fallback selector.
33
43
  - Support batch queueing/extraction payloads plus optional asset downloads for thumbnails, source video, and extracted key frames.
34
44
 
35
45
  ## 0.1.4 - 2026-03-19
46
+
36
47
  - Add explicit `group_add_item` / `group_add_items` CLI aliases for tracking-group membership workflows.
37
48
  - Add `tracking resolve` / `get_by_value` so existing tracked searches can be resolved by value using the same duplicate-detection semantics as create.
38
49
  - Return operational duplicate metadata for tracking conflicts, including `existing_item_id`, `member_of_group_ids`, platform, region, workspace, and active state.
39
50
 
40
51
  ## 0.1.3 - 2026-03-19
52
+
41
53
  - Republish the current CLI release line after the successful `0.1.2` npm publish, keeping the internal and OSS package versions aligned.
42
54
 
43
55
  ## 0.1.2 - 2026-03-18
56
+
44
57
  - 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.
45
58
  - Add `--poll-interval <ms>` for async `search-journey-run` status polling.
46
59
  - Treat terminal async `search-journey-run` failures as non-zero CLI exits instead of silent `200` JSON output.
47
60
 
48
61
  ## 0.1.1 - 2026-03-13
62
+
49
63
  - Document public base URL and CLI error output.
50
64
  - Add request timeouts, verbose error output, and OSS-safe tool discovery behavior.
51
65
  - Ship a stable built-in tool registry for `tools list` instead of the hard-disabled discovery message.
52
66
  - Fail fast on agent WebSocket `error` events and surface session/tool progress diagnostics in `--verbose` mode.
53
67
 
54
68
  ## 0.1.0
69
+
55
70
  - Initial CLI with agent streaming, tools calls, and provisional data exports.
package/README.md CHANGED
@@ -1,12 +1,15 @@
1
1
  # SocialSeal CLI
2
2
 
3
3
  ## Setup
4
+
4
5
  - Requires Node 18+
5
6
  - Global install: `npm install -g @socialseal/cli`
6
7
  - Dev install: `npm install`
7
8
 
8
9
  ## Configuration
10
+
9
11
  Environment variables:
12
+
10
13
  - `SOCIALSEAL_API_KEY`
11
14
  - `SOCIALSEAL_API_BASE` (default `https://api.socialseal.co`)
12
15
  - `SOCIALSEAL_WORKSPACE_ID` (optional workspace override; takes precedence over config)
@@ -14,6 +17,7 @@ Environment variables:
14
17
  - `SOCIALSEAL_AGENT_IDLE_TIMEOUT_MS` (optional agent WebSocket inactivity timeout override; default 300000)
15
18
 
16
19
  Optional config file:
20
+
17
21
  - `~/.config/socialseal/config.json`
18
22
 
19
23
  ```json
@@ -27,6 +31,7 @@ Optional config file:
27
31
  ```
28
32
 
29
33
  ## Commands
34
+
30
35
  - Workspace discovery/defaults:
31
36
  - `socialseal workspace list`
32
37
  - `socialseal workspace current`
@@ -68,10 +73,17 @@ Optional config file:
68
73
  - `socialseal data export-report --report-type keyword_universe --format csv --payload @payload.json --out out.csv`
69
74
 
70
75
  ## Notes
76
+
71
77
  - `export-report`, `export_tracking_data`, and `export-data`-backed exports are provisional until CLI export specs are finalized.
72
78
  - `tools list` ships a stable built-in registry of supported direct-call function targets. It is not live backend enumeration.
73
79
  - `tools schema --function <name>` prints static required/optional payload fields and example bodies for high-friction tools.
74
- - `data export-search-results` maps to `export-data` template `tracking_ranked_videos_raw` and returns enriched ranked-search rows (search fields + video metadata + latest metrics + analysis). It downloads the signed CSV artifact when available.
80
+ - `data export-search-results` maps to `export-data` template `tracking_ranked_videos_raw` and returns enriched ranked-search rows (search fields + video metadata + publish/observed dates + latest metrics + scoped tracked-search history + analysis). It downloads the signed CSV artifact when available.
81
+ - Timestamp meanings in ranked search exports:
82
+ - `search_timestamp`: when SocialSeal captured that ranked search row.
83
+ - `latest_metrics_ts`: when the latest exported engagement metrics snapshot was captured.
84
+ - `published_at`: platform publish/upload time when available from the video record; blank if unavailable.
85
+ - `observed_at`: when SocialSeal first observed/ingested the video record when available; blank if unavailable.
86
+ - `first_seen_at` / `last_seen_at`: earliest/latest `search_timestamp` for the video within the exported tracking-group/search-row scope. Use these for “resurfacing in tracked search” language, not platform-age claims when `published_at` is absent.
75
87
  - `data export-report --report-type search_results_enriched` is a compatibility alias to the same `export-data` template flow.
76
88
  - `data export-report` now validates report types locally and shows the allowed list immediately; run `socialseal data export-options` when choosing between export flows.
77
89
  - If an export returns metadata without a file URL (for example status `processing`), the CLI prints an explicit retry hint and returns the metadata JSON so automation can branch on status.
@@ -91,11 +103,13 @@ Optional config file:
91
103
  - 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.
92
104
 
93
105
  ## Errors and exit codes
106
+
94
107
  - Exit codes: `2` (usage), `3` (auth), `4` (not found), `5` (server), `1` (unknown)
95
108
  - Add `--json` to `tools call` or `data` commands to emit machine-readable errors.
96
109
  - Add `--verbose` to print error details plus agent session/tool progress diagnostics.
97
110
 
98
111
  ## Troubleshooting
112
+
99
113
  - `SUPABASE_ANON_KEY not configured`
100
114
  - This comes from the CLI gateway, not the local CLI install.
101
115
  - The deployed gateway is missing its `SUPABASE_ANON_KEY` secret, so `/cli/tools/*` cannot proxy to Supabase Edge Functions.
@@ -106,8 +120,10 @@ Optional config file:
106
120
  - 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.
107
121
 
108
122
  ## Smoke Test (manual)
123
+
109
124
  1. `SOCIALSEAL_API_KEY=... socialseal agent run --message "ping"`
110
125
  2. `SOCIALSEAL_API_KEY=... socialseal tools call --function <tool> --body @payload.json`
111
126
 
112
127
  ## Maintainers
128
+
113
129
  - The public CLI base (`api.socialseal.co`) must route to the CLI gateway service.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socialseal/cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "SocialSeal CLI (non-interactive)",
@@ -13,7 +13,7 @@
13
13
  "license": "Apache-2.0",
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "https://github.com/OpenSealAI/socialseal-cli.git"
16
+ "url": "git+https://github.com/OpenSealAI/socialseal-cli.git"
17
17
  },
18
18
  "bugs": {
19
19
  "url": "https://github.com/OpenSealAI/socialseal-cli/issues"
package/src/index.js CHANGED
@@ -55,10 +55,10 @@ const EXPORT_OPTIONS = [
55
55
  {
56
56
  id: 'search_results_enriched',
57
57
  command: 'socialseal data export-search-results --group-ids <id,id,...>',
58
- summary: 'Enriched ranked search rows (search results + video + latest metrics + analysis).',
58
+ summary: 'Enriched ranked search rows (search capture + video publish/observed dates + latest metrics + scoped resurfacing history + analysis).',
59
59
  formats: ['csv'],
60
60
  required: ['workspace id', '--group-ids'],
61
- bestFor: 'SQL-like ranked-search datasets without using psql.',
61
+ bestFor: 'SQL-like ranked-search datasets and deck evidence that must distinguish capture, metrics, publish, and tracked-search resurfacing timestamps.',
62
62
  alias: 'socialseal data export-report --report-type search_results_enriched --format csv --payload @payload.json',
63
63
  },
64
64
  {
@@ -124,7 +124,7 @@ const KNOWN_TOOLS = [
124
124
  transport: 'post_edge_function',
125
125
  workspaceScoped: true,
126
126
  knownLocalDevState: 'disabled_by_default',
127
- notes: 'Includes template `tracking_ranked_videos_raw` for ranked search results with video + metrics + analysis enrichment.',
127
+ notes: 'Includes template `tracking_ranked_videos_raw` for ranked search results with video publish/observed dates, latest metrics, scoped first/last seen, and analysis enrichment.',
128
128
  },
129
129
  {
130
130
  name: 'export_tracking_data',