@inkeep/agents-cli 0.0.0-dev-20251117041813 → 0.0.0-dev-20251117195744

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 +56 -29
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -3425,7 +3425,8 @@ var init_schemas = __esm({
3425
3425
  version: z5.string().optional(),
3426
3426
  createdAt: z5.date(),
3427
3427
  updatedAt: z5.date(),
3428
- expiresAt: z5.date().optional()
3428
+ expiresAt: z5.date().optional(),
3429
+ relationshipId: z5.string().optional()
3429
3430
  }).openapi("McpTool");
3430
3431
  MCPToolConfigSchema = McpToolSchema.omit({
3431
3432
  config: true,
@@ -240014,7 +240015,7 @@ var init_model_provider_detector = __esm({
240014
240015
  {
240015
240016
  name: "openai",
240016
240017
  envVars: ["OPENAI_API_KEY"],
240017
- model: "gpt-4.1"
240018
+ model: "gpt-5.1"
240018
240019
  },
240019
240020
  {
240020
240021
  name: "google",
@@ -241730,42 +241731,68 @@ async function pullV3Command(options) {
241730
241731
  });
241731
241732
  s4.start("Detecting project...");
241732
241733
  let projectDir;
241733
- if (options.project) {
241734
- projectDir = resolve4(process.cwd(), options.project);
241735
- if (!existsSync12(join15(projectDir, "index.ts"))) {
241736
- s4.stop(`No index.ts found in specified project directory: ${projectDir}`);
241737
- console.error(
241738
- chalk14.yellow("The specified project directory must contain an index.ts file")
241734
+ let projectId;
241735
+ let localProjectForId = null;
241736
+ const currentDir = process.cwd();
241737
+ const hasIndexInCurrent = existsSync12(join15(currentDir, "index.ts"));
241738
+ if (hasIndexInCurrent) {
241739
+ projectDir = currentDir;
241740
+ s4.start("Loading local project...");
241741
+ try {
241742
+ localProjectForId = await loadProject(projectDir);
241743
+ const localProjectId = localProjectForId.getId();
241744
+ if (options.project) {
241745
+ if (localProjectId !== options.project) {
241746
+ s4.stop("Project ID mismatch");
241747
+ console.error(
241748
+ chalk14.red(
241749
+ `Local project ID "${localProjectId}" doesn't match --project "${options.project}"`
241750
+ )
241751
+ );
241752
+ console.error(
241753
+ chalk14.yellow("Either remove --project flag or ensure it matches the local project ID")
241754
+ );
241755
+ process.exit(1);
241756
+ }
241757
+ }
241758
+ projectId = localProjectId;
241759
+ s4.stop(`Using local project: ${projectId}`);
241760
+ } catch (error) {
241761
+ s4.stop("Failed to load local project");
241762
+ throw new Error(
241763
+ `Could not load local project: ${error instanceof Error ? error.message : String(error)}`
241739
241764
  );
241740
- process.exit(1);
241741
241765
  }
241742
241766
  } else {
241743
- const currentDir = process.cwd();
241744
- if (existsSync12(join15(currentDir, "index.ts"))) {
241745
- projectDir = currentDir;
241746
- } else {
241767
+ if (!options.project) {
241747
241768
  s4.stop("No index.ts found in current directory");
241748
241769
  console.error(
241749
241770
  chalk14.yellow(
241750
- "Please run this command from a directory containing index.ts or use --project <path>"
241771
+ "Please run this command from a directory containing index.ts or use --project <project-id>"
241751
241772
  )
241752
241773
  );
241753
241774
  process.exit(1);
241754
241775
  }
241755
- }
241756
- s4.stop(`Project found: ${projectDir}`);
241757
- s4.start("Loading local project to get project ID...");
241758
- let localProjectForId;
241759
- let projectId;
241760
- try {
241761
- localProjectForId = await loadProject(projectDir);
241762
- projectId = localProjectForId.getId();
241763
- s4.stop(`Project ID: ${projectId}`);
241764
- } catch (error) {
241765
- s4.stop("Failed to load local project");
241766
- throw new Error(
241767
- `Could not determine project ID. Local project failed to load: ${error instanceof Error ? error.message : String(error)}`
241768
- );
241776
+ const projectPath = resolve4(currentDir, options.project);
241777
+ const hasIndexInPath = existsSync12(join15(projectPath, "index.ts"));
241778
+ if (hasIndexInPath) {
241779
+ projectDir = projectPath;
241780
+ s4.start("Loading project from specified path...");
241781
+ try {
241782
+ localProjectForId = await loadProject(projectDir);
241783
+ projectId = localProjectForId.getId();
241784
+ s4.stop(`Using project from path: ${projectId}`);
241785
+ } catch (error) {
241786
+ s4.stop("Failed to load project from path");
241787
+ throw new Error(
241788
+ `Could not load project from ${projectPath}: ${error instanceof Error ? error.message : String(error)}`
241789
+ );
241790
+ }
241791
+ } else {
241792
+ projectId = options.project;
241793
+ projectDir = join15(currentDir, projectId);
241794
+ s4.stop(`Creating new project directory: ${projectDir}`);
241795
+ }
241769
241796
  }
241770
241797
  s4.start(`Fetching project: ${projectId}`);
241771
241798
  const apiClient = await ManagementApiClient.create(
@@ -243510,7 +243537,7 @@ program.command("push").description("Push a project configuration to the backend
243510
243537
  });
243511
243538
  program.command("pull").description("Pull project configuration with clean, efficient code generation").option(
243512
243539
  "--project <project-id>",
243513
- "Override project ID (defaults to local project ID from index.ts)"
243540
+ "Project ID to pull (or path to project directory). If in project directory, validates against local project ID."
243514
243541
  ).option("--config <path>", "Path to configuration file").option(
243515
243542
  "--env <environment>",
243516
243543
  "Environment file to generate (development, staging, production). Defaults to development"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-cli",
3
- "version": "0.0.0-dev-20251117041813",
3
+ "version": "0.0.0-dev-20251117195744",
4
4
  "description": "Inkeep CLI tool",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -49,8 +49,8 @@
49
49
  "ts-morph": "^26.0.0",
50
50
  "tsx": "^4.20.5",
51
51
  "open": "^10.2.0",
52
- "@inkeep/agents-core": "^0.0.0-dev-20251117041813",
53
- "@inkeep/agents-sdk": "^0.0.0-dev-20251117041813"
52
+ "@inkeep/agents-sdk": "^0.0.0-dev-20251117195744",
53
+ "@inkeep/agents-core": "^0.0.0-dev-20251117195744"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/degit": "^2.8.6",
@@ -63,7 +63,7 @@
63
63
  "vitest": "^3.2.4"
64
64
  },
65
65
  "peerDependencies": {
66
- "@inkeep/agents-manage-ui": "0.0.0-dev-20251117041813",
66
+ "@inkeep/agents-manage-ui": "0.0.0-dev-20251117195744",
67
67
  "zod": "^4.1.11"
68
68
  },
69
69
  "engines": {