@inkeep/agents-cli 0.50.6 → 0.52.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 (69) hide show
  1. package/dist/agents-cli/package.js +6 -0
  2. package/dist/commands/config.js +1 -1
  3. package/dist/commands/dev.js +1 -1
  4. package/dist/commands/init.js +1 -1
  5. package/dist/commands/pull-v3/component-parser.js +4 -10
  6. package/dist/commands/pull-v4/agent-generator.js +274 -0
  7. package/dist/commands/pull-v4/artifact-component-generator.js +69 -0
  8. package/dist/commands/pull-v4/context-config-generator.js +264 -0
  9. package/dist/commands/pull-v4/credential-generator.js +30 -0
  10. package/dist/commands/pull-v4/data-component-generator.js +50 -0
  11. package/dist/commands/pull-v4/environment-generator.js +123 -0
  12. package/dist/commands/pull-v4/external-agent-generator.js +56 -0
  13. package/dist/commands/pull-v4/function-tool-generator.js +48 -0
  14. package/dist/commands/pull-v4/introspect/index.js +365 -0
  15. package/dist/commands/pull-v4/introspect/test-helpers.js +143 -0
  16. package/dist/commands/pull-v4/introspect-generator.js +691 -0
  17. package/dist/commands/pull-v4/mcp-tool-generator.js +91 -0
  18. package/dist/commands/pull-v4/module-merge.js +379 -0
  19. package/dist/commands/pull-v4/project-generator.js +101 -0
  20. package/dist/commands/pull-v4/status-component-generator.js +35 -0
  21. package/dist/commands/pull-v4/sub-agent-generator.js +168 -0
  22. package/dist/commands/pull-v4/trigger-generator.js +58 -0
  23. package/dist/commands/pull-v4/utils.js +219 -0
  24. package/dist/commands/push.js +1 -1
  25. package/dist/commands/update.js +2 -2
  26. package/dist/index.js +18 -44
  27. package/dist/node_modules/.pnpm/diff@8.0.3/node_modules/diff/libesm/diff/array.js +18 -0
  28. package/dist/node_modules/.pnpm/diff@8.0.3/node_modules/diff/libesm/diff/base.js +180 -0
  29. package/dist/node_modules/.pnpm/diff@8.0.3/node_modules/diff/libesm/diff/character.js +8 -0
  30. package/dist/node_modules/.pnpm/diff@8.0.3/node_modules/diff/libesm/diff/css.js +12 -0
  31. package/dist/node_modules/.pnpm/diff@8.0.3/node_modules/diff/libesm/diff/json.js +60 -0
  32. package/dist/node_modules/.pnpm/diff@8.0.3/node_modules/diff/libesm/diff/line.js +37 -0
  33. package/dist/node_modules/.pnpm/diff@8.0.3/node_modules/diff/libesm/diff/sentence.js +31 -0
  34. package/dist/node_modules/.pnpm/diff@8.0.3/node_modules/diff/libesm/diff/word.js +118 -0
  35. package/dist/node_modules/.pnpm/diff@8.0.3/node_modules/diff/libesm/index.js +11 -0
  36. package/dist/node_modules/.pnpm/diff@8.0.3/node_modules/diff/libesm/patch/create.js +141 -0
  37. package/dist/node_modules/.pnpm/diff@8.0.3/node_modules/diff/libesm/util/string.js +63 -0
  38. package/dist/utils/ci-environment.js +1 -1
  39. package/dist/utils/config.js +1 -1
  40. package/dist/utils/environment-loader.js +1 -1
  41. package/dist/utils/file-finder.js +1 -1
  42. package/dist/utils/mcp-runner.js +1 -1
  43. package/dist/utils/profile-config.js +1 -1
  44. package/dist/utils/profiles/profile-manager.js +1 -1
  45. package/dist/utils/project-directory.js +1 -1
  46. package/dist/utils/project-loader.js +1 -1
  47. package/dist/utils/version-check.js +6 -15
  48. package/package.json +5 -4
  49. package/dist/commands/pull-v3/component-updater.js +0 -768
  50. package/dist/commands/pull-v3/components/agent-generator.js +0 -255
  51. package/dist/commands/pull-v3/components/artifact-component-generator.js +0 -143
  52. package/dist/commands/pull-v3/components/context-config-generator.js +0 -190
  53. package/dist/commands/pull-v3/components/credential-generator.js +0 -89
  54. package/dist/commands/pull-v3/components/data-component-generator.js +0 -102
  55. package/dist/commands/pull-v3/components/environment-generator.js +0 -173
  56. package/dist/commands/pull-v3/components/external-agent-generator.js +0 -75
  57. package/dist/commands/pull-v3/components/function-tool-generator.js +0 -92
  58. package/dist/commands/pull-v3/components/mcp-tool-generator.js +0 -86
  59. package/dist/commands/pull-v3/components/project-generator.js +0 -157
  60. package/dist/commands/pull-v3/components/status-component-generator.js +0 -92
  61. package/dist/commands/pull-v3/components/sub-agent-generator.js +0 -295
  62. package/dist/commands/pull-v3/components/trigger-generator.js +0 -185
  63. package/dist/commands/pull-v3/index.js +0 -510
  64. package/dist/commands/pull-v3/introspect-generator.js +0 -286
  65. package/dist/commands/pull-v3/llm-content-merger.js +0 -192
  66. package/dist/commands/pull-v3/new-component-generator.js +0 -279
  67. package/dist/commands/pull-v3/project-index-generator.js +0 -32
  68. package/dist/commands/pull-v3/project-validator.js +0 -358
  69. package/dist/utils/url.js +0 -26
@@ -3,8 +3,8 @@ import { LOCAL_REMOTE } from "./profiles/types.js";
3
3
  import "./profiles/index.js";
4
4
  import { importWithTypeScriptSupport } from "./tsx-loader.js";
5
5
  import { getLogger } from "@inkeep/agents-core";
6
- import { existsSync, readdirSync, statSync } from "node:fs";
7
6
  import { dirname, join, relative, resolve } from "node:path";
7
+ import { existsSync, readdirSync, statSync } from "node:fs";
8
8
 
9
9
  //#region src/utils/config.ts
10
10
  const logger = getLogger("config");
@@ -1,6 +1,6 @@
1
1
  import { importWithTypeScriptSupport } from "./tsx-loader.js";
2
- import { existsSync } from "node:fs";
3
2
  import { join } from "node:path";
3
+ import { existsSync } from "node:fs";
4
4
 
5
5
  //#region src/utils/environment-loader.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { existsSync, readdirSync, statSync } from "node:fs";
2
1
  import { join, relative } from "node:path";
2
+ import { existsSync, readdirSync, statSync } from "node:fs";
3
3
 
4
4
  //#region src/utils/file-finder.ts
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { existsSync, mkdirSync, writeFileSync } from "node:fs";
3
2
  import { join } from "node:path";
3
+ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
4
4
  import { homedir } from "node:os";
5
5
  import http from "node:http";
6
6
 
@@ -2,9 +2,9 @@ import { getCredentialExpiryInfo, loadCredentials } from "./credentials.js";
2
2
  import { LOCAL_REMOTE } from "./profiles/types.js";
3
3
  import { ProfileManager } from "./profiles/profile-manager.js";
4
4
  import "./profiles/index.js";
5
- import { existsSync } from "node:fs";
6
5
  import { join } from "node:path";
7
6
  import chalk from "chalk";
7
+ import { existsSync } from "node:fs";
8
8
  import dotenv from "dotenv";
9
9
 
10
10
  //#region src/utils/profile-config.ts
@@ -1,8 +1,8 @@
1
1
  import { __require } from "../../_virtual/rolldown_runtime.js";
2
2
  import { CLOUD_REMOTE, DEFAULT_PROFILES_CONFIG, profileNameSchema, profilesConfigSchema } from "./types.js";
3
3
  import { getLogger } from "@inkeep/agents-core";
4
- import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
5
4
  import { join } from "node:path";
5
+ import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
6
6
  import { homedir, tmpdir } from "node:os";
7
7
  import * as yaml from "yaml";
8
8
 
@@ -1,6 +1,6 @@
1
- import { existsSync } from "node:fs";
2
1
  import { join, resolve } from "node:path";
3
2
  import { findUp } from "find-up";
3
+ import { existsSync } from "node:fs";
4
4
 
5
5
  //#region src/utils/project-directory.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { importWithTypeScriptSupport } from "./tsx-loader.js";
2
- import { existsSync } from "node:fs";
3
2
  import { join } from "node:path";
3
+ import { existsSync } from "node:fs";
4
4
 
5
5
  //#region src/utils/project-loader.ts
6
6
  /**
@@ -1,21 +1,14 @@
1
- import { existsSync, readFileSync } from "node:fs";
2
- import { dirname, join } from "node:path";
3
- import { fileURLToPath } from "node:url";
1
+ import { name, version } from "../agents-cli/package.js";
4
2
 
5
3
  //#region src/utils/version-check.ts
6
- const __dirname = dirname(fileURLToPath(import.meta.url));
7
4
  /**
8
5
  * The default package name for version checks and updates
9
6
  */
10
- const DEFAULT_PACKAGE_NAME = "@inkeep/agents-cli";
7
+ const DEFAULT_PACKAGE_NAME = name;
11
8
  /**
12
9
  * Get the current installed version from package.json
13
10
  */
14
- function getCurrentVersion() {
15
- let packageJsonPath = join(__dirname, "..", "package.json");
16
- if (!existsSync(packageJsonPath)) packageJsonPath = join(__dirname, "..", "..", "package.json");
17
- return JSON.parse(readFileSync(packageJsonPath, "utf-8")).version;
18
- }
11
+ const PACKAGE_VERSION = version;
19
12
  /**
20
13
  * Fetch the latest version from npm registry
21
14
  */
@@ -60,7 +53,7 @@ function compareVersions(v1, v2) {
60
53
  * Check if an update is available
61
54
  */
62
55
  async function checkForUpdate() {
63
- const current = getCurrentVersion();
56
+ const current = PACKAGE_VERSION;
64
57
  const latest = await getLatestVersion();
65
58
  return {
66
59
  current,
@@ -71,9 +64,7 @@ async function checkForUpdate() {
71
64
  /**
72
65
  * Get the changelog URL for the package
73
66
  */
74
- function getChangelogUrl() {
75
- return `https://github.com/inkeep/agents/blob/main/agents-cli/CHANGELOG.md`;
76
- }
67
+ const PACKAGE_CHANGELOG = "https://github.com/inkeep/agents/blob/main/agents-cli/CHANGELOG.md";
77
68
 
78
69
  //#endregion
79
- export { DEFAULT_PACKAGE_NAME, checkForUpdate, compareVersions, getChangelogUrl, getCurrentVersion, getLatestVersion };
70
+ export { DEFAULT_PACKAGE_NAME, PACKAGE_CHANGELOG, PACKAGE_VERSION, checkForUpdate, compareVersions, getLatestVersion };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-cli",
3
- "version": "0.50.6",
3
+ "version": "0.52.0",
4
4
  "description": "Inkeep CLI tool",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -40,13 +40,14 @@
40
40
  "tsx": "^4.20.5",
41
41
  "yaml": "^2.7.0",
42
42
  "zod": "^4.3.6",
43
- "@inkeep/agents-sdk": "^0.50.6",
44
- "@inkeep/agents-core": "^0.50.6"
43
+ "@inkeep/agents-sdk": "^0.52.0",
44
+ "@inkeep/agents-core": "^0.52.0"
45
45
  },
46
46
  "devDependencies": {
47
+ "diff": "^8.0.3",
47
48
  "@types/degit": "^2.8.6",
48
49
  "@types/fs-extra": "^11.0.4",
49
- "@types/node": "^20.10.0",
50
+ "@types/node": "^22",
50
51
  "@vitest/coverage-v8": "^3.2.4",
51
52
  "typescript": "^5.9.2",
52
53
  "vitest": "^3.2.4"