ethos-cli 0.1.1 → 0.1.2

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.1",
3
+ "version": "0.1.2",
4
4
  "description": "Commander-based CLI for Ethos table operations",
5
5
  "homepage": "https://github.com/cluster-software/ethos#readme",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: find-people-at-companies
3
- description: Import a company CSV into Ethos, collect ICP and buying-signal criteria, create a people_sourcing agent, run it on the first rows, and open the table. Use when the user asks to find ICP-matching people at companies from a CSV or invokes /find-people-at-companies.
3
+ description: Open Ethos in the browser for company CSV upload, return to Codex through the upload deep link, collect ICP and buying-signal criteria, create a people_sourcing agent, and run it on the uploaded table. Use when the user asks to find ICP-matching people at companies from a CSV or invokes /find-people-at-companies.
4
4
  ---
5
5
 
6
6
  # find-people-at-companies
@@ -9,15 +9,19 @@ Use this when the user wants Ethos to source people at a list of companies.
9
9
  The production CLI default is `https://api.ethos.hello-cluster.com`, so only
10
10
  pass `--api-url` for local development or an explicitly requested environment.
11
11
 
12
- ## Inputs
12
+ ## Flow
13
13
 
14
- If the user has not already provided these, ask only for what is missing:
14
+ Always keep CSV upload browser-first:
15
15
 
16
- - Company CSV path.
17
- - ICP fit criteria for companies.
18
- - Buying-signal criteria to prioritize.
19
- - Person titles/functions to return.
20
- - Desired max people per company. Default to 3 when unspecified.
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.
20
+ 5. Create the `people_sourcing` agent and Codex-created column with the CLI.
21
+
22
+ Do not run `ethos tables import-csv` for this skill unless the user explicitly
23
+ asks for a CLI-only/non-browser fallback. The browser upload is part of the
24
+ product flow and must not be replaced by CLI import.
21
25
 
22
26
  ## Authenticate
23
27
 
@@ -36,18 +40,60 @@ ethos auth login --codex-thread-id "$CODEX_THREAD_ID"
36
40
  The browser claim flow handles production auth. Do not ask for API tokens unless
37
41
  the user explicitly wants a non-browser setup.
38
42
 
39
- ## Import The CSV
43
+ ## Open Browser Upload
44
+
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:
40
52
 
41
53
  ```sh
42
- ethos tables import-csv "$CSV_PATH" --entity-type company --json
54
+ APP_BASE_URL="https://ethos.hello-cluster.com"
55
+ UPLOAD_URL="$APP_BASE_URL/tables?codex_flow=find-people-at-companies&open_import=1"
56
+ if [ -n "${CODEX_THREAD_ID:-}" ]; then
57
+ UPLOAD_URL="$UPLOAD_URL&codex_thread_id=$CODEX_THREAD_ID"
58
+ fi
59
+ ```
60
+
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.
63
+
64
+ After the upload, the app redirects to:
65
+
66
+ ```text
67
+ /tables/<TABLE_ID>?codex_flow=find-people-at-companies&uploaded=1
43
68
  ```
44
69
 
45
- Save `response.table_id`, `response.view_ids[0]`, and the relevant company
46
- input column ids from `response.columns`.
70
+ When `codex_thread_id` is present, the app also returns to the Codex thread.
71
+ Save the table id from the deep-link URL, then inspect the imported table:
72
+
73
+ ```sh
74
+ ethos tables get "$TABLE_ID" --json
75
+ ```
76
+
77
+ Save `response.table_id`, `response.view_ids[0]`, and useful company input
78
+ column ids from `response.columns`. Prefer the CLI/API ids when available; do
79
+ not announce URL extraction unless troubleshooting.
80
+
81
+ ## Collect The Brief
82
+
83
+ Only after the browser upload and return, ask for anything still missing:
84
+
85
+ - ICP fit criteria for companies.
86
+ - Buying-signal criteria to prioritize.
87
+ - Person titles/functions to return.
88
+ - Desired max people per company. Default to 3 when unspecified.
89
+
90
+ Do not create the agent or people-sourcing column until the user has provided
91
+ enough targeting context.
47
92
 
48
93
  ## Create The Agent
49
94
 
50
- Create a `people_sourcing` agent. Use these abilities by default:
95
+ Create a `people_sourcing` agent after the brief is ready. Use these abilities
96
+ by default:
51
97
 
52
98
  ```sh
53
99
  ethos agents create \
@@ -83,7 +129,7 @@ The instructions should include:
83
129
 
84
130
  ## Source People
85
131
 
86
- Run against the imported table view:
132
+ Run against the uploaded table view:
87
133
 
88
134
  ```sh
89
135
  ethos tables source-people "$TABLE_ID" \
@@ -99,13 +145,20 @@ ethos tables source-people "$TABLE_ID" \
99
145
  Use multiple `--input-column` flags when the table has separate useful company
100
146
  fields such as name, domain, LinkedIn URL, and description.
101
147
 
102
- ## Open And Report
148
+ The `--created-by-codex` flag is required. It marks the column with
149
+ `config.created_by = "codex"` and `config.source_label = "ran by codex"`, which
150
+ lets the table UI show the Codex callout and auto-scroll to the new column when
151
+ it appears.
152
+
153
+ ## Keep Browser On The Table
103
154
 
104
- Open the table in the production app:
155
+ The browser should already be on the uploaded table from the deep-link return.
156
+ If it is not, navigate to:
105
157
 
106
158
  ```sh
107
- open "https://ethos.hello-cluster.com/tables/$TABLE_ID"
159
+ "$APP_BASE_URL/tables/$TABLE_ID"
108
160
  ```
109
161
 
110
- Then report the table URL, run id, and the agent id. Keep the response concise
111
- and mention that the run is visible in Ethos.
162
+ Then report the table URL, run id, and agent id. Keep the response concise and
163
+ mention that the Codex-created column should appear and auto-scroll into view in
164
+ Ethos.