@inkeep/agents-cli 0.2.1 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -8
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -331,7 +331,7 @@ var init_api = __esm({
331
331
  const tenantId = this.checkTenantId();
332
332
  const projectId = this.getProjectId();
333
333
  const response = await fetch(
334
- `${this.apiUrl}/tenants/${tenantId}/crud/projects/${projectId}/agent-graphs`,
334
+ `${this.apiUrl}/tenants/${tenantId}/projects/${projectId}/agent-graphs`,
335
335
  {
336
336
  method: "GET",
337
337
  headers: {
@@ -362,7 +362,7 @@ var init_api = __esm({
362
362
  throw new Error("Graph must have an id property");
363
363
  }
364
364
  const response = await fetch(
365
- `${this.apiUrl}/tenants/${tenantId}/crud/projects/${projectId}/graph/${graphId}`,
365
+ `${this.apiUrl}/tenants/${tenantId}/projects/${projectId}/graph/${graphId}`,
366
366
  {
367
367
  method: "PUT",
368
368
  headers: {
@@ -1699,7 +1699,6 @@ async function pullProjectCommand(options) {
1699
1699
 
1700
1700
  // src/commands/push.ts
1701
1701
  init_esm_shims();
1702
- init_tsx_loader();
1703
1702
  import { existsSync as existsSync9 } from "fs";
1704
1703
  import { join as join9 } from "path";
1705
1704
  import chalk6 from "chalk";
@@ -1739,6 +1738,7 @@ Make sure you have a ${env}.env.ts file in the environments directory.`
1739
1738
  }
1740
1739
 
1741
1740
  // src/commands/push.ts
1741
+ init_tsx_loader();
1742
1742
  async function loadProject(projectDir) {
1743
1743
  const indexPath = join9(projectDir, "index.ts");
1744
1744
  if (!existsSync9(indexPath)) {
@@ -1895,12 +1895,13 @@ async function pushCommand(options) {
1895
1895
  // src/commands/add.ts
1896
1896
  init_esm_shims();
1897
1897
  import chalk7 from "chalk";
1898
+ import fs2 from "fs-extra";
1898
1899
  import ora5 from "ora";
1899
1900
 
1900
1901
  // src/utils/templates.ts
1901
1902
  init_esm_shims();
1902
- import fs from "fs-extra";
1903
1903
  import degit from "degit";
1904
+ import fs from "fs-extra";
1904
1905
  async function cloneTemplate(templatePath, targetPath) {
1905
1906
  await fs.mkdir(targetPath, { recursive: true });
1906
1907
  const templatePathSuffix = templatePath.replace("https://github.com/", "");
@@ -1913,14 +1914,13 @@ async function cloneTemplate(templatePath, targetPath) {
1913
1914
  }
1914
1915
  async function getAvailableTemplates() {
1915
1916
  const response = await fetch(
1916
- "https://api.github.com/repos/inkeep/agents-cookbook/contents/templates"
1917
+ "https://api.github.com/repos/inkeep/agents-cookbook/contents/template-projects"
1917
1918
  );
1918
1919
  const contents = await response.json();
1919
1920
  return contents.filter((item) => item.type === "dir").map((item) => item.name);
1920
1921
  }
1921
1922
 
1922
1923
  // src/commands/add.ts
1923
- import fs2 from "fs-extra";
1924
1924
  async function addCommand(options) {
1925
1925
  const templates = await getAvailableTemplates();
1926
1926
  if (!options.template) {
@@ -1944,12 +1944,14 @@ async function addCommand(options) {
1944
1944
  try {
1945
1945
  await fs2.mkdir(baseDir, { recursive: true });
1946
1946
  } catch (error) {
1947
- console.error(`\u274C Failed to create target directory "${baseDir}": ${error instanceof Error ? error.message : "Unknown error"}`);
1947
+ console.error(
1948
+ `\u274C Failed to create target directory "${baseDir}": ${error instanceof Error ? error.message : "Unknown error"}`
1949
+ );
1948
1950
  process.exit(1);
1949
1951
  }
1950
1952
  }
1951
1953
  const spinner = ora5("Adding template...").start();
1952
- const fullTemplatePath = `https://github.com/inkeep/agents-cookbook/templates/${options.template}`;
1954
+ const fullTemplatePath = `https://github.com/inkeep/agents-cookbook/template-projects/${options.template}`;
1953
1955
  await cloneTemplate(fullTemplatePath, templateDir);
1954
1956
  spinner.succeed(`Template "${options.template}" added to ${templateDir}`);
1955
1957
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-cli",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Inkeep CLI tool",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -43,8 +43,8 @@
43
43
  "recast": "^0.23.0",
44
44
  "ts-morph": "^26.0.0",
45
45
  "tsx": "^4.20.5",
46
- "@inkeep/agents-core": "^0.2.1",
47
- "@inkeep/agents-manage-ui": "^0.2.1"
46
+ "@inkeep/agents-core": "^0.3.0",
47
+ "@inkeep/agents-manage-ui": "^0.3.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/degit": "^2.8.6",