@agentskit/cli 0.13.37 → 0.13.40

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.d.cts CHANGED
@@ -264,8 +264,8 @@ interface LoadPluginsOptions {
264
264
  /** Working directory; defaults to process.cwd(). */
265
265
  cwd?: string;
266
266
  /**
267
- * Auto-discover from `~/.agentskit/plugins`. Defaults to true. Tests pass
268
- * false so the user's real home dir can't contaminate runs.
267
+ * Auto-discover from `~/.agentskit/plugins`. Defaults to false because
268
+ * discovery executes arbitrary third-party code.
269
269
  */
270
270
  autoDiscoverUserDir?: boolean;
271
271
  /** Error logger. Defaults to stderr. */
@@ -330,8 +330,10 @@ interface InitCommandOptions {
330
330
  tools?: ToolKind[];
331
331
  memory?: MemoryKind;
332
332
  packageManager?: PackageManager;
333
+ /** Refuse non-empty destinations unless explicitly enabled. */
334
+ force?: boolean;
333
335
  }
334
- declare function writeStarterProject(options: InitCommandOptions): Promise<void>;
336
+ declare function writeStarterProject(options: InitCommandOptions): Promise<string[]>;
335
337
 
336
338
  interface ChatProviderOptions {
337
339
  provider: string;
@@ -673,7 +675,7 @@ interface HookDispatchResult {
673
675
  * - `modify`: replace the payload for subsequent handlers
674
676
  * - `block`: stop dispatch and surface a reason to the caller
675
677
  *
676
- * Handlers that throw are reported via `onError` and treated as `continue`.
678
+ * Handler failures block by default so enforcement hooks cannot fail open.
677
679
  */
678
680
  declare class HookDispatcher {
679
681
  private readonly onError;
package/dist/index.d.ts CHANGED
@@ -264,8 +264,8 @@ interface LoadPluginsOptions {
264
264
  /** Working directory; defaults to process.cwd(). */
265
265
  cwd?: string;
266
266
  /**
267
- * Auto-discover from `~/.agentskit/plugins`. Defaults to true. Tests pass
268
- * false so the user's real home dir can't contaminate runs.
267
+ * Auto-discover from `~/.agentskit/plugins`. Defaults to false because
268
+ * discovery executes arbitrary third-party code.
269
269
  */
270
270
  autoDiscoverUserDir?: boolean;
271
271
  /** Error logger. Defaults to stderr. */
@@ -330,8 +330,10 @@ interface InitCommandOptions {
330
330
  tools?: ToolKind[];
331
331
  memory?: MemoryKind;
332
332
  packageManager?: PackageManager;
333
+ /** Refuse non-empty destinations unless explicitly enabled. */
334
+ force?: boolean;
333
335
  }
334
- declare function writeStarterProject(options: InitCommandOptions): Promise<void>;
336
+ declare function writeStarterProject(options: InitCommandOptions): Promise<string[]>;
335
337
 
336
338
  interface ChatProviderOptions {
337
339
  provider: string;
@@ -673,7 +675,7 @@ interface HookDispatchResult {
673
675
  * - `modify`: replace the payload for subsequent handlers
674
676
  * - `block`: stop dispatch and surface a reason to the caller
675
677
  *
676
- * Handlers that throw are reported via `onError` and treated as `continue`.
678
+ * Handler failures block by default so enforcement hooks cannot fail open.
677
679
  */
678
680
  declare class HookDispatcher {
679
681
  private readonly onError;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- export { ChatApp, HookDispatcher, McpClient, applyPolicyToTool, applyPolicyToTools, bridgeMcpServers, buildRagFromConfig, computeCost, configHooksToHandlers, createCli, createOpenAiEmbedder, defaultPolicy, derivePreview, disposeMcpClients, evaluatePolicy, findLatestSession, findSession, forkSession, generateSessionId, getPricing, indexSources, listSessions, loadConfig, loadPlugins, mergePluginsIntoBundle, registerPricing, renameSession, renderChatHeader, renderReport, resolveChatProvider, resolveSession, runAgent, runDoctor, sessionFilePath, startDev, startTunnel, writeSessionMeta, writeStarterProject } from './chunk-DZKCRKFS.js';
2
+ export { ChatApp, HookDispatcher, McpClient, applyPolicyToTool, applyPolicyToTools, bridgeMcpServers, buildRagFromConfig, computeCost, configHooksToHandlers, createCli, createOpenAiEmbedder, defaultPolicy, derivePreview, disposeMcpClients, evaluatePolicy, findLatestSession, findSession, forkSession, generateSessionId, getPricing, indexSources, listSessions, loadConfig, loadPlugins, mergePluginsIntoBundle, registerPricing, renameSession, renderChatHeader, renderReport, resolveChatProvider, resolveSession, runAgent, runDoctor, sessionFilePath, startDev, startTunnel, writeSessionMeta, writeStarterProject } from './chunk-7ALDICSL.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@agentskit/cli",
3
- "version": "0.13.37",
3
+ "version": "0.13.40",
4
4
  "description": "CLI for AgentsKit chat and project scaffolding.",
5
+ "engines": {
6
+ "node": ">=22"
7
+ },
5
8
  "keywords": [
6
9
  "agentskit",
7
10
  "ai",
@@ -38,7 +41,23 @@
38
41
  "files": [
39
42
  "dist"
40
43
  ],
44
+ "scripts": {
45
+ "build": "tsup",
46
+ "test": "vitest run",
47
+ "test:coverage": "vitest run --coverage",
48
+ "lint": "tsc --noEmit",
49
+ "dev": "tsup --watch"
50
+ },
41
51
  "dependencies": {
52
+ "@agentskit/adapters": "0.17.0",
53
+ "@agentskit/core": "1.12.9",
54
+ "@agentskit/ink": "0.10.11",
55
+ "@agentskit/integrations": "0.7.3",
56
+ "@agentskit/memory": "0.11.10",
57
+ "@agentskit/rag": "0.5.7",
58
+ "@agentskit/runtime": "0.10.17",
59
+ "@agentskit/skills": "0.9.5",
60
+ "@agentskit/tools": "0.13.8",
42
61
  "@inquirer/prompts": "^8.5.2",
43
62
  "chokidar": "^5.0.0",
44
63
  "commander": "^14.0.3",
@@ -46,16 +65,8 @@
46
65
  "kleur": "^4.1.5",
47
66
  "localtunnel": "^2.0.2",
48
67
  "react": "^19.2.8",
49
- "yaml": "^2.9.0",
50
- "@agentskit/adapters": "0.15.1",
51
- "@agentskit/core": "1.12.8",
52
- "@agentskit/ink": "0.10.9",
53
- "@agentskit/memory": "0.11.8",
54
- "@agentskit/integrations": "0.7.0",
55
- "@agentskit/rag": "0.5.4",
56
- "@agentskit/runtime": "0.10.15",
57
- "@agentskit/skills": "0.9.3",
58
- "@agentskit/tools": "0.13.5"
68
+ "tsx": "^4.23.5",
69
+ "yaml": "^2.9.0"
59
70
  },
60
71
  "devDependencies": {
61
72
  "@testing-library/jest-dom": "^7.0.0",
@@ -80,18 +91,11 @@
80
91
  "homepage": "https://www.agentskit.io/docs/reference/packages/cli",
81
92
  "repository": {
82
93
  "type": "git",
83
- "url": "git+https://github.com/AgentsKit-io/agentskit.git",
94
+ "url": "https://github.com/AgentsKit-io/agentskit",
84
95
  "directory": "packages/cli"
85
96
  },
86
97
  "bugs": {
87
98
  "url": "https://github.com/AgentsKit-io/agentskit/issues"
88
99
  },
89
- "author": "AgentsKit Contributors",
90
- "scripts": {
91
- "build": "tsup",
92
- "test": "vitest run",
93
- "test:coverage": "vitest run --coverage",
94
- "lint": "tsc --noEmit",
95
- "dev": "tsup --watch"
96
- }
97
- }
100
+ "author": "AgentsKit Contributors"
101
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Emerson Braun
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.