@usecoil/skill-claude 0.1.3 → 0.1.4
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/README.md +1 -1
- package/bin/install.mjs +2 -12
- package/package.json +2 -2
- package/skill/SKILL.md +2 -19
- package/skill/references/api-endpoints.md +0 -14
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ installed CLI and installs the compatible `@usecoil/cli` package when
|
|
|
7
7
|
`coil` is not already available:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx --yes @usecoil/skill-claude@0.1.
|
|
10
|
+
npx --yes @usecoil/skill-claude@0.1.4 --base-url https://www.usecoil.com
|
|
11
11
|
coil config set-base-url https://www.usecoil.com --profile prod
|
|
12
12
|
printf '%s' "$COIL_API_KEY" | coil auth login --profile prod --key -
|
|
13
13
|
coil --profile prod agent-context --json
|
package/bin/install.mjs
CHANGED
|
@@ -307,12 +307,6 @@ function checkCli() {
|
|
|
307
307
|
&& fetchCount?.required === true
|
|
308
308
|
&& fetchCount?.minimum === 1
|
|
309
309
|
&& fetchCount?.maximum === 25;
|
|
310
|
-
const hasCommand = (group, name) => Array.isArray(context.commands?.[group]?.commands)
|
|
311
|
-
&& context.commands[group].commands.some((command) => command?.name === name);
|
|
312
|
-
const hasLeadImport = hasCommand('leads', 'leads import');
|
|
313
|
-
const hasImportOutcomes = hasCommand('recipes', 'recipe-runs import-outcomes');
|
|
314
|
-
const hasImportedLeads = hasCommand('recipes', 'recipe-runs leads');
|
|
315
|
-
const hasNamedAgents = hasCommand('agents', 'agents list');
|
|
316
310
|
const compatible = contextResult.status === 0
|
|
317
311
|
&& context.cli?.name === 'coil'
|
|
318
312
|
&& context.cli?.version === version.replace(/^v/, '')
|
|
@@ -320,11 +314,7 @@ function checkCli() {
|
|
|
320
314
|
&& hasSpendGate
|
|
321
315
|
&& hasStarterCap
|
|
322
316
|
&& Array.isArray(context.commands?.recipes?.commands)
|
|
323
|
-
&& context.commands.recipes.commands.some((command) => command?.name === 'recipes run')
|
|
324
|
-
&& hasLeadImport
|
|
325
|
-
&& hasImportOutcomes
|
|
326
|
-
&& hasImportedLeads
|
|
327
|
-
&& hasNamedAgents;
|
|
317
|
+
&& context.commands.recipes.commands.some((command) => command?.name === 'recipes run');
|
|
328
318
|
return {
|
|
329
319
|
ok: Boolean(compatible),
|
|
330
320
|
present: true,
|
|
@@ -571,7 +561,7 @@ if (!cli.ok) {
|
|
|
571
561
|
if (!cli.ok) {
|
|
572
562
|
const rollbackFailed = installedCli && !rollbackCliInstall();
|
|
573
563
|
const detail = cli.reason ?? (cli.version ? `Found ${cli.version}; supported versions are ${SUPPORTED_CLI_RANGE}.` : 'No coil executable was found.');
|
|
574
|
-
console.error(`Error: ${detail} Install ${PUBLIC_CLI_SPEC} from the public npm registry, or rerun with --cli-package <path-to-reviewed-tarball>.`);
|
|
564
|
+
console.error(`Error: ${detail} Install @usecoil/cli ${PUBLIC_CLI_SPEC} from the public npm registry, or rerun with --cli-package <path-to-reviewed-tarball>.`);
|
|
575
565
|
if (rollbackFailed) console.error('Warning: automatic rollback of the newly installed Coil CLI failed; remove @usecoil/cli manually.');
|
|
576
566
|
process.exit(1);
|
|
577
567
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usecoil/skill-claude",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Claude Code skill package for Coil agent workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"coilCompatibility": {
|
|
30
30
|
"cli": "0.1.x",
|
|
31
|
-
"preferredVersion": "0.1.
|
|
31
|
+
"preferredVersion": "0.1.5"
|
|
32
32
|
},
|
|
33
33
|
"coilRuntime": {
|
|
34
34
|
"name": "claude",
|
package/skill/SKILL.md
CHANGED
|
@@ -16,7 +16,7 @@ it can do:
|
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
if ! command -v coil >/dev/null 2>&1; then
|
|
19
|
-
npm install --global @usecoil/cli@0.1.
|
|
19
|
+
npm install --global @usecoil/cli@0.1.5
|
|
20
20
|
fi
|
|
21
21
|
coil --version
|
|
22
22
|
```
|
|
@@ -77,7 +77,7 @@ The runtime-specific installer or registry handles placement; Coil operations
|
|
|
77
77
|
always use the same public JSON CLI:
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
npm install --global @usecoil/cli@0.1.
|
|
80
|
+
npm install --global @usecoil/cli@0.1.5
|
|
81
81
|
coil config set-base-url https://www.usecoil.com --profile prod
|
|
82
82
|
printf '%s' "$COIL_API_KEY" | coil auth login --profile prod --key -
|
|
83
83
|
coil --profile prod agent-context --json
|
|
@@ -205,23 +205,6 @@ coil --profile prod recipe-runs retry <run-id> --json
|
|
|
205
205
|
|
|
206
206
|
Publication and ambiguous-effect reconciliation require a human organization admin. If a run has an unresolved provider effect, relay the server-provided `human_action.url` from the view/wait/watch state (or `error.details.human_action` from a machine reconcile denial) verbatim. The URL opens `/dashboard/recipe-runs/{runId}` for evidence review; it is navigation only and does not prove provider acceptance or authorize a decision. Retry/cancel behavior follows the durable run state and `next_actions`, not the presence of a URL.
|
|
207
207
|
|
|
208
|
-
### Lead-list imports
|
|
209
|
-
|
|
210
|
-
```bash
|
|
211
|
-
coil --profile prod --json leads import ./prospects.csv --mapping '{"Work email":"email"}' --admission-key import-september-001
|
|
212
|
-
coil --profile prod recipe-runs view <run-id> --json
|
|
213
|
-
coil --profile prod recipe-runs import-outcomes <run-id> --outcome rejected --json
|
|
214
|
-
coil --profile prod recipe-runs leads <run-id> --json
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
Imports accept at most 2,000 data rows and 2 MiB of CSV input. Use header
|
|
218
|
-
mapping for ambiguous columns and a stable admission key when a retry could be
|
|
219
|
-
uncertain. A `202` response means durable admission, not terminal success. Do
|
|
220
|
-
not report completion until the run is terminal and its outcomes and attributed
|
|
221
|
-
leads have been inspected. Rejected-row PII is not printed. Successful inputs
|
|
222
|
-
are scrubbed after completion; failed or cancelled normalized replay data is
|
|
223
|
-
retained for up to 30 days. The original CSV is never stored.
|
|
224
|
-
|
|
225
208
|
### Scrapes
|
|
226
209
|
|
|
227
210
|
```bash
|
|
@@ -96,20 +96,6 @@ Machine callers can create scrapes. Admin-gated destructive routes require a hum
|
|
|
96
96
|
| PATCH | `/api/leads/bulk` | `coil leads bulk-update --ids ... --fields '{...}' --json` |
|
|
97
97
|
| POST | `/api/export/csv` | `coil leads export <scrape-id> [--filter/--view/--ids] [--output]` |
|
|
98
98
|
| GET | `/api/leads/emails?scrapeId={id}` | `coil leads emails <scrape-id>` |
|
|
99
|
-
| POST | `/api/leads/import` | `coil --json leads import <file> [--mapping ...] [--admission-key ...]` |
|
|
100
|
-
| GET | `/api/recipe-runs/{id}/import-outcomes` | `coil recipe-runs import-outcomes <run-id> --outcome rejected --json` |
|
|
101
|
-
| GET | `/api/recipe-runs/{id}/leads` | `coil recipe-runs leads <run-id> --json` |
|
|
102
|
-
|
|
103
|
-
Lead-list imports accept at most 2,000 data rows and 2 MiB of CSV input. The
|
|
104
|
-
CLI maps supported headers before admission; use `--mapping` for ambiguous
|
|
105
|
-
headers and a stable `--admission-key` when a retry may be uncertain. A `202`
|
|
106
|
-
response means durable admission, not terminal success. Inspect
|
|
107
|
-
`coil recipe-runs view`, `coil recipe-runs import-outcomes`, and
|
|
108
|
-
`coil recipe-runs leads` and wait for a terminal run state before reporting
|
|
109
|
-
completion. The API is organization-scoped, does not retain the original CSV,
|
|
110
|
-
and does not print rejected-row PII. Successful inputs are scrubbed after
|
|
111
|
-
completion; failed or cancelled normalized replay data is retained for up to
|
|
112
|
-
30 days.
|
|
113
99
|
|
|
114
100
|
## Automations
|
|
115
101
|
|