ethos-cli 0.1.3 → 0.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ethos-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Commander-based CLI for Ethos table operations",
5
5
  "homepage": "https://github.com/cluster-software/ethos#readme",
6
6
  "repository": {
@@ -11,13 +11,14 @@ pass `--api-url` for local development or an explicitly requested environment.
11
11
 
12
12
  ## Flow
13
13
 
14
- Always keep CSV upload browser-first:
14
+ Always keep CSV upload in the Codex in-app Browser:
15
15
 
16
- 1. Open Ethos in the browser with the CSV upload deep link.
17
- 2. Let the user upload the company CSV in the app.
18
- 3. Return to Codex from the app's upload-complete deep link.
19
- 4. Collect the user's ICP, buying signals, person targets, and max contacts.
16
+ 1. Open Ethos in the in-app Browser with the CSV upload deep link.
17
+ 2. Immediately ask the user for ICP, buying signals, person targets, and max contacts while they upload.
18
+ 3. Poll that same in-app Browser tab until the upload-complete URL appears.
19
+ 4. Save the uploaded table id from that URL.
20
20
  5. Create the `people_sourcing` agent and Codex-created column with the CLI.
21
+ 6. Run the column for the FIRST 3 ROWS ONLY. Tell the user you're running for 3 rows to see if the results are good. If yes, the next step is to run on the whole table. If not, refine the agent based on their feedback so it finds the right people.
21
22
 
22
23
  Do not run `ethos tables import-csv` for this skill unless the user explicitly
23
24
  asks for a CLI-only/non-browser fallback. The browser upload is part of the
@@ -42,13 +43,7 @@ the user explicitly wants a non-browser setup.
42
43
 
43
44
  ## Open Browser Upload
44
45
 
45
- Choose the app origin:
46
-
47
- - Use the current Ethos browser origin when the user is already looking at one.
48
- - Use a user-provided app origin when explicitly working in local development.
49
- - Otherwise use `https://ethos.hello-cluster.com`.
50
-
51
- Open this URL in the browser:
46
+ Open this URL in the Codex in-app Browser:
52
47
 
53
48
  ```sh
54
49
  APP_BASE_URL="https://ethos.hello-cluster.com"
@@ -58,24 +53,26 @@ if [ -n "${CODEX_THREAD_ID:-}" ]; then
58
53
  fi
59
54
  ```
60
55
 
61
- Use the Browser plugin/in-app browser when available. If no browser-control tool
62
- is available, run `open "$UPLOAD_URL"` and tell the user to upload the CSV there.
56
+ Use the Browser plugin/in-app Browser to navigate to `$UPLOAD_URL` and tell
57
+ the user to upload the CSV there. Do not use `open`, Chrome, Safari, or any
58
+ external/default browser for this flow.
63
59
 
64
- If the in-app browser gets stuck on an auth page such as `Redirecting to sign
65
- in`, or the CLI claim/approval page does not complete cleanly inside the in-app
66
- browser, switch the auth/upload handoff to Chrome or the system browser. Open
67
- the same claim URL or `UPLOAD_URL` there and continue the browser-first upload
68
- flow; do not spend time debugging embedded-browser auth state during the skill.
60
+ After opening the upload modal, immediately ask:
61
+
62
+ ```text
63
+ Please describe your ICP, any signals that would make them a good fit for your product or service, and where that data may live. You can keep typing while the CSV uploads.
64
+ ```
69
65
 
70
- After the upload, the app redirects to:
66
+ Then poll the in-app Browser URL every 2 seconds while the user uploads and answers.
67
+ The ONLY upload-completion indicator is this URL shape:
71
68
 
72
69
  ```text
73
70
  /tables/<TABLE_ID>?codex_flow=find-people-at-companies&uploaded=1
74
71
  ```
75
72
 
76
- When `codex_thread_id` is present, the app also returns to the Codex thread.
77
- Save the table id from the deep-link URL. Start inspecting the imported table,
78
- but do not let CLI inspection block the natural next user prompt:
73
+ When the browser URL matches that shape, save the table id from the URL. Start
74
+ inspecting the imported table, but do not let CLI inspection block the natural
75
+ next user prompt:
79
76
 
80
77
  ```sh
81
78
  ethos tables get "$TABLE_ID" --json
@@ -90,7 +87,7 @@ cannot recover across accessible orgs and the table still cannot be read.
90
87
 
91
88
  ## Collect The Brief
92
89
 
93
- Immediately after the browser upload and return, ask for anything still missing:
90
+ After the upload-complete URL appears, ask only for anything still missing:
94
91
 
95
92
  - ICP fit criteria for companies.
96
93
  - Buying-signal criteria to prioritize.
@@ -166,15 +163,36 @@ The `--created-by-codex` flag is required. It marks the column with
166
163
  lets the table UI show the Codex callout and auto-scroll to the new column when
167
164
  it appears.
168
165
 
166
+ Only run the agent for 3 rows on the first run, so the user can give feedback.
167
+
169
168
  ## Keep Browser On The Table
170
169
 
171
- The browser should already be on the uploaded table from the deep-link return.
172
- If it is not, navigate to:
170
+ After the `source-people` command succeeds, bring the browser back to the table:
173
171
 
174
172
  ```sh
175
173
  "$APP_BASE_URL/tables/$TABLE_ID"
176
174
  ```
177
175
 
178
- Then report the table URL, run id, and agent id. Keep the response concise and
179
- mention that the Codex-created column should appear and auto-scroll into view in
180
- Ethos.
176
+ Then tell the user the agent is running on the first 3 rows. Do not surface
177
+ agent ids, run ids, table ids, or similar internal ids unless the user asks for
178
+ them or you are actively debugging.
179
+
180
+ ## How to communicate with the user
181
+
182
+ While you execute the flow, keep communication simple and approachable. Avoid
183
+ explaining UI behavior that should happen automatically when everything is
184
+ working. Do not mention internal Ethos concepts unless explicitly necessary.
185
+
186
+ For example, instead of
187
+
188
+ "I’ll create the people-sourcing agent with those criteria, then run it only on the first 3 rows so you can judge the results before expanding."
189
+
190
+ say
191
+
192
+ "I’ll create an agent to find people with those criteria, then run it only on the first 3 rows so you can judge the results before expanding. Give me a second to set it up, you will see the agent start working in ethos soon."
193
+
194
+ If you need input from the user, make it very clear by bolding it and maybe mentioning it on a new line.
195
+
196
+ E.g.:
197
+
198
+ "**Next, please give me the following information** ..."