create-expert 0.0.44 → 0.0.46
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/cli.js +14 -8
- package/dist/bin/cli.js.map +1 -1
- package/package.json +14 -17
- package/bin/cli.ts +0 -99
package/dist/bin/cli.js
CHANGED
|
@@ -16306,7 +16306,7 @@ const EMPTY_COMPLETION_RESULT = { completion: {
|
|
|
16306
16306
|
//#endregion
|
|
16307
16307
|
//#region ../base/package.json
|
|
16308
16308
|
var name$5 = "@perstack/base";
|
|
16309
|
-
var version$2 = "0.0.
|
|
16309
|
+
var version$2 = "0.0.68";
|
|
16310
16310
|
|
|
16311
16311
|
//#endregion
|
|
16312
16312
|
//#region ../base/src/tools/todo.ts
|
|
@@ -19985,7 +19985,7 @@ var SkillManager = class SkillManager {
|
|
|
19985
19985
|
|
|
19986
19986
|
//#endregion
|
|
19987
19987
|
//#region ../../packages/runtime/package.json
|
|
19988
|
-
var version$1 = "0.0.
|
|
19988
|
+
var version$1 = "0.0.118";
|
|
19989
19989
|
|
|
19990
19990
|
//#endregion
|
|
19991
19991
|
//#region ../../packages/runtime/src/helpers/usage.ts
|
|
@@ -26973,8 +26973,8 @@ Original error: ${errorMessage}`);
|
|
|
26973
26973
|
var bedrock = createAmazonBedrock();
|
|
26974
26974
|
|
|
26975
26975
|
//#endregion
|
|
26976
|
-
//#region ../../node_modules/.bun/@ai-sdk+anthropic@3.0.
|
|
26977
|
-
var VERSION$8 = "3.0.
|
|
26976
|
+
//#region ../../node_modules/.bun/@ai-sdk+anthropic@3.0.47+3c5d820c62823f0b/node_modules/@ai-sdk/anthropic/dist/index.mjs
|
|
26977
|
+
var VERSION$8 = "3.0.47";
|
|
26978
26978
|
var anthropicFailedResponseHandler = createJsonErrorResponseHandler({
|
|
26979
26979
|
errorSchema: lazySchema(() => zodSchema(object$2({
|
|
26980
26980
|
type: literal("error"),
|
|
@@ -29035,6 +29035,7 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
29035
29035
|
} },
|
|
29036
29036
|
...(anthropicOptions == null ? void 0 : anthropicOptions.effort) && { output_config: { effort: anthropicOptions.effort } },
|
|
29037
29037
|
...(anthropicOptions == null ? void 0 : anthropicOptions.speed) && { speed: anthropicOptions.speed },
|
|
29038
|
+
...(anthropicOptions == null ? void 0 : anthropicOptions.cacheControl) && { cache_control: anthropicOptions.cacheControl },
|
|
29038
29039
|
...useStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && { output_format: {
|
|
29039
29040
|
type: "json_schema",
|
|
29040
29041
|
schema: responseFormat.schema
|
|
@@ -84234,7 +84235,13 @@ var AnthropicProviderAdapter = class extends BaseProviderAdapter {
|
|
|
84234
84235
|
return buildAnthropicTools(this.client, toolNames, options);
|
|
84235
84236
|
}
|
|
84236
84237
|
getProviderOptions(config) {
|
|
84237
|
-
|
|
84238
|
+
const skillOptions = buildProviderOptions(config?.skills);
|
|
84239
|
+
const cacheOptions = { anthropic: { cacheControl: { type: "ephemeral" } } };
|
|
84240
|
+
if (!skillOptions) return cacheOptions;
|
|
84241
|
+
return { anthropic: {
|
|
84242
|
+
...skillOptions["anthropic"],
|
|
84243
|
+
...cacheOptions["anthropic"]
|
|
84244
|
+
} };
|
|
84238
84245
|
}
|
|
84239
84246
|
getReasoningOptions(budget) {
|
|
84240
84247
|
return { anthropic: { thinking: {
|
|
@@ -88940,8 +88947,7 @@ function createInstructionMessage(expert, startedAt) {
|
|
|
88940
88947
|
type: "textPart",
|
|
88941
88948
|
text: instruction
|
|
88942
88949
|
}],
|
|
88943
|
-
id: createId()
|
|
88944
|
-
cache: true
|
|
88950
|
+
id: createId()
|
|
88945
88951
|
};
|
|
88946
88952
|
}
|
|
88947
88953
|
function getSkillRules(expert) {
|
|
@@ -118779,7 +118785,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
|
|
|
118779
118785
|
//#endregion
|
|
118780
118786
|
//#region package.json
|
|
118781
118787
|
var name = "create-expert";
|
|
118782
|
-
var version = "0.0.
|
|
118788
|
+
var version = "0.0.46";
|
|
118783
118789
|
var description = "Create and modify Perstack expert definitions";
|
|
118784
118790
|
|
|
118785
118791
|
//#endregion
|