@h-rig/planning-plugin 0.0.6-alpha.138 → 0.0.6-alpha.140

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.js CHANGED
@@ -1,7 +1,8 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // packages/planning-plugin/src/cli.ts
3
5
  import { readFileSync } from "fs";
4
- import { createTask, planWorkspace } from "@rig/client";
5
6
 
6
7
  // packages/planning-plugin/src/planning.ts
7
8
  async function spec(input, ports) {
@@ -74,6 +75,9 @@ function defaultPlanningProvider(now) {
74
75
  plan: (planSpec) => planSpec
75
76
  };
76
77
  }
78
+ async function loadPlanningClient() {
79
+ return await import("@rig/client");
80
+ }
77
81
  function readPrdText(args) {
78
82
  const title = takeOption(args, "--title");
79
83
  const text = takeOption(title.rest, "--text");
@@ -94,6 +98,7 @@ async function executePlan(context, args) {
94
98
  const willMaterialize = materialize.value && !dryRun.value;
95
99
  const now = () => new Date().toISOString();
96
100
  const provider = defaultPlanningProvider(now);
101
+ const { createTask, planWorkspace } = await loadPlanningClient();
97
102
  const result = await planWorkspace(context.projectRoot, prd.body, {
98
103
  generatePlan: (input) => specClarifyPlan({ title: input.title ?? prd.title, body: input.prd }, {}, provider),
99
104
  createTask
package/dist/src/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // packages/planning-plugin/src/planning.ts
3
5
  async function spec(input, ports) {
4
6
  return ports.spec(input);
@@ -117,7 +119,6 @@ async function materialize(planSpec, source, options = {}) {
117
119
  }
118
120
  // packages/planning-plugin/src/cli.ts
119
121
  import { readFileSync } from "fs";
120
- import { createTask, planWorkspace } from "@rig/client";
121
122
  var PLANNING_PLAN_CLI_ID = "planning.plan";
122
123
  function printJson(value) {
123
124
  console.log(JSON.stringify(value, null, 2));
@@ -174,6 +175,9 @@ function defaultPlanningProvider(now) {
174
175
  plan: (planSpec) => planSpec
175
176
  };
176
177
  }
178
+ async function loadPlanningClient() {
179
+ return await import("@rig/client");
180
+ }
177
181
  function readPrdText(args) {
178
182
  const title = takeOption(args, "--title");
179
183
  const text = takeOption(title.rest, "--text");
@@ -194,6 +198,7 @@ async function executePlan(context, args) {
194
198
  const willMaterialize = materialize2.value && !dryRun.value;
195
199
  const now = () => new Date().toISOString();
196
200
  const provider = defaultPlanningProvider(now);
201
+ const { createTask, planWorkspace } = await loadPlanningClient();
197
202
  const result = await planWorkspace(context.projectRoot, prd.body, {
198
203
  generatePlan: (input) => specClarifyPlan({ title: input.title ?? prd.title, body: input.prd }, {}, provider),
199
204
  createTask
@@ -1,10 +1,11 @@
1
1
  // @bun
2
+ var __require = import.meta.require;
3
+
2
4
  // packages/planning-plugin/src/plugin.ts
3
5
  import { definePlugin } from "@rig/core";
4
6
 
5
7
  // packages/planning-plugin/src/cli.ts
6
8
  import { readFileSync } from "fs";
7
- import { createTask, planWorkspace } from "@rig/client";
8
9
 
9
10
  // packages/planning-plugin/src/planning.ts
10
11
  async function spec(input, ports) {
@@ -77,6 +78,9 @@ function defaultPlanningProvider(now) {
77
78
  plan: (planSpec) => planSpec
78
79
  };
79
80
  }
81
+ async function loadPlanningClient() {
82
+ return await import("@rig/client");
83
+ }
80
84
  function readPrdText(args) {
81
85
  const title = takeOption(args, "--title");
82
86
  const text = takeOption(title.rest, "--text");
@@ -97,6 +101,7 @@ async function executePlan(context, args) {
97
101
  const willMaterialize = materialize.value && !dryRun.value;
98
102
  const now = () => new Date().toISOString();
99
103
  const provider = defaultPlanningProvider(now);
104
+ const { createTask, planWorkspace } = await loadPlanningClient();
100
105
  const result = await planWorkspace(context.projectRoot, prd.body, {
101
106
  generatePlan: (input) => specClarifyPlan({ title: input.title ?? prd.title, body: input.prd }, {}, provider),
102
107
  createTask
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/planning-plugin",
3
- "version": "0.0.6-alpha.138",
3
+ "version": "0.0.6-alpha.140",
4
4
  "type": "module",
5
5
  "description": "First-party PRD-to-plan plugin for Rig task sources.",
6
6
  "license": "UNLICENSED",
@@ -29,8 +29,8 @@
29
29
  "module": "./dist/src/index.js",
30
30
  "types": "./dist/src/index.d.ts",
31
31
  "dependencies": {
32
- "@rig/client": "npm:@h-rig/client@0.0.6-alpha.138",
33
- "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.138",
34
- "@rig/core": "npm:@h-rig/core@0.0.6-alpha.138"
32
+ "@rig/client": "npm:@h-rig/client@0.0.6-alpha.140",
33
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.140",
34
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.140"
35
35
  }
36
36
  }