@sente-labs/cli 0.2.0 → 0.2.1
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/dist/client.js +1 -1
- package/dist/index.js +1 -1
- package/dist/skill/SKILL.md +6 -2
- package/package.json +1 -1
package/dist/client.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const program = new commander_1.Command();
|
|
|
12
12
|
program
|
|
13
13
|
.name('sente')
|
|
14
14
|
.description('Sente CLI -- manage QA tests from the command line and Claude Code')
|
|
15
|
-
.version('0.2.
|
|
15
|
+
.version('0.2.1')
|
|
16
16
|
.option('--json', 'Emit machine-readable JSON instead of human output');
|
|
17
17
|
/**
|
|
18
18
|
* Global options aren't auto-propagated to subcommands by Commander, so we
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -80,7 +80,7 @@ The agent that runs your tests enforces this style. Steps that follow it pass mo
|
|
|
80
80
|
|
|
81
81
|
### Hard rules
|
|
82
82
|
|
|
83
|
-
- **Secrets** use literal placeholder syntax: `{{secret.name_here}}`. Never embed values. List existing secrets with `sente secret list --json` (
|
|
83
|
+
- **Secrets** use literal placeholder syntax: `{{secret.name_here}}`. Never embed values. List existing secrets with `sente secret list --json`. If the secret doesn't exist, create it with `sente secret create --name <key>` (prompts for value with no echo) or pipe via `echo "$VAL" | sente secret create --name <key> --value-stdin`. Link to the current project with `--project $(jq -r .projectId .sente/config.json)`.
|
|
84
84
|
- **Never invent dropdown values**, product names, or emails. If you don't know, ask the user.
|
|
85
85
|
- **Combine related micro-actions into one step** (form fill + submit = one step).
|
|
86
86
|
- **At most 20 steps per task.** If a flow needs more, split into multiple tasks with a precondition note in the second one's instruction.
|
|
@@ -105,12 +105,16 @@ The top-level `--instruction` is consulted by the agent when step text is ambigu
|
|
|
105
105
|
| `sente task results <id> --failed-step --json` | Focused failure payload for diagnosis |
|
|
106
106
|
| `sente task results <id> --json` | Full step-by-step results |
|
|
107
107
|
| `sente sync --json` | Re-pull tasks into `.sente/tasks.json` |
|
|
108
|
+
| `sente secret list --json` | List secrets (metadata only; values are never returned) |
|
|
109
|
+
| `sente secret create --name <key> --project <projectId> [--target-url <url>]` | Create a secret. Hidden prompt for value, or `--value-stdin` for piping |
|
|
110
|
+
| `sente secret link <secretId> <projectId>` / `unlink ...` | Link/unlink an existing secret to a project |
|
|
111
|
+
| `sente secret delete <secretId>` | Delete a secret (removes from all linked projects) |
|
|
108
112
|
|
|
109
113
|
Use `--json` for every CLI call — outputs are stable JSON shaped for programmatic consumption.
|
|
110
114
|
|
|
111
115
|
## Error handling
|
|
112
116
|
|
|
113
117
|
- `STEP_VALIDATION_FAILED` (HTTP 400): the `errors[]` array tells you exactly what to fix. Apply the fix to the steps file and retry.
|
|
114
|
-
- `UNKNOWN_SECRET`: the referenced secret doesn't exist in this organization.
|
|
118
|
+
- `UNKNOWN_SECRET`: the referenced secret doesn't exist in this organization. Either ask the user to create it (so they paste the value into a hidden prompt: `sente secret create --name <key> --project $(jq -r .projectId .sente/config.json)`), or rewrite the step to use a different existing secret. Never invent secret values yourself.
|
|
115
119
|
- `INVALID_PAT`: the stored PAT is bad. Ask the user to re-run `sente login` after issuing a new token.
|
|
116
120
|
- `NETWORK_ERROR`: the gateway is unreachable. Surface the host to the user.
|
package/package.json
CHANGED