@h-rig/standard-plugin 0.0.6-alpha.142 → 0.0.6-alpha.144
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/src/blocker-classifier.d.ts +1 -0
- package/dist/src/blocker-classifier.js +18 -0
- package/dist/src/bundle.d.ts +6 -5
- package/dist/src/bundle.js +1554 -1305
- package/dist/src/cli-surface.d.ts +5 -0
- package/dist/src/cli-surface.js +55 -0
- package/dist/src/default-lifecycle.d.ts +2 -0
- package/dist/src/default-lifecycle.js +12 -0
- package/dist/src/dependency-graph.d.ts +1 -0
- package/dist/src/dependency-graph.js +22 -0
- package/dist/src/drift/metadata.d.ts +13 -0
- package/dist/src/drift/metadata.js +33 -0
- package/dist/src/drift/plugin.d.ts +4 -14
- package/dist/src/drift/plugin.js +4 -5
- package/dist/src/github-issues-source.js +73 -30
- package/dist/src/index.d.ts +7 -3
- package/dist/src/index.js +1636 -1397
- package/dist/src/lifecycle-closeout.d.ts +2 -0
- package/dist/src/lifecycle-closeout.js +6 -0
- package/dist/src/planning.d.ts +1 -0
- package/dist/src/planning.js +14 -0
- package/dist/src/plugin.d.ts +9 -11
- package/dist/src/plugin.js +1515 -1386
- package/dist/src/product-entrypoint.d.ts +3 -0
- package/dist/src/product-entrypoint.js +6 -0
- package/dist/src/product-plugin.d.ts +3 -0
- package/dist/src/product-plugin.js +18 -0
- package/dist/src/run-worker-panels.d.ts +15 -0
- package/dist/src/run-worker-panels.js +53 -0
- package/dist/src/supervisor.d.ts +1 -0
- package/dist/src/supervisor.js +12 -0
- package/dist/src/task-cli.d.ts +1 -0
- package/dist/src/task-cli.js +14 -0
- package/package.json +54 -8
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { runRigOmpProductCommand } from "@rig/product-entrypoint-plugin/product-entrypoint";
|
|
2
|
+
export type { RigProductCommandName } from "@rig/product-entrypoint-plugin/metadata";
|
|
3
|
+
export type { RunRigOmpProductCommandInput } from "@rig/product-entrypoint-plugin/product-entrypoint";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { createStandardProductEntrypointPlugin, standardProductEntrypointPlugin, } from "@rig/product-entrypoint-plugin/plugin";
|
|
2
|
+
export { STANDARD_PRODUCT_COMMANDS, standardProductCliCommandId, standardProductCliCommandMetadata, } from "@rig/product-entrypoint-plugin/metadata";
|
|
3
|
+
export type { RigProductCommandName, StandardProductCommandDescriptor, } from "@rig/product-entrypoint-plugin/metadata";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// packages/standard-plugin/src/product-plugin.ts
|
|
3
|
+
import {
|
|
4
|
+
createStandardProductEntrypointPlugin,
|
|
5
|
+
standardProductEntrypointPlugin
|
|
6
|
+
} from "@rig/product-entrypoint-plugin/plugin";
|
|
7
|
+
import {
|
|
8
|
+
STANDARD_PRODUCT_COMMANDS,
|
|
9
|
+
standardProductCliCommandId,
|
|
10
|
+
standardProductCliCommandMetadata
|
|
11
|
+
} from "@rig/product-entrypoint-plugin/metadata";
|
|
12
|
+
export {
|
|
13
|
+
standardProductEntrypointPlugin,
|
|
14
|
+
standardProductCliCommandMetadata,
|
|
15
|
+
standardProductCliCommandId,
|
|
16
|
+
createStandardProductEntrypointPlugin,
|
|
17
|
+
STANDARD_PRODUCT_COMMANDS
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PanelRegistration, RunJournalProjection } from "@rig/contracts";
|
|
2
|
+
import type { RigPluginWithRuntime, RuntimePanelProducer } from "@rig/core/config";
|
|
3
|
+
export declare const RIG_RUN_STOP_PANEL_ACTION = "rig-run:stop";
|
|
4
|
+
export declare const RIG_CAPABILITY_PANEL_SLOT = "capability";
|
|
5
|
+
export declare const RIG_SUPERVISOR_PANEL_ID = "supervisor";
|
|
6
|
+
export interface WorkerPanelProducerContext {
|
|
7
|
+
readonly projectRoot: string;
|
|
8
|
+
readonly runId: string;
|
|
9
|
+
readonly folded: RunJournalProjection;
|
|
10
|
+
readonly taskIdAtStart?: string | null;
|
|
11
|
+
readonly runDisplayTitle: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const RUN_SUPERVISOR_PANEL_REGISTRATION: PanelRegistration;
|
|
14
|
+
export declare const RUN_SUPERVISOR_PANEL_PRODUCER: RuntimePanelProducer;
|
|
15
|
+
export declare const RUN_WORKER_PANEL_PLUGIN: RigPluginWithRuntime;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// packages/standard-plugin/src/run-worker-panels.ts
|
|
3
|
+
var RIG_RUN_STOP_PANEL_ACTION = "rig-run:stop";
|
|
4
|
+
var RIG_CAPABILITY_PANEL_SLOT = "capability";
|
|
5
|
+
var RIG_SUPERVISOR_PANEL_ID = "supervisor";
|
|
6
|
+
var RUN_SUPERVISOR_PANEL_REGISTRATION = {
|
|
7
|
+
id: RIG_SUPERVISOR_PANEL_ID,
|
|
8
|
+
slot: RIG_CAPABILITY_PANEL_SLOT,
|
|
9
|
+
title: "Supervisor",
|
|
10
|
+
capabilityId: "run.supervisor",
|
|
11
|
+
description: "Live run status, closeout progress, and operator stop control."
|
|
12
|
+
};
|
|
13
|
+
function buildSupervisorPanelPayload(context) {
|
|
14
|
+
const status = context.folded.status ?? "unknown";
|
|
15
|
+
const taskId = context.folded.record.taskId ?? context.taskIdAtStart;
|
|
16
|
+
const operatorActive = status === "running" || status === "validating" || status === "closing-out" || status === "needs-attention";
|
|
17
|
+
return {
|
|
18
|
+
status,
|
|
19
|
+
currentTask: taskId ? { id: taskId, title: context.runDisplayTitle } : null,
|
|
20
|
+
processed: context.folded.closeoutPhases.length,
|
|
21
|
+
succeeded: context.folded.closeoutPhases.filter((phase) => phase.outcome === "completed").length,
|
|
22
|
+
failed: context.folded.closeoutPhases.filter((phase) => phase.outcome === "failed").length,
|
|
23
|
+
skipped: 0,
|
|
24
|
+
plannedOrder: taskId ? [{ id: taskId, title: context.runDisplayTitle, status }] : [],
|
|
25
|
+
idleReason: operatorActive ? null : status,
|
|
26
|
+
stopActionId: operatorActive ? RIG_RUN_STOP_PANEL_ACTION : null,
|
|
27
|
+
closures: []
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
var RUN_SUPERVISOR_PANEL_PRODUCER = {
|
|
31
|
+
...RUN_SUPERVISOR_PANEL_REGISTRATION,
|
|
32
|
+
produce(context) {
|
|
33
|
+
return buildSupervisorPanelPayload(context);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var RUN_WORKER_PANEL_PLUGIN = {
|
|
37
|
+
name: "@rig/standard-plugin:run-worker-panels",
|
|
38
|
+
version: "0.0.0-alpha.1",
|
|
39
|
+
contributes: {
|
|
40
|
+
panels: [RUN_SUPERVISOR_PANEL_REGISTRATION]
|
|
41
|
+
},
|
|
42
|
+
__runtime: {
|
|
43
|
+
panels: [RUN_SUPERVISOR_PANEL_PRODUCER]
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
RUN_WORKER_PANEL_PLUGIN,
|
|
48
|
+
RUN_SUPERVISOR_PANEL_REGISTRATION,
|
|
49
|
+
RUN_SUPERVISOR_PANEL_PRODUCER,
|
|
50
|
+
RIG_SUPERVISOR_PANEL_ID,
|
|
51
|
+
RIG_RUN_STOP_PANEL_ACTION,
|
|
52
|
+
RIG_CAPABILITY_PANEL_SLOT
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SUPERVISOR_PLUGIN_NAME, createSupervisorPlugin, supervisorPlugin, } from "@rig/supervisor-plugin/plugin";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// packages/standard-plugin/src/supervisor.ts
|
|
3
|
+
import {
|
|
4
|
+
SUPERVISOR_PLUGIN_NAME,
|
|
5
|
+
createSupervisorPlugin,
|
|
6
|
+
supervisorPlugin
|
|
7
|
+
} from "@rig/supervisor-plugin/plugin";
|
|
8
|
+
export {
|
|
9
|
+
supervisorPlugin,
|
|
10
|
+
createSupervisorPlugin,
|
|
11
|
+
SUPERVISOR_PLUGIN_NAME
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { STANDARD_TASK_CLI_ID, STANDARD_TASK_CLI_PLUGIN_NAME, createStandardTaskCliPlugin, standardTaskCliPlugin, } from "@rig/task-cli-plugin/plugin";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// packages/standard-plugin/src/task-cli.ts
|
|
3
|
+
import {
|
|
4
|
+
STANDARD_TASK_CLI_ID,
|
|
5
|
+
STANDARD_TASK_CLI_PLUGIN_NAME,
|
|
6
|
+
createStandardTaskCliPlugin,
|
|
7
|
+
standardTaskCliPlugin
|
|
8
|
+
} from "@rig/task-cli-plugin/plugin";
|
|
9
|
+
export {
|
|
10
|
+
standardTaskCliPlugin,
|
|
11
|
+
createStandardTaskCliPlugin,
|
|
12
|
+
STANDARD_TASK_CLI_PLUGIN_NAME,
|
|
13
|
+
STANDARD_TASK_CLI_ID
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-rig/standard-plugin",
|
|
3
|
-
"version": "0.0.6-alpha.
|
|
3
|
+
"version": "0.0.6-alpha.144",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "First-party contribution bundle for Rig's OMP extension plugin graph; not a standalone plugin runtime.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -21,6 +21,50 @@
|
|
|
21
21
|
"types": "./dist/src/plugin.d.ts",
|
|
22
22
|
"import": "./dist/src/plugin.js"
|
|
23
23
|
},
|
|
24
|
+
"./default-lifecycle": {
|
|
25
|
+
"types": "./dist/src/default-lifecycle.d.ts",
|
|
26
|
+
"import": "./dist/src/default-lifecycle.js"
|
|
27
|
+
},
|
|
28
|
+
"./dependency-graph": {
|
|
29
|
+
"types": "./dist/src/dependency-graph.d.ts",
|
|
30
|
+
"import": "./dist/src/dependency-graph.js"
|
|
31
|
+
},
|
|
32
|
+
"./blocker-classifier": {
|
|
33
|
+
"types": "./dist/src/blocker-classifier.d.ts",
|
|
34
|
+
"import": "./dist/src/blocker-classifier.js"
|
|
35
|
+
},
|
|
36
|
+
"./planning": {
|
|
37
|
+
"types": "./dist/src/planning.d.ts",
|
|
38
|
+
"import": "./dist/src/planning.js"
|
|
39
|
+
},
|
|
40
|
+
"./supervisor": {
|
|
41
|
+
"types": "./dist/src/supervisor.d.ts",
|
|
42
|
+
"import": "./dist/src/supervisor.js"
|
|
43
|
+
},
|
|
44
|
+
"./task-cli": {
|
|
45
|
+
"types": "./dist/src/task-cli.d.ts",
|
|
46
|
+
"import": "./dist/src/task-cli.js"
|
|
47
|
+
},
|
|
48
|
+
"./product-plugin": {
|
|
49
|
+
"types": "./dist/src/product-plugin.d.ts",
|
|
50
|
+
"import": "./dist/src/product-plugin.js"
|
|
51
|
+
},
|
|
52
|
+
"./product-entrypoint": {
|
|
53
|
+
"types": "./dist/src/product-entrypoint.d.ts",
|
|
54
|
+
"import": "./dist/src/product-entrypoint.js"
|
|
55
|
+
},
|
|
56
|
+
"./lifecycle-closeout": {
|
|
57
|
+
"types": "./dist/src/lifecycle-closeout.d.ts",
|
|
58
|
+
"import": "./dist/src/lifecycle-closeout.js"
|
|
59
|
+
},
|
|
60
|
+
"./run-worker-panels": {
|
|
61
|
+
"types": "./dist/src/run-worker-panels.d.ts",
|
|
62
|
+
"import": "./dist/src/run-worker-panels.js"
|
|
63
|
+
},
|
|
64
|
+
"./cli-surface": {
|
|
65
|
+
"types": "./dist/src/cli-surface.d.ts",
|
|
66
|
+
"import": "./dist/src/cli-surface.js"
|
|
67
|
+
},
|
|
24
68
|
"./drift": {
|
|
25
69
|
"types": "./dist/src/drift/plugin.d.ts",
|
|
26
70
|
"import": "./dist/src/drift/plugin.js"
|
|
@@ -37,13 +81,15 @@
|
|
|
37
81
|
"module": "./dist/src/index.js",
|
|
38
82
|
"types": "./dist/src/index.d.ts",
|
|
39
83
|
"dependencies": {
|
|
40
|
-
"@rig/
|
|
41
|
-
"@rig/
|
|
42
|
-
"@rig/
|
|
43
|
-
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.
|
|
44
|
-
"@rig/dependency-graph-plugin": "npm:@h-rig/dependency-graph-plugin@0.0.6-alpha.
|
|
45
|
-
"@rig/planning-plugin": "npm:@h-rig/planning-plugin@0.0.6-alpha.
|
|
46
|
-
"@rig/
|
|
84
|
+
"@rig/blocker-classifier-plugin": "npm:@h-rig/blocker-classifier-plugin@0.0.6-alpha.144",
|
|
85
|
+
"@rig/bundle-default-lifecycle": "npm:@h-rig/bundle-default-lifecycle@0.0.6-alpha.144",
|
|
86
|
+
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.144",
|
|
87
|
+
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.144",
|
|
88
|
+
"@rig/dependency-graph-plugin": "npm:@h-rig/dependency-graph-plugin@0.0.6-alpha.144",
|
|
89
|
+
"@rig/planning-plugin": "npm:@h-rig/planning-plugin@0.0.6-alpha.144",
|
|
90
|
+
"@rig/product-entrypoint-plugin": "0.0.6-alpha.144",
|
|
91
|
+
"@rig/task-cli-plugin": "0.0.6-alpha.144",
|
|
92
|
+
"@rig/supervisor-plugin": "npm:@h-rig/supervisor-plugin@0.0.6-alpha.144",
|
|
47
93
|
"effect": "4.0.0-beta.90"
|
|
48
94
|
}
|
|
49
95
|
}
|