@standardagents/skill 0.45.4 → 0.45.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": "@standardagents/skill",
3
- "version": "0.45.4",
3
+ "version": "0.45.5",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -28,7 +28,7 @@ For deeper reference material that this skill links to, see:
28
28
  - Specification: https://standardagentspec.org/llms.txt
29
29
  - Builder docs: https://docs.standardagents.ai/llms.txt
30
30
 
31
- > If the `agents/*/AGENTS.md` files don't exist in your project yet, run `pnpm exec agents scaffold` to create them.
31
+ > If the `agents/*/AGENTS.md` files don't exist in your project yet, run `pnpm exec agents scaffold` to create them. To replace existing guides with the current versions, run `pnpm exec agents scaffold --force`. That command also runs the normal scaffold stages (`vite.config`, `package.json`, registry settings, `tsconfig.json`) and resets the `builder()` entry in `vite.config` to a call with no options, so copy any `builder()` options first. It prints each replacement before it writes, and it keeps application files.
32
32
 
33
33
  ## The specification comes first
34
34
 
@@ -73,7 +73,7 @@ Every agent has exactly two explicit sides, and each side is backed by exactly o
73
73
  Name its `sessionStop` tool. Name its `sessionFail` tool. Set a finite `maxSessionTurns` (the spec makes the cap optional; this skill makes it required practice for prompt × prompt). Give side B a real, non-redundant job. If you cannot say in one sentence what tool call ends the session, the agent is not designed yet. → [Session boundary discipline](#session-boundary-discipline)
74
74
 
75
75
  **4. Pick models from `current-models` only.**
76
- Never invent model strings from memory. Run `pnpm exec agents current-models`, choose by category, then run `pnpm exec agents available-models --provider=<name>` to confirm the exact string. → [Model selection](#model-selection)
76
+ Never invent model strings from memory. Run `pnpm exec agents current-models`, choose by category, then run `pnpm exec agents available-models --provider=<name>` to confirm the exact string. Both work in a project that holds only the Standard Agents account key. → [Model selection](#model-selection)
77
77
 
78
78
  **5. Research every third-party API before writing the tool.**
79
79
  Fetch the official current docs. Confirm auth, base URL, endpoint paths, payload shapes, rate limits, error codes. Do not write a tool from memory of how an API "usually" works. APIs change. → [API research checklist](#api-research-checklist)
@@ -584,7 +584,7 @@ conversion contract.
584
584
 
585
585
  1. Run `pnpm exec agents current-models` to see the curated category list (e.g. `extra_reasoning`, `fast_tool_calls`, `writing`, `image_generation`, `tiny`).
586
586
  2. Choose the category that fits the role (table below).
587
- 3. Run `pnpm exec agents available-models --provider=<name>` to confirm the exact provider model string.
587
+ 3. Run `pnpm exec agents available-models --provider=<name>` to confirm the exact provider model string. The command uses the provider's own key when the project has one. Otherwise it uses the project's Standard Agents account key (`STANDARD_AGENTS_API_KEY` in `.dev.vars`), so a project created by `agents init` needs no provider key. `<name>` is an installed provider package (`openai`, `anthropic`, ...) or a provider defined in `agents/providers/`, which always uses the key and base URL its own definition declares. If the command exits 1, read its message: it names the missing key or the failed request. Do not guess an ID in its place.
588
588
  4. Define the model in `agents/models/<name>.ts` using `defineModel`.
589
589
  5. Take `capabilities` from the provider (`POST /api/models/capabilities` with `{provider, modelId}`, or the admin model picker) — **never guess them, and never flatter the model.** The runtime's vision filter trusts `supportsImages`: declare it `true` on a text-only model and generated-image attachments ship to the provider as raw base64 that gets tokenized as *text* — a ~1MB PNG becomes ~1.2M input tokens and every turn after the first image hard-fails with "input too long". Declared `false`, images become a small placeholder in requests while stored history keeps the real files.
590
590
 
@@ -1137,6 +1137,42 @@ Undeclared thread-only env keys are treated as write-only secrets when scanned f
1137
1137
 
1138
1138
  ---
1139
1139
 
1140
+ ## Platform terms
1141
+
1142
+ If `git push` prints lines that start with `remote: Standard Agents:`, the platform stored the push but started no build. Tell the user what the lines say. For the terms notice, the user runs `npx @standardagents/cli terms accept`. An acceptance starts no build: the command lists the deploy that waits and starts it (with `--agree`, with no second question). To start it later, run `npx @standardagents/cli builds retry` on the pushed branch.
1143
+
1144
+ The platform can ask an account member to accept updated terms.
1145
+
1146
+ ```bash
1147
+ npx @standardagents/cli@latest terms # documents, versions, URLs, accepted or not
1148
+ npx @standardagents/cli@latest terms accept # asks the person in a terminal
1149
+ ```
1150
+
1151
+ **Rule: you never accept terms for the user on your own decision.** Acceptance
1152
+ is a legal agreement by the signed-in person. Without a terminal,
1153
+ `terms accept` exits with code 2 and records nothing. It prints both document
1154
+ links, the acknowledgement sentence, and the command that accepts the versions
1155
+ it showed:
1156
+
1157
+ ```bash
1158
+ npx @standardagents/cli@latest terms accept --agree --terms-version <version> --privacy-version <version>
1159
+ ```
1160
+
1161
+ Show the user those two links and that sentence exactly as printed. Run the
1162
+ printed command, with its versions unchanged, only after the user says yes in
1163
+ this conversation. `--agree` needs both version options. If a document changed
1164
+ after the user reviewed it, the command exits with code 2 again, records
1165
+ nothing, and prints the current documents with a new command. Show the user the
1166
+ new links and ask again. Never copy the new versions into the command without a
1167
+ new yes.
1168
+
1169
+ Add `--json` for stable output; a code 2 result holds the command in
1170
+ `accept_command`. Exit codes: 0 success, 1 failure, 2
1171
+ confirmation needed, 3 not signed in (the user runs `login` or `git-login`).
1172
+ After acceptance the command lists each deploy that started.
1173
+
1174
+ ---
1175
+
1140
1176
  ## Production diagnostics & stuck threads
1141
1177
 
1142
1178
  A thread that shows "working" forever has a precise signature: a request log
@@ -1196,6 +1232,42 @@ All three are gated by the `logs` permission on hosted deployments.
1196
1232
 
1197
1233
  ---
1198
1234
 
1235
+ ## After a push
1236
+
1237
+ A project on Standard Agents hosting deploys from git: the platform builds each pushed commit. A push that git accepts is not a deploy, and the build can fail after the push. Check every push with the CLI. The commands use the project key in `.dev.vars`, or the account sign-in from `agents login`; `agents rollback` and `agents redeploy` need that sign-in. Each command accepts `--json` and never prompts.
1238
+
1239
+ ```bash
1240
+ agents deploy # push, then follow the build; exits 0 only when the commit was deployed
1241
+ agents builds # recent builds: id, status, environment, commit, branch
1242
+ agents builds status # the build of the checked-out commit
1243
+ agents builds status --commit <sha> # the build of another commit
1244
+ agents builds status <build> --wait # wait for a running build to end
1245
+ agents builds logs <build> # the build log
1246
+ agents builds logs <build> --follow # stream the log of a running build
1247
+ agents builds retry <build> --wait # start a failed build again and wait for it
1248
+ agents rollback --yes --wait # make the earlier production build live again
1249
+ agents redeploy # deploy the live build again after an environment change
1250
+ ```
1251
+
1252
+ Without a global install, use `npx @standardagents/cli@latest <command>`.
1253
+
1254
+ 1. After `git push`, run `agents builds status --wait`. It waits while the build is `queued`, `building`, or `deploying`.
1255
+ 2. When the status is `failed`, read `agents builds logs`, fix the cause in a new commit, and push again. Use `agents builds retry` only when the failure was not caused by the code.
1256
+ 3. When production is broken after a build went live, run `agents rollback --yes --wait`, then fix the code in a new commit. Rollback applies to production only.
1257
+
1258
+ | Exit code | Meaning | Next step |
1259
+ | --- | --- | --- |
1260
+ | 0 | Done. For a wait: the commit was deployed. | None. |
1261
+ | 1 | The build failed, or the platform refused the request. | Read `agents builds logs`. |
1262
+ | 2 | The command line, the checkout, or the named build is not usable. | Read the message. |
1263
+ | 3 | Not signed in, or the command needs an account sign-in. | Ask the user to run `agents login`. |
1264
+ | 4 | The platform needs the terms accepted before it builds. | Ask the user to run `npx @standardagents/cli terms accept`. It starts the refused build after the acceptance; `npx @standardagents/cli builds retry` starts it later. |
1265
+ | 5 | The time limit passed while the build was still in progress. | Run `agents builds status --wait` again, or raise `--timeout <seconds>`. |
1266
+
1267
+ Only a person can sign in or accept the terms. Do not try to do either for the user.
1268
+
1269
+ ---
1270
+
1199
1271
  ## Implementation checking
1200
1272
 
1201
1273
  When you edit `agents/`, `prompts/`, `handlers/`, `models/`, `tools/`, `hooks/`, or `worker/`, validate before claiming the change is done.