@series-a/cli 0.1.0 → 0.6.0
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 +11 -0
- package/LICENSE +3 -2
- package/README.md +17 -2
- package/package.json +4 -3
- package/src/api.mjs +2 -1
- package/src/commands/insights.mjs +1034 -0
- package/src/commands/knowledge-sync.mjs +519 -0
- package/src/commands/resources.mjs +1222 -23
- package/src/index.mjs +38 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,19 @@ All notable changes to this package are documented here. This project follows
|
|
|
4
4
|
[Semantic Versioning](https://semver.org/) and uses
|
|
5
5
|
[Changesets](https://github.com/changesets/changesets) to manage releases.
|
|
6
6
|
|
|
7
|
+
## 0.2.0 — Write coverage expansion
|
|
8
|
+
|
|
9
|
+
- `inbox` — added `send`, `reply` (dry-run by default, `--confirm` to dispatch, 7,900 char guard), `mark-read` (bulk), `snooze` (`--for`, `--until`, `--clear`).
|
|
10
|
+
- `sequences` — added `create`, `update`, `add-step` (per-action char limits: invite 200 / DM 8000 / comment 1250), `clone` (with branch remap), `validate`.
|
|
11
|
+
- `content` — full CRUD: `create`, `update`, `delete` alongside existing `list`/`show`/`publish`.
|
|
12
|
+
- `calendar` — new resource group: `list`, `create`, `update`, `delete` against `calendar_posts`.
|
|
13
|
+
- `signals` — new resource group backed by `intelligence_signals`: `list`, `create`, `update`, `delete`.
|
|
14
|
+
- `pipelines` — alias of `opportunities` with `list`, `create`, `update`, `delete`.
|
|
15
|
+
- `agents` — added `create`, `update`, `set-status`, `delete`, `recent-runs`.
|
|
16
|
+
|
|
7
17
|
## 0.1.0 — Initial release
|
|
8
18
|
|
|
19
|
+
|
|
9
20
|
- `advisoros login` / `logout` / `whoami` / `profiles` with multi-workspace profile support.
|
|
10
21
|
- `leads` — `list`, `get`, `set-status`, `import` (CSV/JSON/JSONL, auto-chunked), `verify`.
|
|
11
22
|
- `campaigns` — `list`, `show`, `create`, `add-leads`, `launch`, `pause`, `resume`.
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
Copyright (c)
|
|
1
|
+
Copyright (c) AdvisorPro / Series A. All rights reserved.
|
|
2
2
|
|
|
3
3
|
This package is distributed under a proprietary license. Use is permitted only
|
|
4
|
-
by
|
|
4
|
+
by AdvisorPro customers and partners against their own workspace API keys. Do not
|
|
5
5
|
redistribute, sublicense, or use against workspaces you do not own without
|
|
6
6
|
written permission.
|
|
7
|
+
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @series-a/cli
|
|
2
2
|
|
|
3
|
-
A command-line interface to the
|
|
3
|
+
A command-line interface to the AdvisorPro platform — drive leads, campaigns, sequences and agents from your terminal. Built on top of the [`/agent-api`](https://github.com/series-a/advisoros/blob/main/docs/agent-api.md) M2M router, so anything the CLI does is auditable and workspace-scoped.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ Requires **Node.js ≥ 20**.
|
|
|
24
24
|
|
|
25
25
|
## 1. Get an API key
|
|
26
26
|
|
|
27
|
-
1. Sign in to
|
|
27
|
+
1. Sign in to AdvisorPro.
|
|
28
28
|
2. Open **Settings → API Keys**.
|
|
29
29
|
3. Click **New key** → choose **Workspace** scope (recommended).
|
|
30
30
|
4. Copy the key — you won't see it again.
|
|
@@ -115,6 +115,20 @@ advisoros agents job <jobId>
|
|
|
115
115
|
|
|
116
116
|
> **Heads-up:** `inbox send`/`reply` are intentionally **not** in v1. Outbound goes through `campaigns launch` (sender resolution + char limits + per-sender daily budget). For one-off DMs, use the web inbox.
|
|
117
117
|
|
|
118
|
+
### Obsidian vault mirror (`kb`) — one-way
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
advisoros kb link ./client-vault --workspace dmw9wj
|
|
122
|
+
advisoros kb status ./client-vault # dry-run preview
|
|
123
|
+
advisoros kb pull ./client-vault # mirror notes + graph entities
|
|
124
|
+
advisoros kb pull ./client-vault --preserve-local
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
One-way push, AdvisorPro → Obsidian. Markdown notes with frontmatter, `[[wikilinks]]` and an
|
|
128
|
+
`## Entities` block, plus `Entities/<Type>/*.md` for graph nodes. Local edits are overwritten unless
|
|
129
|
+
`--preserve-local` is used (remote copy lands as `<slug>.remote.md`). Nothing is pushed back.
|
|
130
|
+
|
|
131
|
+
|
|
118
132
|
## Examples
|
|
119
133
|
|
|
120
134
|
**Spin up a campaign from a fresh CSV:**
|
|
@@ -188,3 +202,4 @@ git push --follow-tags
|
|
|
188
202
|
## Full API reference
|
|
189
203
|
|
|
190
204
|
See [`docs/agent-api.md`](../../docs/agent-api.md) for the underlying `/agent-api` envelope.
|
|
205
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@series-a/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "AdvisorPro command-line interface — drive leads, campaigns, sequences and agents from your terminal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"advisoros": "bin/advisoros.mjs"
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"sequences",
|
|
56
56
|
"agent-api"
|
|
57
57
|
],
|
|
58
|
-
"author": "
|
|
58
|
+
"author": "AdvisorPro",
|
|
59
59
|
"license": "UNLICENSED"
|
|
60
60
|
}
|
|
61
|
+
|
package/src/api.mjs
CHANGED
|
@@ -10,7 +10,7 @@ export class AdvisorOSApiError extends Error {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Invoke the
|
|
13
|
+
* Invoke the AdvisorPro /agent-api router.
|
|
14
14
|
* Resolves credentials from --profile / env / saved config in that order.
|
|
15
15
|
*/
|
|
16
16
|
export async function call(resource, action, params = {}, opts = {}) {
|
|
@@ -74,3 +74,4 @@ export async function call(resource, action, params = {}, opts = {}) {
|
|
|
74
74
|
}
|
|
75
75
|
return json;
|
|
76
76
|
}
|
|
77
|
+
|