@agentskit/cli 0.13.48 → 0.14.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.
- package/dist/bin.cjs +23 -7
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-QOF6GNDX.js → chunk-4U2QG55L.js} +25 -9
- package/dist/chunk-4U2QG55L.js.map +1 -0
- package/dist/index.cjs +23 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +10 -4
- package/dist/chunk-QOF6GNDX.js.map +0 -1
package/dist/bin.js
CHANGED
|
@@ -21,6 +21,7 @@ import { spawn } from 'child_process';
|
|
|
21
21
|
import { createRequire } from 'module';
|
|
22
22
|
import chokidar from 'chokidar';
|
|
23
23
|
import kleur3 from 'kleur';
|
|
24
|
+
import { ConfigError, ErrorCodes } from '@agentskit/core';
|
|
24
25
|
import { readText, readJson, NetError, readBody, NetErrorCodes } from '@agentskit/net';
|
|
25
26
|
import { createRAG } from '@agentskit/rag';
|
|
26
27
|
import { Command } from 'commander';
|
|
@@ -28,7 +29,6 @@ import { input, select, checkbox, confirm } from '@inquirer/prompts';
|
|
|
28
29
|
import { validateAgentSchema } from '@agentskit/core/agent-schema';
|
|
29
30
|
import { parse } from 'yaml';
|
|
30
31
|
import { validatePIITaxonomy } from '@agentskit/core/security';
|
|
31
|
-
import { ConfigError, ErrorCodes } from '@agentskit/core';
|
|
32
32
|
|
|
33
33
|
async function loadJsonConfig(path6) {
|
|
34
34
|
try {
|
|
@@ -3097,7 +3097,7 @@ var PROVIDER_REGISTRY = [
|
|
|
3097
3097
|
catalogId: "fireworks-ai",
|
|
3098
3098
|
env: { status: "required", keys: ["FIREWORKS_API_KEY"] },
|
|
3099
3099
|
reachability: { status: "supported", url: "https://api.fireworks.ai/inference/v1/models" },
|
|
3100
|
-
defaultModel: { status: "known", id: "accounts/fireworks/models/deepseek-
|
|
3100
|
+
defaultModel: { status: "known", id: "accounts/fireworks/models/deepseek-v4p1-flash" }
|
|
3101
3101
|
},
|
|
3102
3102
|
{
|
|
3103
3103
|
id: "huggingface",
|
|
@@ -3560,12 +3560,28 @@ function startDev(options) {
|
|
|
3560
3560
|
restarts: () => restartCount
|
|
3561
3561
|
};
|
|
3562
3562
|
}
|
|
3563
|
+
var TUNNEL_PROVIDER_HINT = 'The tunnel command needs the optional "localtunnel" package. Install it with: npm install localtunnel (or pnpm add localtunnel)';
|
|
3564
|
+
async function loadLocaltunnel(opts, importer = (s) => import(s)) {
|
|
3565
|
+
let mod;
|
|
3566
|
+
try {
|
|
3567
|
+
mod = await importer("localtunnel");
|
|
3568
|
+
} catch (err) {
|
|
3569
|
+
const code = err?.code;
|
|
3570
|
+
if (code === "ERR_MODULE_NOT_FOUND" || code === "MODULE_NOT_FOUND") {
|
|
3571
|
+
throw new ConfigError({
|
|
3572
|
+
code: "AK_CONFIG_TUNNEL_PROVIDER_MISSING",
|
|
3573
|
+
message: TUNNEL_PROVIDER_HINT,
|
|
3574
|
+
cause: err
|
|
3575
|
+
});
|
|
3576
|
+
}
|
|
3577
|
+
throw err;
|
|
3578
|
+
}
|
|
3579
|
+
const lt = mod.default ?? mod;
|
|
3580
|
+
return await lt(opts);
|
|
3581
|
+
}
|
|
3563
3582
|
async function startTunnel(options) {
|
|
3564
3583
|
const stdout = options.stdout ?? process.stdout;
|
|
3565
|
-
const open = options.open ?? (
|
|
3566
|
-
const lt = (await import('localtunnel')).default;
|
|
3567
|
-
return await lt(opts);
|
|
3568
|
-
});
|
|
3584
|
+
const open = options.open ?? ((opts) => loadLocaltunnel(opts));
|
|
3569
3585
|
const banner = (msg, color = "green") => {
|
|
3570
3586
|
const time = (/* @__PURE__ */ new Date()).toTimeString().slice(0, 8);
|
|
3571
3587
|
stdout.write(kleur3[color](`[agentskit tunnel ${time}] `) + msg + "\n");
|
|
@@ -3717,7 +3733,7 @@ async function indexSources(rag, config, cwd) {
|
|
|
3717
3733
|
|
|
3718
3734
|
// package.json
|
|
3719
3735
|
var package_default = {
|
|
3720
|
-
version: "0.
|
|
3736
|
+
version: "0.14.0"};
|
|
3721
3737
|
|
|
3722
3738
|
// src/commands/shared.ts
|
|
3723
3739
|
function mergeWithConfig(options, config) {
|
|
@@ -6151,5 +6167,5 @@ function createCli() {
|
|
|
6151
6167
|
}
|
|
6152
6168
|
|
|
6153
6169
|
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, writeStarterProject2 as writeStarterProject };
|
|
6154
|
-
//# sourceMappingURL=chunk-
|
|
6155
|
-
//# sourceMappingURL=chunk-
|
|
6170
|
+
//# sourceMappingURL=chunk-4U2QG55L.js.map
|
|
6171
|
+
//# sourceMappingURL=chunk-4U2QG55L.js.map
|