@botpress/adk-cli 1.6.7 → 1.6.8
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/cli.js +34 -31
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -308228,11 +308228,11 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
308228
308228
|
__exportStar(require_usage_metadata(), exports);
|
|
308229
308229
|
});
|
|
308230
308230
|
|
|
308231
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
308231
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/adapters/adapter.js
|
|
308232
308232
|
class Adapter {
|
|
308233
308233
|
}
|
|
308234
308234
|
|
|
308235
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
308235
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/adapters/botpress-table.js
|
|
308236
308236
|
var CRITICAL_TAGS, OPTIONAL_TAGS, FACTOR = 30, Props, TableSchema, searchableColumns, TableJsonSchema, TableAdapter;
|
|
308237
308237
|
var init_botpress_table = __esm(() => {
|
|
308238
308238
|
init_dist7();
|
|
@@ -308396,7 +308396,7 @@ var init_botpress_table = __esm(() => {
|
|
|
308396
308396
|
};
|
|
308397
308397
|
});
|
|
308398
308398
|
|
|
308399
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
308399
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/adapters/memory.js
|
|
308400
308400
|
var MemoryAdapter;
|
|
308401
308401
|
var init_memory = __esm(() => {
|
|
308402
308402
|
MemoryAdapter = class MemoryAdapter extends Adapter {
|
|
@@ -308411,7 +308411,7 @@ var init_memory = __esm(() => {
|
|
|
308411
308411
|
};
|
|
308412
308412
|
});
|
|
308413
308413
|
|
|
308414
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
308414
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/zai.js
|
|
308415
308415
|
class Zai {
|
|
308416
308416
|
static tokenizer = null;
|
|
308417
308417
|
client;
|
|
@@ -308880,7 +308880,7 @@ var init_lodash = __esm(() => {
|
|
|
308880
308880
|
init_isArray();
|
|
308881
308881
|
});
|
|
308882
308882
|
|
|
308883
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
308883
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/emitter.js
|
|
308884
308884
|
class EventEmitter5 {
|
|
308885
308885
|
_listeners = {};
|
|
308886
308886
|
emit(type, event2) {
|
|
@@ -308924,7 +308924,7 @@ class EventEmitter5 {
|
|
|
308924
308924
|
}
|
|
308925
308925
|
}
|
|
308926
308926
|
|
|
308927
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
308927
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/context.js
|
|
308928
308928
|
class ZaiContext {
|
|
308929
308929
|
_startedAt = Date.now();
|
|
308930
308930
|
_inputCost = 0;
|
|
@@ -309063,7 +309063,7 @@ Please return a valid response addressing the error above.`
|
|
|
309063
309063
|
}
|
|
309064
309064
|
var init_context = () => {};
|
|
309065
309065
|
|
|
309066
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
309066
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/response.js
|
|
309067
309067
|
class Response2 {
|
|
309068
309068
|
_promise;
|
|
309069
309069
|
_eventEmitter;
|
|
@@ -309140,7 +309140,7 @@ class Response2 {
|
|
|
309140
309140
|
}
|
|
309141
309141
|
var init_response = () => {};
|
|
309142
309142
|
|
|
309143
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
309143
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/tokenizer.js
|
|
309144
309144
|
async function getTokenizer2() {
|
|
309145
309145
|
if (!tokenizer3) {
|
|
309146
309146
|
while (!getWasmTokenizer) {
|
|
@@ -309155,10 +309155,10 @@ var init_tokenizer2 = __esm(() => {
|
|
|
309155
309155
|
init_tokenizer();
|
|
309156
309156
|
});
|
|
309157
309157
|
|
|
309158
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
309158
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/constants.js
|
|
309159
309159
|
var PROMPT_INPUT_BUFFER = 1048, PROMPT_OUTPUT_BUFFER = 512;
|
|
309160
309160
|
|
|
309161
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
309161
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/text.js
|
|
309162
309162
|
var Options, text = async (prompt, _options, ctx) => {
|
|
309163
309163
|
ctx.controller.signal.throwIfAborted();
|
|
309164
309164
|
const options = Options.parse(_options ?? {});
|
|
@@ -309228,7 +309228,7 @@ var init_text = __esm(() => {
|
|
|
309228
309228
|
};
|
|
309229
309229
|
});
|
|
309230
309230
|
|
|
309231
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
309231
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/utils.js
|
|
309232
309232
|
function fastHash(str) {
|
|
309233
309233
|
let hash = 0;
|
|
309234
309234
|
for (let i2 = 0;i2 < str.length; i2++) {
|
|
@@ -309253,7 +309253,7 @@ var stringify = (input, beautify = true) => {
|
|
|
309253
309253
|
return result;
|
|
309254
309254
|
};
|
|
309255
309255
|
|
|
309256
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
309256
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/rewrite.js
|
|
309257
309257
|
var _Example, Options2, START = "\u25A0START\u25A0", END = "\u25A0END\u25A0", rewrite = async (original, prompt, _options, ctx) => {
|
|
309258
309258
|
ctx.controller.signal.throwIfAborted();
|
|
309259
309259
|
const options = Options2.parse(_options ?? {});
|
|
@@ -309532,7 +309532,7 @@ var init_p_limit = __esm(() => {
|
|
|
309532
309532
|
init_yocto_queue();
|
|
309533
309533
|
});
|
|
309534
309534
|
|
|
309535
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
309535
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/summarize.js
|
|
309536
309536
|
var Options3, START2 = "\u25A0START\u25A0", END2 = "\u25A0END\u25A0", summarize = async (original, options, ctx) => {
|
|
309537
309537
|
ctx.controller.signal.throwIfAborted();
|
|
309538
309538
|
const tokenizer4 = await getTokenizer2();
|
|
@@ -309675,7 +309675,7 @@ var init_summarize = __esm(() => {
|
|
|
309675
309675
|
};
|
|
309676
309676
|
});
|
|
309677
309677
|
|
|
309678
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
309678
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/check.js
|
|
309679
309679
|
var _Example2, _Options, TRUE = "\u25A0TRUE\u25A0", FALSE = "\u25A0FALSE\u25A0", END3 = "\u25A0END\u25A0", check2 = async (input, condition, options, ctx) => {
|
|
309680
309680
|
ctx.controller.signal.throwIfAborted();
|
|
309681
309681
|
const tokenizer4 = await getTokenizer2();
|
|
@@ -309855,7 +309855,7 @@ var init_check = __esm(() => {
|
|
|
309855
309855
|
};
|
|
309856
309856
|
});
|
|
309857
309857
|
|
|
309858
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
309858
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/filter.js
|
|
309859
309859
|
var _Example3, _Options2, END4 = "\u25A0END\u25A0", filter3 = async (input, condition, _options, ctx) => {
|
|
309860
309860
|
ctx.controller.signal.throwIfAborted();
|
|
309861
309861
|
const options = _Options2.parse(_options ?? {});
|
|
@@ -310724,7 +310724,7 @@ var init_esm2 = __esm(() => {
|
|
|
310724
310724
|
init_jsonrepair();
|
|
310725
310725
|
});
|
|
310726
310726
|
|
|
310727
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
310727
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/errors.js
|
|
310728
310728
|
var JsonParsingError;
|
|
310729
310729
|
var init_errors = __esm(() => {
|
|
310730
310730
|
init_dist7();
|
|
@@ -310858,8 +310858,8 @@ ${json}
|
|
|
310858
310858
|
};
|
|
310859
310859
|
});
|
|
310860
310860
|
|
|
310861
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
310862
|
-
var import_json5, Options4, START3 = "\u25A0json_start\u25A0", END5 = "\u25A0json_end\u25A0", NO_MORE = "\u25A0NO_MORE_ELEMENT\u25A0", ZERO_ELEMENTS = "\u25A0ZERO_ELEMENTS\u25A0", extract = async (input, _schema, _options, ctx) => {
|
|
310861
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/extract.js
|
|
310862
|
+
var import_json5, Options4, SPECIAL_CHAR = "\u25A0", START3 = "\u25A0json_start\u25A0", END5 = "\u25A0json_end\u25A0", NO_MORE = "\u25A0NO_MORE_ELEMENT\u25A0", ZERO_ELEMENTS = "\u25A0ZERO_ELEMENTS\u25A0", extract = async (input, _schema, _options, ctx) => {
|
|
310863
310863
|
ctx.controller.signal.throwIfAborted();
|
|
310864
310864
|
let schema = transforms_exports.fromJSONSchema(transforms_exports.toJSONSchema(_schema));
|
|
310865
310865
|
const options = Options4.parse(_options ?? {});
|
|
@@ -311055,7 +311055,10 @@ ${instructions.map((x) => `\u2022 ${x}`).join(`
|
|
|
311055
311055
|
],
|
|
311056
311056
|
transform: (text2) => (text2 || "{}")?.split(START3).filter((x) => x.trim().length > 0 && x.includes("}")).map((x) => {
|
|
311057
311057
|
try {
|
|
311058
|
-
|
|
311058
|
+
let json = x.slice(0, x.indexOf(END5)).trim();
|
|
311059
|
+
if (json.includes(SPECIAL_CHAR)) {
|
|
311060
|
+
json = json.slice(0, json.indexOf(SPECIAL_CHAR)).trim();
|
|
311061
|
+
}
|
|
311059
311062
|
const repairedJson = jsonrepair(json);
|
|
311060
311063
|
const parsedJson = import_json5.default.parse(repairedJson);
|
|
311061
311064
|
const safe = schema.safeParse(parsedJson);
|
|
@@ -311138,7 +311141,7 @@ var init_extract = __esm(() => {
|
|
|
311138
311141
|
};
|
|
311139
311142
|
});
|
|
311140
311143
|
|
|
311141
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
311144
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/label.js
|
|
311142
311145
|
var LABELS, ALL_LABELS, _Options3, _Labels, parseLabel = (label2) => {
|
|
311143
311146
|
label2 = label2.toUpperCase().replace(/\s+/g, "_").replace(/_{2,}/g, "_").trim();
|
|
311144
311147
|
if (label2.includes("ABSOLUTELY") && label2.includes("NOT")) {
|
|
@@ -311412,7 +311415,7 @@ var init_label = __esm(() => {
|
|
|
311412
311415
|
};
|
|
311413
311416
|
});
|
|
311414
311417
|
|
|
311415
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
311418
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/group.js
|
|
311416
311419
|
var _InitialGroup, _Options4, END6 = "\u25A0END\u25A0", normalizeLabel = (label2) => {
|
|
311417
311420
|
return label2.trim().toLowerCase().replace(/^(group|new group|new)\s*[-:]\s*/i, "").replace(/^(group|new group|new)\s+/i, "").trim();
|
|
311418
311421
|
}, group = async (input, _options, ctx) => {
|
|
@@ -311771,7 +311774,7 @@ var init_group = __esm(() => {
|
|
|
311771
311774
|
};
|
|
311772
311775
|
});
|
|
311773
311776
|
|
|
311774
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
311777
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/rate.js
|
|
311775
311778
|
var RATING_VALUES, _Options5, END7 = "\u25A0END\u25A0", rate = async (input, instructions, _options, ctx) => {
|
|
311776
311779
|
ctx.controller.signal.throwIfAborted();
|
|
311777
311780
|
const options = _Options5.parse(_options ?? {});
|
|
@@ -312114,7 +312117,7 @@ var init_rate = __esm(() => {
|
|
|
312114
312117
|
};
|
|
312115
312118
|
});
|
|
312116
312119
|
|
|
312117
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
312120
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/sort.js
|
|
312118
312121
|
var _Options6, END8 = "\u25A0END\u25A0", sort = async (input, instructions, _options, ctx) => {
|
|
312119
312122
|
ctx.controller.signal.throwIfAborted();
|
|
312120
312123
|
const options = _Options6.parse(_options ?? {});
|
|
@@ -312636,7 +312639,7 @@ var init_sort = __esm(() => {
|
|
|
312636
312639
|
};
|
|
312637
312640
|
});
|
|
312638
312641
|
|
|
312639
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
312642
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/operations/answer.js
|
|
312640
312643
|
var _Options7, ANSWER_START = "\u25A0answer", AMBIGUOUS_START = "\u25A0ambiguous", OUT_OF_TOPIC_START = "\u25A0out_of_topic", INVALID_QUESTION_START = "\u25A0invalid_question", MISSING_KNOWLEDGE_START = "\u25A0missing_knowledge", END9 = "\u25A0end\u25A0", formatDocumentsWithLineNumbers = (documents) => {
|
|
312641
312644
|
const mappings = [];
|
|
312642
312645
|
const allLines = [];
|
|
@@ -312997,7 +313000,7 @@ var init_answer = __esm(() => {
|
|
|
312997
313000
|
};
|
|
312998
313001
|
});
|
|
312999
313002
|
|
|
313000
|
-
// ../../node_modules/.bun/@botpress+zai@2.4.
|
|
313003
|
+
// ../../node_modules/.bun/@botpress+zai@2.4.1+45458ba98afe399f/node_modules/@botpress/zai/dist/index.js
|
|
313001
313004
|
var init_dist9 = __esm(() => {
|
|
313002
313005
|
init_zai();
|
|
313003
313006
|
init_text();
|
|
@@ -319610,7 +319613,7 @@ var init_internal = __esm(() => {
|
|
|
319610
319613
|
});
|
|
319611
319614
|
init_define_PACKAGE_VERSIONS = __esm2({
|
|
319612
319615
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
319613
|
-
define_PACKAGE_VERSIONS_default = { runtime: "1.6.
|
|
319616
|
+
define_PACKAGE_VERSIONS_default = { runtime: "1.6.8", adk: "not-installed", sdk: "4.17.3", llmz: "0.0.27", zai: "2.4.1", cognitive: "0.2.0" };
|
|
319614
319617
|
}
|
|
319615
319618
|
});
|
|
319616
319619
|
init_globalThis = __esm2({
|
|
@@ -371786,7 +371789,7 @@ class AgentProjectGenerator {
|
|
|
371786
371789
|
deploy: "adk deploy"
|
|
371787
371790
|
},
|
|
371788
371791
|
dependencies: {
|
|
371789
|
-
"@botpress/runtime": "^1.6.
|
|
371792
|
+
"@botpress/runtime": "^1.6.8"
|
|
371790
371793
|
},
|
|
371791
371794
|
devDependencies: {
|
|
371792
371795
|
typescript: "^5.0.0"
|
|
@@ -380993,7 +380996,7 @@ var init_Separator = __esm(async () => {
|
|
|
380993
380996
|
var require_package3 = __commonJS((exports, module) => {
|
|
380994
380997
|
module.exports = {
|
|
380995
380998
|
name: "@botpress/adk",
|
|
380996
|
-
version: "1.6.
|
|
380999
|
+
version: "1.6.8",
|
|
380997
381000
|
description: "Core ADK library for building AI agents on Botpress",
|
|
380998
381001
|
type: "module",
|
|
380999
381002
|
main: "dist/index.js",
|
|
@@ -381040,7 +381043,7 @@ var require_package3 = __commonJS((exports, module) => {
|
|
|
381040
381043
|
"@botpress/cli": "^4.20",
|
|
381041
381044
|
"@botpress/client": "^1.27.0",
|
|
381042
381045
|
"@botpress/cognitive": "^0.2.0",
|
|
381043
|
-
"@botpress/runtime": "^1.6.
|
|
381046
|
+
"@botpress/runtime": "^1.6.8",
|
|
381044
381047
|
"@botpress/sdk": "^4.17.3",
|
|
381045
381048
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
381046
381049
|
"@parcel/watcher": "^2.5.1",
|
|
@@ -382428,7 +382431,7 @@ function checkRuntimeVersion(agentRoot) {
|
|
|
382428
382431
|
`));
|
|
382429
382432
|
}
|
|
382430
382433
|
}
|
|
382431
|
-
var semver2, EXPECTED_RUNTIME_VERSION = "1.6.
|
|
382434
|
+
var semver2, EXPECTED_RUNTIME_VERSION = "1.6.8";
|
|
382432
382435
|
var init_runtime_version_check = __esm(() => {
|
|
382433
382436
|
init_source();
|
|
382434
382437
|
semver2 = __toESM(require_semver2(), 1);
|
|
@@ -398027,7 +398030,7 @@ if (!checkNodeVersion(true)) {
|
|
|
398027
398030
|
}
|
|
398028
398031
|
var __filename2 = fileURLToPath9(import.meta.url);
|
|
398029
398032
|
var __dirname5 = dirname3(__filename2);
|
|
398030
|
-
var CLI_VERSION = "1.6.
|
|
398033
|
+
var CLI_VERSION = "1.6.8";
|
|
398031
398034
|
program.name("adk").description("Botpress Agent Development Kit (ADK) - CLI for building AI agents").version(CLI_VERSION).option("--no-cache", "Disable caching for integration lookups").configureHelp({
|
|
398032
398035
|
formatHelp: () => formatHelp(program, CLI_VERSION)
|
|
398033
398036
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/adk-cli",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.8",
|
|
4
4
|
"description": "Command-line interface for the Botpress Agent Development Kit (ADK)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"url": "https://github.com/botpress/adk"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@botpress/adk": "^1.6.
|
|
43
|
+
"@botpress/adk": "^1.6.8",
|
|
44
44
|
"@botpress/cli": "^4.20",
|
|
45
|
-
"@botpress/runtime": "^1.6.
|
|
45
|
+
"@botpress/runtime": "^1.6.8",
|
|
46
46
|
"adm-zip": "^0.5.16",
|
|
47
47
|
"chalk": "^5.4.1",
|
|
48
48
|
"clipboardy": "^4.0.0",
|