@nathanstephenson/flow 0.1.0 → 0.1.2
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 +10 -2
- package/dist/backend/fake/index.js +3 -1
- package/dist/backend/pi/effort-capabilities.js +12 -0
- package/dist/backend/pi/index.js +25 -36
- package/dist/backend/pi/workflow-subagent.js +8 -3
- package/dist/build-id +1 -1
- package/dist/cli/application.js +9 -1
- package/dist/cli/bootstrap.js +424 -37
- package/dist/cli/host-control.js +2 -2
- package/dist/cli/install-guard.js +57 -11
- package/dist/cli/systemd-update.js +129 -0
- package/dist/cli/update.js +64 -17
- package/dist/cli/web-update.js +376 -0
- package/dist/client/model-choices.js +22 -4
- package/dist/client/reduce.js +18 -6
- package/dist/client/status.js +34 -20
- package/dist/client/workflow-effort.js +30 -0
- package/dist/daemon/credential-redaction.js +97 -4
- package/dist/daemon/host-control-routes.js +18 -2
- package/dist/daemon/host.js +341 -74
- package/dist/daemon/release-checker.js +104 -0
- package/dist/daemon/runtime.js +12 -4
- package/dist/daemon/server.js +98 -15
- package/dist/daemon/summariser.js +81 -15
- package/dist/daemon/update-api.js +3 -0
- package/dist/daemon/workflow-executions.js +146 -15
- package/dist/protocol/update.js +1 -0
- package/dist/tui/app.js +104 -10
- package/dist/tui/keys.js +46 -10
- package/dist/tui/render.js +58 -13
- package/dist/workflows/records.js +3 -1
- package/dist/workflows/scheduler.js +15 -1
- package/package.json +1 -1
- package/web/dist/apple-touch-icon.png +0 -0
- package/web/dist/assets/index-BlZBshi8.js +170 -0
- package/web/dist/assets/index-DWF4-3Fh.css +2 -0
- package/web/dist/assets/{settings-mcp-CcT0ADJR.js → settings-mcp-ZMIfuuZU.js} +1 -1
- package/web/dist/assets/{settings-secrets-CK4uF7fd.js → settings-secrets-CgTrBpi2.js} +1 -1
- package/web/dist/assets/settings-workflows-1DMYfZtn.js +23 -0
- package/web/dist/assets/{workflows-D4T4Gy_7.css → workflows-9aO6cptD.css} +1 -1
- package/web/dist/assets/workflows-CBuB_bva.js +7 -0
- package/web/dist/assets/workflows-pane-DPXGg0na.js +1 -0
- package/web/dist/favicon-16x16.png +0 -0
- package/web/dist/favicon-32x32.png +0 -0
- package/web/dist/favicon.ico +0 -0
- package/web/dist/favicon.svg +8 -0
- package/web/dist/index.html +8 -3
- package/web/dist/safari-pinned-tab.svg +4 -0
- package/web/dist/assets/index-BC0gLS53.js +0 -106
- package/web/dist/assets/index-CCeZYKES.css +0 -2
- package/web/dist/assets/settings-workflows-CrbZF-nM.js +0 -23
- package/web/dist/assets/workflow-editors-naPqAmYO.js +0 -65
- package/web/dist/assets/workflows-hh6ioeEA.js +0 -7
- package/web/dist/assets/workflows-pane-Db-MHf7Z.js +0 -1
|
@@ -56,7 +56,7 @@ export class WorkflowScheduler {
|
|
|
56
56
|
this.active.delete(active.record.id);
|
|
57
57
|
this.slots.delete(sessionId);
|
|
58
58
|
}
|
|
59
|
-
start(definition, session, input, testStepId, launchId) {
|
|
59
|
+
start(definition, session, input, testStepId, launchId, namingEligible = false) {
|
|
60
60
|
if (this.occupied(session.sessionId))
|
|
61
61
|
throw new Error('Agent Session workflow slot is occupied');
|
|
62
62
|
const graph = validateDefinition(definition);
|
|
@@ -73,6 +73,7 @@ export class WorkflowScheduler {
|
|
|
73
73
|
version: 1, id: randomUUID(), sessionId: session.sessionId, scope: session.scope,
|
|
74
74
|
definition: graph.definition, input: parsed, status: 'running', startedAt: Date.now(),
|
|
75
75
|
...(launchId ? { launchId } : {}),
|
|
76
|
+
...(namingEligible && testStepId === undefined ? { naming: 'pending' } : {}),
|
|
76
77
|
steps: Object.fromEntries(graph.order.map(step => [step.id, { status: testStep && step.id !== testStep.id ? 'skipped' : 'pending', attempts: [] }])),
|
|
77
78
|
...(testStepId === undefined ? { loops: Object.fromEntries(graph.loops.map(loop => [loop.headerId, { activation: 0, try: 0, phase: 'inactive', grants: [] }])) } : { testStepId }),
|
|
78
79
|
};
|
|
@@ -87,6 +88,19 @@ export class WorkflowScheduler {
|
|
|
87
88
|
return structuredClone(active.record);
|
|
88
89
|
return this.store.getExecution(sessionId, executionId);
|
|
89
90
|
}
|
|
91
|
+
/** Atomically consume an automatic naming request before model work starts. */
|
|
92
|
+
claimNaming(sessionId, executionId) {
|
|
93
|
+
const active = this.active.get(executionId);
|
|
94
|
+
const record = active?.record.sessionId === sessionId ? active.record : this.store.getExecution(sessionId, executionId);
|
|
95
|
+
if (record.naming !== 'pending' || record.testStepId)
|
|
96
|
+
return false;
|
|
97
|
+
record.naming = 'requested';
|
|
98
|
+
if (active?.record === record)
|
|
99
|
+
this.persist(active);
|
|
100
|
+
else
|
|
101
|
+
this.store.saveExecution(record);
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
90
104
|
wait(sessionId, executionId) {
|
|
91
105
|
const active = this.require(sessionId, executionId);
|
|
92
106
|
if (active.persistenceError)
|
package/package.json
CHANGED
|
Binary file
|