@pantheon.ai/agents 0.0.7 → 0.0.8

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -393,7 +393,7 @@ var require_cli_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
393
393
 
394
394
  //#endregion
395
395
  //#region package.json
396
- var version = "0.0.7";
396
+ var version = "0.0.8";
397
397
 
398
398
  //#endregion
399
399
  //#region src/schemas/task-list.ts
@@ -1890,10 +1890,10 @@ async function configAgent(name, options) {
1890
1890
  projectId: options.projectId,
1891
1891
  branchId: options.rootBranchId,
1892
1892
  agent: "codex",
1893
- prompt: `You must follow these instructions to setup base branch for agent role "${options.role}":
1894
- 1. Clone the main branch from https://github.com/pingcap-inc/pantheon-agents to a temporary directory.
1895
- 2. Copy the pantheon-agents/roles/${options.role}/AGENTS.md to \`<workspace>/AGENTS.md\`.
1896
- 3. Copy the pantheon-agents/roles/${options.role}/skills directory to \`<workspace>/.codex/skills\` if exists.
1893
+ prompt: `You must follow these instructions":
1894
+ 1. Clone the main branch from ${options.prototypeUrl} to a temporary directory (<pantheon-agents> in follow instructions references to this directory).
1895
+ 2. Copy the <pantheon-agents>/agents/${options.role}/AGENTS.md to \`<workspace>/AGENTS.md\`.
1896
+ 3. Copy the <pantheon-agents>/agents/${options.role}/skills directory to \`<workspace>/.codex/skills\` if the source directory exists.
1897
1897
  ${options.skills.length > 0 ? `4. Copy the pantheon-agents/skills/\{${options.skills.join(",")}} directory to \`<workspace>/.codex/skills/\`` : ""}
1898
1898
 
1899
1899
  Validate <workspace>: check if files and directorys exists:
@@ -1901,6 +1901,8 @@ Validate <workspace>: check if files and directorys exists:
1901
1901
  - .codex/skills
1902
1902
 
1903
1903
  **You MUST NOT generate AGENTS.md and skills by yourself if clone failed.**
1904
+
1905
+ Finally, outputs the first 5 lines of <workspace>/AGENTS.md and the skills list in <workspace>/.codex/skills
1904
1906
  `
1905
1907
  });
1906
1908
  let retried = 0;
@@ -1942,7 +1944,7 @@ Validate <workspace>: check if files and directorys exists:
1942
1944
  execute_agent: options.executeAgent,
1943
1945
  role: options.role,
1944
1946
  skills: options.skills,
1945
- prototype_url: "https://github.com/pingcap-inc/pantheon-agents"
1947
+ prototype_url: options.prototypeUrl
1946
1948
  });
1947
1949
  } else await provider.setAgentConfig({
1948
1950
  project_id: options.projectId,
@@ -1950,7 +1952,7 @@ Validate <workspace>: check if files and directorys exists:
1950
1952
  execute_agent: options.executeAgent,
1951
1953
  role: options.role,
1952
1954
  skills: options.skills,
1953
- prototype_url: "https://github.com/pingcap-inc/pantheon-agents"
1955
+ prototype_url: options.prototypeUrl
1954
1956
  });
1955
1957
  console.log(`Agent ${name} configured successfully.`);
1956
1958
  await provider.close();
@@ -2135,7 +2137,7 @@ function createAddTaskCommand(version) {
2135
2137
  //#endregion
2136
2138
  //#region src/cli/commands/config.ts
2137
2139
  function createConfigAgentCommand(version) {
2138
- return createCommand("pantheon-agents config").version(version).description("Configure agent for pantheon project").argument("<name>", "The name of the agent.").argument("<role>", "The role of the agent.").argument("<project-id>", "The project id of the agent.").option("--skills <skills>", "The skills of the agent. Multiple values are separated by comma.", (val) => val.split(",").map((s) => s.trim()).filter((s) => s !== ""), []).option("--execute-agent <agent>", "The execute agent of the agent.", "codex").option("--root-branch-id <branchId>", "The root branch id of the agent. Default to project root branch id.").option("--no-bootstrap", "Prevent bootstrap base branch for agent. Use the root branch as base branch.").action(async function() {
2140
+ return createCommand("pantheon-agents config").version(version).description("Configure agent for pantheon project").argument("<name>", "The name of the agent.").argument("<role>", "The role of the agent.").argument("<project-id>", "The project id of the agent.").option("--skills <skills>", "The skills of the agent. Multiple values are separated by comma.", (val) => val.split(",").map((s) => s.trim()).filter((s) => s !== ""), []).option("--execute-agent <agent>", "The execute agent of the agent.", "codex").option("--root-branch-id <branchId>", "The root branch id of the agent. Default to project root branch id.").option("--prototype-url <url>", "Role and skill definitions repo.", "https://github.com/pingcap-inc/pantheon-agents").option("--no-bootstrap", "Prevent bootstrap base branch for agent. Use the root branch as base branch.").action(async function() {
2139
2141
  const [name, role, projectId] = this.args;
2140
2142
  await configAgent(name, {
2141
2143
  role,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pantheon.ai/agents",
3
3
  "type": "module",
4
- "version": "0.0.7",
4
+ "version": "0.0.8",
5
5
  "bin": {
6
6
  "pantheon-agents": "dist/index.js"
7
7
  },