agent-valley 0.3.0 → 1.0.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/LICENSE +661 -0
- package/README.md +503 -0
- package/dist/assets/LICENSE +661 -0
- package/dist/assets/plugin.json +18 -0
- package/dist/assets/skills/av/SKILL.md +41 -0
- package/dist/index.js +69960 -27154
- package/dist/supervisor.js +15536 -17
- package/package.json +10 -17
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: av
|
|
3
|
+
description: Delegate a repository goal to Agent Valley's Chief Director, inspect saved missions and evidence reports, or resume or cancel an AV mission. Use when the user asks AV or the Chief Director to own a goal through planning, Actor work, independent review, and verification.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Agent Valley
|
|
7
|
+
|
|
8
|
+
Use the configured `av` MCP server for the repository the user selected. The Chief Director owns execution and supervision; report the mission's actual state and evidence.
|
|
9
|
+
|
|
10
|
+
## Prevent recursive delegation
|
|
11
|
+
|
|
12
|
+
Before `av_order` or `av_resume`, check the current process environment for `AGENT_VALLEY_MANAGED_RUN` when the client has a local shell/environment tool. Check only this variable; do not dump the environment or read credentials. If its value is `1`, or your assignment identifies you as an AV Chief Director or Actor, perform your assigned work directly. Do not start or resume another AV mission or run a nested AV setup.
|
|
13
|
+
|
|
14
|
+
For web clients without a local environment tool, read `av_missions` from the configured AV server. Its structured `executionContext` must report `managed: false` and `delegationAllowed: true` before delegation. Use its advertised workspace instead of inventing a local repository path. A managed assignment or a local `AGENT_VALLEY_MANAGED_RUN=1` always takes priority over a remote server's context. If neither the local environment nor the server establishes the context, do not delegate until it is established.
|
|
15
|
+
|
|
16
|
+
## Start the goal
|
|
17
|
+
|
|
18
|
+
1. Resolve the intended repository from the configured server's `av_missions` workspace, or to an absolute local path when local tools are available. Confirm it matches the user's intended project. Keep the user's goal, deliverables, constraints, and acceptance criteria intact. A request for an explanation or comparison alone does not start a mission.
|
|
19
|
+
2. Check `av_missions` for an existing mission when the request might continue earlier work. Use `av_status(missionId)` to inspect it before deciding to resume. Avoid creating duplicate orders.
|
|
20
|
+
3. Before the first `av_order` call, generate and retain an opaque `requestId` together with its exact input. Call it with that ID, `goal`, and, when needed, `workspace`. Supply `verify`, `parallel`, `runs`, `duration`, or `cost` only for user-specified overrides. Retry an uncertain or timed-out submission with the same ID and identical input; inspect missions before resubmitting. Never introduce a new request ID merely because the original response was lost.
|
|
21
|
+
4. Keep the returned mission ID. An accepted or started order is incomplete. Inspect `av_status` at reasonable intervals and read `av_report` when a report is available. Do not resubmit the goal because a long run has not finished.
|
|
22
|
+
|
|
23
|
+
AV reads the saved repository settings to select the Chief Director and available Actors. Do not invent model availability, measurements, or a successful outcome.
|
|
24
|
+
|
|
25
|
+
## Supervise and report
|
|
26
|
+
|
|
27
|
+
- `av_missions`: list saved missions for the bound repository.
|
|
28
|
+
- `av_status(missionId)`: read progress, current status, and blockers.
|
|
29
|
+
- `av_report(missionId)`: read the actual report and its verification evidence.
|
|
30
|
+
- `av_resume(missionId, retry?, runs?, duration?, cost?, rounds?, requestId?)`: continue an existing mission. Preserve spent budgets; increase limits only within the user's authorization. Generate and retain a request ID before the first resume call and reuse it with identical input for every retry of that request.
|
|
31
|
+
- `av_cancel(missionId)`: cancel when the user asks to stop the mission.
|
|
32
|
+
|
|
33
|
+
An accepted or `starting` response is incomplete. Reconnecting to MCP does not cancel or restart the independently supervised mission; inspect the saved mission before choosing a next action. Treat `completed` as success only with the report's verified result. Explain `paused` or `failed` using its recorded reason and the next required action. `waiting`, scheduled observation, planning, or active Actor work is still incomplete. State the mission ID and current status if the client session ends before completion. A report file or delivery request does not prove that a third-party provider accepted an attachment.
|
|
34
|
+
|
|
35
|
+
Explain the result in plain language: what changed, how it was checked, remaining work, and material limits. Distinguish observed metrics and token usage from estimates and unknown costs. Link the actual artifacts the report identifies; never claim an upload, deployment, or merge from a planned action.
|
|
36
|
+
|
|
37
|
+
## Authorization
|
|
38
|
+
|
|
39
|
+
Starting a mission does not create permission to publish, merge, deploy, contact people, buy services, spend additional money, raise budgets, or change client approval settings. Carry the user's existing authorization and constraints into the goal. Stop at the required approval boundary and explain what needs approval. Do not enable trust or bypass permissions while installing or using this integration.
|
|
40
|
+
|
|
41
|
+
If AV tools or configuration are missing and the user has requested installation, follow the [agent setup procedure](https://raw.githubusercontent.com/first-fluke/agent-valley/main/AGENT_SETUP.md). The user-facing initiating local agent becomes the Chief Director using its trusted current runtime identity; carry its confirmed active model or explicitly use `--model ''` for the native default when the exact model is unknown. Installer workers preserve the initiating session's vendor/model; an explicit user override takes precedence. Reading that document alone does not authorize installation. Preserve the selected project binding, report login/reload/trust actions that remain, and never start a mission just to check setup. In a managed run, perform the assignment directly and report missing prerequisites instead of starting nested setup. If configuration already exists, follow the reported key/file guidance or repair the project integration within the user's authorization. Do not simulate a mission or silently use another repository.
|