@inkeep/agents-cli 0.0.0-dev-20251117041813 → 0.0.0-dev-20251117174652
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/dist/index.js +54 -28
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -240014,7 +240014,7 @@ var init_model_provider_detector = __esm({
|
|
|
240014
240014
|
{
|
|
240015
240015
|
name: "openai",
|
|
240016
240016
|
envVars: ["OPENAI_API_KEY"],
|
|
240017
|
-
model: "gpt-
|
|
240017
|
+
model: "gpt-5.1"
|
|
240018
240018
|
},
|
|
240019
240019
|
{
|
|
240020
240020
|
name: "google",
|
|
@@ -241730,42 +241730,68 @@ async function pullV3Command(options) {
|
|
|
241730
241730
|
});
|
|
241731
241731
|
s4.start("Detecting project...");
|
|
241732
241732
|
let projectDir;
|
|
241733
|
-
|
|
241734
|
-
|
|
241735
|
-
|
|
241736
|
-
|
|
241737
|
-
|
|
241738
|
-
|
|
241733
|
+
let projectId;
|
|
241734
|
+
let localProjectForId = null;
|
|
241735
|
+
const currentDir = process.cwd();
|
|
241736
|
+
const hasIndexInCurrent = existsSync12(join15(currentDir, "index.ts"));
|
|
241737
|
+
if (hasIndexInCurrent) {
|
|
241738
|
+
projectDir = currentDir;
|
|
241739
|
+
s4.start("Loading local project...");
|
|
241740
|
+
try {
|
|
241741
|
+
localProjectForId = await loadProject(projectDir);
|
|
241742
|
+
const localProjectId = localProjectForId.getId();
|
|
241743
|
+
if (options.project) {
|
|
241744
|
+
if (localProjectId !== options.project) {
|
|
241745
|
+
s4.stop("Project ID mismatch");
|
|
241746
|
+
console.error(
|
|
241747
|
+
chalk14.red(
|
|
241748
|
+
`Local project ID "${localProjectId}" doesn't match --project "${options.project}"`
|
|
241749
|
+
)
|
|
241750
|
+
);
|
|
241751
|
+
console.error(
|
|
241752
|
+
chalk14.yellow("Either remove --project flag or ensure it matches the local project ID")
|
|
241753
|
+
);
|
|
241754
|
+
process.exit(1);
|
|
241755
|
+
}
|
|
241756
|
+
}
|
|
241757
|
+
projectId = localProjectId;
|
|
241758
|
+
s4.stop(`Using local project: ${projectId}`);
|
|
241759
|
+
} catch (error) {
|
|
241760
|
+
s4.stop("Failed to load local project");
|
|
241761
|
+
throw new Error(
|
|
241762
|
+
`Could not load local project: ${error instanceof Error ? error.message : String(error)}`
|
|
241739
241763
|
);
|
|
241740
|
-
process.exit(1);
|
|
241741
241764
|
}
|
|
241742
241765
|
} else {
|
|
241743
|
-
|
|
241744
|
-
if (existsSync12(join15(currentDir, "index.ts"))) {
|
|
241745
|
-
projectDir = currentDir;
|
|
241746
|
-
} else {
|
|
241766
|
+
if (!options.project) {
|
|
241747
241767
|
s4.stop("No index.ts found in current directory");
|
|
241748
241768
|
console.error(
|
|
241749
241769
|
chalk14.yellow(
|
|
241750
|
-
"Please run this command from a directory containing index.ts or use --project <
|
|
241770
|
+
"Please run this command from a directory containing index.ts or use --project <project-id>"
|
|
241751
241771
|
)
|
|
241752
241772
|
);
|
|
241753
241773
|
process.exit(1);
|
|
241754
241774
|
}
|
|
241755
|
-
|
|
241756
|
-
|
|
241757
|
-
|
|
241758
|
-
|
|
241759
|
-
|
|
241760
|
-
|
|
241761
|
-
|
|
241762
|
-
|
|
241763
|
-
|
|
241764
|
-
|
|
241765
|
-
|
|
241766
|
-
|
|
241767
|
-
|
|
241768
|
-
|
|
241775
|
+
const projectPath = resolve4(currentDir, options.project);
|
|
241776
|
+
const hasIndexInPath = existsSync12(join15(projectPath, "index.ts"));
|
|
241777
|
+
if (hasIndexInPath) {
|
|
241778
|
+
projectDir = projectPath;
|
|
241779
|
+
s4.start("Loading project from specified path...");
|
|
241780
|
+
try {
|
|
241781
|
+
localProjectForId = await loadProject(projectDir);
|
|
241782
|
+
projectId = localProjectForId.getId();
|
|
241783
|
+
s4.stop(`Using project from path: ${projectId}`);
|
|
241784
|
+
} catch (error) {
|
|
241785
|
+
s4.stop("Failed to load project from path");
|
|
241786
|
+
throw new Error(
|
|
241787
|
+
`Could not load project from ${projectPath}: ${error instanceof Error ? error.message : String(error)}`
|
|
241788
|
+
);
|
|
241789
|
+
}
|
|
241790
|
+
} else {
|
|
241791
|
+
projectId = options.project;
|
|
241792
|
+
projectDir = join15(currentDir, projectId);
|
|
241793
|
+
s4.stop(`Creating new project directory: ${projectDir}`);
|
|
241794
|
+
}
|
|
241769
241795
|
}
|
|
241770
241796
|
s4.start(`Fetching project: ${projectId}`);
|
|
241771
241797
|
const apiClient = await ManagementApiClient.create(
|
|
@@ -243510,7 +243536,7 @@ program.command("push").description("Push a project configuration to the backend
|
|
|
243510
243536
|
});
|
|
243511
243537
|
program.command("pull").description("Pull project configuration with clean, efficient code generation").option(
|
|
243512
243538
|
"--project <project-id>",
|
|
243513
|
-
"
|
|
243539
|
+
"Project ID to pull (or path to project directory). If in project directory, validates against local project ID."
|
|
243514
243540
|
).option("--config <path>", "Path to configuration file").option(
|
|
243515
243541
|
"--env <environment>",
|
|
243516
243542
|
"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-
|
|
3
|
+
"version": "0.0.0-dev-20251117174652",
|
|
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-
|
|
53
|
-
"@inkeep/agents-sdk": "^0.0.0-dev-
|
|
52
|
+
"@inkeep/agents-core": "^0.0.0-dev-20251117174652",
|
|
53
|
+
"@inkeep/agents-sdk": "^0.0.0-dev-20251117174652"
|
|
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-
|
|
66
|
+
"@inkeep/agents-manage-ui": "0.0.0-dev-20251117174652",
|
|
67
67
|
"zod": "^4.1.11"
|
|
68
68
|
},
|
|
69
69
|
"engines": {
|