@anyforge/control 0.8.0 → 0.9.0
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 +50 -0
- package/dist/cli.js +220 -110
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -312,3 +312,53 @@ check the company's BYOK provider key and the agent's endpoint. If the displayed
|
|
|
312
312
|
company or user is wrong, reconnect with `anyforge init` rather than editing an ID.
|
|
313
313
|
The server route and its Firestore indexes must be deployed before a newly built
|
|
314
314
|
CLI can use this diagnostic command; a 404 is not an authentication verdict.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
### Code Studio
|
|
318
|
+
|
|
319
|
+
Studio commands require `@anyforge/control` **0.9.0 or later** and a deployed
|
|
320
|
+
Studio API. Install with `npm install -g @anyforge/control@^0.9.0` after its npm
|
|
321
|
+
release; a repository build or application deployment does not update an
|
|
322
|
+
installed CLI. Run `anyforge --version` to check the installed version.
|
|
323
|
+
|
|
324
|
+
Use a dedicated Studio key from Settings → API keys. Standard `write` and legacy
|
|
325
|
+
keys do not authorize Studio execution or publication. Owners and operators, plus editors explicitly enabled by their company owner, can
|
|
326
|
+
use these commands; service accounts cannot own interactive Studio sessions.
|
|
327
|
+
|
|
328
|
+
```sh
|
|
329
|
+
anyforge studio list --json
|
|
330
|
+
anyforge studio usage SESSION --json
|
|
331
|
+
anyforge studio create --repo acme/app --branch feature/fix --context "Fix the form" --json
|
|
332
|
+
anyforge studio continue SESSION --file src/form.ts --context "Review this local reference"
|
|
333
|
+
anyforge studio open SESSION
|
|
334
|
+
anyforge studio run SESSION --context "Implement and test the fix" --input '{"maxTotalTokens":40000}'
|
|
335
|
+
anyforge studio events RUN --cursor 12 --json
|
|
336
|
+
anyforge studio answer RUN --context "Use option A" --input '{"questionId":"QUESTION"}'
|
|
337
|
+
anyforge studio cancel RUN
|
|
338
|
+
anyforge studio changes SESSION
|
|
339
|
+
anyforge studio commit SESSION --input '{"message":"Fix form","expectedRevision":"REVISION"}'
|
|
340
|
+
anyforge studio push SESSION --input '{"expectedHeadSha":"SHA"}'
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
`create` and `continue` prepare context without running code. `--file` sends only
|
|
344
|
+
that file (20 KB maximum), labels its local branch/commit and uncommitted state,
|
|
345
|
+
and does not copy local edits into the remote checkout. `--initiative ID` assigns
|
|
346
|
+
a new session to an existing initiative; omission starts direct work. Keep the
|
|
347
|
+
returned session/run IDs and event cursor to reconnect. Reuse an explicit
|
|
348
|
+
`idempotencyKey` in `--input` when retrying a create or run request.
|
|
349
|
+
|
|
350
|
+
`studio usage SESSION` reads the owned session's recorded billing subtotal,
|
|
351
|
+
limited to the newest 200 rows, grouped by actual model, product, run and leg.
|
|
352
|
+
It preserves the API's `truncated`, `coverage` and `pending` fields. Historical
|
|
353
|
+
coverage may be incomplete; missing attribution is unavailable cost, not zero.
|
|
354
|
+
Provider cost and platform fee remain separate fields. This read never starts a
|
|
355
|
+
run or calculates prices locally.
|
|
356
|
+
|
|
357
|
+
Read access requires `studio:read`; preparation requires `studio:write`; runs and
|
|
358
|
+
local Git operations require `studio:execute`; pushing and PR lifecycle actions
|
|
359
|
+
require `studio:publish`. External runs use audited local coding, reads and reviews. Hosted shell, browser,
|
|
360
|
+
connectors, Oracle, crew dispatch, workflows and approvals require browser Studio
|
|
361
|
+
with its separate role and confirmation gates; publish scope does not unlock them. Opted-in editors can edit, review, commit and publish
|
|
362
|
+
with their own GitHub identity, but cannot dispatch crews or approve work.
|
|
363
|
+
Review changes before committing, prefer draft PRs, and confirm ready/merge in browser Studio only
|
|
364
|
+
for a specific PR and exact head after checks and review pass.
|