@mastra/factory 0.2.2-alpha.0 → 0.2.2-alpha.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/CHANGELOG.md +26 -0
- package/dist/auth.d.ts +2 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +22 -2
- package/dist/auth.js.map +1 -1
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +411 -244
- package/dist/factory.js.map +1 -1
- package/dist/index.js +411 -244
- package/dist/index.js.map +1 -1
- package/dist/integrations/github/integration.js +85 -37
- package/dist/integrations/github/integration.js.map +1 -1
- package/dist/integrations/github/routes.d.ts.map +1 -1
- package/dist/integrations/github/routes.js +85 -37
- package/dist/integrations/github/routes.js.map +1 -1
- package/dist/integrations/github/sandbox.d.ts +2 -0
- package/dist/integrations/github/sandbox.d.ts.map +1 -1
- package/dist/integrations/github/sandbox.js +28 -8
- package/dist/integrations/github/sandbox.js.map +1 -1
- package/dist/integrations/platform/github/integration.d.ts.map +1 -1
- package/dist/integrations/platform/github/integration.js +119 -39
- package/dist/integrations/platform/github/integration.js.map +1 -1
- package/dist/routes/config.d.ts.map +1 -1
- package/dist/routes/config.js +1 -4
- package/dist/routes/config.js.map +1 -1
- package/dist/routes/surface.js +1 -4
- package/dist/routes/surface.js.map +1 -1
- package/dist/routes/work-items.js.map +1 -1
- package/dist/rules/binding-context.js.map +1 -1
- package/dist/rules/dispatcher.d.ts.map +1 -1
- package/dist/rules/dispatcher.js +7 -1
- package/dist/rules/dispatcher.js.map +1 -1
- package/dist/rules/processor.js.map +1 -1
- package/dist/rules/tools.js.map +1 -1
- package/dist/spa-static.d.ts.map +1 -1
- package/dist/spa-static.js +1 -0
- package/dist/spa-static.js.map +1 -1
- package/dist/storage/domains/source-control/base.d.ts +9 -0
- package/dist/storage/domains/source-control/base.d.ts.map +1 -1
- package/dist/storage/domains/source-control/base.js +4 -0
- package/dist/storage/domains/source-control/base.js.map +1 -1
- package/dist/storage/domains/source-control/inmemory.d.ts +4 -0
- package/dist/storage/domains/source-control/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/source-control/inmemory.js +4 -0
- package/dist/storage/domains/source-control/inmemory.js.map +1 -1
- package/dist/storage/domains/work-items/base.d.ts.map +1 -1
- package/dist/storage/domains/work-items/base.js +20 -4
- package/dist/storage/domains/work-items/base.js.map +1 -1
- package/dist/storage/domains/work-items/metrics.js.map +1 -1
- package/dist/timing.d.ts +15 -0
- package/dist/timing.d.ts.map +1 -0
- package/dist/timing.js +27 -0
- package/dist/timing.js.map +1 -0
- package/dist/workspace.d.ts +2 -3
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +104 -65
- package/dist/workspace.js.map +1 -1
- package/factory-skills/factory-review/SKILL.md +9 -2
- package/package.json +8 -8
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: factory-review
|
|
3
|
-
description: Review a pull request for a Factory work item — history and context first, then verdict — and mark the review complete
|
|
3
|
+
description: Review a pull request for a Factory work item — history and context first, then a verdict published on the PR — and mark the review complete
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Factory Review
|
|
7
7
|
|
|
8
|
-
Review the pull request behind this Factory work item — build its history and context first, then judge correctness, tests, scope, and pattern-consistency — and finish by posting a verdict handoff and requesting the stage transition.
|
|
8
|
+
Review the pull request behind this Factory work item — build its history and context first, then judge correctness, tests, scope, and pattern-consistency — and finish by publishing the verdict on the PR, posting a verdict handoff, and requesting the stage transition.
|
|
9
9
|
|
|
10
10
|
You are working in a bound Factory session. Complete the full review in one pass, then make `factory_transition_work_item` your terminal step — one transition request, repeated only if the governed transition rejects it and only with the rejection reason addressed. Never wait for or solicit human input mid-run; every judgment call is yours to resolve.
|
|
11
11
|
|
|
@@ -58,6 +58,13 @@ First, post the **review handoff** as your final message in the conversation. It
|
|
|
58
58
|
- **Assumptions** — every recorded judgment call from the run.
|
|
59
59
|
- **Open questions** — any decision that genuinely needs a human.
|
|
60
60
|
|
|
61
|
+
Next, publish the review on the PR itself — this is part of every pass, not something to wait to be asked for. Write the handoff body to a temp file (avoids shell-quoting breakage) and submit a PR review matching the verdict:
|
|
62
|
+
|
|
63
|
+
- approve → `gh pr review <number> --approve --body-file <file>`
|
|
64
|
+
- request changes → `gh pr review <number> --request-changes --body-file <file>`
|
|
65
|
+
|
|
66
|
+
If GitHub rejects the review submission (e.g. the token authored the PR and cannot approve or request changes on it), fall back to `gh pr comment <number> --body-file <file>` so the verdict still lands on the PR, and record the fallback as an assumption.
|
|
67
|
+
|
|
61
68
|
Then make your terminal `factory_transition_work_item` call. Take the current stage and `expectedRevision` from the `factory-phase` signal. Request `stage: "done"` (review board) **for both verdicts** — the transition marks the review pass complete; what to do about requested changes is the human's call from the handoff.
|
|
62
69
|
|
|
63
70
|
`rationale` (max 1000 chars) — one or two sentences: review complete, verdict, and the headline reason.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/factory",
|
|
3
|
-
"version": "0.2.2-alpha.
|
|
3
|
+
"version": "0.2.2-alpha.1",
|
|
4
4
|
"description": "Mastra Software Factory module: the server core behind the Mastra Software Factory — storage domains, integrations, and surfaces for agent-powered software delivery",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@octokit/rest": "^22.0.1",
|
|
51
51
|
"hono": "^4.12.8",
|
|
52
52
|
"zod": "^4.3.6",
|
|
53
|
-
"@mastra/auth-studio": "1.3.
|
|
54
|
-
"@mastra/
|
|
55
|
-
"@mastra/code-sdk": "1.0.3-alpha.
|
|
56
|
-
"@mastra/
|
|
53
|
+
"@mastra/auth-studio": "1.3.3-alpha.0",
|
|
54
|
+
"@mastra/auth-workos": "1.6.4",
|
|
55
|
+
"@mastra/code-sdk": "1.0.3-alpha.1",
|
|
56
|
+
"@mastra/core": "1.54.0-alpha.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/node": "22.20.1",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"typescript-eslint": "^8.57.0",
|
|
64
64
|
"vitest": "4.1.10",
|
|
65
65
|
"@internal/lint": "0.0.117",
|
|
66
|
-
"@mastra/
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
66
|
+
"@mastra/libsql": "1.18.0-alpha.0",
|
|
67
|
+
"@mastra/pg": "1.18.0-alpha.1",
|
|
68
|
+
"@internal/types-builder": "0.0.92"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=22.19.0"
|