@difflab/pi 0.3.0-rc.202609201609.21ba1d2 → 0.3.0-rc.202609201610.cddc7d6

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.
@@ -1,21 +1,5 @@
1
1
  import type { ExtensionAPI } from '@earendil-works/pi-coding-agent';
2
2
  import type { ModeController } from '../modes';
3
- type AuthorVerb = 'init' | 'new' | 'update' | 'annotate' | 'finalize' | 'help';
4
- export type PlanCommandRequest = {
5
- verb: AuthorVerb;
6
- plan?: string;
7
- branch?: string;
8
- background: boolean;
9
- instructions: string;
10
- } | {
11
- verb: 'go';
12
- plan: string;
13
- background: boolean;
14
- policy?: 'commit-per-phase' | 'no-commit';
15
- instructions: '';
16
- };
3
+ export { parsePlanArgs, tokenizePlanArgs, type PlanCommandRequest } from './plan-parser';
17
4
  export declare function registerPlanCommand(pi: ExtensionAPI, modes: ModeController): void;
18
- export declare function parsePlanArgs(raw: string): PlanCommandRequest;
19
- export declare function tokenizePlanArgs(raw: string): string[];
20
- export {};
21
5
  //# sourceMappingURL=plan.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../src/commands/plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,iCAAiC,CAAC;AAItF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAO/C,KAAK,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAC/E,MAAM,MAAM,kBAAkB,GAC1B;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAC/F;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,WAAW,CAAC;IAAC,YAAY,EAAE,EAAE,CAAA;CAAE,CAAC;AAEnH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAKjF;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAgD7D;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAwBtD"}
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../src/commands/plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,iCAAiC,CAAC;AAItF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK/C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGzF,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAKjF"}
@@ -14032,16 +14032,8 @@ function messageText(content) {
14032
14032
  `).trim();
14033
14033
  }
14034
14034
 
14035
- // src/commands/plan.ts
14036
- var PLANNER_PATH = join10(resolveBundledAgentsDir(), "diffpi-planner.md");
14037
- var ORCHESTRATOR_PATH = join10(resolveBundledAgentsDir(), "diffpi-orchestrator.md");
14035
+ // src/commands/plan-parser.ts
14038
14036
  var HELP = "Usage: /plan init|new|update|annotate|finalize|go|help. Run /plan help for exact grammar.";
14039
- function registerPlanCommand(pi, modes) {
14040
- pi.registerCommand("plan", {
14041
- description: "Durable planning: init, new, update, annotate, finalize, go, help",
14042
- handler: async (args, ctx) => handlePlanCommand(args, ctx, pi, modes)
14043
- });
14044
- }
14045
14037
  function parsePlanArgs(raw) {
14046
14038
  const tokens = tokenizePlanArgs(raw);
14047
14039
  const verb = tokens.shift() ?? "help";
@@ -14135,6 +14127,15 @@ function tokenizePlanArgs(raw) {
14135
14127
  push();
14136
14128
  return tokens;
14137
14129
  }
14130
+ // src/commands/plan.ts
14131
+ var PLANNER_PATH = join10(resolveBundledAgentsDir(), "diffpi-planner.md");
14132
+ var ORCHESTRATOR_PATH = join10(resolveBundledAgentsDir(), "diffpi-orchestrator.md");
14133
+ function registerPlanCommand(pi, modes) {
14134
+ pi.registerCommand("plan", {
14135
+ description: "Durable planning: init, new, update, annotate, finalize, go, help",
14136
+ handler: async (args, ctx) => handlePlanCommand(args, ctx, pi, modes)
14137
+ });
14138
+ }
14138
14139
  async function handlePlanCommand(args, ctx, pi, modes) {
14139
14140
  let request;
14140
14141
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difflab/pi",
3
- "version": "0.3.0-rc.202609201609.21ba1d2",
3
+ "version": "0.3.0-rc.202609201610.cddc7d6",
4
4
  "description": "Tools and skills for the pi coding agent",
5
5
  "repository": {
6
6
  "type": "git",