@h-rig/bundle-default-lifecycle 0.0.6-alpha.141 → 0.0.6-alpha.143

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/cli.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { RuntimeCliContext } from "@rig/core";
1
+ import type { RuntimeCliContext } from "@rig/core/config";
2
2
  export declare const DEFAULT_PIPELINE_CLI_ID = "default-lifecycle.pipeline";
3
3
  export declare const DEFAULT_KERNEL_CLI_ID = "default-lifecycle.kernel";
4
4
  type CommandOutcome = {
package/dist/src/index.js CHANGED
@@ -386,7 +386,7 @@ import {
386
386
  import { taskValidate } from "@rig/runtime/control-plane/native/task-ops";
387
387
 
388
388
  // packages/bundle-default-lifecycle/src/plugin.ts
389
- import { definePlugin } from "@rig/core";
389
+ import { definePlugin } from "@rig/core/config";
390
390
 
391
391
  // packages/bundle-default-lifecycle/src/cli.ts
392
392
  var DEFAULT_PIPELINE_CLI_ID = "default-lifecycle.pipeline";
@@ -509,11 +509,7 @@ function closeoutOutcome(status) {
509
509
  }
510
510
  }
511
511
  async function loadRigAutomationConfig(projectRoot) {
512
- try {
513
- return await loadConfig(projectRoot);
514
- } catch {
515
- return null;
516
- }
512
+ return await loadConfig(projectRoot);
517
513
  }
518
514
  async function runRigProjectValidation({ projectRoot, taskId }) {
519
515
  const pluginHostCtx = await buildPluginHostContext(projectRoot);
@@ -524,13 +520,9 @@ function shouldAttemptRigMerge(config) {
524
520
  return mode !== "off" && mode !== "pr-ready";
525
521
  }
526
522
  async function loadPluginStageContributions(projectRoot) {
527
- try {
528
- const config = await loadConfig(projectRoot);
529
- const host = createPluginHost(config.plugins ?? []);
530
- return { executors: host.listStageExecutors(), mutations: host.listStageMutations() };
531
- } catch {
532
- return { executors: {}, mutations: [] };
533
- }
523
+ const config = await loadConfig(projectRoot);
524
+ const host = createPluginHost(config.plugins ?? []);
525
+ return { executors: host.listStageExecutors(), mutations: host.listStageMutations() };
534
526
  }
535
527
  async function runPipelineCloseout(input) {
536
528
  const taskId = cleanString(input.taskId);
@@ -264,7 +264,7 @@ function formatDefaultPipelineShow(input = {}) {
264
264
  }
265
265
 
266
266
  // packages/bundle-default-lifecycle/src/plugin.ts
267
- import { definePlugin } from "@rig/core";
267
+ import { definePlugin } from "@rig/core/config";
268
268
 
269
269
  // packages/bundle-default-lifecycle/src/cli.ts
270
270
  var DEFAULT_PIPELINE_CLI_ID = "default-lifecycle.pipeline";
@@ -387,11 +387,7 @@ function closeoutOutcome(status) {
387
387
  }
388
388
  }
389
389
  async function loadRigAutomationConfig(projectRoot) {
390
- try {
391
- return await loadConfig(projectRoot);
392
- } catch {
393
- return null;
394
- }
390
+ return await loadConfig(projectRoot);
395
391
  }
396
392
  async function runRigProjectValidation({ projectRoot, taskId }) {
397
393
  const pluginHostCtx = await buildPluginHostContext(projectRoot);
@@ -402,13 +398,9 @@ function shouldAttemptRigMerge(config) {
402
398
  return mode !== "off" && mode !== "pr-ready";
403
399
  }
404
400
  async function loadPluginStageContributions(projectRoot) {
405
- try {
406
- const config = await loadConfig(projectRoot);
407
- const host = createPluginHost(config.plugins ?? []);
408
- return { executors: host.listStageExecutors(), mutations: host.listStageMutations() };
409
- } catch {
410
- return { executors: {}, mutations: [] };
411
- }
401
+ const config = await loadConfig(projectRoot);
402
+ const host = createPluginHost(config.plugins ?? []);
403
+ return { executors: host.listStageExecutors(), mutations: host.listStageMutations() };
412
404
  }
413
405
  async function runPipelineCloseout(input) {
414
406
  const taskId = cleanString(input.taskId);
@@ -1,4 +1,4 @@
1
- import { type RigPluginWithRuntime } from "@rig/core";
1
+ import { type RigPluginWithRuntime } from "@rig/core/config";
2
2
  import type { StageRun } from "@rig/contracts";
3
3
  import { defaultLifecycleStages } from "./defaultPipeline";
4
4
  export declare const DEFAULT_LIFECYCLE_PLUGIN_ID = "@rig/bundle-default-lifecycle";
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // packages/bundle-default-lifecycle/src/plugin.ts
3
- import { definePlugin } from "@rig/core";
3
+ import { definePlugin } from "@rig/core/config";
4
4
 
5
5
  // packages/bundle-default-lifecycle/src/defaultPipeline.ts
6
6
  import { resolveKernelStages } from "@rig/kernel/resolver";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/bundle-default-lifecycle",
3
- "version": "0.0.6-alpha.141",
3
+ "version": "0.0.6-alpha.143",
4
4
  "type": "module",
5
5
  "description": "Default Rig run lifecycle stage bundle wrapping the existing closeout runtime.",
6
6
  "license": "UNLICENSED",
@@ -10,8 +10,8 @@
10
10
  ],
11
11
  "exports": {
12
12
  ".": {
13
- "types": "./dist/src/index.d.ts",
14
- "import": "./dist/src/index.js"
13
+ "types": "./dist/src/plugin.d.ts",
14
+ "import": "./dist/src/plugin.js"
15
15
  },
16
16
  "./closeout-equivalence": {
17
17
  "types": "./dist/src/closeoutEquivalence.d.ts",
@@ -41,9 +41,9 @@
41
41
  "module": "./dist/src/index.js",
42
42
  "types": "./dist/src/index.d.ts",
43
43
  "dependencies": {
44
- "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.141",
45
- "@rig/core": "npm:@h-rig/core@0.0.6-alpha.141",
46
- "@rig/kernel": "npm:@h-rig/kernel@0.0.6-alpha.141",
47
- "@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.141"
44
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.143",
45
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.143",
46
+ "@rig/kernel": "npm:@h-rig/kernel@0.0.6-alpha.143",
47
+ "@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.143"
48
48
  }
49
49
  }