@theagilemonkeys/facility 0.4.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theagilemonkeys/facility",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "description": "Run an AI crew on your GitHub repo: agents that plan before building, build to your standard, verify on a provisioned environment, and never merge their own work.",
5
5
  "keywords": [
6
6
  "ai",
@@ -104,7 +104,7 @@ const ADMIN_FLAGS = {
104
104
  ...WRITE_FLAGS,
105
105
  ],
106
106
  conversations: ["agent", "title", ...WRITE_FLAGS],
107
- github: ["query", "state", "cursor", "agent", "limit", ...WRITE_FLAGS],
107
+ github: ["query", "state", "cursor", "agent", "limit", "repo", ...WRITE_FLAGS],
108
108
  providers: ["provider", "name", "secret", "base-url", ...PAGE_FLAGS, ...WRITE_FLAGS],
109
109
  budgets: ["id", "scope", "project", "agent", "period", "limit-cents", "mode", "enabled", ...PAGE_FLAGS, ...WRITE_FLAGS],
110
110
  registry: [
@@ -226,9 +226,9 @@ const ADMIN_SUBCOMMAND_FLAGS = {
226
226
  installations: [],
227
227
  repos: ["query"],
228
228
  issues: ["state", "query", "cursor", "limit"],
229
- issue: [],
229
+ issue: ["repo"],
230
230
  sync: [...WRITE_FLAGS],
231
- trigger: ["agent", ...WRITE_FLAGS],
231
+ trigger: ["agent", "repo", ...WRITE_FLAGS],
232
232
  },
233
233
  providers: {
234
234
  __default: [...PAGE_FLAGS],
@@ -690,7 +690,12 @@ async function github(args, ctx, flags) {
690
690
  if (sub === "issue") {
691
691
  const project = await ctx.resolveProject(args[1]);
692
692
  const number = integerArgument(args[2], "issue number");
693
- return details(ctx, await ctx.api("GET", `/v1/projects/${project.id}/issues/${number}`));
693
+ return details(
694
+ ctx,
695
+ await ctx.api("GET", `/v1/projects/${project.id}/issues/${number}`, {
696
+ query: compact({ repoId: stringFlag(flags.repo) }),
697
+ }),
698
+ );
694
699
  }
695
700
  if (sub === "sync") {
696
701
  const project = await ctx.resolveProject(args[1]);
@@ -704,7 +709,10 @@ async function github(args, ctx, flags) {
704
709
  const result = await ctx.api(
705
710
  "POST",
706
711
  `/v1/projects/${project.id}/issues/${number}/trigger`,
707
- { body: { agent } },
712
+ {
713
+ query: compact({ repoId: stringFlag(flags.repo) }),
714
+ body: { agent },
715
+ },
708
716
  );
709
717
  return changed(ctx, result, `triggered session ${result.id} from issue #${number}`);
710
718
  }
@@ -19,8 +19,8 @@ and how far you got. A partial deliverable is a failure.
19
19
  You are NOT on a bare checkout. A prior CI step already installed dependencies
20
20
  and ran the provision command (`{{PROVISION_CMD}}`), and you run with full
21
21
  bypass permissions on an isolated, ephemeral runner. Never claim the
22
- environment is unavailable verify by running the checks. In platform runs,
23
- Facility owns the final signed commit, push, and GitHub App pull-request call;
22
+ environment is unavailable. In platform runs, Facility owns the final signed
23
+ commit, push, and GitHub App pull-request call;
24
24
  you supply its exact semantic branch, commit message, PR title, and PR body in
25
25
  the delivery manifest described in the injected prompt. Do not require `gh`, a
26
26
  writable clone credential, or a local signing key.
@@ -30,7 +30,11 @@ writable clone credential, or a local signing key.
30
30
  - Do the full scope the task requires and finish it; keep each edit clean,
31
31
  cohesive, and aligned with existing patterns. Read only the code you need;
32
32
  run independent commands in parallel.
33
- - Verify by actually running the relevant checks: {{CHECKS_INLINE}}.
33
+ - Verify by actually running relevant checks. In a repo-lane builder, run the
34
+ configured suite (`{{CHECKS_INLINE}}`). In a platform sandbox, run focused
35
+ checks that help you iterate, but do not duplicate that complete suite:
36
+ GitHub Actions runs it authoritatively on the durable draft PR and CI repair
37
+ agents continue on that same branch if it fails.
34
38
  - Apply the repo skills in `.claude/skills/` — `working-to-standard` while
35
39
  implementing, `maintainable-software` for design judgment,
36
40
  `reviewing-to-standard` when you self-review. They are part of this
@@ -45,7 +49,7 @@ writable clone credential, or a local signing key.
45
49
  no agent/tool prefix in branch names.
46
50
  - Signed bot authorship is the complete attribution. Never add a
47
51
  `Co-authored-by` trailer for the requester or any other person.
48
- - For issue-triggered work, author the complete non-draft PR metadata in
52
+ - For issue-triggered work, author the complete PR metadata in
49
53
  `.agent-sdlc/delivery.json`; Facility transports it exactly. A generic title,
50
54
  boilerplate body, or link that asks a human to create the PR is not delivery.
51
55
  - Finish with one concise, team-lead-ready summary: what changed and why, the
@@ -54,11 +58,13 @@ writable clone credential, or a local signing key.
54
58
  </output_contract>
55
59
 
56
60
  <completion_criteria>
57
- Done only when the change is implemented (not proposed), the right checks were
58
- run and pass (or a failure is explicitly reported with what ran), and the
59
- completion checklist in `STANDARD.md` is satisfied. The workflow independently
60
- re-runs the configured checks and fails closed unless a semantic branch, verified
61
- commit, bot-authored PR, and machine-readable delivery receipt all exist.
61
+ Done only when the change is implemented (not proposed), the checks appropriate
62
+ to the execution lane were run and reported accurately, and the completion
63
+ checklist in `STANDARD.md` is satisfied. The repo lane fails closed on its
64
+ configured checks. The platform lane fails closed unless a semantic branch,
65
+ verified commit, bot-authored draft PR, and machine-readable delivery receipt
66
+ all exist; GitHub Actions owns final acceptance and failed CI remains visible
67
+ for bounded repair iterations on that same PR.
62
68
  </completion_criteria>
63
69
 
64
70
  <safety_rules>