@h-rig/core 0.0.6-alpha.143 → 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/index.js CHANGED
@@ -423,6 +423,7 @@ function buildRigInitConfigSource(input) {
423
423
  const lines = [`import { defineConfig } from "@rig/core/config";`];
424
424
  if (input.useStandardPlugin) {
425
425
  lines.push(`import { standardPlugins } from "@rig/standard-plugin/bundle";`);
426
+ lines.push(`import { createRigCliSurfacePlugin } from "@rig/cli/surface-plugin";`);
426
427
  if (input.taskSource.kind === "github-issues") {
427
428
  lines.push(`import { createStateGitHubCredentialProvider } from "@rig/standard-plugin";`);
428
429
  }
@@ -431,7 +432,7 @@ function buildRigInitConfigSource(input) {
431
432
  const projectRepo = input.projectRepo ?? (input.taskSource.kind === "github-issues" ? `${input.taskSource.owner}/${input.taskSource.repo}` : undefined);
432
433
  lines.push(projectRepo ? ` project: { name: ${JSON.stringify(input.projectName)}, repo: ${JSON.stringify(projectRepo)} },` : ` project: { name: ${JSON.stringify(input.projectName)} },`);
433
434
  if (input.useStandardPlugin && input.taskSource.kind === "github-issues") {
434
- lines.push(` plugins: [...standardPlugins({`);
435
+ lines.push(` plugins: [createRigCliSurfacePlugin(), ...standardPlugins({`);
435
436
  lines.push(` taskSources: {`);
436
437
  lines.push(` githubCredentialProvider: createStateGitHubCredentialProvider(),`);
437
438
  lines.push(` githubWorkspaceId: ${JSON.stringify(`${input.taskSource.owner}/${input.taskSource.repo}`)},`);
@@ -439,7 +440,7 @@ function buildRigInitConfigSource(input) {
439
440
  lines.push(` },`);
440
441
  lines.push(` })],`);
441
442
  } else {
442
- lines.push(` plugins: [${input.useStandardPlugin ? "...standardPlugins()" : ""}],`);
443
+ lines.push(` plugins: [${input.useStandardPlugin ? "createRigCliSurfacePlugin(), ...standardPlugins()" : ""}],`);
443
444
  }
444
445
  if (input.taskSource.kind === "github-issues") {
445
446
  lines.push(` taskSource: {`);
@@ -4,6 +4,7 @@ function buildRigInitConfigSource(input) {
4
4
  const lines = [`import { defineConfig } from "@rig/core/config";`];
5
5
  if (input.useStandardPlugin) {
6
6
  lines.push(`import { standardPlugins } from "@rig/standard-plugin/bundle";`);
7
+ lines.push(`import { createRigCliSurfacePlugin } from "@rig/cli/surface-plugin";`);
7
8
  if (input.taskSource.kind === "github-issues") {
8
9
  lines.push(`import { createStateGitHubCredentialProvider } from "@rig/standard-plugin";`);
9
10
  }
@@ -12,7 +13,7 @@ function buildRigInitConfigSource(input) {
12
13
  const projectRepo = input.projectRepo ?? (input.taskSource.kind === "github-issues" ? `${input.taskSource.owner}/${input.taskSource.repo}` : undefined);
13
14
  lines.push(projectRepo ? ` project: { name: ${JSON.stringify(input.projectName)}, repo: ${JSON.stringify(projectRepo)} },` : ` project: { name: ${JSON.stringify(input.projectName)} },`);
14
15
  if (input.useStandardPlugin && input.taskSource.kind === "github-issues") {
15
- lines.push(` plugins: [...standardPlugins({`);
16
+ lines.push(` plugins: [createRigCliSurfacePlugin(), ...standardPlugins({`);
16
17
  lines.push(` taskSources: {`);
17
18
  lines.push(` githubCredentialProvider: createStateGitHubCredentialProvider(),`);
18
19
  lines.push(` githubWorkspaceId: ${JSON.stringify(`${input.taskSource.owner}/${input.taskSource.repo}`)},`);
@@ -20,7 +21,7 @@ function buildRigInitConfigSource(input) {
20
21
  lines.push(` },`);
21
22
  lines.push(` })],`);
22
23
  } else {
23
- lines.push(` plugins: [${input.useStandardPlugin ? "...standardPlugins()" : ""}],`);
24
+ lines.push(` plugins: [${input.useStandardPlugin ? "createRigCliSurfacePlugin(), ...standardPlugins()" : ""}],`);
24
25
  }
25
26
  if (input.taskSource.kind === "github-issues") {
26
27
  lines.push(` taskSource: {`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/core",
3
- "version": "0.0.6-alpha.143",
3
+ "version": "0.0.6-alpha.144",
4
4
  "type": "module",
5
5
  "description": "Config and plugin composition library for Rig's OMP extension ecosystem; not a product host/runtime.",
6
6
  "license": "UNLICENSED",
@@ -49,7 +49,7 @@
49
49
  "module": "./dist/src/index.js",
50
50
  "types": "./dist/src/index.d.ts",
51
51
  "dependencies": {
52
- "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.143",
52
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.144",
53
53
  "effect": "4.0.0-beta.90"
54
54
  }
55
55
  }