@exaudeus/workrail 3.40.0 → 3.42.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/dist/cli/commands/init.js +0 -3
- package/dist/cli-worktrain.js +48 -11
- package/dist/cli.js +0 -18
- package/dist/config/app-config.d.ts +0 -16
- package/dist/config/app-config.js +0 -14
- package/dist/config/config-file.js +0 -3
- package/dist/console-ui/assets/index-DGj8EsFR.css +1 -0
- package/dist/console-ui/assets/index-DwfWMKvv.js +28 -0
- package/dist/console-ui/index.html +2 -2
- package/dist/context-assembly/deps.d.ts +8 -0
- package/dist/context-assembly/deps.js +2 -0
- package/dist/context-assembly/index.d.ts +6 -0
- package/dist/context-assembly/index.js +50 -0
- package/dist/context-assembly/infra.d.ts +3 -0
- package/dist/context-assembly/infra.js +154 -0
- package/dist/context-assembly/types.d.ts +30 -0
- package/dist/context-assembly/types.js +2 -0
- package/dist/coordinators/pr-review.d.ts +20 -1
- package/dist/coordinators/pr-review.js +189 -4
- package/dist/daemon/daemon-events.d.ts +9 -1
- package/dist/daemon/soul-template.d.ts +2 -2
- package/dist/daemon/soul-template.js +11 -1
- package/dist/daemon/workflow-runner.d.ts +14 -1
- package/dist/daemon/workflow-runner.js +406 -25
- package/dist/di/container.js +1 -25
- package/dist/di/tokens.d.ts +0 -3
- package/dist/di/tokens.js +0 -3
- package/dist/domain/execution/state.d.ts +6 -6
- package/dist/engine/engine-factory.js +0 -1
- package/dist/infrastructure/console-defaults.d.ts +1 -0
- package/dist/infrastructure/console-defaults.js +4 -0
- package/dist/infrastructure/session/index.d.ts +0 -1
- package/dist/infrastructure/session/index.js +1 -3
- package/dist/manifest.json +138 -122
- package/dist/mcp/handlers/session.d.ts +1 -0
- package/dist/mcp/handlers/session.js +61 -13
- package/dist/mcp/handlers/v2-workflow.d.ts +2 -2
- package/dist/mcp/output-schemas.d.ts +234 -234
- package/dist/mcp/server.js +1 -18
- package/dist/mcp/tools.d.ts +2 -2
- package/dist/mcp/transports/http-entry.js +0 -2
- package/dist/mcp/transports/stdio-entry.js +1 -2
- package/dist/mcp/types.d.ts +0 -2
- package/dist/mcp/v2/tools.d.ts +24 -24
- package/dist/trigger/daemon-console.d.ts +2 -0
- package/dist/trigger/daemon-console.js +1 -1
- package/dist/trigger/trigger-listener.d.ts +2 -0
- package/dist/trigger/trigger-listener.js +3 -1
- package/dist/trigger/trigger-router.d.ts +4 -3
- package/dist/trigger/trigger-router.js +4 -3
- package/dist/trigger/trigger-store.js +17 -4
- package/dist/v2/durable-core/schemas/artifacts/assessment.d.ts +2 -2
- package/dist/v2/durable-core/schemas/artifacts/coordinator-signal.d.ts +2 -2
- package/dist/v2/durable-core/schemas/artifacts/loop-control.d.ts +6 -6
- package/dist/v2/durable-core/schemas/artifacts/review-verdict.d.ts +6 -6
- package/dist/v2/durable-core/schemas/compiled-workflow/index.d.ts +56 -56
- package/dist/v2/durable-core/schemas/execution-snapshot/blocked-snapshot.d.ts +83 -83
- package/dist/v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.d.ts +1024 -1024
- package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +2336 -2336
- package/dist/v2/durable-core/schemas/session/dag-topology.d.ts +6 -6
- package/dist/v2/durable-core/schemas/session/events.d.ts +339 -339
- package/dist/v2/durable-core/schemas/session/gaps.d.ts +30 -30
- package/dist/v2/durable-core/schemas/session/manifest.d.ts +6 -6
- package/dist/v2/durable-core/schemas/session/outputs.d.ts +8 -8
- package/dist/v2/durable-core/schemas/session/validation-event.d.ts +3 -3
- package/dist/v2/usecases/console-routes.d.ts +2 -1
- package/dist/v2/usecases/console-routes.js +29 -5
- package/dist/v2/usecases/console-service.js +14 -0
- package/dist/v2/usecases/console-types.d.ts +1 -0
- package/docs/authoring.md +16 -16
- package/docs/design/context-assembly-design-candidates.md +199 -0
- package/docs/design/context-assembly-implementation-plan.md +211 -0
- package/docs/design/context-assembly-review-findings.md +112 -0
- package/docs/design/coordinator-message-queue-drain-plan.md +241 -0
- package/docs/design/coordinator-message-queue-drain-review.md +120 -0
- package/docs/design/coordinator-message-queue-drain.md +289 -0
- package/docs/design/shaping-workflow-external-research.md +119 -0
- package/docs/discovery/late-bound-goals-impl-plan.md +147 -0
- package/docs/discovery/late-bound-goals-review.md +82 -0
- package/docs/discovery/late-bound-goals.md +118 -0
- package/docs/discovery/steer-endpoint-design-candidates.md +288 -0
- package/docs/discovery/steer-endpoint-design-review-findings.md +104 -0
- package/docs/discovery/steer-endpoint-implementation-plan.md +284 -0
- package/docs/ideas/backlog.md +356 -0
- package/docs/ideas/design-candidates-console-session-tree-impl.md +64 -0
- package/docs/ideas/design-candidates-session-tree-view.md +196 -0
- package/docs/ideas/design-review-findings-console-session-tree-impl.md +75 -0
- package/docs/ideas/design-review-findings-session-tree-view.md +88 -0
- package/docs/ideas/implementation_plan_session_tree_view.md +238 -0
- package/package.json +2 -1
- package/spec/authoring-spec.json +16 -16
- package/spec/shape.schema.json +178 -0
- package/spec/workflow-tags.json +232 -47
- package/workflows/coding-task-workflow-agentic.json +491 -480
- package/workflows/wr.shaping.json +182 -0
- package/dist/console-ui/assets/index-8dh0Psu-.css +0 -1
- package/dist/console-ui/assets/index-CXWCAonr.js +0 -28
- package/dist/infrastructure/session/DashboardHeartbeat.d.ts +0 -8
- package/dist/infrastructure/session/DashboardHeartbeat.js +0 -39
- package/dist/infrastructure/session/DashboardLockRelease.d.ts +0 -2
- package/dist/infrastructure/session/DashboardLockRelease.js +0 -29
- package/dist/infrastructure/session/HttpServer.d.ts +0 -60
- package/dist/infrastructure/session/HttpServer.js +0 -912
- package/workflows/coding-task-workflow-agentic.lean.v2.json +0 -648
- package/workflows/coding-task-workflow-agentic.v2.json +0 -324
package/dist/di/container.js
CHANGED
|
@@ -81,8 +81,6 @@ async function registerConfig(env) {
|
|
|
81
81
|
tsyringe_1.container.register(tokens_js_1.DI.Config.CacheTTL, { useValue: config.cache.ttlMs });
|
|
82
82
|
tsyringe_1.container.register(tokens_js_1.DI.Config.WorkflowDir, { useValue: config.paths.workflowDir });
|
|
83
83
|
tsyringe_1.container.register(tokens_js_1.DI.Config.ProjectPath, { useValue: config.paths.projectPath });
|
|
84
|
-
tsyringe_1.container.register(tokens_js_1.DI.Config.DashboardMode, { useValue: config.dashboard.mode });
|
|
85
|
-
tsyringe_1.container.register(tokens_js_1.DI.Config.BrowserBehavior, { useValue: config.dashboard.browserBehavior });
|
|
86
84
|
}
|
|
87
85
|
if (!tsyringe_1.container.isRegistered(tokens_js_1.DI.Infra.FeatureFlags)) {
|
|
88
86
|
const { CustomEnvFeatureFlagProvider } = await Promise.resolve().then(() => __importStar(require('../config/feature-flags.js')));
|
|
@@ -156,7 +154,6 @@ async function registerServices() {
|
|
|
156
154
|
const { ToolDescriptionProvider } = await Promise.resolve().then(() => __importStar(require('../mcp/tool-description-provider.js')));
|
|
157
155
|
const { DefaultWorkflowService } = await Promise.resolve().then(() => __importStar(require('../application/services/workflow-service.js')));
|
|
158
156
|
const { SessionManager } = await Promise.resolve().then(() => __importStar(require('../infrastructure/session/SessionManager.js')));
|
|
159
|
-
const { HttpServer } = await Promise.resolve().then(() => __importStar(require('../infrastructure/session/HttpServer.js')));
|
|
160
157
|
tsyringe_1.container.register(tokens_js_1.DI.Infra.EnhancedLoopValidator, {
|
|
161
158
|
useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => c.resolve(EnhancedLoopValidator))
|
|
162
159
|
});
|
|
@@ -181,9 +178,6 @@ async function registerServices() {
|
|
|
181
178
|
tsyringe_1.container.register(tokens_js_1.DI.Infra.SessionManager, {
|
|
182
179
|
useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => c.resolve(SessionManager))
|
|
183
180
|
});
|
|
184
|
-
tsyringe_1.container.register(tokens_js_1.DI.Infra.HttpServer, {
|
|
185
|
-
useFactory: (0, tsyringe_1.instanceCachingFactory)((c) => c.resolve(HttpServer))
|
|
186
|
-
});
|
|
187
181
|
if (!tsyringe_1.container.isRegistered(tokens_js_1.DI.Mcp.DescriptionProvider)) {
|
|
188
182
|
tsyringe_1.container.registerSingleton(tokens_js_1.DI.Mcp.DescriptionProvider, ToolDescriptionProvider);
|
|
189
183
|
}
|
|
@@ -358,25 +352,7 @@ async function startAsyncServices() {
|
|
|
358
352
|
}
|
|
359
353
|
if (asyncInitialized)
|
|
360
354
|
return;
|
|
361
|
-
|
|
362
|
-
const flags = tsyringe_1.container.resolve(tokens_js_1.DI.Infra.FeatureFlags);
|
|
363
|
-
if (flags.isEnabled('sessionTools')) {
|
|
364
|
-
const server = tsyringe_1.container.resolve(tokens_js_1.DI.Infra.HttpServer);
|
|
365
|
-
try {
|
|
366
|
-
await server.start();
|
|
367
|
-
console.error('[DI] HTTP server started');
|
|
368
|
-
}
|
|
369
|
-
catch (httpError) {
|
|
370
|
-
const message = httpError instanceof Error ? httpError.message : String(httpError);
|
|
371
|
-
console.error(`[DI] Dashboard HTTP server unavailable: ${message}. MCP tools will still work.`);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
asyncInitialized = true;
|
|
375
|
-
}
|
|
376
|
-
catch (error) {
|
|
377
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
378
|
-
throw new Error(`[DI] Async services initialization failed: ${message}`);
|
|
379
|
-
}
|
|
355
|
+
asyncInitialized = true;
|
|
380
356
|
}
|
|
381
357
|
async function bootstrap(options = {}) {
|
|
382
358
|
await initializeContainer(options);
|
package/dist/di/tokens.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export declare const DI: {
|
|
|
12
12
|
readonly Infra: {
|
|
13
13
|
readonly FeatureFlags: symbol;
|
|
14
14
|
readonly SessionManager: symbol;
|
|
15
|
-
readonly HttpServer: symbol;
|
|
16
15
|
readonly ValidationEngine: symbol;
|
|
17
16
|
readonly EnhancedLoopValidator: symbol;
|
|
18
17
|
readonly SessionDataNormalizer: symbol;
|
|
@@ -55,8 +54,6 @@ export declare const DI: {
|
|
|
55
54
|
readonly CacheTTL: symbol;
|
|
56
55
|
readonly WorkflowDir: symbol;
|
|
57
56
|
readonly ProjectPath: symbol;
|
|
58
|
-
readonly DashboardMode: symbol;
|
|
59
|
-
readonly BrowserBehavior: symbol;
|
|
60
57
|
};
|
|
61
58
|
};
|
|
62
59
|
export type DIToken = typeof DI[keyof typeof DI][keyof typeof DI[keyof typeof DI]];
|
package/dist/di/tokens.js
CHANGED
|
@@ -15,7 +15,6 @@ exports.DI = {
|
|
|
15
15
|
Infra: {
|
|
16
16
|
FeatureFlags: Symbol('Infra.FeatureFlags'),
|
|
17
17
|
SessionManager: Symbol('Infra.SessionManager'),
|
|
18
|
-
HttpServer: Symbol('Infra.HttpServer'),
|
|
19
18
|
ValidationEngine: Symbol('Infra.ValidationEngine'),
|
|
20
19
|
EnhancedLoopValidator: Symbol('Infra.EnhancedLoopValidator'),
|
|
21
20
|
SessionDataNormalizer: Symbol('Infra.SessionDataNormalizer'),
|
|
@@ -58,7 +57,5 @@ exports.DI = {
|
|
|
58
57
|
CacheTTL: Symbol('Config.CacheTTL'),
|
|
59
58
|
WorkflowDir: Symbol('Config.WorkflowDir'),
|
|
60
59
|
ProjectPath: Symbol('Config.ProjectPath'),
|
|
61
|
-
DashboardMode: Symbol('Config.DashboardMode'),
|
|
62
|
-
BrowserBehavior: Symbol('Config.BrowserBehavior'),
|
|
63
60
|
},
|
|
64
61
|
};
|
|
@@ -20,12 +20,12 @@ export declare const LoopFrameSchema: z.ZodObject<{
|
|
|
20
20
|
iteration: z.ZodNumber;
|
|
21
21
|
bodyIndex: z.ZodNumber;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
loopId: string;
|
|
24
23
|
iteration: number;
|
|
24
|
+
loopId: string;
|
|
25
25
|
bodyIndex: number;
|
|
26
26
|
}, {
|
|
27
|
-
loopId: string;
|
|
28
27
|
iteration: number;
|
|
28
|
+
loopId: string;
|
|
29
29
|
bodyIndex: number;
|
|
30
30
|
}>;
|
|
31
31
|
export declare const StepInstanceIdSchema: z.ZodObject<{
|
|
@@ -34,23 +34,23 @@ export declare const StepInstanceIdSchema: z.ZodObject<{
|
|
|
34
34
|
loopId: z.ZodString;
|
|
35
35
|
iteration: z.ZodNumber;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
loopId: string;
|
|
38
37
|
iteration: number;
|
|
39
|
-
}, {
|
|
40
38
|
loopId: string;
|
|
39
|
+
}, {
|
|
41
40
|
iteration: number;
|
|
41
|
+
loopId: string;
|
|
42
42
|
}>, "many">;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
stepId: string;
|
|
45
45
|
loopPath: {
|
|
46
|
-
loopId: string;
|
|
47
46
|
iteration: number;
|
|
47
|
+
loopId: string;
|
|
48
48
|
}[];
|
|
49
49
|
}, {
|
|
50
50
|
stepId: string;
|
|
51
51
|
loopPath: {
|
|
52
|
-
loopId: string;
|
|
53
52
|
iteration: number;
|
|
53
|
+
loopId: string;
|
|
54
54
|
}[];
|
|
55
55
|
}>;
|
|
56
56
|
export declare const ExecutionStateSchema: z.ZodType<ExecutionState>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_CONSOLE_PORT = 3456;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SessionManager = void 0;
|
|
4
4
|
var SessionManager_js_1 = require("./SessionManager.js");
|
|
5
5
|
Object.defineProperty(exports, "SessionManager", { enumerable: true, get: function () { return SessionManager_js_1.SessionManager; } });
|
|
6
|
-
var HttpServer_js_1 = require("./HttpServer.js");
|
|
7
|
-
Object.defineProperty(exports, "HttpServer", { enumerable: true, get: function () { return HttpServer_js_1.HttpServer; } });
|