@trydreamstate/cli 1.3.8 → 1.3.11
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/agent-plugin/.claude-plugin/plugin.json +1 -1
- package/agent-plugin/.codex-plugin/plugin.json +1 -1
- package/agent-plugin/skills/crm/SKILL.md +2 -0
- package/agent-plugin/skills/diagnostics/SKILL.md +7 -1
- package/agent-plugin/skills/list-building/column-authoring.md +2 -0
- package/agent-plugin/skills/list-building/sourcing.md +7 -0
- package/agent-plugin/skills/outreach/SKILL.md +7 -0
- package/agent-plugin/skills/outreach/enrollment.md +3 -1
- package/agent-plugin/skills/plays/SKILL.md +15 -0
- package/agent-plugin/skills/social/SKILL.md +1 -1
- package/dist/generated/packVerbs.generated.json +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dreamstate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"description": "Dreamstate for AI agents: build workbooks of companies and people, run LinkedIn and email sequences, answer replies, post to LinkedIn and X, and manage your CRM from your coding agent.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Dreamstate",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dreamstate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"description": "Dreamstate for AI agents: build workbooks of companies and people, run LinkedIn and email sequences, answer replies, post to LinkedIn and X, and manage your CRM from your coding agent.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Dreamstate",
|
|
@@ -16,6 +16,8 @@ Run this through the Dreamstate MCP tools: `packs_get` for the pack's capabiliti
|
|
|
16
16
|
|
|
17
17
|
CRM is shared operating memory for customer relationships. A record lets team see who someone is, what happened, what is next, and why pipeline says what it says. Good CRM work makes future action safer; it does not make database look full.
|
|
18
18
|
|
|
19
|
+
Creating or binding CRM people from otherwise unbound worksheet rows is deliberate CRM cleanup or import work. It is not required before outreach can preview, rehearse, or enroll those worksheet rows: sequence enrollment resolves identity records as part of its own staging flow.
|
|
20
|
+
|
|
19
21
|
## The invariant
|
|
20
22
|
|
|
21
23
|
Preserve evidence, identity, and human judgement. Read before every change. Every read is free, so inspect current record, related records, recent timeline, ownership, and open work before creating, updating, or merging anything.
|
|
@@ -33,7 +33,7 @@ Read first, change second. Pending, queued, paced, capped and unknown are not fa
|
|
|
33
33
|
| Where did this value come from, or why is this cell empty? | The cell, its column, the run that settled it |
|
|
34
34
|
| Which rows or runs failed, and which are safe to retry? | Run history, then one run's events |
|
|
35
35
|
| Why has this sequence not sent? | Sequence state, enrollment, sender, sending hours, caps |
|
|
36
|
-
| Why did this cost so much, and how do I spend less? |
|
|
36
|
+
| Why did this worksheet cost so much, and how do I spend less? | `tables.worksheet.credit_summary`, then individual charged runs |
|
|
37
37
|
|
|
38
38
|
## Evidence order
|
|
39
39
|
|
|
@@ -46,6 +46,12 @@ Read first, change second. Pending, queued, paced, capped and unknown are not fa
|
|
|
46
46
|
|
|
47
47
|
Search the tool for the read you need. The search returns runnable schemas for its top hits; read any other ids together in one tools_get, then run.
|
|
48
48
|
|
|
49
|
+
For worksheet costs, read `tables.worksheet.credit_summary` before drilling into
|
|
50
|
+
runs. Its decimal total and per-column breakdown cover the entire worksheet,
|
|
51
|
+
including historical executions. Check completeness and pending attempts: a
|
|
52
|
+
partial recorded total does not prove the remaining work was free. Current cell
|
|
53
|
+
values and the visible grid window do not represent cumulative spend.
|
|
54
|
+
|
|
49
55
|
## Common findings
|
|
50
56
|
|
|
51
57
|
- **Column empty on every row:** its gate reads a column that has not settled, or it was added after rows landed and never ran on them.
|
|
@@ -33,6 +33,8 @@ LAST({{company_linkedin_url}}, '/')
|
|
|
33
33
|
|
|
34
34
|
Read its current state before changing it, so an edit never overwrites a newer change.
|
|
35
35
|
|
|
36
|
+
The same fence applies to the worksheet source: read `tables.table_sources.list`, then use `tables.executables.save` with a source target and the returned state and binding revision. Put the intended authored change in `binding_spec`; never construct a compiled binding or digest. Omitted policy remains intact, including event triggers. A valid demand policy may be saved before a provider account is connected, and a one-off source run never needs a policy change.
|
|
37
|
+
|
|
36
38
|
## Research columns
|
|
37
39
|
|
|
38
40
|
Create research with `binding_spec`, not `prompt`: `definition_id: "column.research"`, only `input_bindings.query`, and query `{ "kind": "template", "parts": [{ "kind": "literal", "value": "What recent news matters for " }, { "kind": "column", "column_key": "company" }, { "kind": "literal", "value": "?" }] }`. Research output is fixed `{status, answer, evidence}`. Do not declare `output`.
|
|
@@ -12,6 +12,13 @@
|
|
|
12
12
|
- To continue a list, run the same source again. Changing its inputs starts it over.
|
|
13
13
|
- Enrich rows you already have; never add a second source for them. Fan out only when an enrichment returns a nested list per row and the user wants those items as rows.
|
|
14
14
|
|
|
15
|
+
## Changing a source
|
|
16
|
+
|
|
17
|
+
- Read `tables.table_sources.list` first. Use the returned source id, state, binding revision and binding as the current state; never reconstruct a compiled binding or its digest.
|
|
18
|
+
- Author a source change with `tables.executables.save`: set target kind to `source`, copy the returned source id, state and binding revision into its target fence, and express only the intended change in `binding_spec`. The save path compiles the binding and preserves omitted existing source policy.
|
|
19
|
+
- Preserve an existing event trigger and its other policy unless the user explicitly wants to change it. A source can have valid demand policy before its provider account is connected; save that draft, connect when the run says it is needed.
|
|
20
|
+
- An explicit `tables.table_sources.run` does not require a policy edit. Run the current source when the user wants rows now; change its policy only when the future behavior should change.
|
|
21
|
+
|
|
15
22
|
## Social account posts and AI answers
|
|
16
23
|
|
|
17
24
|
- For competitor or creator content analysis, use `source.account_posts_<platform>` with pasted account links. On an existing account URL column, use `column.account_posts_<platform>`, then Fan out for one row per post.
|
|
@@ -67,6 +67,13 @@ When the user asks to enroll a list:
|
|
|
67
67
|
- Keep filters, identity mapping, cap, and priority inside each audience. Never apply one global filter or sort across several workbooks. Use a workflow source only when entry needs logic a workbook audience cannot express.
|
|
68
68
|
- When several people from one company are enrolled, turn on company pause on reply.
|
|
69
69
|
|
|
70
|
+
## Workbook rows before CRM
|
|
71
|
+
|
|
72
|
+
- A worksheet row with usable channel identity and copy fields is enough to render real personalized previews and rehearse sequence launch. Do this before, and without, a separate CRM-person creation step.
|
|
73
|
+
- Live sequence enrollment owns identity materialization: it matches a row to one existing person or creates and binds the missing person while staging the enrollment. That staging does not send.
|
|
74
|
+
- Treat a pending identity binding in a preview as planned enrollment work, not a request for the user to create contacts. Report only the actual result: missing usable identity, an identity conflict, a permission refusal, or another returned readiness blocker.
|
|
75
|
+
- Creating records for otherwise unbound rows remains a deliberate CRM hygiene or import operation. It is not outreach preparation and must not be offered as a prerequisite for a workbook preview, rehearsal, or enrollment.
|
|
76
|
+
|
|
70
77
|
## State
|
|
71
78
|
|
|
72
79
|
- Building never waits on connections or rows. Build, preview, validate and bind anyway, then say what to connect or what will make rows land.
|
|
@@ -6,7 +6,9 @@ Order of work: preview one real personalized message in chat, dry run, then buil
|
|
|
6
6
|
|
|
7
7
|
When the user asked to enroll, do not stop at the draft: publishing is part of enrolling and sends nothing, so build from the worksheet and publish in the same turn, then report that nothing was sent. A published sequence that was never started sends nothing; that is the paused state the user asked for.
|
|
8
8
|
|
|
9
|
-
Enrollment reads leads straight from the worksheet rows; do not create or import contacts first. A sequence takes one enrollment source: a workbook view, or one workflow, never both. A published sequence bound to a view keeps enrolling rows that later land in or start matching it. Filters on any worksheet column narrow who enrolls; with no filter every row enrolls. When the user said who should get the sequence, filter on the columns that hold it and report how many were held back. Enrollment is free and never sends. Starting is the moment real messages begin, paced over time.
|
|
9
|
+
Enrollment reads leads straight from the worksheet rows; do not create or import contacts first. A rendered preview and a launch rehearsal use those row values even when no CRM person exists yet. On live enrollment, the system matches each usable row identity to one existing person or creates and binds the missing person automatically. A sequence takes one enrollment source: a workbook view, or one workflow, never both. A published sequence bound to a view keeps enrolling rows that later land in or start matching it. Filters on any worksheet column narrow who enrolls; with no filter every row enrolls. When the user said who should get the sequence, filter on the columns that hold it and report how many were held back. Enrollment is free and never sends. Starting is the moment real messages begin, paced over time.
|
|
10
|
+
|
|
11
|
+
Do not turn a pending binding preview into a request to create CRM contacts. Report the returned blocker precisely: a row without usable channel identity, an ambiguous/conflicting identity, a permission refusal, or the named launch/readiness issue. The CRM-only operation that creates records for unbound rows remains available for intentional CRM cleanup or import, never as an outreach prerequisite.
|
|
10
12
|
|
|
11
13
|
Social account post and AI answer worksheets hold content rows, never an audience or subject. To reach authors, send unique author URLs to a people worksheet first.
|
|
12
14
|
|
|
@@ -46,6 +46,21 @@ A play has no pack of its own. It routes across packs: `knowledge` for Company C
|
|
|
46
46
|
- Each morning: the top five to ten with what they did, when, and an honest first line built on a true fact.
|
|
47
47
|
- Metric: warm people contacted from the list, replies they produce.
|
|
48
48
|
|
|
49
|
+
**People engaging with a prospect's competitors** (competitor-engager-prospecting). Find people already paying attention to competitors, then contact only people who fit target buyer.
|
|
50
|
+
- State caps and credit estimate before any paid run. Pilot five targets first. Get review of competitor LinkedIn URLs before spend.
|
|
51
|
+
- Build or reuse one target worksheet from any source. Add fit score against target buyer and run later work only where score is 70 or higher.
|
|
52
|
+
- Add an AI or web-research column returning no more than five competitor LinkedIn URLs per target. Review returned URLs before spend.
|
|
53
|
+
- Add Run worksheet column. For each reviewed competitor URL, run post engagers in profile mode once. Child worksheet receives engagers, excludes competitor employees and client's existing customers, then scores fit against target buyer.
|
|
54
|
+
- Return top ten child rows, total count, and share link to parent row. Share link lasts 30 days and can be revoked.
|
|
55
|
+
- Sequence step one states count only, with no link. Sequence step two sends share link. Before reply, teaser may name person, title, company, and what person engaged with. Never include email or phone.
|
|
56
|
+
- Metric: qualified competitor engagers per target, then replies from sequence.
|
|
57
|
+
|
|
58
|
+
## Choosing one result, a split, or child worksheet
|
|
59
|
+
|
|
60
|
+
- Use a function when each parent row needs one value, such as one score, verdict, URL, or count.
|
|
61
|
+
- Use fan out for one-off split where returned items become ordinary rows and no parent-scoped result must return.
|
|
62
|
+
- Use Run worksheet when each parent must produce bounded child rows, run a child qualification chain, then return ranked rows, count, or share link. Child identity stays scoped to parent, so same person may appear under different targets.
|
|
63
|
+
|
|
49
64
|
**What should I post?** (founder-posting-system). Regular LinkedIn posts in the user's own voice.
|
|
50
65
|
- Learn the voice from the account's past posts; posts that drew comments are the best examples.
|
|
51
66
|
- Draft a few posts or plan a week of different kinds (customer story, contrarian take, build in public), each with one concrete point, who it is for, and a call to action.
|
|
@@ -18,7 +18,7 @@ The `social` pack lists the tools and their exact inputs.
|
|
|
18
18
|
|
|
19
19
|
## Published-post scoring
|
|
20
20
|
|
|
21
|
-
For published-post review, read
|
|
21
|
+
For published-post review, find the published-post score read for one post or the published-post score list for a date range. Scores compare each author account with its own same-platform recent baseline at 24h and 7d. A `not_enough_history` label means fewer than three prior posts, not poor performance. These reads use stored snapshots and never refresh a provider.
|
|
22
22
|
|
|
23
23
|
## Delete and archive
|
|
24
24
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"generated_by": "packages/cli/scripts/generate-pack-verbs.mjs from apps/backend/src/services/v1/capabilityRegistry/catalog.snapshot.json; do not edit by hand",
|
|
3
|
-
"registry_hash": "
|
|
3
|
+
"registry_hash": "0993264bdfa458810d82958d2539803b6d1652a7afd97b2cc7cd7533d6743d7f",
|
|
4
4
|
"verbs": [
|
|
5
5
|
{
|
|
6
6
|
"command": "knowledge compose-document",
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AA8BA,OAAO,EAA0F,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKnK,OAAO,EAA0I,KAAK,iBAAiB,EAA6C,MAAM,UAAU,CAAC;AACrO,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAwC,MAAM,UAAU,CAAC;AACzF,OAAO,EAAE,wBA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AAE,OAAO,CAAC,CAqBzF;AAED,KAAK,SAAS,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,KAAK;IAAE,KAAK,IAAI,IAAI,CAAC;IAAC,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,OAAO,CAAA;CAAE,CAAC;AAEhN,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,SAAiB,GAAG,IAAI,CAyB1E;AAuGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAqBvD;AAwBD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;IAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAkB3F;AAwBD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmB7G;AAiHD,wBAAsB,MAAM,CAAC,IAAI,GAAE,MAAM,EAA0B,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAma5G"}
|
package/dist/index.js
CHANGED
|
@@ -713,14 +713,27 @@ function resultWebUrl(value) {
|
|
|
713
713
|
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
714
714
|
return null;
|
|
715
715
|
const envelope = value;
|
|
716
|
+
const data = envelope.data && typeof envelope.data === 'object' && !Array.isArray(envelope.data)
|
|
717
|
+
? envelope.data
|
|
718
|
+
: {};
|
|
719
|
+
const snapshotMeta = data.meta && typeof data.meta === 'object' && !Array.isArray(data.meta)
|
|
720
|
+
? data.meta
|
|
721
|
+
: {};
|
|
722
|
+
if (typeof snapshotMeta.web_url === 'string')
|
|
723
|
+
return snapshotMeta.web_url;
|
|
724
|
+
const run = data.run && typeof data.run === 'object' && !Array.isArray(data.run)
|
|
725
|
+
? data.run
|
|
726
|
+
: {};
|
|
727
|
+
const runMeta = run.meta && typeof run.meta === 'object' && !Array.isArray(run.meta)
|
|
728
|
+
? run.meta
|
|
729
|
+
: {};
|
|
730
|
+
if (typeof runMeta.web_url === 'string')
|
|
731
|
+
return runMeta.web_url;
|
|
716
732
|
const meta = envelope.meta && typeof envelope.meta === 'object' && !Array.isArray(envelope.meta)
|
|
717
733
|
? envelope.meta
|
|
718
734
|
: {};
|
|
719
735
|
if (typeof meta.web_url === 'string')
|
|
720
736
|
return meta.web_url;
|
|
721
|
-
const data = envelope.data && typeof envelope.data === 'object' && !Array.isArray(envelope.data)
|
|
722
|
-
? envelope.data
|
|
723
|
-
: {};
|
|
724
737
|
return typeof data.web_url === 'string' ? data.web_url : null;
|
|
725
738
|
}
|
|
726
739
|
function openResult(value, runtime) {
|