pi-maestro-flow 0.3.1 → 0.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-maestro-flow",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Pi extension for Maestro workflow orchestration — explore, delegate, MOA tools, 113 skills, 82 workflow docs, and 28 agent definitions",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -33,7 +33,7 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "pi-maestro-teammate": "^0.1.0",
36
+ "pi-maestro-teammate": "^0.2.0",
37
37
  "@earendil-works/pi-tui": "0.74.0",
38
38
  "typebox": "1.1.24"
39
39
  },
@@ -20,7 +20,7 @@ function mapToolToProviderConfig(
20
20
  name: string,
21
21
  config: CliToolConfig,
22
22
  ): {
23
- apiType: string;
23
+ api: string;
24
24
  envVar: string;
25
25
  baseUrl?: string;
26
26
  } {
@@ -28,46 +28,51 @@ function mapToolToProviderConfig(
28
28
  switch (name) {
29
29
  case "claude":
30
30
  return {
31
- apiType: "anthropic-messages",
31
+ api: "anthropic-messages",
32
32
  envVar: "ANTHROPIC_API_KEY",
33
+ baseUrl: "https://api.anthropic.com",
33
34
  };
34
35
 
35
36
  case "gemini":
36
37
  return {
37
- apiType: "google-genai",
38
+ api: "google-genai",
38
39
  envVar: "GOOGLE_API_KEY",
40
+ baseUrl: "https://generativelanguage.googleapis.com",
39
41
  };
40
42
 
41
43
  case "codex":
42
44
  return {
43
- apiType: "openai-completions",
45
+ api: "openai-completions",
44
46
  envVar: "OPENAI_API_KEY",
47
+ baseUrl: "https://api.openai.com/v1",
45
48
  };
46
49
 
47
50
  case "opencode":
48
51
  return {
49
- apiType: "openai-compatible",
52
+ api: "openai-compatible",
50
53
  envVar: "OPENAI_API_KEY",
51
54
  baseUrl: "https://api.openai.com/v1",
52
55
  };
53
56
 
54
57
  case "agy":
55
58
  return {
56
- apiType: "openai-compatible",
59
+ api: "openai-compatible",
57
60
  envVar: "AGY_API_KEY",
61
+ baseUrl: "https://api.openai.com/v1",
58
62
  };
59
63
 
60
64
  case "api-explore":
61
65
  return {
62
- apiType: "openai-compatible",
66
+ api: "openai-compatible",
63
67
  envVar: "API_EXPLORE_KEY",
68
+ baseUrl: "https://api.openai.com/v1",
64
69
  };
65
70
 
66
71
  default:
67
- // Generic OpenAI-compatible fallback
68
72
  return {
69
- apiType: "openai-compatible",
73
+ api: "openai-compatible",
70
74
  envVar: `${name.toUpperCase()}_API_KEY`,
75
+ baseUrl: "https://api.openai.com/v1",
71
76
  };
72
77
  }
73
78
  }
@@ -102,7 +107,7 @@ export function registerMaestroProviders(pi: ExtensionAPI): void {
102
107
  // pi-agent-core version.
103
108
  if (typeof pi.registerProvider === "function") {
104
109
  pi.registerProvider(name, {
105
- apiType: providerMapping.apiType,
110
+ api: providerMapping.api,
106
111
  apiKey: `$${providerMapping.envVar}`,
107
112
  ...(providerMapping.baseUrl
108
113
  ? { baseUrl: providerMapping.baseUrl }
@@ -8,7 +8,7 @@
8
8
 
9
9
  import type { AgentToolResult } from "@earendil-works/pi-agent-core";
10
10
  import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
11
- import { runTeammate } from "@pi-maestro/teammate/src/runs/execution.ts";
11
+ import { runTeammate } from "../../../pi-teammate/src/runs/execution.ts";
12
12
 
13
13
  export interface DelegateParams {
14
14
  prompt?: string;
@@ -8,8 +8,8 @@
8
8
 
9
9
  import type { AgentToolResult } from "@earendil-works/pi-agent-core";
10
10
  import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
11
- import { runTeammate } from "@pi-maestro/teammate/src/runs/execution.ts";
12
- import type { SingleResult } from "@pi-maestro/teammate/src/shared/types.ts";
11
+ import { runTeammate } from "../../../pi-teammate/src/runs/execution.ts";
12
+ import type { SingleResult } from "../../../pi-teammate/src/shared/types.ts";
13
13
 
14
14
  export interface ExploreParams {
15
15
  prompts?: string[];
package/src/tools/moa.ts CHANGED
@@ -9,8 +9,8 @@
9
9
 
10
10
  import type { AgentToolResult } from "@earendil-works/pi-agent-core";
11
11
  import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
12
- import { runTeammate } from "@pi-maestro/teammate/src/runs/execution.ts";
13
- import type { SingleResult } from "@pi-maestro/teammate/src/shared/types.ts";
12
+ import { runTeammate } from "../../../pi-teammate/src/runs/execution.ts";
13
+ import type { SingleResult } from "../../../pi-teammate/src/shared/types.ts";
14
14
 
15
15
  export interface MoaParams {
16
16
  prompts?: string[];