@h-rig/core 0.0.6-alpha.144 → 0.0.6-alpha.145
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,7 +423,6 @@ 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";`);
|
|
427
426
|
if (input.taskSource.kind === "github-issues") {
|
|
428
427
|
lines.push(`import { createStateGitHubCredentialProvider } from "@rig/standard-plugin";`);
|
|
429
428
|
}
|
|
@@ -432,7 +431,7 @@ function buildRigInitConfigSource(input) {
|
|
|
432
431
|
const projectRepo = input.projectRepo ?? (input.taskSource.kind === "github-issues" ? `${input.taskSource.owner}/${input.taskSource.repo}` : undefined);
|
|
433
432
|
lines.push(projectRepo ? ` project: { name: ${JSON.stringify(input.projectName)}, repo: ${JSON.stringify(projectRepo)} },` : ` project: { name: ${JSON.stringify(input.projectName)} },`);
|
|
434
433
|
if (input.useStandardPlugin && input.taskSource.kind === "github-issues") {
|
|
435
|
-
lines.push(` plugins: [
|
|
434
|
+
lines.push(` plugins: [...standardPlugins({`);
|
|
436
435
|
lines.push(` taskSources: {`);
|
|
437
436
|
lines.push(` githubCredentialProvider: createStateGitHubCredentialProvider(),`);
|
|
438
437
|
lines.push(` githubWorkspaceId: ${JSON.stringify(`${input.taskSource.owner}/${input.taskSource.repo}`)},`);
|
|
@@ -440,7 +439,7 @@ function buildRigInitConfigSource(input) {
|
|
|
440
439
|
lines.push(` },`);
|
|
441
440
|
lines.push(` })],`);
|
|
442
441
|
} else {
|
|
443
|
-
lines.push(` plugins: [${input.useStandardPlugin ? "
|
|
442
|
+
lines.push(` plugins: [${input.useStandardPlugin ? "...standardPlugins()" : ""}],`);
|
|
444
443
|
}
|
|
445
444
|
if (input.taskSource.kind === "github-issues") {
|
|
446
445
|
lines.push(` taskSource: {`);
|
|
@@ -4,7 +4,6 @@ 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";`);
|
|
8
7
|
if (input.taskSource.kind === "github-issues") {
|
|
9
8
|
lines.push(`import { createStateGitHubCredentialProvider } from "@rig/standard-plugin";`);
|
|
10
9
|
}
|
|
@@ -13,7 +12,7 @@ function buildRigInitConfigSource(input) {
|
|
|
13
12
|
const projectRepo = input.projectRepo ?? (input.taskSource.kind === "github-issues" ? `${input.taskSource.owner}/${input.taskSource.repo}` : undefined);
|
|
14
13
|
lines.push(projectRepo ? ` project: { name: ${JSON.stringify(input.projectName)}, repo: ${JSON.stringify(projectRepo)} },` : ` project: { name: ${JSON.stringify(input.projectName)} },`);
|
|
15
14
|
if (input.useStandardPlugin && input.taskSource.kind === "github-issues") {
|
|
16
|
-
lines.push(` plugins: [
|
|
15
|
+
lines.push(` plugins: [...standardPlugins({`);
|
|
17
16
|
lines.push(` taskSources: {`);
|
|
18
17
|
lines.push(` githubCredentialProvider: createStateGitHubCredentialProvider(),`);
|
|
19
18
|
lines.push(` githubWorkspaceId: ${JSON.stringify(`${input.taskSource.owner}/${input.taskSource.repo}`)},`);
|
|
@@ -21,7 +20,7 @@ function buildRigInitConfigSource(input) {
|
|
|
21
20
|
lines.push(` },`);
|
|
22
21
|
lines.push(` })],`);
|
|
23
22
|
} else {
|
|
24
|
-
lines.push(` plugins: [${input.useStandardPlugin ? "
|
|
23
|
+
lines.push(` plugins: [${input.useStandardPlugin ? "...standardPlugins()" : ""}],`);
|
|
25
24
|
}
|
|
26
25
|
if (input.taskSource.kind === "github-issues") {
|
|
27
26
|
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.
|
|
3
|
+
"version": "0.0.6-alpha.145",
|
|
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.
|
|
52
|
+
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.145",
|
|
53
53
|
"effect": "4.0.0-beta.90"
|
|
54
54
|
}
|
|
55
55
|
}
|