@pellux/goodvibes-agent 1.0.0 → 1.0.1
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/CHANGELOG.md +7 -0
- package/dist/package/main.js +292 -357
- package/package.json +1 -1
- package/src/cli/local-library-command.ts +25 -5
- package/src/cli/routines-command.ts +15 -3
- package/src/input/agent-workspace-knowledge-url-editor.ts +4 -11
- package/src/input/commands/agent-local-library-args.ts +52 -0
- package/src/input/commands/agent-skills-runtime.ts +4 -29
- package/src/input/commands/mcp-runtime.ts +62 -15
- package/src/input/commands/personas-runtime.ts +4 -29
- package/src/input/commands/routines-runtime.ts +4 -29
- package/src/input/session-picker-modal.ts +3 -2
- package/src/version.ts +1 -1
package/dist/package/main.js
CHANGED
|
@@ -42616,9 +42616,6 @@ function loadLanguageConfigs(roots) {
|
|
|
42616
42616
|
}
|
|
42617
42617
|
return result;
|
|
42618
42618
|
}
|
|
42619
|
-
function getLanguageConfig(langId, roots) {
|
|
42620
|
-
return loadLanguageConfigs(roots).get(langId) ?? null;
|
|
42621
|
-
}
|
|
42622
42619
|
var init_config6 = __esm(() => {
|
|
42623
42620
|
init_logger();
|
|
42624
42621
|
init_error_display();
|
|
@@ -45849,13 +45846,7 @@ function detectLanguage(filePath) {
|
|
|
45849
45846
|
const ext = (parts2[parts2.length - 1] ?? "").toLowerCase();
|
|
45850
45847
|
return EXT_TO_LANG[ext] ?? null;
|
|
45851
45848
|
}
|
|
45852
|
-
|
|
45853
|
-
return LANG_TO_PACKAGE[langId] ?? `tree-sitter-${langId}`;
|
|
45854
|
-
}
|
|
45855
|
-
function getSupportedLanguages() {
|
|
45856
|
-
return Object.keys(LANG_TO_PACKAGE);
|
|
45857
|
-
}
|
|
45858
|
-
var EXT_TO_LANG, LANG_TO_PACKAGE;
|
|
45849
|
+
var EXT_TO_LANG;
|
|
45859
45850
|
var init_languages = __esm(() => {
|
|
45860
45851
|
EXT_TO_LANG = {
|
|
45861
45852
|
ts: "typescript",
|
|
@@ -45887,25 +45878,6 @@ var init_languages = __esm(() => {
|
|
|
45887
45878
|
htm: "html",
|
|
45888
45879
|
md: "markdown"
|
|
45889
45880
|
};
|
|
45890
|
-
LANG_TO_PACKAGE = {
|
|
45891
|
-
typescript: "tree-sitter-typescript",
|
|
45892
|
-
tsx: "tree-sitter-typescript",
|
|
45893
|
-
javascript: "tree-sitter-javascript",
|
|
45894
|
-
python: "tree-sitter-python",
|
|
45895
|
-
rust: "tree-sitter-rust",
|
|
45896
|
-
go: "tree-sitter-go",
|
|
45897
|
-
java: "tree-sitter-java",
|
|
45898
|
-
c: "tree-sitter-c",
|
|
45899
|
-
cpp: "tree-sitter-cpp",
|
|
45900
|
-
ruby: "tree-sitter-ruby",
|
|
45901
|
-
bash: "tree-sitter-bash",
|
|
45902
|
-
json: "tree-sitter-json",
|
|
45903
|
-
yaml: "tree-sitter-yaml",
|
|
45904
|
-
toml: "tree-sitter-toml",
|
|
45905
|
-
css: "tree-sitter-css",
|
|
45906
|
-
html: "tree-sitter-html",
|
|
45907
|
-
markdown: "tree-sitter-markdown"
|
|
45908
|
-
};
|
|
45909
45881
|
});
|
|
45910
45882
|
|
|
45911
45883
|
// node_modules/web-tree-sitter/web-tree-sitter.wasm
|
|
@@ -49673,121 +49645,34 @@ var init_import_graph = __esm(() => {
|
|
|
49673
49645
|
extractRelativeSpecifiersForTest = extractRelativeSpecifiers;
|
|
49674
49646
|
});
|
|
49675
49647
|
|
|
49676
|
-
// node_modules/@pellux/goodvibes-sdk/dist/platform/intelligence/lsp/capabilities.js
|
|
49677
|
-
function parseCapabilities(initResult) {
|
|
49678
|
-
const caps = {
|
|
49679
|
-
documentSymbols: false,
|
|
49680
|
-
definition: false,
|
|
49681
|
-
references: false,
|
|
49682
|
-
hover: false,
|
|
49683
|
-
rename: false,
|
|
49684
|
-
diagnostics: false
|
|
49685
|
-
};
|
|
49686
|
-
if (typeof initResult !== "object" || initResult === null)
|
|
49687
|
-
return caps;
|
|
49688
|
-
const result = initResult;
|
|
49689
|
-
const serverCaps = result.capabilities;
|
|
49690
|
-
if (typeof serverCaps !== "object" || serverCaps === null)
|
|
49691
|
-
return caps;
|
|
49692
|
-
const sc = serverCaps;
|
|
49693
|
-
if (sc.documentSymbolProvider === true || typeof sc.documentSymbolProvider === "object" && sc.documentSymbolProvider !== null) {
|
|
49694
|
-
caps.documentSymbols = true;
|
|
49695
|
-
}
|
|
49696
|
-
if (sc.definitionProvider === true || typeof sc.definitionProvider === "object" && sc.definitionProvider !== null) {
|
|
49697
|
-
caps.definition = true;
|
|
49698
|
-
}
|
|
49699
|
-
if (sc.referencesProvider === true || typeof sc.referencesProvider === "object" && sc.referencesProvider !== null) {
|
|
49700
|
-
caps.references = true;
|
|
49701
|
-
}
|
|
49702
|
-
if (sc.hoverProvider === true || typeof sc.hoverProvider === "object" && sc.hoverProvider !== null) {
|
|
49703
|
-
caps.hover = true;
|
|
49704
|
-
}
|
|
49705
|
-
if (sc.renameProvider === true || typeof sc.renameProvider === "object" && sc.renameProvider !== null) {
|
|
49706
|
-
caps.rename = true;
|
|
49707
|
-
}
|
|
49708
|
-
if (sc.publishDiagnosticsProvider !== undefined || sc.diagnosticProvider !== undefined) {
|
|
49709
|
-
caps.diagnostics = true;
|
|
49710
|
-
}
|
|
49711
|
-
return caps;
|
|
49712
|
-
}
|
|
49713
|
-
function hasCapability(capabilities, feature) {
|
|
49714
|
-
return capabilities[feature];
|
|
49715
|
-
}
|
|
49716
|
-
|
|
49717
|
-
// node_modules/@pellux/goodvibes-sdk/dist/platform/intelligence/lsp/index.js
|
|
49718
|
-
var init_lsp = __esm(() => {
|
|
49719
|
-
init_client();
|
|
49720
|
-
});
|
|
49721
|
-
|
|
49722
|
-
// node_modules/@pellux/goodvibes-sdk/dist/platform/intelligence/lsp/protocol.js
|
|
49723
|
-
var SymbolKind2;
|
|
49724
|
-
var init_protocol = __esm(() => {
|
|
49725
|
-
(function(SymbolKind3) {
|
|
49726
|
-
SymbolKind3[SymbolKind3["File"] = 1] = "File";
|
|
49727
|
-
SymbolKind3[SymbolKind3["Module"] = 2] = "Module";
|
|
49728
|
-
SymbolKind3[SymbolKind3["Namespace"] = 3] = "Namespace";
|
|
49729
|
-
SymbolKind3[SymbolKind3["Package"] = 4] = "Package";
|
|
49730
|
-
SymbolKind3[SymbolKind3["Class"] = 5] = "Class";
|
|
49731
|
-
SymbolKind3[SymbolKind3["Method"] = 6] = "Method";
|
|
49732
|
-
SymbolKind3[SymbolKind3["Property"] = 7] = "Property";
|
|
49733
|
-
SymbolKind3[SymbolKind3["Field"] = 8] = "Field";
|
|
49734
|
-
SymbolKind3[SymbolKind3["Constructor"] = 9] = "Constructor";
|
|
49735
|
-
SymbolKind3[SymbolKind3["Enum"] = 10] = "Enum";
|
|
49736
|
-
SymbolKind3[SymbolKind3["Interface"] = 11] = "Interface";
|
|
49737
|
-
SymbolKind3[SymbolKind3["Function"] = 12] = "Function";
|
|
49738
|
-
SymbolKind3[SymbolKind3["Variable"] = 13] = "Variable";
|
|
49739
|
-
SymbolKind3[SymbolKind3["Constant"] = 14] = "Constant";
|
|
49740
|
-
SymbolKind3[SymbolKind3["String"] = 15] = "String";
|
|
49741
|
-
SymbolKind3[SymbolKind3["Number"] = 16] = "Number";
|
|
49742
|
-
SymbolKind3[SymbolKind3["Boolean"] = 17] = "Boolean";
|
|
49743
|
-
SymbolKind3[SymbolKind3["Array"] = 18] = "Array";
|
|
49744
|
-
SymbolKind3[SymbolKind3["Object"] = 19] = "Object";
|
|
49745
|
-
SymbolKind3[SymbolKind3["Key"] = 20] = "Key";
|
|
49746
|
-
SymbolKind3[SymbolKind3["Null"] = 21] = "Null";
|
|
49747
|
-
SymbolKind3[SymbolKind3["EnumMember"] = 22] = "EnumMember";
|
|
49748
|
-
SymbolKind3[SymbolKind3["Struct"] = 23] = "Struct";
|
|
49749
|
-
SymbolKind3[SymbolKind3["Event"] = 24] = "Event";
|
|
49750
|
-
SymbolKind3[SymbolKind3["Operator"] = 25] = "Operator";
|
|
49751
|
-
SymbolKind3[SymbolKind3["TypeParameter"] = 26] = "TypeParameter";
|
|
49752
|
-
})(SymbolKind2 || (SymbolKind2 = {}));
|
|
49753
|
-
});
|
|
49754
|
-
|
|
49755
49648
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/intelligence/index.js
|
|
49756
49649
|
var exports_intelligence = {};
|
|
49757
49650
|
__export(exports_intelligence, {
|
|
49758
49651
|
uriToPath: () => uriToPath,
|
|
49759
|
-
resolveSpecifierForTest: () =>
|
|
49652
|
+
resolveSpecifierForTest: () => resolveSpecifierForTest2,
|
|
49760
49653
|
pathToUri: () => pathToUri,
|
|
49761
49654
|
parseCapabilities: () => parseCapabilities,
|
|
49762
|
-
loadLanguageConfigs: () =>
|
|
49655
|
+
loadLanguageConfigs: () => loadLanguageConfigs2,
|
|
49763
49656
|
hasCapability: () => hasCapability,
|
|
49764
49657
|
getSupportedLanguages: () => getSupportedLanguages,
|
|
49765
49658
|
getLanguageConfig: () => getLanguageConfig,
|
|
49766
49659
|
getGrammarPackage: () => getGrammarPackage,
|
|
49767
|
-
getDefaultConfigs: () =>
|
|
49768
|
-
findEnclosingScope: () =>
|
|
49769
|
-
extractSymbols: () =>
|
|
49770
|
-
extractRelativeSpecifiersForTest: () =>
|
|
49771
|
-
extractOutline: () =>
|
|
49772
|
-
detectLanguage: () =>
|
|
49773
|
-
TreeSitterService: () =>
|
|
49774
|
-
SymbolKind: () =>
|
|
49775
|
-
LspService: () =>
|
|
49776
|
-
LspClient: () =>
|
|
49660
|
+
getDefaultConfigs: () => getDefaultConfigs2,
|
|
49661
|
+
findEnclosingScope: () => findEnclosingScope2,
|
|
49662
|
+
extractSymbols: () => extractSymbols3,
|
|
49663
|
+
extractRelativeSpecifiersForTest: () => extractRelativeSpecifiersForTest2,
|
|
49664
|
+
extractOutline: () => extractOutline3,
|
|
49665
|
+
detectLanguage: () => detectLanguage2,
|
|
49666
|
+
TreeSitterService: () => TreeSitterService2,
|
|
49667
|
+
SymbolKind: () => SymbolKind,
|
|
49668
|
+
LspService: () => LspService2,
|
|
49669
|
+
LspClient: () => LspClient2,
|
|
49777
49670
|
ImportGraph: () => ImportGraph,
|
|
49778
49671
|
CodeIntelligence: () => CodeIntelligence
|
|
49779
49672
|
});
|
|
49780
49673
|
var init_intelligence = __esm(() => {
|
|
49781
49674
|
init_facade();
|
|
49782
|
-
init_config6();
|
|
49783
|
-
init_service();
|
|
49784
|
-
init_queries3();
|
|
49785
|
-
init_languages();
|
|
49786
49675
|
init_import_graph();
|
|
49787
|
-
init_import_graph();
|
|
49788
|
-
init_service2();
|
|
49789
|
-
init_lsp();
|
|
49790
|
-
init_protocol();
|
|
49791
49676
|
});
|
|
49792
49677
|
|
|
49793
49678
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/utils/safe-regex.js
|
|
@@ -49843,7 +49728,7 @@ var require_ast_grep_napi_linux_x64_gnu = __commonJS((exports, module2) => {
|
|
|
49843
49728
|
|
|
49844
49729
|
// node_modules/@ast-grep/napi/index.js
|
|
49845
49730
|
var require_napi = __commonJS((exports, module2) => {
|
|
49846
|
-
var __filename = "/home/
|
|
49731
|
+
var __filename = "/home/runner/work/goodvibes-agent/goodvibes-agent/node_modules/@ast-grep/napi/index.js";
|
|
49847
49732
|
var { createRequire } = __require("module");
|
|
49848
49733
|
__require = createRequire(__filename);
|
|
49849
49734
|
var { readFileSync: readFileSync16 } = __require("fs");
|
|
@@ -64648,7 +64533,7 @@ var init_kv_state = __esm(() => {
|
|
|
64648
64533
|
|
|
64649
64534
|
// node_modules/sql.js/dist/sql-wasm.js
|
|
64650
64535
|
var require_sql_wasm = __commonJS((exports, module2) => {
|
|
64651
|
-
var __dirname = "/home/
|
|
64536
|
+
var __dirname = "/home/runner/work/goodvibes-agent/goodvibes-agent/node_modules/sql.js/dist", __filename = "/home/runner/work/goodvibes-agent/goodvibes-agent/node_modules/sql.js/dist/sql-wasm.js";
|
|
64652
64537
|
var initSqlJsPromise = undefined;
|
|
64653
64538
|
var initSqlJs = function(moduleConfig) {
|
|
64654
64539
|
if (initSqlJsPromise) {
|
|
@@ -71596,7 +71481,7 @@ var init_remote_trigger = __esm(() => {
|
|
|
71596
71481
|
|
|
71597
71482
|
// node_modules/typescript/lib/typescript.js
|
|
71598
71483
|
var require_typescript = __commonJS((exports, module2) => {
|
|
71599
|
-
var __dirname = "/home/
|
|
71484
|
+
var __dirname = "/home/runner/work/goodvibes-agent/goodvibes-agent/node_modules/typescript/lib", __filename = "/home/runner/work/goodvibes-agent/goodvibes-agent/node_modules/typescript/lib/typescript.js";
|
|
71600
71485
|
/*! *****************************************************************************
|
|
71601
71486
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
71602
71487
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -765239,7 +765124,7 @@ var require_package3 = __commonJS((exports, module2) => {
|
|
|
765239
765124
|
|
|
765240
765125
|
// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
|
|
765241
765126
|
var require_dist_cjs73 = __commonJS((exports) => {
|
|
765242
|
-
var __dirname = "/home/
|
|
765127
|
+
var __dirname = "/home/runner/work/goodvibes-agent/goodvibes-agent/node_modules/@aws-sdk/util-user-agent-node/dist-cjs";
|
|
765243
765128
|
var node_os = __require("os");
|
|
765244
765129
|
var node_process = __require("process");
|
|
765245
765130
|
var utilConfigProvider = require_dist_cjs48();
|
|
@@ -772496,7 +772381,7 @@ var init_fromContainerMetadata2 = __esm(() => {
|
|
|
772496
772381
|
});
|
|
772497
772382
|
|
|
772498
772383
|
// node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
772499
|
-
var
|
|
772384
|
+
var import_client6, import_property_provider8, ENV_KEY = "AWS_ACCESS_KEY_ID", ENV_SECRET = "AWS_SECRET_ACCESS_KEY", ENV_SESSION = "AWS_SESSION_TOKEN", ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION", ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE", ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID", fromEnv = (init3) => async () => {
|
|
772500
772385
|
init3?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
772501
772386
|
const accessKeyId = process.env[ENV_KEY];
|
|
772502
772387
|
const secretAccessKey = process.env[ENV_SECRET];
|
|
@@ -772513,13 +772398,13 @@ var import_client7, import_property_provider8, ENV_KEY = "AWS_ACCESS_KEY_ID", EN
|
|
|
772513
772398
|
...credentialScope && { credentialScope },
|
|
772514
772399
|
...accountId && { accountId }
|
|
772515
772400
|
};
|
|
772516
|
-
|
|
772401
|
+
import_client6.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
|
|
772517
772402
|
return credentials;
|
|
772518
772403
|
}
|
|
772519
772404
|
throw new import_property_provider8.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init3?.logger });
|
|
772520
772405
|
};
|
|
772521
772406
|
var init_fromEnv = __esm(() => {
|
|
772522
|
-
|
|
772407
|
+
import_client6 = __toESM(require_client(), 1);
|
|
772523
772408
|
import_property_provider8 = __toESM(require_dist_cjs13(), 1);
|
|
772524
772409
|
});
|
|
772525
772410
|
|
|
@@ -773028,7 +772913,7 @@ function schemaLogFilter(schema2, data) {
|
|
|
773028
772913
|
if (data == null) {
|
|
773029
772914
|
return data;
|
|
773030
772915
|
}
|
|
773031
|
-
const ns =
|
|
772916
|
+
const ns = import_schema30.NormalizedSchema.of(schema2);
|
|
773032
772917
|
if (ns.getMergedTraits().sensitive) {
|
|
773033
772918
|
return SENSITIVE_STRING;
|
|
773034
772919
|
}
|
|
@@ -773054,9 +772939,9 @@ function schemaLogFilter(schema2, data) {
|
|
|
773054
772939
|
}
|
|
773055
772940
|
return data;
|
|
773056
772941
|
}
|
|
773057
|
-
var
|
|
772942
|
+
var import_schema30, SENSITIVE_STRING = "***SensitiveInformation***";
|
|
773058
772943
|
var init_schemaLogFilter = __esm(() => {
|
|
773059
|
-
|
|
772944
|
+
import_schema30 = __toESM(require_schema(), 1);
|
|
773060
772945
|
});
|
|
773061
772946
|
|
|
773062
772947
|
// node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/smithy-client/dist-es/command.js
|
|
@@ -773697,7 +773582,7 @@ var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
|
773697
773582
|
|
|
773698
773583
|
// node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
773699
773584
|
import fs7 from "fs/promises";
|
|
773700
|
-
var
|
|
773585
|
+
var import_client7, import_node_http_handler, import_property_provider11, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2", AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE", AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromHttp = (options = {}) => {
|
|
773701
773586
|
options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
|
|
773702
773587
|
let host;
|
|
773703
773588
|
const relative15 = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
|
|
@@ -773736,7 +773621,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
773736
773621
|
}
|
|
773737
773622
|
try {
|
|
773738
773623
|
const result = await requestHandler.handle(request2);
|
|
773739
|
-
return getCredentials(result.response).then((creds) =>
|
|
773624
|
+
return getCredentials(result.response).then((creds) => import_client7.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
|
|
773740
773625
|
} catch (e3) {
|
|
773741
773626
|
throw new import_property_provider11.CredentialsProviderError(String(e3), { logger: options.logger });
|
|
773742
773627
|
}
|
|
@@ -773745,7 +773630,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
773745
773630
|
var init_fromHttp = __esm(() => {
|
|
773746
773631
|
init_checkUrl();
|
|
773747
773632
|
init_requestHelpers();
|
|
773748
|
-
|
|
773633
|
+
import_client7 = __toESM(require_client(), 1);
|
|
773749
773634
|
import_node_http_handler = __toESM(require_dist_cjs30(), 1);
|
|
773750
773635
|
import_property_provider11 = __toESM(require_dist_cjs13(), 1);
|
|
773751
773636
|
});
|
|
@@ -773760,7 +773645,7 @@ var init_dist_es16 = __esm(() => {
|
|
|
773760
773645
|
});
|
|
773761
773646
|
|
|
773762
773647
|
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
773763
|
-
var
|
|
773648
|
+
var import_client8, import_property_provider12, resolveCredentialSource = (credentialSource, profileName, logger5) => {
|
|
773764
773649
|
const sourceProvidersMap = {
|
|
773765
773650
|
EcsContainer: async (options) => {
|
|
773766
773651
|
const { fromHttp: fromHttp2 } = await Promise.resolve().then(() => (init_dist_es16(), exports_dist_es4));
|
|
@@ -773784,9 +773669,9 @@ var import_client9, import_property_provider12, resolveCredentialSource = (crede
|
|
|
773784
773669
|
} else {
|
|
773785
773670
|
throw new import_property_provider12.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger: logger5 });
|
|
773786
773671
|
}
|
|
773787
|
-
}, setNamedProvider = (creds) =>
|
|
773672
|
+
}, setNamedProvider = (creds) => import_client8.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
773788
773673
|
var init_resolveCredentialSource = __esm(() => {
|
|
773789
|
-
|
|
773674
|
+
import_client8 = __toESM(require_client(), 1);
|
|
773790
773675
|
import_property_provider12 = __toESM(require_dist_cjs13(), 1);
|
|
773791
773676
|
});
|
|
773792
773677
|
|
|
@@ -774823,7 +774708,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
774823
774708
|
});
|
|
774824
774709
|
|
|
774825
774710
|
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
774826
|
-
var
|
|
774711
|
+
var import_client9, import_property_provider13, import_shared_ini_file_loader, isAssumeRoleProfile = (arg, { profile: profile4 = "default", logger: logger5 } = {}) => {
|
|
774827
774712
|
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile: profile4, logger: logger5 }) || isCredentialSourceProfile(arg, { profile: profile4, logger: logger5 }));
|
|
774828
774713
|
}, isAssumeRoleWithSourceProfile = (arg, { profile: profile4, logger: logger5 }) => {
|
|
774829
774714
|
const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
|
|
@@ -774862,7 +774747,7 @@ var import_client10, import_property_provider13, import_shared_ini_file_loader,
|
|
|
774862
774747
|
[source_profile]: true
|
|
774863
774748
|
}, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
|
|
774864
774749
|
if (isCredentialSourceWithoutRoleArn(profileData)) {
|
|
774865
|
-
return sourceCredsProvider.then((creds) =>
|
|
774750
|
+
return sourceCredsProvider.then((creds) => import_client9.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
774866
774751
|
} else {
|
|
774867
774752
|
const params = {
|
|
774868
774753
|
RoleArn: profileData.role_arn,
|
|
@@ -774879,14 +774764,14 @@ var import_client10, import_property_provider13, import_shared_ini_file_loader,
|
|
|
774879
774764
|
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
|
774880
774765
|
}
|
|
774881
774766
|
const sourceCreds = await sourceCredsProvider;
|
|
774882
|
-
return options.roleAssumer(sourceCreds, params).then((creds) =>
|
|
774767
|
+
return options.roleAssumer(sourceCreds, params).then((creds) => import_client9.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
774883
774768
|
}
|
|
774884
774769
|
}, isCredentialSourceWithoutRoleArn = (section) => {
|
|
774885
774770
|
return !section.role_arn && !!section.credential_source;
|
|
774886
774771
|
};
|
|
774887
774772
|
var init_resolveAssumeRoleCredentials = __esm(() => {
|
|
774888
774773
|
init_resolveCredentialSource();
|
|
774889
|
-
|
|
774774
|
+
import_client9 = __toESM(require_client(), 1);
|
|
774890
774775
|
import_property_provider13 = __toESM(require_dist_cjs13(), 1);
|
|
774891
774776
|
import_shared_ini_file_loader = __toESM(require_dist_cjs54(), 1);
|
|
774892
774777
|
});
|
|
@@ -775941,7 +775826,7 @@ var init_LoginCredentialsFetcher = __esm(() => {
|
|
|
775941
775826
|
});
|
|
775942
775827
|
|
|
775943
775828
|
// node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
|
|
775944
|
-
var
|
|
775829
|
+
var import_client10, import_property_provider15, import_shared_ini_file_loader3, fromLoginCredentials = (init3) => async ({ callerClientConfig } = {}) => {
|
|
775945
775830
|
init3?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
775946
775831
|
const profiles = await import_shared_ini_file_loader3.parseKnownFiles(init3 || {});
|
|
775947
775832
|
const profileName = import_shared_ini_file_loader3.getProfileName({
|
|
@@ -775956,11 +775841,11 @@ var import_client11, import_property_provider15, import_shared_ini_file_loader3,
|
|
|
775956
775841
|
}
|
|
775957
775842
|
const fetcher = new LoginCredentialsFetcher(profile4, init3, callerClientConfig);
|
|
775958
775843
|
const credentials = await fetcher.loadCredentials();
|
|
775959
|
-
return
|
|
775844
|
+
return import_client10.setCredentialFeature(credentials, "CREDENTIALS_LOGIN", "AD");
|
|
775960
775845
|
};
|
|
775961
775846
|
var init_fromLoginCredentials = __esm(() => {
|
|
775962
775847
|
init_LoginCredentialsFetcher();
|
|
775963
|
-
|
|
775848
|
+
import_client10 = __toESM(require_client(), 1);
|
|
775964
775849
|
import_property_provider15 = __toESM(require_dist_cjs13(), 1);
|
|
775965
775850
|
import_shared_ini_file_loader3 = __toESM(require_dist_cjs54(), 1);
|
|
775966
775851
|
});
|
|
@@ -775975,22 +775860,22 @@ var init_dist_es18 = __esm(() => {
|
|
|
775975
775860
|
});
|
|
775976
775861
|
|
|
775977
775862
|
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js
|
|
775978
|
-
var
|
|
775863
|
+
var import_client11, isLoginProfile = (data) => {
|
|
775979
775864
|
return Boolean(data && data.login_session);
|
|
775980
775865
|
}, resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
775981
775866
|
const credentials = await fromLoginCredentials({
|
|
775982
775867
|
...options,
|
|
775983
775868
|
profile: profileName
|
|
775984
775869
|
})({ callerClientConfig });
|
|
775985
|
-
return
|
|
775870
|
+
return import_client11.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
|
|
775986
775871
|
};
|
|
775987
775872
|
var init_resolveLoginCredentials = __esm(() => {
|
|
775988
775873
|
init_dist_es18();
|
|
775989
|
-
|
|
775874
|
+
import_client11 = __toESM(require_client(), 1);
|
|
775990
775875
|
});
|
|
775991
775876
|
|
|
775992
775877
|
// node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
|
|
775993
|
-
var
|
|
775878
|
+
var import_client12, getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
775994
775879
|
if (data.Version !== 1) {
|
|
775995
775880
|
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
775996
775881
|
}
|
|
@@ -776016,11 +775901,11 @@ var import_client13, getValidatedProcessCredentials = (profileName, data, profil
|
|
|
776016
775901
|
...data.CredentialScope && { credentialScope: data.CredentialScope },
|
|
776017
775902
|
...accountId && { accountId }
|
|
776018
775903
|
};
|
|
776019
|
-
|
|
775904
|
+
import_client12.setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
|
|
776020
775905
|
return credentials;
|
|
776021
775906
|
};
|
|
776022
775907
|
var init_getValidatedProcessCredentials = __esm(() => {
|
|
776023
|
-
|
|
775908
|
+
import_client12 = __toESM(require_client(), 1);
|
|
776024
775909
|
});
|
|
776025
775910
|
|
|
776026
775911
|
// node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
@@ -776082,12 +775967,12 @@ var init_dist_es19 = __esm(() => {
|
|
|
776082
775967
|
});
|
|
776083
775968
|
|
|
776084
775969
|
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
776085
|
-
var
|
|
775970
|
+
var import_client13, isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", resolveProcessCredentials2 = async (options, profile4) => Promise.resolve().then(() => (init_dist_es19(), exports_dist_es5)).then(({ fromProcess: fromProcess3 }) => fromProcess3({
|
|
776086
775971
|
...options,
|
|
776087
775972
|
profile: profile4
|
|
776088
|
-
})().then((creds) =>
|
|
775973
|
+
})().then((creds) => import_client13.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
|
|
776089
775974
|
var init_resolveProcessCredentials2 = __esm(() => {
|
|
776090
|
-
|
|
775975
|
+
import_client13 = __toESM(require_client(), 1);
|
|
776091
775976
|
});
|
|
776092
775977
|
|
|
776093
775978
|
// node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
@@ -777746,7 +777631,7 @@ var init_loadSso = __esm(() => {
|
|
|
777746
777631
|
});
|
|
777747
777632
|
|
|
777748
777633
|
// node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
777749
|
-
var
|
|
777634
|
+
var import_client14, import_property_provider20, import_shared_ini_file_loader8, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile: profile4, filepath, configFilepath, ignoreCache, logger: logger5 }) => {
|
|
777750
777635
|
let token;
|
|
777751
777636
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
777752
777637
|
if (ssoSession) {
|
|
@@ -777819,15 +777704,15 @@ var import_client15, import_property_provider20, import_shared_ini_file_loader8,
|
|
|
777819
777704
|
...accountId && { accountId }
|
|
777820
777705
|
};
|
|
777821
777706
|
if (ssoSession) {
|
|
777822
|
-
|
|
777707
|
+
import_client14.setCredentialFeature(credentials, "CREDENTIALS_SSO", "s");
|
|
777823
777708
|
} else {
|
|
777824
|
-
|
|
777709
|
+
import_client14.setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u");
|
|
777825
777710
|
}
|
|
777826
777711
|
return credentials;
|
|
777827
777712
|
};
|
|
777828
777713
|
var init_resolveSSOCredentials = __esm(() => {
|
|
777829
777714
|
init_dist_es20();
|
|
777830
|
-
|
|
777715
|
+
import_client14 = __toESM(require_client(), 1);
|
|
777831
777716
|
import_property_provider20 = __toESM(require_dist_cjs13(), 1);
|
|
777832
777717
|
import_shared_ini_file_loader8 = __toESM(require_dist_cjs54(), 1);
|
|
777833
777718
|
});
|
|
@@ -777945,7 +777830,7 @@ var init_dist_es21 = __esm(() => {
|
|
|
777945
777830
|
});
|
|
777946
777831
|
|
|
777947
777832
|
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
777948
|
-
var
|
|
777833
|
+
var import_client15, resolveSsoCredentials = async (profile4, profileData, options = {}, callerClientConfig) => {
|
|
777949
777834
|
const { fromSSO: fromSSO3 } = await Promise.resolve().then(() => (init_dist_es21(), exports_dist_es6));
|
|
777950
777835
|
return fromSSO3({
|
|
777951
777836
|
profile: profile4,
|
|
@@ -777956,18 +777841,18 @@ var import_client16, resolveSsoCredentials = async (profile4, profileData, optio
|
|
|
777956
777841
|
callerClientConfig
|
|
777957
777842
|
}).then((creds) => {
|
|
777958
777843
|
if (profileData.sso_session) {
|
|
777959
|
-
return
|
|
777844
|
+
return import_client15.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
|
|
777960
777845
|
} else {
|
|
777961
|
-
return
|
|
777846
|
+
return import_client15.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
|
|
777962
777847
|
}
|
|
777963
777848
|
});
|
|
777964
777849
|
}, isSsoProfile3 = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
777965
777850
|
var init_resolveSsoCredentials = __esm(() => {
|
|
777966
|
-
|
|
777851
|
+
import_client15 = __toESM(require_client(), 1);
|
|
777967
777852
|
});
|
|
777968
777853
|
|
|
777969
777854
|
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
777970
|
-
var
|
|
777855
|
+
var import_client16, isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1, resolveStaticCredentials = async (profile4, options) => {
|
|
777971
777856
|
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
777972
777857
|
const credentials = {
|
|
777973
777858
|
accessKeyId: profile4.aws_access_key_id,
|
|
@@ -777976,10 +777861,10 @@ var import_client17, isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg
|
|
|
777976
777861
|
...profile4.aws_credential_scope && { credentialScope: profile4.aws_credential_scope },
|
|
777977
777862
|
...profile4.aws_account_id && { accountId: profile4.aws_account_id }
|
|
777978
777863
|
};
|
|
777979
|
-
return
|
|
777864
|
+
return import_client16.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
777980
777865
|
};
|
|
777981
777866
|
var init_resolveStaticCredentials = __esm(() => {
|
|
777982
|
-
|
|
777867
|
+
import_client16 = __toESM(require_client(), 1);
|
|
777983
777868
|
});
|
|
777984
777869
|
|
|
777985
777870
|
// node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
|
|
@@ -778011,7 +777896,7 @@ var fromWebToken = (init3) => async (awsIdentityProperties) => {
|
|
|
778011
777896
|
|
|
778012
777897
|
// node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
778013
777898
|
import { readFileSync as readFileSync53 } from "fs";
|
|
778014
|
-
var
|
|
777899
|
+
var import_client17, import_property_provider23, import_shared_ini_file_loader10, ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_ARN = "AWS_ROLE_ARN", ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME", fromTokenFile = (init3 = {}) => async (awsIdentityProperties) => {
|
|
778015
777900
|
init3.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
778016
777901
|
const webIdentityTokenFile = init3?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
|
|
778017
777902
|
const roleArn = init3?.roleArn ?? process.env[ENV_ROLE_ARN];
|
|
@@ -778028,12 +777913,12 @@ var import_client18, import_property_provider23, import_shared_ini_file_loader10
|
|
|
778028
777913
|
roleSessionName
|
|
778029
777914
|
})(awsIdentityProperties);
|
|
778030
777915
|
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
|
|
778031
|
-
|
|
777916
|
+
import_client17.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
|
|
778032
777917
|
}
|
|
778033
777918
|
return credentials;
|
|
778034
777919
|
};
|
|
778035
777920
|
var init_fromTokenFile = __esm(() => {
|
|
778036
|
-
|
|
777921
|
+
import_client17 = __toESM(require_client(), 1);
|
|
778037
777922
|
import_property_provider23 = __toESM(require_dist_cjs13(), 1);
|
|
778038
777923
|
import_shared_ini_file_loader10 = __toESM(require_dist_cjs54(), 1);
|
|
778039
777924
|
});
|
|
@@ -778049,7 +777934,7 @@ var init_dist_es22 = __esm(() => {
|
|
|
778049
777934
|
});
|
|
778050
777935
|
|
|
778051
777936
|
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
778052
|
-
var
|
|
777937
|
+
var import_client18, isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, resolveWebIdentityCredentials = async (profile4, options, callerClientConfig) => Promise.resolve().then(() => (init_dist_es22(), exports_dist_es7)).then(({ fromTokenFile: fromTokenFile3 }) => fromTokenFile3({
|
|
778053
777938
|
webIdentityTokenFile: profile4.web_identity_token_file,
|
|
778054
777939
|
roleArn: profile4.role_arn,
|
|
778055
777940
|
roleSessionName: profile4.role_session_name,
|
|
@@ -778058,9 +777943,9 @@ var import_client19, isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg
|
|
|
778058
777943
|
parentClientConfig: options.parentClientConfig
|
|
778059
777944
|
})({
|
|
778060
777945
|
callerClientConfig
|
|
778061
|
-
}).then((creds) =>
|
|
777946
|
+
}).then((creds) => import_client18.setCredentialFeature(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")));
|
|
778062
777947
|
var init_resolveWebIdentityCredentials = __esm(() => {
|
|
778063
|
-
|
|
777948
|
+
import_client18 = __toESM(require_client(), 1);
|
|
778064
777949
|
});
|
|
778065
777950
|
|
|
778066
777951
|
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
@@ -778130,13 +778015,13 @@ var init_fromIni2 = __esm(() => {
|
|
|
778130
778015
|
});
|
|
778131
778016
|
|
|
778132
778017
|
// node_modules/@aws-sdk/credential-providers/dist-es/fromInstanceMetadata.js
|
|
778133
|
-
var
|
|
778018
|
+
var import_client19, fromInstanceMetadata3 = (init3) => {
|
|
778134
778019
|
init3?.logger?.debug("@smithy/credential-provider-imds", "fromInstanceMetadata");
|
|
778135
|
-
return async () => fromInstanceMetadata(init3)().then((creds) =>
|
|
778020
|
+
return async () => fromInstanceMetadata(init3)().then((creds) => import_client19.setCredentialFeature(creds, "CREDENTIALS_IMDS", "0"));
|
|
778136
778021
|
};
|
|
778137
778022
|
var init_fromInstanceMetadata2 = __esm(() => {
|
|
778138
778023
|
init_dist_es10();
|
|
778139
|
-
|
|
778024
|
+
import_client19 = __toESM(require_client(), 1);
|
|
778140
778025
|
});
|
|
778141
778026
|
|
|
778142
778027
|
// node_modules/@aws-sdk/credential-providers/dist-es/fromLoginCredentials.js
|
|
@@ -782807,7 +782692,7 @@ function schemaLogFilter2(schema3, data) {
|
|
|
782807
782692
|
if (data == null) {
|
|
782808
782693
|
return data;
|
|
782809
782694
|
}
|
|
782810
|
-
const ns =
|
|
782695
|
+
const ns = import_schema31.NormalizedSchema.of(schema3);
|
|
782811
782696
|
if (ns.getMergedTraits().sensitive) {
|
|
782812
782697
|
return SENSITIVE_STRING3;
|
|
782813
782698
|
}
|
|
@@ -782833,9 +782718,9 @@ function schemaLogFilter2(schema3, data) {
|
|
|
782833
782718
|
}
|
|
782834
782719
|
return data;
|
|
782835
782720
|
}
|
|
782836
|
-
var
|
|
782721
|
+
var import_schema31, SENSITIVE_STRING3 = "***SensitiveInformation***";
|
|
782837
782722
|
var init_schemaLogFilter2 = __esm(() => {
|
|
782838
|
-
|
|
782723
|
+
import_schema31 = __toESM(require_schema(), 1);
|
|
782839
782724
|
});
|
|
782840
782725
|
|
|
782841
782726
|
// node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/smithy-client/dist-es/command.js
|
|
@@ -783741,7 +783626,7 @@ var init_dist_es50 = __esm(() => {
|
|
|
783741
783626
|
});
|
|
783742
783627
|
|
|
783743
783628
|
// node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js
|
|
783744
|
-
var
|
|
783629
|
+
var import_client22, import_httpAuthSchemes2, import_property_provider28, fromEnvSigningName2 = ({ logger: logger7, signingName } = {}) => async () => {
|
|
783745
783630
|
logger7?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
|
|
783746
783631
|
if (!signingName) {
|
|
783747
783632
|
throw new import_property_provider28.TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger: logger7 });
|
|
@@ -783751,11 +783636,11 @@ var import_client23, import_httpAuthSchemes2, import_property_provider28, fromEn
|
|
|
783751
783636
|
throw new import_property_provider28.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger: logger7 });
|
|
783752
783637
|
}
|
|
783753
783638
|
const token = { token: process.env[bearerTokenKey] };
|
|
783754
|
-
|
|
783639
|
+
import_client22.setTokenFeature(token, "BEARER_SERVICE_ENV_VARS", "3");
|
|
783755
783640
|
return token;
|
|
783756
783641
|
};
|
|
783757
783642
|
var init_fromEnvSigningName2 = __esm(() => {
|
|
783758
|
-
|
|
783643
|
+
import_client22 = __toESM(require_client(), 1);
|
|
783759
783644
|
import_httpAuthSchemes2 = __toESM(require_httpAuthSchemes(), 1);
|
|
783760
783645
|
import_property_provider28 = __toESM(require_dist_cjs13(), 1);
|
|
783761
783646
|
});
|
|
@@ -784388,15 +784273,15 @@ var init_errors5 = __esm(() => {
|
|
|
784388
784273
|
});
|
|
784389
784274
|
|
|
784390
784275
|
// node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js
|
|
784391
|
-
var import_schema33, _A = "Accept", _AB = "AudioBlock", _ADE = "AccessDeniedException", _AG = "ApplyGuardrail", _AGD = "AppliedGuardrailDetails", _AGR = "ApplyGuardrailRequest", _AGRp = "ApplyGuardrailResponse", _AIM = "AsyncInvokeMessage", _AIODC = "AsyncInvokeOutputDataConfig", _AIS = "AsyncInvokeSummary", _AISODC = "AsyncInvokeS3OutputDataConfig", _AISs = "AsyncInvokeSummaries", _AS = "AudioSource", _ATC = "AnyToolChoice", _ATCu = "AutoToolChoice", _B = "Body", _BIPP = "BidirectionalInputPayloadPart", _BOPP = "BidirectionalOutputPayloadPart", _C = "Citation", _CB = "ContentBlocks", _CBD = "ContentBlockDelta", _CBDE = "ContentBlockDeltaEvent", _CBS = "ContentBlockStart", _CBSE = "ContentBlockStartEvent", _CBSEo = "ContentBlockStopEvent", _CBo = "ContentBlock", _CC = "CitationsConfig", _CCB = "CitationsContentBlock", _CD = "CacheDetail", _CDL = "CacheDetailsList", _CDi = "CitationsDelta", _CE = "ConflictException", _CGC = "CitationGeneratedContent", _CGCL = "CitationGeneratedContentList", _CL = "CitationLocation", _CM = "ConverseMetrics", _CO = "ConverseOutput", _CPB = "CachePointBlock", _CR = "ConverseRequest", _CRo = "ConverseResponse", _CS = "ConverseStream", _CSC = "CitationSourceContent", _CSCD = "CitationSourceContentDelta", _CSCL = "CitationSourceContentList", _CSCLD = "CitationSourceContentListDelta", _CSM = "ConverseStreamMetrics", _CSME = "ConverseStreamMetadataEvent", _CSO = "ConverseStreamOutput", _CSR = "ConverseStreamRequest", _CSRo = "ConverseStreamResponse", _CST = "ConverseStreamTrace", _CT = "ConverseTrace", _CTI = "CountTokensInput", _CTR = "ConverseTokensRequest", _CTRo = "CountTokensRequest", _CTRou = "CountTokensResponse", _CT_ = "Content-Type", _CTo = "CountTokens", _Ci = "Citations", _Co = "Converse", _DB = "DocumentBlock", _DCB = "DocumentContentBlocks", _DCBo = "DocumentContentBlock", _DCL = "DocumentCharLocation", _DCLo = "DocumentChunkLocation", _DPL = "DocumentPageLocation", _DS = "DocumentSource", _EB = "ErrorBlock", _GA = "GuardrailAssessment", _GAI = "GetAsyncInvoke", _GAIR = "GetAsyncInvokeRequest", _GAIRe = "GetAsyncInvokeResponse", _GAL = "GuardrailAssessmentList", _GALM = "GuardrailAssessmentListMap", _GAM = "GuardrailAssessmentMap", _GARDSL = "GuardrailAutomatedReasoningDifferenceScenarioList", _GARF = "GuardrailAutomatedReasoningFinding", _GARFL = "GuardrailAutomatedReasoningFindingList", _GARIF = "GuardrailAutomatedReasoningImpossibleFinding", _GARIFu = "GuardrailAutomatedReasoningInvalidFinding", _GARITR = "GuardrailAutomatedReasoningInputTextReference", _GARITRL = "GuardrailAutomatedReasoningInputTextReferenceList", _GARLW = "GuardrailAutomatedReasoningLogicWarning", _GARNTF = "GuardrailAutomatedReasoningNoTranslationsFinding", _GARPA = "GuardrailAutomatedReasoningPolicyAssessment", _GARR = "GuardrailAutomatedReasoningRule", _GARRL = "GuardrailAutomatedReasoningRuleList", _GARS = "GuardrailAutomatedReasoningScenario", _GARSF = "GuardrailAutomatedReasoningSatisfiableFinding", _GARSL = "GuardrailAutomatedReasoningStatementList", _GARSLC = "GuardrailAutomatedReasoningStatementLogicContent", _GARSNLC = "GuardrailAutomatedReasoningStatementNaturalLanguageContent", _GARSu = "GuardrailAutomatedReasoningStatement", _GART = "GuardrailAutomatedReasoningTranslation", _GARTAF = "GuardrailAutomatedReasoningTranslationAmbiguousFinding", _GARTCF = "GuardrailAutomatedReasoningTooComplexFinding", _GARTL = "GuardrailAutomatedReasoningTranslationList", _GARTO = "GuardrailAutomatedReasoningTranslationOption", _GARTOL = "GuardrailAutomatedReasoningTranslationOptionList", _GARVF = "GuardrailAutomatedReasoningValidFinding", _GC = "GuardrailConfiguration", _GCB = "GuardrailContentBlock", _GCBL = "GuardrailContentBlockList", _GCCB = "GuardrailConverseContentBlock", _GCF = "GuardrailContentFilter", _GCFL = "GuardrailContentFilterList", _GCGF = "GuardrailContextualGroundingFilter", _GCGFu = "GuardrailContextualGroundingFilters", _GCGPA = "GuardrailContextualGroundingPolicyAssessment", _GCIB = "GuardrailConverseImageBlock", _GCIS = "GuardrailConverseImageSource", _GCPA = "GuardrailContentPolicyAssessment", _GCTB = "GuardrailConverseTextBlock", _GCW = "GuardrailCustomWord", _GCWL = "GuardrailCustomWordList", _GCu = "GuardrailCoverage", _GIB = "GuardrailImageBlock", _GIC = "GuardrailImageCoverage", _GIM = "GuardrailInvocationMetrics", _GIS = "GuardrailImageSource", _GMW = "GuardrailManagedWord", _GMWL = "GuardrailManagedWordList", _GOC = "GuardrailOutputContent", _GOCL = "GuardrailOutputContentList", _GPEF = "GuardrailPiiEntityFilter", _GPEFL = "GuardrailPiiEntityFilterList", _GRF = "GuardrailRegexFilter", _GRFL = "GuardrailRegexFilterList", _GSC = "GuardrailStreamConfiguration", _GSIPA = "GuardrailSensitiveInformationPolicyAssessment", _GT = "GuardrailTopic", _GTA = "GuardrailTraceAssessment", _GTB = "GuardrailTextBlock", _GTCC = "GuardrailTextCharactersCoverage", _GTL = "GuardrailTopicList", _GTPA = "GuardrailTopicPolicyAssessment", _GU = "GuardrailUsage", _GWPA = "GuardrailWordPolicyAssessment", _IB = "ImageBlock", _IBD = "ImageBlockDelta", _IBS = "ImageBlockStart", _IC = "InferenceConfiguration", _IM = "InvokeModel", _IMR = "InvokeModelRequest", _IMRn = "InvokeModelResponse", _IMTR = "InvokeModelTokensRequest", _IMWBS = "InvokeModelWithBidirectionalStream", _IMWBSI = "InvokeModelWithBidirectionalStreamInput", _IMWBSO = "InvokeModelWithBidirectionalStreamOutput", _IMWBSR = "InvokeModelWithBidirectionalStreamRequest", _IMWBSRn = "InvokeModelWithBidirectionalStreamResponse", _IMWRS = "InvokeModelWithResponseStream", _IMWRSR = "InvokeModelWithResponseStreamRequest", _IMWRSRn = "InvokeModelWithResponseStreamResponse", _IS = "ImageSource", _ISE = "InternalServerException", _JSD = "JsonSchemaDefinition", _LAI = "ListAsyncInvokes", _LAIR = "ListAsyncInvokesRequest", _LAIRi = "ListAsyncInvokesResponse", _M = "Message", _MEE = "ModelErrorException", _MIP = "ModelInputPayload", _MNRE = "ModelNotReadyException", _MSE = "MessageStartEvent", _MSEE = "ModelStreamErrorException", _MSEe = "MessageStopEvent", _MTE = "ModelTimeoutException", _Me = "Messages", _OC = "OutputConfig", _OF = "OutputFormat", _OFS = "OutputFormatStructure", _PB = "PartBody", _PC = "PerformanceConfiguration", _PP = "PayloadPart", _PRT = "PromptRouterTrace", _PVM = "PromptVariableMap", _PVV = "PromptVariableValues", _RCB = "ReasoningContentBlock", _RCBD = "ReasoningContentBlockDelta", _RM = "RequestMetadata", _RNFE = "ResourceNotFoundException", _RS = "ResponseStream", _RTB = "ReasoningTextBlock", _SAI = "StartAsyncInvoke", _SAIR = "StartAsyncInvokeRequest", _SAIRt = "StartAsyncInvokeResponse", _SCB = "SystemContentBlocks", _SCBy = "SystemContentBlock", _SL = "S3Location", _SQEE = "ServiceQuotaExceededException", _SRB = "SearchResultBlock", _SRCB = "SearchResultContentBlock", _SRCBe = "SearchResultContentBlocks", _SRL = "SearchResultLocation", _ST = "ServiceTier", _STC = "SpecificToolChoice", _STy = "SystemTool", _SUE = "ServiceUnavailableException", _T = "Tag", _TC = "ToolConfiguration", _TCo = "ToolChoice", _TE = "ThrottlingException", _TIS = "ToolInputSchema", _TL = "TagList", _TRB = "ToolResultBlock", _TRBD = "ToolResultBlocksDelta", _TRBDo = "ToolResultBlockDelta", _TRBS = "ToolResultBlockStart", _TRCB = "ToolResultContentBlocks", _TRCBo = "ToolResultContentBlock", _TS = "ToolSpecification", _TU = "TokenUsage", _TUB = "ToolUseBlock", _TUBD = "ToolUseBlockDelta", _TUBS = "ToolUseBlockStart", _To = "Tools", _Too = "Tool", _VB = "VideoBlock", _VE = "ValidationException", _VS = "VideoSource", _WL = "WebLocation", _XABA = "X-Amzn-Bedrock-Accept", _XABCT = "X-Amzn-Bedrock-Content-Type", _XABG = "X-Amzn-Bedrock-GuardrailIdentifier", _XABG_ = "X-Amzn-Bedrock-GuardrailVersion", _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency", _XABST = "X-Amzn-Bedrock-Service-Tier", _XABT = "X-Amzn-Bedrock-Trace", _a7 = "action", _aGD = "appliedGuardrailDetails", _aIS = "asyncInvokeSummaries", _aMRF = "additionalModelRequestFields", _aMRFP = "additionalModelResponseFieldPaths", _aMRFd = "additionalModelResponseFields", _aR = "actionReason", _aRP = "automatedReasoningPolicy", _aRPU = "automatedReasoningPolicyUnits", _aRPu = "automatedReasoningPolicies", _ac = "accept", _an = "any", _as = "assessments", _au = "audio", _aut = "auto", _b = "bytes", _bO = "bucketOwner", _bo = "body", _c = "client", _cBD = "contentBlockDelta", _cBI = "contentBlockIndex", _cBS = "contentBlockStart", _cBSo = "contentBlockStop", _cC = "citationsContent", _cD = "cacheDetails", _cFS = "claimsFalseScenario", _cGP = "contextualGroundingPolicy", _cGPU = "contextualGroundingPolicyUnits", _cP = "contentPolicy", _cPIU = "contentPolicyImageUnits", _cPU = "contentPolicyUnits", _cPa = "cachePoint", _cR = "contradictingRules", _cRIT = "cacheReadInputTokens", _cRT = "clientRequestToken", _cT = "contentType", _cTS = "claimsTrueScenario", _cW = "customWords", _cWIT = "cacheWriteInputTokens", _ch = "chunk", _ci = "citations", _cit = "citation", _cl = "claims", _co = "content", _con = "context", _conf = "confidence", _conv = "converse", _d = "delta", _dC = "documentChar", _dCo = "documentChunk", _dI = "documentIndex", _dP = "documentPage", _dS = "differenceScenarios", _de = "detected", _des = "description", _do = "domain", _doc = "document", _e = "error", _eT = "endTime", _en = "enabled", _end = "end", _f = "format", _fM = "failureMessage", _fS = "filterStrength", _fi = "findings", _fil = "filters", _g = "guardrail", _gA = "guardrailArn", _gC = "guardrailCoverage", _gCu = "guardrailConfig", _gCua = "guardContent", _gI = "guardrailId", _gIu = "guardrailIdentifier", _gO = "guardrailOrigin", _gOu = "guardrailOwnership", _gPL = "guardrailProcessingLatency", _gV = "guardrailVersion", _gu = "guarded", _h = "http", _hE = "httpError", _hH = "httpHeader", _hQ = "httpQuery", _i = "input", _iA = "invocationArn", _iAn = "inputAssessment", _iC = "inferenceConfig", _iM = "invocationMetrics", _iMI = "invokedModelId", _iMn = "invokeModel", _iS = "inputSchema", _iSE = "internalServerException", _iT = "inputTokens", _id = "identifier", _im = "images", _ima = "image", _imp = "impossible", _in = "invalid", _j = "json", _jS = "jsonSchema", _k = "key", _kKI = "kmsKeyId", _l = "location", _lM = "latencyMs", _lMT = "lastModifiedTime", _lW = "logicWarning", _la = "latency", _lo = "logic", _m = "message", _mA = "modelArn", _mI = "modelId", _mIo = "modelInput", _mO = "modelOutput", _mR = "maxResults", _mS = "messageStart", _mSEE = "modelStreamErrorException", _mSe = "messageStop", _mT = "maxTokens", _mTE = "modelTimeoutException", _mWL = "managedWordLists", _ma = "match", _me = "messages", _met = "metrics", _meta = "metadata", _n = "name", _nL = "naturalLanguage", _nT = "nextToken", _nTo = "noTranslations", _o = "outputs", _oA = "outputAssessments", _oC = "outputConfig", _oDC = "outputDataConfig", _oM = "originalMessage", _oS = "outputScope", _oSC = "originalStatusCode", _oT = "outputTokens", _op = "options", _ou = "output", _p = "premises", _pC = "performanceConfig", _pCL = "performanceConfigLatency", _pE = "piiEntities", _pR = "promptRouter", _pV = "promptVariables", _pVA = "policyVersionArn", _q = "qualifiers", _r = "regex", _rC = "reasoningContent", _rCe = "redactedContent", _rM = "requestMetadata", _rN = "resourceName", _rT = "reasoningText", _re = "regexes", _ro = "role", _s = "smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime", _sB = "sortBy", _sC = "sourceContent", _sE = "statusEquals", _sIP = "sensitiveInformationPolicy", _sIPFU = "sensitiveInformationPolicyFreeUnits", _sIPU = "sensitiveInformationPolicyUnits", _sL = "s3Location", _sO = "sortOrder", _sODC = "s3OutputDataConfig", _sPM = "streamProcessingMode", _sR = "stopReason", _sRI = "searchResultIndex", _sRL = "searchResultLocation", _sRe = "searchResult", _sRu = "supportingRules", _sS = "stopSequences", _sT = "submitTime", _sTA = "submitTimeAfter", _sTB = "submitTimeBefore", _sTe = "serviceTier", _sTy = "systemTool", _sU = "s3Uri", _sUE = "serviceUnavailableException", _sa = "satisfiable", _sc = "score", _sch = "schema", _se = "server", _si = "signature", _so = "source", _st = "status", _sta = "start", _stat = "statements", _str = "stream", _stre = "streaming", _stri = "strict", _stru = "structure", _sy = "system", _t = "ttl", _tA = "translationAmbiguous", _tC = "toolConfig", _tCe = "textCharacters", _tCo = "toolChoice", _tCoo = "tooComplex", _tE = "throttlingException", _tF = "textFormat", _tP = "topicPolicy", _tPU = "topicPolicyUnits", _tPo = "topP", _tR = "toolResult", _tS = "toolSpec", _tT = "totalTokens", _tU = "toolUse", _tUI = "toolUseId", _ta = "tags", _te = "text", _tem = "temperature", _th = "threshold", _ti = "title", _to = "total", _too = "tools", _tool = "tool", _top = "topics", _tr = "trace", _tra = "translation", _tran = "translations", _ty = "type", _u = "usage", _uC = "untranslatedClaims", _uP = "untranslatedPremises", _ur = "uri", _url2 = "url", _v = "value", _vE = "validationException", _va = "valid", _vi = "video", _w = "web", _wP = "wordPolicy", _wPU = "wordPolicyUnits", n0 = "com.amazonaws.bedrockruntime", _s_registry, BedrockRuntimeServiceException$, n0_registry, AccessDeniedException$, ConflictException$, InternalServerException$, ModelErrorException$, ModelNotReadyException$, ModelStreamErrorException$, ModelTimeoutException$, ResourceNotFoundException$, ServiceQuotaExceededException$, ServiceUnavailableException$, ThrottlingException$, ValidationException$, errorTypeRegistries, AsyncInvokeMessage, Body, GuardrailAutomatedReasoningStatementLogicContent, GuardrailAutomatedReasoningStatementNaturalLanguageContent, ModelInputPayload, PartBody, AnyToolChoice$, AppliedGuardrailDetails$, ApplyGuardrailRequest$, ApplyGuardrailResponse$, AsyncInvokeS3OutputDataConfig$, AsyncInvokeSummary$, AudioBlock$, AutoToolChoice$, BidirectionalInputPayloadPart$, BidirectionalOutputPayloadPart$, CacheDetail$, CachePointBlock$, Citation$, CitationsConfig$, CitationsContentBlock$, CitationsDelta$, CitationSourceContentDelta$, ContentBlockDeltaEvent$, ContentBlockStartEvent$, ContentBlockStopEvent$, ConverseMetrics$, ConverseRequest$, ConverseResponse$, ConverseStreamMetadataEvent$, ConverseStreamMetrics$, ConverseStreamRequest$, ConverseStreamResponse$, ConverseStreamTrace$, ConverseTokensRequest$, ConverseTrace$, CountTokensRequest$, CountTokensResponse$, DocumentBlock$, DocumentCharLocation$, DocumentChunkLocation$, DocumentPageLocation$, ErrorBlock$, GetAsyncInvokeRequest$, GetAsyncInvokeResponse$, GuardrailAssessment$, GuardrailAutomatedReasoningImpossibleFinding$, GuardrailAutomatedReasoningInputTextReference$, GuardrailAutomatedReasoningInvalidFinding$, GuardrailAutomatedReasoningLogicWarning$, GuardrailAutomatedReasoningNoTranslationsFinding$, GuardrailAutomatedReasoningPolicyAssessment$, GuardrailAutomatedReasoningRule$, GuardrailAutomatedReasoningSatisfiableFinding$, GuardrailAutomatedReasoningScenario$, GuardrailAutomatedReasoningStatement$, GuardrailAutomatedReasoningTooComplexFinding$, GuardrailAutomatedReasoningTranslation$, GuardrailAutomatedReasoningTranslationAmbiguousFinding$, GuardrailAutomatedReasoningTranslationOption$, GuardrailAutomatedReasoningValidFinding$, GuardrailConfiguration$, GuardrailContentFilter$, GuardrailContentPolicyAssessment$, GuardrailContextualGroundingFilter$, GuardrailContextualGroundingPolicyAssessment$, GuardrailConverseImageBlock$, GuardrailConverseTextBlock$, GuardrailCoverage$, GuardrailCustomWord$, GuardrailImageBlock$, GuardrailImageCoverage$, GuardrailInvocationMetrics$, GuardrailManagedWord$, GuardrailOutputContent$, GuardrailPiiEntityFilter$, GuardrailRegexFilter$, GuardrailSensitiveInformationPolicyAssessment$, GuardrailStreamConfiguration$, GuardrailTextBlock$, GuardrailTextCharactersCoverage$, GuardrailTopic$, GuardrailTopicPolicyAssessment$, GuardrailTraceAssessment$, GuardrailUsage$, GuardrailWordPolicyAssessment$, ImageBlock$, ImageBlockDelta$, ImageBlockStart$, InferenceConfiguration$, InvokeModelRequest$, InvokeModelResponse$, InvokeModelTokensRequest$, InvokeModelWithBidirectionalStreamRequest$, InvokeModelWithBidirectionalStreamResponse$, InvokeModelWithResponseStreamRequest$, InvokeModelWithResponseStreamResponse$, JsonSchemaDefinition$, ListAsyncInvokesRequest$, ListAsyncInvokesResponse$, Message$, MessageStartEvent$, MessageStopEvent$, OutputConfig$, OutputFormat$, PayloadPart$, PerformanceConfiguration$, PromptRouterTrace$, ReasoningTextBlock$, S3Location$, SearchResultBlock$, SearchResultContentBlock$, SearchResultLocation$, ServiceTier$, SpecificToolChoice$, StartAsyncInvokeRequest$, StartAsyncInvokeResponse$, SystemTool$, Tag$, TokenUsage$, ToolConfiguration$, ToolResultBlock$, ToolResultBlockStart$, ToolSpecification$, ToolUseBlock$, ToolUseBlockDelta$, ToolUseBlockStart$, VideoBlock$, WebLocation$, AdditionalModelResponseFieldPaths, AsyncInvokeSummaries, CacheDetailsList, CitationGeneratedContentList, Citations, CitationSourceContentList, CitationSourceContentListDelta, ContentBlocks, DocumentContentBlocks, GuardrailAssessmentList, GuardrailAutomatedReasoningDifferenceScenarioList, GuardrailAutomatedReasoningFindingList, GuardrailAutomatedReasoningInputTextReferenceList, GuardrailAutomatedReasoningRuleList, GuardrailAutomatedReasoningStatementList, GuardrailAutomatedReasoningTranslationList, GuardrailAutomatedReasoningTranslationOptionList, GuardrailContentBlockList, GuardrailContentFilterList, GuardrailContentQualifierList, GuardrailContextualGroundingFilters, GuardrailConverseContentQualifierList, GuardrailCustomWordList, GuardrailManagedWordList, GuardrailOriginList, GuardrailOutputContentList, GuardrailPiiEntityFilterList, GuardrailRegexFilterList, GuardrailTopicList, Messages6, ModelOutputs, NonEmptyStringList, SearchResultContentBlocks, SystemContentBlocks, TagList2, ToolResultBlocksDelta, ToolResultContentBlocks, Tools, GuardrailAssessmentListMap, GuardrailAssessmentMap, PromptVariableMap, RequestMetadata, AsyncInvokeOutputDataConfig$, AudioSource$, CitationGeneratedContent$, CitationLocation$, CitationSourceContent$, ContentBlock$, ContentBlockDelta$, ContentBlockStart$, ConverseOutput$, ConverseStreamOutput$, CountTokensInput$, DocumentContentBlock$, DocumentSource$, GuardrailAutomatedReasoningFinding$, GuardrailContentBlock$, GuardrailConverseContentBlock$, GuardrailConverseImageSource$, GuardrailImageSource$, ImageSource$, InvokeModelWithBidirectionalStreamInput$, InvokeModelWithBidirectionalStreamOutput$, OutputFormatStructure$, PromptVariableValues$, ReasoningContentBlock$, ReasoningContentBlockDelta$, ResponseStream$, SystemContentBlock$, Tool$, ToolChoice$, ToolInputSchema$, ToolResultBlockDelta$, ToolResultContentBlock$, VideoSource$, ApplyGuardrail$, Converse$, ConverseStream$, CountTokens$, GetAsyncInvoke$, InvokeModel$, InvokeModelWithBidirectionalStream$, InvokeModelWithResponseStream$, ListAsyncInvokes$, StartAsyncInvoke$;
|
|
784276
|
+
var import_schema32, _A = "Accept", _AB = "AudioBlock", _ADE = "AccessDeniedException", _AG = "ApplyGuardrail", _AGD = "AppliedGuardrailDetails", _AGR = "ApplyGuardrailRequest", _AGRp = "ApplyGuardrailResponse", _AIM = "AsyncInvokeMessage", _AIODC = "AsyncInvokeOutputDataConfig", _AIS = "AsyncInvokeSummary", _AISODC = "AsyncInvokeS3OutputDataConfig", _AISs = "AsyncInvokeSummaries", _AS = "AudioSource", _ATC = "AnyToolChoice", _ATCu = "AutoToolChoice", _B = "Body", _BIPP = "BidirectionalInputPayloadPart", _BOPP = "BidirectionalOutputPayloadPart", _C = "Citation", _CB = "ContentBlocks", _CBD = "ContentBlockDelta", _CBDE = "ContentBlockDeltaEvent", _CBS = "ContentBlockStart", _CBSE = "ContentBlockStartEvent", _CBSEo = "ContentBlockStopEvent", _CBo = "ContentBlock", _CC = "CitationsConfig", _CCB = "CitationsContentBlock", _CD = "CacheDetail", _CDL = "CacheDetailsList", _CDi = "CitationsDelta", _CE = "ConflictException", _CGC = "CitationGeneratedContent", _CGCL = "CitationGeneratedContentList", _CL = "CitationLocation", _CM = "ConverseMetrics", _CO = "ConverseOutput", _CPB = "CachePointBlock", _CR = "ConverseRequest", _CRo = "ConverseResponse", _CS = "ConverseStream", _CSC = "CitationSourceContent", _CSCD = "CitationSourceContentDelta", _CSCL = "CitationSourceContentList", _CSCLD = "CitationSourceContentListDelta", _CSM = "ConverseStreamMetrics", _CSME = "ConverseStreamMetadataEvent", _CSO = "ConverseStreamOutput", _CSR = "ConverseStreamRequest", _CSRo = "ConverseStreamResponse", _CST = "ConverseStreamTrace", _CT = "ConverseTrace", _CTI = "CountTokensInput", _CTR = "ConverseTokensRequest", _CTRo = "CountTokensRequest", _CTRou = "CountTokensResponse", _CT_ = "Content-Type", _CTo = "CountTokens", _Ci = "Citations", _Co = "Converse", _DB = "DocumentBlock", _DCB = "DocumentContentBlocks", _DCBo = "DocumentContentBlock", _DCL = "DocumentCharLocation", _DCLo = "DocumentChunkLocation", _DPL = "DocumentPageLocation", _DS = "DocumentSource", _EB = "ErrorBlock", _GA = "GuardrailAssessment", _GAI = "GetAsyncInvoke", _GAIR = "GetAsyncInvokeRequest", _GAIRe = "GetAsyncInvokeResponse", _GAL = "GuardrailAssessmentList", _GALM = "GuardrailAssessmentListMap", _GAM = "GuardrailAssessmentMap", _GARDSL = "GuardrailAutomatedReasoningDifferenceScenarioList", _GARF = "GuardrailAutomatedReasoningFinding", _GARFL = "GuardrailAutomatedReasoningFindingList", _GARIF = "GuardrailAutomatedReasoningImpossibleFinding", _GARIFu = "GuardrailAutomatedReasoningInvalidFinding", _GARITR = "GuardrailAutomatedReasoningInputTextReference", _GARITRL = "GuardrailAutomatedReasoningInputTextReferenceList", _GARLW = "GuardrailAutomatedReasoningLogicWarning", _GARNTF = "GuardrailAutomatedReasoningNoTranslationsFinding", _GARPA = "GuardrailAutomatedReasoningPolicyAssessment", _GARR = "GuardrailAutomatedReasoningRule", _GARRL = "GuardrailAutomatedReasoningRuleList", _GARS = "GuardrailAutomatedReasoningScenario", _GARSF = "GuardrailAutomatedReasoningSatisfiableFinding", _GARSL = "GuardrailAutomatedReasoningStatementList", _GARSLC = "GuardrailAutomatedReasoningStatementLogicContent", _GARSNLC = "GuardrailAutomatedReasoningStatementNaturalLanguageContent", _GARSu = "GuardrailAutomatedReasoningStatement", _GART = "GuardrailAutomatedReasoningTranslation", _GARTAF = "GuardrailAutomatedReasoningTranslationAmbiguousFinding", _GARTCF = "GuardrailAutomatedReasoningTooComplexFinding", _GARTL = "GuardrailAutomatedReasoningTranslationList", _GARTO = "GuardrailAutomatedReasoningTranslationOption", _GARTOL = "GuardrailAutomatedReasoningTranslationOptionList", _GARVF = "GuardrailAutomatedReasoningValidFinding", _GC = "GuardrailConfiguration", _GCB = "GuardrailContentBlock", _GCBL = "GuardrailContentBlockList", _GCCB = "GuardrailConverseContentBlock", _GCF = "GuardrailContentFilter", _GCFL = "GuardrailContentFilterList", _GCGF = "GuardrailContextualGroundingFilter", _GCGFu = "GuardrailContextualGroundingFilters", _GCGPA = "GuardrailContextualGroundingPolicyAssessment", _GCIB = "GuardrailConverseImageBlock", _GCIS = "GuardrailConverseImageSource", _GCPA = "GuardrailContentPolicyAssessment", _GCTB = "GuardrailConverseTextBlock", _GCW = "GuardrailCustomWord", _GCWL = "GuardrailCustomWordList", _GCu = "GuardrailCoverage", _GIB = "GuardrailImageBlock", _GIC = "GuardrailImageCoverage", _GIM = "GuardrailInvocationMetrics", _GIS = "GuardrailImageSource", _GMW = "GuardrailManagedWord", _GMWL = "GuardrailManagedWordList", _GOC = "GuardrailOutputContent", _GOCL = "GuardrailOutputContentList", _GPEF = "GuardrailPiiEntityFilter", _GPEFL = "GuardrailPiiEntityFilterList", _GRF = "GuardrailRegexFilter", _GRFL = "GuardrailRegexFilterList", _GSC = "GuardrailStreamConfiguration", _GSIPA = "GuardrailSensitiveInformationPolicyAssessment", _GT = "GuardrailTopic", _GTA = "GuardrailTraceAssessment", _GTB = "GuardrailTextBlock", _GTCC = "GuardrailTextCharactersCoverage", _GTL = "GuardrailTopicList", _GTPA = "GuardrailTopicPolicyAssessment", _GU = "GuardrailUsage", _GWPA = "GuardrailWordPolicyAssessment", _IB = "ImageBlock", _IBD = "ImageBlockDelta", _IBS = "ImageBlockStart", _IC = "InferenceConfiguration", _IM = "InvokeModel", _IMR = "InvokeModelRequest", _IMRn = "InvokeModelResponse", _IMTR = "InvokeModelTokensRequest", _IMWBS = "InvokeModelWithBidirectionalStream", _IMWBSI = "InvokeModelWithBidirectionalStreamInput", _IMWBSO = "InvokeModelWithBidirectionalStreamOutput", _IMWBSR = "InvokeModelWithBidirectionalStreamRequest", _IMWBSRn = "InvokeModelWithBidirectionalStreamResponse", _IMWRS = "InvokeModelWithResponseStream", _IMWRSR = "InvokeModelWithResponseStreamRequest", _IMWRSRn = "InvokeModelWithResponseStreamResponse", _IS = "ImageSource", _ISE = "InternalServerException", _JSD = "JsonSchemaDefinition", _LAI = "ListAsyncInvokes", _LAIR = "ListAsyncInvokesRequest", _LAIRi = "ListAsyncInvokesResponse", _M = "Message", _MEE = "ModelErrorException", _MIP = "ModelInputPayload", _MNRE = "ModelNotReadyException", _MSE = "MessageStartEvent", _MSEE = "ModelStreamErrorException", _MSEe = "MessageStopEvent", _MTE = "ModelTimeoutException", _Me = "Messages", _OC = "OutputConfig", _OF = "OutputFormat", _OFS = "OutputFormatStructure", _PB = "PartBody", _PC = "PerformanceConfiguration", _PP = "PayloadPart", _PRT = "PromptRouterTrace", _PVM = "PromptVariableMap", _PVV = "PromptVariableValues", _RCB = "ReasoningContentBlock", _RCBD = "ReasoningContentBlockDelta", _RM = "RequestMetadata", _RNFE = "ResourceNotFoundException", _RS = "ResponseStream", _RTB = "ReasoningTextBlock", _SAI = "StartAsyncInvoke", _SAIR = "StartAsyncInvokeRequest", _SAIRt = "StartAsyncInvokeResponse", _SCB = "SystemContentBlocks", _SCBy = "SystemContentBlock", _SL = "S3Location", _SQEE = "ServiceQuotaExceededException", _SRB = "SearchResultBlock", _SRCB = "SearchResultContentBlock", _SRCBe = "SearchResultContentBlocks", _SRL = "SearchResultLocation", _ST = "ServiceTier", _STC = "SpecificToolChoice", _STy = "SystemTool", _SUE = "ServiceUnavailableException", _T = "Tag", _TC = "ToolConfiguration", _TCo = "ToolChoice", _TE = "ThrottlingException", _TIS = "ToolInputSchema", _TL = "TagList", _TRB = "ToolResultBlock", _TRBD = "ToolResultBlocksDelta", _TRBDo = "ToolResultBlockDelta", _TRBS = "ToolResultBlockStart", _TRCB = "ToolResultContentBlocks", _TRCBo = "ToolResultContentBlock", _TS = "ToolSpecification", _TU = "TokenUsage", _TUB = "ToolUseBlock", _TUBD = "ToolUseBlockDelta", _TUBS = "ToolUseBlockStart", _To = "Tools", _Too = "Tool", _VB = "VideoBlock", _VE = "ValidationException", _VS = "VideoSource", _WL = "WebLocation", _XABA = "X-Amzn-Bedrock-Accept", _XABCT = "X-Amzn-Bedrock-Content-Type", _XABG = "X-Amzn-Bedrock-GuardrailIdentifier", _XABG_ = "X-Amzn-Bedrock-GuardrailVersion", _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency", _XABST = "X-Amzn-Bedrock-Service-Tier", _XABT = "X-Amzn-Bedrock-Trace", _a7 = "action", _aGD = "appliedGuardrailDetails", _aIS = "asyncInvokeSummaries", _aMRF = "additionalModelRequestFields", _aMRFP = "additionalModelResponseFieldPaths", _aMRFd = "additionalModelResponseFields", _aR = "actionReason", _aRP = "automatedReasoningPolicy", _aRPU = "automatedReasoningPolicyUnits", _aRPu = "automatedReasoningPolicies", _ac = "accept", _an = "any", _as = "assessments", _au = "audio", _aut = "auto", _b = "bytes", _bO = "bucketOwner", _bo = "body", _c = "client", _cBD = "contentBlockDelta", _cBI = "contentBlockIndex", _cBS = "contentBlockStart", _cBSo = "contentBlockStop", _cC = "citationsContent", _cD = "cacheDetails", _cFS = "claimsFalseScenario", _cGP = "contextualGroundingPolicy", _cGPU = "contextualGroundingPolicyUnits", _cP = "contentPolicy", _cPIU = "contentPolicyImageUnits", _cPU = "contentPolicyUnits", _cPa = "cachePoint", _cR = "contradictingRules", _cRIT = "cacheReadInputTokens", _cRT = "clientRequestToken", _cT = "contentType", _cTS = "claimsTrueScenario", _cW = "customWords", _cWIT = "cacheWriteInputTokens", _ch = "chunk", _ci = "citations", _cit = "citation", _cl = "claims", _co = "content", _con = "context", _conf = "confidence", _conv = "converse", _d = "delta", _dC = "documentChar", _dCo = "documentChunk", _dI = "documentIndex", _dP = "documentPage", _dS = "differenceScenarios", _de = "detected", _des = "description", _do = "domain", _doc = "document", _e = "error", _eT = "endTime", _en = "enabled", _end = "end", _f = "format", _fM = "failureMessage", _fS = "filterStrength", _fi = "findings", _fil = "filters", _g = "guardrail", _gA = "guardrailArn", _gC = "guardrailCoverage", _gCu = "guardrailConfig", _gCua = "guardContent", _gI = "guardrailId", _gIu = "guardrailIdentifier", _gO = "guardrailOrigin", _gOu = "guardrailOwnership", _gPL = "guardrailProcessingLatency", _gV = "guardrailVersion", _gu = "guarded", _h = "http", _hE = "httpError", _hH = "httpHeader", _hQ = "httpQuery", _i = "input", _iA = "invocationArn", _iAn = "inputAssessment", _iC = "inferenceConfig", _iM = "invocationMetrics", _iMI = "invokedModelId", _iMn = "invokeModel", _iS = "inputSchema", _iSE = "internalServerException", _iT = "inputTokens", _id = "identifier", _im = "images", _ima = "image", _imp = "impossible", _in = "invalid", _j = "json", _jS = "jsonSchema", _k = "key", _kKI = "kmsKeyId", _l = "location", _lM = "latencyMs", _lMT = "lastModifiedTime", _lW = "logicWarning", _la = "latency", _lo = "logic", _m = "message", _mA = "modelArn", _mI = "modelId", _mIo = "modelInput", _mO = "modelOutput", _mR = "maxResults", _mS = "messageStart", _mSEE = "modelStreamErrorException", _mSe = "messageStop", _mT = "maxTokens", _mTE = "modelTimeoutException", _mWL = "managedWordLists", _ma = "match", _me = "messages", _met = "metrics", _meta = "metadata", _n = "name", _nL = "naturalLanguage", _nT = "nextToken", _nTo = "noTranslations", _o = "outputs", _oA = "outputAssessments", _oC = "outputConfig", _oDC = "outputDataConfig", _oM = "originalMessage", _oS = "outputScope", _oSC = "originalStatusCode", _oT = "outputTokens", _op = "options", _ou = "output", _p = "premises", _pC = "performanceConfig", _pCL = "performanceConfigLatency", _pE = "piiEntities", _pR = "promptRouter", _pV = "promptVariables", _pVA = "policyVersionArn", _q = "qualifiers", _r = "regex", _rC = "reasoningContent", _rCe = "redactedContent", _rM = "requestMetadata", _rN = "resourceName", _rT = "reasoningText", _re = "regexes", _ro = "role", _s = "smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime", _sB = "sortBy", _sC = "sourceContent", _sE = "statusEquals", _sIP = "sensitiveInformationPolicy", _sIPFU = "sensitiveInformationPolicyFreeUnits", _sIPU = "sensitiveInformationPolicyUnits", _sL = "s3Location", _sO = "sortOrder", _sODC = "s3OutputDataConfig", _sPM = "streamProcessingMode", _sR = "stopReason", _sRI = "searchResultIndex", _sRL = "searchResultLocation", _sRe = "searchResult", _sRu = "supportingRules", _sS = "stopSequences", _sT = "submitTime", _sTA = "submitTimeAfter", _sTB = "submitTimeBefore", _sTe = "serviceTier", _sTy = "systemTool", _sU = "s3Uri", _sUE = "serviceUnavailableException", _sa = "satisfiable", _sc = "score", _sch = "schema", _se = "server", _si = "signature", _so = "source", _st = "status", _sta = "start", _stat = "statements", _str = "stream", _stre = "streaming", _stri = "strict", _stru = "structure", _sy = "system", _t = "ttl", _tA = "translationAmbiguous", _tC = "toolConfig", _tCe = "textCharacters", _tCo = "toolChoice", _tCoo = "tooComplex", _tE = "throttlingException", _tF = "textFormat", _tP = "topicPolicy", _tPU = "topicPolicyUnits", _tPo = "topP", _tR = "toolResult", _tS = "toolSpec", _tT = "totalTokens", _tU = "toolUse", _tUI = "toolUseId", _ta = "tags", _te = "text", _tem = "temperature", _th = "threshold", _ti = "title", _to = "total", _too = "tools", _tool = "tool", _top = "topics", _tr = "trace", _tra = "translation", _tran = "translations", _ty = "type", _u = "usage", _uC = "untranslatedClaims", _uP = "untranslatedPremises", _ur = "uri", _url2 = "url", _v = "value", _vE = "validationException", _va = "valid", _vi = "video", _w = "web", _wP = "wordPolicy", _wPU = "wordPolicyUnits", n0 = "com.amazonaws.bedrockruntime", _s_registry, BedrockRuntimeServiceException$, n0_registry, AccessDeniedException$, ConflictException$, InternalServerException$, ModelErrorException$, ModelNotReadyException$, ModelStreamErrorException$, ModelTimeoutException$, ResourceNotFoundException$, ServiceQuotaExceededException$, ServiceUnavailableException$, ThrottlingException$, ValidationException$, errorTypeRegistries, AsyncInvokeMessage, Body, GuardrailAutomatedReasoningStatementLogicContent, GuardrailAutomatedReasoningStatementNaturalLanguageContent, ModelInputPayload, PartBody, AnyToolChoice$, AppliedGuardrailDetails$, ApplyGuardrailRequest$, ApplyGuardrailResponse$, AsyncInvokeS3OutputDataConfig$, AsyncInvokeSummary$, AudioBlock$, AutoToolChoice$, BidirectionalInputPayloadPart$, BidirectionalOutputPayloadPart$, CacheDetail$, CachePointBlock$, Citation$, CitationsConfig$, CitationsContentBlock$, CitationsDelta$, CitationSourceContentDelta$, ContentBlockDeltaEvent$, ContentBlockStartEvent$, ContentBlockStopEvent$, ConverseMetrics$, ConverseRequest$, ConverseResponse$, ConverseStreamMetadataEvent$, ConverseStreamMetrics$, ConverseStreamRequest$, ConverseStreamResponse$, ConverseStreamTrace$, ConverseTokensRequest$, ConverseTrace$, CountTokensRequest$, CountTokensResponse$, DocumentBlock$, DocumentCharLocation$, DocumentChunkLocation$, DocumentPageLocation$, ErrorBlock$, GetAsyncInvokeRequest$, GetAsyncInvokeResponse$, GuardrailAssessment$, GuardrailAutomatedReasoningImpossibleFinding$, GuardrailAutomatedReasoningInputTextReference$, GuardrailAutomatedReasoningInvalidFinding$, GuardrailAutomatedReasoningLogicWarning$, GuardrailAutomatedReasoningNoTranslationsFinding$, GuardrailAutomatedReasoningPolicyAssessment$, GuardrailAutomatedReasoningRule$, GuardrailAutomatedReasoningSatisfiableFinding$, GuardrailAutomatedReasoningScenario$, GuardrailAutomatedReasoningStatement$, GuardrailAutomatedReasoningTooComplexFinding$, GuardrailAutomatedReasoningTranslation$, GuardrailAutomatedReasoningTranslationAmbiguousFinding$, GuardrailAutomatedReasoningTranslationOption$, GuardrailAutomatedReasoningValidFinding$, GuardrailConfiguration$, GuardrailContentFilter$, GuardrailContentPolicyAssessment$, GuardrailContextualGroundingFilter$, GuardrailContextualGroundingPolicyAssessment$, GuardrailConverseImageBlock$, GuardrailConverseTextBlock$, GuardrailCoverage$, GuardrailCustomWord$, GuardrailImageBlock$, GuardrailImageCoverage$, GuardrailInvocationMetrics$, GuardrailManagedWord$, GuardrailOutputContent$, GuardrailPiiEntityFilter$, GuardrailRegexFilter$, GuardrailSensitiveInformationPolicyAssessment$, GuardrailStreamConfiguration$, GuardrailTextBlock$, GuardrailTextCharactersCoverage$, GuardrailTopic$, GuardrailTopicPolicyAssessment$, GuardrailTraceAssessment$, GuardrailUsage$, GuardrailWordPolicyAssessment$, ImageBlock$, ImageBlockDelta$, ImageBlockStart$, InferenceConfiguration$, InvokeModelRequest$, InvokeModelResponse$, InvokeModelTokensRequest$, InvokeModelWithBidirectionalStreamRequest$, InvokeModelWithBidirectionalStreamResponse$, InvokeModelWithResponseStreamRequest$, InvokeModelWithResponseStreamResponse$, JsonSchemaDefinition$, ListAsyncInvokesRequest$, ListAsyncInvokesResponse$, Message$, MessageStartEvent$, MessageStopEvent$, OutputConfig$, OutputFormat$, PayloadPart$, PerformanceConfiguration$, PromptRouterTrace$, ReasoningTextBlock$, S3Location$, SearchResultBlock$, SearchResultContentBlock$, SearchResultLocation$, ServiceTier$, SpecificToolChoice$, StartAsyncInvokeRequest$, StartAsyncInvokeResponse$, SystemTool$, Tag$, TokenUsage$, ToolConfiguration$, ToolResultBlock$, ToolResultBlockStart$, ToolSpecification$, ToolUseBlock$, ToolUseBlockDelta$, ToolUseBlockStart$, VideoBlock$, WebLocation$, AdditionalModelResponseFieldPaths, AsyncInvokeSummaries, CacheDetailsList, CitationGeneratedContentList, Citations, CitationSourceContentList, CitationSourceContentListDelta, ContentBlocks, DocumentContentBlocks, GuardrailAssessmentList, GuardrailAutomatedReasoningDifferenceScenarioList, GuardrailAutomatedReasoningFindingList, GuardrailAutomatedReasoningInputTextReferenceList, GuardrailAutomatedReasoningRuleList, GuardrailAutomatedReasoningStatementList, GuardrailAutomatedReasoningTranslationList, GuardrailAutomatedReasoningTranslationOptionList, GuardrailContentBlockList, GuardrailContentFilterList, GuardrailContentQualifierList, GuardrailContextualGroundingFilters, GuardrailConverseContentQualifierList, GuardrailCustomWordList, GuardrailManagedWordList, GuardrailOriginList, GuardrailOutputContentList, GuardrailPiiEntityFilterList, GuardrailRegexFilterList, GuardrailTopicList, Messages6, ModelOutputs, NonEmptyStringList, SearchResultContentBlocks, SystemContentBlocks, TagList2, ToolResultBlocksDelta, ToolResultContentBlocks, Tools, GuardrailAssessmentListMap, GuardrailAssessmentMap, PromptVariableMap, RequestMetadata, AsyncInvokeOutputDataConfig$, AudioSource$, CitationGeneratedContent$, CitationLocation$, CitationSourceContent$, ContentBlock$, ContentBlockDelta$, ContentBlockStart$, ConverseOutput$, ConverseStreamOutput$, CountTokensInput$, DocumentContentBlock$, DocumentSource$, GuardrailAutomatedReasoningFinding$, GuardrailContentBlock$, GuardrailConverseContentBlock$, GuardrailConverseImageSource$, GuardrailImageSource$, ImageSource$, InvokeModelWithBidirectionalStreamInput$, InvokeModelWithBidirectionalStreamOutput$, OutputFormatStructure$, PromptVariableValues$, ReasoningContentBlock$, ReasoningContentBlockDelta$, ResponseStream$, SystemContentBlock$, Tool$, ToolChoice$, ToolInputSchema$, ToolResultBlockDelta$, ToolResultContentBlock$, VideoSource$, ApplyGuardrail$, Converse$, ConverseStream$, CountTokens$, GetAsyncInvoke$, InvokeModel$, InvokeModelWithBidirectionalStream$, InvokeModelWithResponseStream$, ListAsyncInvokes$, StartAsyncInvoke$;
|
|
784392
784277
|
var init_schemas_0 = __esm(() => {
|
|
784393
784278
|
init_BedrockRuntimeServiceException();
|
|
784394
784279
|
init_errors5();
|
|
784395
|
-
|
|
784396
|
-
_s_registry =
|
|
784280
|
+
import_schema32 = __toESM(require_schema(), 1);
|
|
784281
|
+
_s_registry = import_schema32.TypeRegistry.for(_s);
|
|
784397
784282
|
BedrockRuntimeServiceException$ = [-3, _s, "BedrockRuntimeServiceException", 0, [], []];
|
|
784398
784283
|
_s_registry.registerError(BedrockRuntimeServiceException$, BedrockRuntimeServiceException);
|
|
784399
|
-
n0_registry =
|
|
784284
|
+
n0_registry = import_schema32.TypeRegistry.for(n0);
|
|
784400
784285
|
AccessDeniedException$ = [
|
|
784401
784286
|
-3,
|
|
784402
784287
|
n0,
|
|
@@ -786279,12 +786164,12 @@ var init_runtimeConfig_shared = __esm(() => {
|
|
|
786279
786164
|
});
|
|
786280
786165
|
|
|
786281
786166
|
// node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.js
|
|
786282
|
-
var
|
|
786167
|
+
var import_client23, import_httpAuthSchemes4, import_util_user_agent_node, import_config_resolver2, import_core144, import_hash_node, import_middleware_retry, import_node_config_provider4, import_node_http_handler3, import_util_body_length_node, import_util_defaults_mode_node, import_util_retry, getRuntimeConfig2 = (config6) => {
|
|
786283
786168
|
emitWarningIfUnsupportedVersion4(process.version);
|
|
786284
786169
|
const defaultsMode = import_util_defaults_mode_node.resolveDefaultsModeConfig(config6);
|
|
786285
786170
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode2);
|
|
786286
786171
|
const clientSharedValues = getRuntimeConfig(config6);
|
|
786287
|
-
|
|
786172
|
+
import_client23.emitWarningIfUnsupportedVersion(process.version);
|
|
786288
786173
|
const loaderConfig = {
|
|
786289
786174
|
profile: config6?.profile,
|
|
786290
786175
|
logger: clientSharedValues.logger,
|
|
@@ -786344,7 +786229,7 @@ var init_runtimeConfig = __esm(() => {
|
|
|
786344
786229
|
init_dist_es53();
|
|
786345
786230
|
init_dist_es49();
|
|
786346
786231
|
init_runtimeConfig_shared();
|
|
786347
|
-
|
|
786232
|
+
import_client23 = __toESM(require_client(), 1);
|
|
786348
786233
|
import_httpAuthSchemes4 = __toESM(require_httpAuthSchemes(), 1);
|
|
786349
786234
|
import_util_user_agent_node = __toESM(require_dist_cjs73(), 1);
|
|
786350
786235
|
import_config_resolver2 = __toESM(require_dist_cjs49(), 1);
|
|
@@ -786459,7 +786344,7 @@ var init_runtimeExtensions = __esm(() => {
|
|
|
786459
786344
|
});
|
|
786460
786345
|
|
|
786461
786346
|
// node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntimeClient.js
|
|
786462
|
-
var import_middleware_host_header, import_middleware_logger, import_middleware_recursion_detection, import_middleware_user_agent, import_config_resolver3, import_core145,
|
|
786347
|
+
var import_middleware_host_header, import_middleware_logger, import_middleware_recursion_detection, import_middleware_user_agent, import_config_resolver3, import_core145, import_schema33, import_middleware_content_length, import_middleware_endpoint, import_middleware_retry2, BedrockRuntimeClient;
|
|
786463
786348
|
var init_BedrockRuntimeClient = __esm(() => {
|
|
786464
786349
|
init_dist_es41();
|
|
786465
786350
|
init_dist_es46();
|
|
@@ -786475,7 +786360,7 @@ var init_BedrockRuntimeClient = __esm(() => {
|
|
|
786475
786360
|
import_middleware_user_agent = __toESM(require_dist_cjs47(), 1);
|
|
786476
786361
|
import_config_resolver3 = __toESM(require_dist_cjs49(), 1);
|
|
786477
786362
|
import_core145 = __toESM(require_dist_cjs39(), 1);
|
|
786478
|
-
|
|
786363
|
+
import_schema33 = __toESM(require_schema(), 1);
|
|
786479
786364
|
import_middleware_content_length = __toESM(require_dist_cjs52(), 1);
|
|
786480
786365
|
import_middleware_endpoint = __toESM(require_dist_cjs59(), 1);
|
|
786481
786366
|
import_middleware_retry2 = __toESM(require_dist_cjs64(), 1);
|
|
@@ -786497,7 +786382,7 @@ var init_BedrockRuntimeClient = __esm(() => {
|
|
|
786497
786382
|
const _config_10 = resolveWebSocketConfig(_config_9);
|
|
786498
786383
|
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
|
|
786499
786384
|
this.config = _config_11;
|
|
786500
|
-
this.middlewareStack.use(
|
|
786385
|
+
this.middlewareStack.use(import_schema33.getSchemaSerdePlugin(this.config));
|
|
786501
786386
|
this.middlewareStack.use(import_middleware_user_agent.getUserAgentPlugin(this.config));
|
|
786502
786387
|
this.middlewareStack.use(import_middleware_retry2.getRetryPlugin(this.config));
|
|
786503
786388
|
this.middlewareStack.use(import_middleware_content_length.getContentLengthPlugin(this.config));
|
|
@@ -816623,7 +816508,7 @@ var createStyledCell = (char, overrides = {}) => ({
|
|
|
816623
816508
|
// src/version.ts
|
|
816624
816509
|
import { readFileSync } from "fs";
|
|
816625
816510
|
import { join } from "path";
|
|
816626
|
-
var _version = "1.0.
|
|
816511
|
+
var _version = "1.0.1";
|
|
816627
816512
|
var _sdkVersion = "0.33.35";
|
|
816628
816513
|
try {
|
|
816629
816514
|
const pkg = JSON.parse(readFileSync(join(import.meta.dir, "..", "package.json"), "utf-8"));
|
|
@@ -836046,7 +835931,7 @@ var BASH_KEYWORDS = new Set([
|
|
|
836046
835931
|
"eval",
|
|
836047
835932
|
"read"
|
|
836048
835933
|
]);
|
|
836049
|
-
function
|
|
835934
|
+
function detectLanguage3(lang) {
|
|
836050
835935
|
const l3 = lang.toLowerCase();
|
|
836051
835936
|
if (l3 === "ts" || l3 === "tsx" || l3 === "js" || l3 === "jsx" || l3 === "typescript" || l3 === "javascript")
|
|
836052
835937
|
return "ts";
|
|
@@ -836281,7 +836166,7 @@ function tokenizePlain(line) {
|
|
|
836281
836166
|
}
|
|
836282
836167
|
function renderCodeBlock(codeLines, lang, width, opts = {}) {
|
|
836283
836168
|
const lines = [];
|
|
836284
|
-
const language =
|
|
836169
|
+
const language = detectLanguage3(lang);
|
|
836285
836170
|
const leftMargin = LAYOUT.LEFT_MARGIN;
|
|
836286
836171
|
const showLineNumbers = opts.showLineNumbers ?? true;
|
|
836287
836172
|
const lineNumW = showLineNumbers ? String(codeLines.length).length + 1 : 0;
|
|
@@ -847736,13 +847621,13 @@ init_state3();
|
|
|
847736
847621
|
|
|
847737
847622
|
// src/input/commands/recall-shared.ts
|
|
847738
847623
|
var VALID_CLASSES = ["decision", "constraint", "incident", "pattern", "fact", "risk", "runbook", "architecture", "ownership"];
|
|
847739
|
-
var
|
|
847624
|
+
var VALID_SCOPES2 = ["session", "project", "team"];
|
|
847740
847625
|
var VALID_REVIEW_STATES = ["fresh", "reviewed", "stale", "contradicted"];
|
|
847741
847626
|
function isValidClass(s4) {
|
|
847742
847627
|
return VALID_CLASSES.includes(s4);
|
|
847743
847628
|
}
|
|
847744
847629
|
function isValidScope(s4) {
|
|
847745
|
-
return
|
|
847630
|
+
return VALID_SCOPES2.includes(s4);
|
|
847746
847631
|
}
|
|
847747
847632
|
function isValidReviewState(s4) {
|
|
847748
847633
|
return VALID_REVIEW_STATES.includes(s4);
|
|
@@ -847785,7 +847670,7 @@ function handleRecallSearch(args2, context) {
|
|
|
847785
847670
|
if (isValidScope(scope))
|
|
847786
847671
|
filter.scope = scope;
|
|
847787
847672
|
else {
|
|
847788
|
-
context.print(`[memory] Unknown scope "${scope}". Valid values ${
|
|
847673
|
+
context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
|
|
847789
847674
|
return;
|
|
847790
847675
|
}
|
|
847791
847676
|
}
|
|
@@ -847960,7 +847845,7 @@ function handleRecallList(args2, context) {
|
|
|
847960
847845
|
if (scopeIdx !== -1 && args2[scopeIdx + 1]) {
|
|
847961
847846
|
const scope = args2[scopeIdx + 1];
|
|
847962
847847
|
if (!isValidScope(scope)) {
|
|
847963
|
-
context.print(`[memory] Unknown scope "${scope}". Valid values ${
|
|
847848
|
+
context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
|
|
847964
847849
|
return;
|
|
847965
847850
|
}
|
|
847966
847851
|
filter.scope = scope;
|
|
@@ -848010,7 +847895,7 @@ async function handleRecallAdd(args2, context) {
|
|
|
848010
847895
|
const tags = tagsRaw ? tagsRaw.split(",").map((token) => token.trim()).filter(Boolean) : [];
|
|
848011
847896
|
const scope = scopeRaw && isValidScope(scopeRaw) ? scopeRaw : "project";
|
|
848012
847897
|
if (scopeRaw && !isValidScope(scopeRaw)) {
|
|
848013
|
-
context.print(`[memory] Invalid scope "${scopeRaw}". Valid values ${
|
|
847898
|
+
context.print(`[memory] Invalid scope "${scopeRaw}". Valid values ${VALID_SCOPES2.join(", ")}.`);
|
|
848014
847899
|
return;
|
|
848015
847900
|
}
|
|
848016
847901
|
const provenance = [];
|
|
@@ -848144,7 +848029,7 @@ function handleRecallExport(args2, context) {
|
|
|
848144
848029
|
if (scopeIdx !== -1 && commandArgs[scopeIdx + 1]) {
|
|
848145
848030
|
const scope = commandArgs[scopeIdx + 1];
|
|
848146
848031
|
if (!isValidScope(scope)) {
|
|
848147
|
-
context.print(`[memory] Unknown scope "${scope}". Valid values ${
|
|
848032
|
+
context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
|
|
848148
848033
|
return;
|
|
848149
848034
|
}
|
|
848150
848035
|
filter.scope = scope;
|
|
@@ -848223,7 +848108,7 @@ function handleRecallHandoffExport(args2, context) {
|
|
|
848223
848108
|
const scopeIdx = commandArgs.indexOf("--scope");
|
|
848224
848109
|
const scopeRaw = scopeIdx !== -1 ? commandArgs[scopeIdx + 1] : "team";
|
|
848225
848110
|
if (!scopeRaw || !isValidScope(scopeRaw)) {
|
|
848226
|
-
context.print(`[memory] Unknown scope "${scopeRaw ?? ""}". Valid values ${
|
|
848111
|
+
context.print(`[memory] Unknown scope "${scopeRaw ?? ""}". Valid values ${VALID_SCOPES2.join(", ")}.`);
|
|
848227
848112
|
return;
|
|
848228
848113
|
}
|
|
848229
848114
|
const bundle = memory.exportBundle({ scope: scopeRaw });
|
|
@@ -848339,7 +848224,7 @@ function handleRecallPromote(args2, context) {
|
|
|
848339
848224
|
const id = parsed.rest[0];
|
|
848340
848225
|
const scope = parsed.rest[1];
|
|
848341
848226
|
if (!id || !scope || !isValidScope(scope)) {
|
|
848342
|
-
context.print(`[memory] Usage: /memory promote <id> <${
|
|
848227
|
+
context.print(`[memory] Usage: /memory promote <id> <${VALID_SCOPES2.join("|")}> --yes`);
|
|
848343
848228
|
return;
|
|
848344
848229
|
}
|
|
848345
848230
|
if (!parsed.yes) {
|
|
@@ -851780,18 +851665,103 @@ function registerSecurityRuntimeCommands(registry5) {
|
|
|
851780
851665
|
});
|
|
851781
851666
|
}
|
|
851782
851667
|
|
|
851668
|
+
// src/input/slash-command-parser.ts
|
|
851669
|
+
function parseSlashCommand(command8) {
|
|
851670
|
+
const tokens = tokenizeSlashCommand(command8.trim().replace(/^\//, ""));
|
|
851671
|
+
return {
|
|
851672
|
+
name: tokens[0] ?? "",
|
|
851673
|
+
args: tokens.slice(1)
|
|
851674
|
+
};
|
|
851675
|
+
}
|
|
851676
|
+
function tokenizeSlashCommand(command8) {
|
|
851677
|
+
const tokens = [];
|
|
851678
|
+
let current = "";
|
|
851679
|
+
let quote2 = null;
|
|
851680
|
+
let escaping = false;
|
|
851681
|
+
for (const char of command8) {
|
|
851682
|
+
if (escaping) {
|
|
851683
|
+
current += char;
|
|
851684
|
+
escaping = false;
|
|
851685
|
+
continue;
|
|
851686
|
+
}
|
|
851687
|
+
if (char === "\\") {
|
|
851688
|
+
escaping = true;
|
|
851689
|
+
continue;
|
|
851690
|
+
}
|
|
851691
|
+
if (quote2) {
|
|
851692
|
+
if (char === quote2) {
|
|
851693
|
+
quote2 = null;
|
|
851694
|
+
continue;
|
|
851695
|
+
}
|
|
851696
|
+
current += char;
|
|
851697
|
+
continue;
|
|
851698
|
+
}
|
|
851699
|
+
if (char === '"' || char === "'") {
|
|
851700
|
+
quote2 = char;
|
|
851701
|
+
continue;
|
|
851702
|
+
}
|
|
851703
|
+
if (/\s/.test(char)) {
|
|
851704
|
+
if (current.length > 0) {
|
|
851705
|
+
tokens.push(current);
|
|
851706
|
+
current = "";
|
|
851707
|
+
}
|
|
851708
|
+
continue;
|
|
851709
|
+
}
|
|
851710
|
+
current += char;
|
|
851711
|
+
}
|
|
851712
|
+
if (escaping)
|
|
851713
|
+
current += "\\";
|
|
851714
|
+
if (current.length > 0)
|
|
851715
|
+
tokens.push(current);
|
|
851716
|
+
return tokens;
|
|
851717
|
+
}
|
|
851718
|
+
function quoteSlashCommandArg(value) {
|
|
851719
|
+
if (/^[A-Za-z0-9._/:=@,+-]+$/.test(value))
|
|
851720
|
+
return value;
|
|
851721
|
+
return `"${value.replace(/\\/g, "\\\\").replace(/"/g, "\\\"")}"`;
|
|
851722
|
+
}
|
|
851723
|
+
|
|
851783
851724
|
// src/input/commands/mcp-runtime.ts
|
|
851784
851725
|
var MCP_ROLES = ["general", "docs", "filesystem", "git", "database", "browser", "automation", "ops", "remote"];
|
|
851785
851726
|
var MCP_TRUST_MODES = ["constrained", "ask-on-risk", "allow-all", "blocked"];
|
|
851727
|
+
var MCP_COMMAND_TRUST_MODES = ["constrained", "ask-on-risk", "blocked"];
|
|
851728
|
+
var MCP_ADD_COMMAND_USAGE = "/mcp add <name> <command> ... --yes; options: --scope project|global, --role <role>, --trust constrained|ask-on-risk|blocked, --env KEY=VALUE, --path <path>, --host <host>";
|
|
851729
|
+
var MCP_TRUST_COMMAND_USAGE = "/mcp trust <server> <constrained|ask-on-risk|blocked> --yes";
|
|
851730
|
+
var MCP_ROLE_COMMAND_USAGE = "/mcp role <server> <general|docs|filesystem|git|database|browser|automation|ops|remote> --yes";
|
|
851786
851731
|
function isMcpRole(value) {
|
|
851787
851732
|
return MCP_ROLES.includes(value);
|
|
851788
851733
|
}
|
|
851789
851734
|
function isMcpTrustMode(value) {
|
|
851790
851735
|
return MCP_TRUST_MODES.includes(value);
|
|
851791
851736
|
}
|
|
851737
|
+
function isMcpCommandTrustMode(value) {
|
|
851738
|
+
return MCP_COMMAND_TRUST_MODES.includes(value);
|
|
851739
|
+
}
|
|
851792
851740
|
function isMcpScope(value) {
|
|
851793
851741
|
return value === "project" || value === "global";
|
|
851794
851742
|
}
|
|
851743
|
+
function stripMcpAddYesFlag(args2) {
|
|
851744
|
+
const rest = [];
|
|
851745
|
+
let yes = false;
|
|
851746
|
+
let passthrough = false;
|
|
851747
|
+
for (const token of args2) {
|
|
851748
|
+
if (passthrough) {
|
|
851749
|
+
rest.push(token);
|
|
851750
|
+
continue;
|
|
851751
|
+
}
|
|
851752
|
+
if (token === "--") {
|
|
851753
|
+
passthrough = true;
|
|
851754
|
+
rest.push(token);
|
|
851755
|
+
continue;
|
|
851756
|
+
}
|
|
851757
|
+
if (token === "--yes") {
|
|
851758
|
+
yes = true;
|
|
851759
|
+
continue;
|
|
851760
|
+
}
|
|
851761
|
+
rest.push(token);
|
|
851762
|
+
}
|
|
851763
|
+
return { rest, yes };
|
|
851764
|
+
}
|
|
851795
851765
|
function formatMcpTrustMode(mode) {
|
|
851796
851766
|
if (mode === "ask-on-risk")
|
|
851797
851767
|
return "ask on risky actions";
|
|
@@ -851826,7 +851796,7 @@ function parseAddServerArgs(args2) {
|
|
|
851826
851796
|
const name51 = args2[1]?.trim();
|
|
851827
851797
|
const command8 = args2[2]?.trim();
|
|
851828
851798
|
if (!name51 || !command8) {
|
|
851829
|
-
throw new Error(
|
|
851799
|
+
throw new Error(`Usage: ${MCP_ADD_COMMAND_USAGE}`);
|
|
851830
851800
|
}
|
|
851831
851801
|
const nameError = validateServerName(name51);
|
|
851832
851802
|
if (nameError)
|
|
@@ -851870,6 +851840,10 @@ function parseAddServerArgs(args2) {
|
|
|
851870
851840
|
const value = readFlagValue(tokens, index, token);
|
|
851871
851841
|
if (!isMcpTrustMode(value))
|
|
851872
851842
|
throw new Error(`Invalid MCP trust mode "${value}". Expected one of ${MCP_TRUST_MODES.join(", ")}.`);
|
|
851843
|
+
if (!isMcpCommandTrustMode(value)) {
|
|
851844
|
+
throw new Error(`Use /settings -> MCP to explicitly enable allow-all.
|
|
851845
|
+
Usage: ${MCP_ADD_COMMAND_USAGE}`);
|
|
851846
|
+
}
|
|
851873
851847
|
trustMode = value;
|
|
851874
851848
|
index += 1;
|
|
851875
851849
|
continue;
|
|
@@ -851924,7 +851898,7 @@ function registerMcpRuntimeCommands(registry5) {
|
|
|
851924
851898
|
async handler(args2, ctx) {
|
|
851925
851899
|
const mcpApi = requireMcpApi(ctx);
|
|
851926
851900
|
const listServerSecurity = () => mcpApi.listServerSecurity();
|
|
851927
|
-
const confirmation = stripYesFlag(args2);
|
|
851901
|
+
const confirmation = args2[0] === "add" ? stripMcpAddYesFlag(args2) : stripYesFlag(args2);
|
|
851928
851902
|
const commandArgs = [...confirmation.rest];
|
|
851929
851903
|
const subcommand = commandArgs[0];
|
|
851930
851904
|
if (!subcommand && ctx.openMcpWorkspace) {
|
|
@@ -852015,7 +851989,7 @@ Open /mcp and choose Add or update server, or use Agent Workspace -> Tools & MCP
|
|
|
852015
851989
|
return;
|
|
852016
851990
|
}
|
|
852017
851991
|
const nextSteps = [
|
|
852018
|
-
selected.schemaFreshness === "quarantined" ? `/mcp quarantine ${selected.name} approve operator --yes` : null,
|
|
851992
|
+
selected.schemaFreshness === "quarantined" ? `/mcp quarantine ${quoteSlashCommandArg(selected.name)} approve operator --yes` : null,
|
|
852019
851993
|
!selected.connected ? "/auth review" : null,
|
|
852020
851994
|
"/mcp review",
|
|
852021
851995
|
"/health review"
|
|
@@ -852036,47 +852010,60 @@ Open /mcp and choose Add or update server, or use Agent Workspace -> Tools & MCP
|
|
|
852036
852010
|
}
|
|
852037
852011
|
if (subcommand === "trust") {
|
|
852038
852012
|
const serverName = commandArgs[1];
|
|
852039
|
-
const
|
|
852040
|
-
if (serverName &&
|
|
852013
|
+
const requestedMode = commandArgs[2];
|
|
852014
|
+
if (serverName && requestedMode) {
|
|
852015
|
+
if (!isMcpTrustMode(requestedMode)) {
|
|
852016
|
+
ctx.print(`Invalid MCP trust mode "${requestedMode}". Expected constrained, ask-on-risk, blocked, or allow-all.
|
|
852017
|
+
Usage: ${MCP_TRUST_COMMAND_USAGE}
|
|
852018
|
+
Use /settings -> MCP to explicitly enable allow-all.`);
|
|
852019
|
+
return;
|
|
852020
|
+
}
|
|
852021
|
+
const mode = requestedMode;
|
|
852041
852022
|
if (mode === "allow-all") {
|
|
852042
852023
|
ctx.print(`Use /settings \u2192 MCP to explicitly enable allow-all for ${serverName}. Direct command escalation is blocked.`);
|
|
852043
852024
|
ctx.openSettingsModal?.();
|
|
852044
852025
|
return;
|
|
852045
852026
|
}
|
|
852046
852027
|
if (!confirmation.yes) {
|
|
852047
|
-
requireYesFlag(ctx, `change MCP trust mode for ${serverName}`,
|
|
852028
|
+
requireYesFlag(ctx, `change MCP trust mode for ${serverName}`, MCP_TRUST_COMMAND_USAGE);
|
|
852048
852029
|
return;
|
|
852049
852030
|
}
|
|
852050
852031
|
mcpApi.setServerTrustMode(serverName, mode);
|
|
852051
852032
|
ctx.print(`Updated MCP trust mode for ${serverName} to ${formatMcpTrustMode(mode)}.`);
|
|
852052
852033
|
return;
|
|
852053
852034
|
}
|
|
852054
|
-
if (serverName ||
|
|
852055
|
-
ctx.print(`Usage:
|
|
852056
|
-
Use /settings
|
|
852035
|
+
if (serverName || requestedMode) {
|
|
852036
|
+
ctx.print(`Usage: ${MCP_TRUST_COMMAND_USAGE}
|
|
852037
|
+
Use /settings -> MCP to explicitly enable allow-all.`);
|
|
852057
852038
|
return;
|
|
852058
852039
|
}
|
|
852059
852040
|
}
|
|
852060
852041
|
if (subcommand === "role") {
|
|
852061
852042
|
const serverName = commandArgs[1];
|
|
852062
|
-
const
|
|
852063
|
-
if (serverName &&
|
|
852043
|
+
const requestedRole = commandArgs[2];
|
|
852044
|
+
if (serverName && requestedRole) {
|
|
852045
|
+
if (!isMcpRole(requestedRole)) {
|
|
852046
|
+
ctx.print(`Invalid MCP role "${requestedRole}". Expected one of ${MCP_ROLES.join(", ")}.
|
|
852047
|
+
Usage: ${MCP_ROLE_COMMAND_USAGE}`);
|
|
852048
|
+
return;
|
|
852049
|
+
}
|
|
852050
|
+
const role = requestedRole;
|
|
852064
852051
|
if (!confirmation.yes) {
|
|
852065
|
-
requireYesFlag(ctx, `change MCP role for ${serverName}`,
|
|
852052
|
+
requireYesFlag(ctx, `change MCP role for ${serverName}`, MCP_ROLE_COMMAND_USAGE);
|
|
852066
852053
|
return;
|
|
852067
852054
|
}
|
|
852068
852055
|
mcpApi.setServerRole(serverName, role);
|
|
852069
852056
|
ctx.print(`Updated MCP role for ${serverName} to ${formatMcpRole(role)}.`);
|
|
852070
852057
|
return;
|
|
852071
852058
|
}
|
|
852072
|
-
if (serverName ||
|
|
852073
|
-
ctx.print(
|
|
852059
|
+
if (serverName || requestedRole) {
|
|
852060
|
+
ctx.print(`Usage: ${MCP_ROLE_COMMAND_USAGE}`);
|
|
852074
852061
|
return;
|
|
852075
852062
|
}
|
|
852076
852063
|
}
|
|
852077
852064
|
if (subcommand === "add") {
|
|
852078
852065
|
if (!confirmation.yes) {
|
|
852079
|
-
requireYesFlag(ctx, "add or update an MCP server config",
|
|
852066
|
+
requireYesFlag(ctx, "add or update an MCP server config", MCP_ADD_COMMAND_USAGE);
|
|
852080
852067
|
return;
|
|
852081
852068
|
}
|
|
852082
852069
|
let parsedAdd;
|
|
@@ -852173,8 +852160,10 @@ If it still appears, it is coming from another config scope or external MCP conf
|
|
|
852173
852160
|
"",
|
|
852174
852161
|
"Add or update from inside Agent with explicit confirmation",
|
|
852175
852162
|
" Open /mcp and choose Add or update server, or use Agent Workspace -> Tools & MCP -> Add MCP server.",
|
|
852163
|
+
" Use Settings -> MCP for allow-all decisions.",
|
|
852164
|
+
" Use -- before server args that look like Agent flags.",
|
|
852176
852165
|
"Automation equivalent",
|
|
852177
|
-
|
|
852166
|
+
` ${MCP_ADD_COMMAND_USAGE}`
|
|
852178
852167
|
].join(`
|
|
852179
852168
|
`));
|
|
852180
852169
|
} catch (error51) {
|
|
@@ -856031,32 +856020,52 @@ function registerDelegationRuntimeCommands(registry5) {
|
|
|
856031
856020
|
});
|
|
856032
856021
|
}
|
|
856033
856022
|
|
|
856034
|
-
// src/input/commands/
|
|
856035
|
-
function
|
|
856023
|
+
// src/input/commands/agent-local-library-args.ts
|
|
856024
|
+
function parseAgentLocalLibraryArgs(args2, options) {
|
|
856025
|
+
const valueFlags = new Set(options.valueFlags);
|
|
856036
856026
|
const flags2 = new Map;
|
|
856037
856027
|
const rest = [];
|
|
856038
856028
|
let yes = false;
|
|
856039
856029
|
for (let index = 0;index < args2.length; index += 1) {
|
|
856040
856030
|
const token = args2[index] ?? "";
|
|
856031
|
+
if (token === "--") {
|
|
856032
|
+
rest.push(...args2.slice(index + 1));
|
|
856033
|
+
break;
|
|
856034
|
+
}
|
|
856041
856035
|
if (token === "--yes") {
|
|
856042
856036
|
yes = true;
|
|
856043
856037
|
continue;
|
|
856044
856038
|
}
|
|
856045
|
-
if (token.startsWith("--")) {
|
|
856046
|
-
const
|
|
856047
|
-
const
|
|
856048
|
-
if (
|
|
856049
|
-
flags2.set(
|
|
856050
|
-
|
|
856051
|
-
} else {
|
|
856052
|
-
flags2.set(key, "true");
|
|
856039
|
+
if (token.startsWith("--") && token.length > 2) {
|
|
856040
|
+
const raw = token.slice(2);
|
|
856041
|
+
const equalIndex = raw.indexOf("=");
|
|
856042
|
+
if (equalIndex >= 0) {
|
|
856043
|
+
flags2.set(raw.slice(0, equalIndex), raw.slice(equalIndex + 1));
|
|
856044
|
+
continue;
|
|
856053
856045
|
}
|
|
856046
|
+
if (valueFlags.has(raw)) {
|
|
856047
|
+
const next = args2[index + 1];
|
|
856048
|
+
if (next !== undefined) {
|
|
856049
|
+
flags2.set(raw, next);
|
|
856050
|
+
index += 1;
|
|
856051
|
+
} else {
|
|
856052
|
+
flags2.set(raw, "");
|
|
856053
|
+
}
|
|
856054
|
+
continue;
|
|
856055
|
+
}
|
|
856056
|
+
flags2.set(raw, "true");
|
|
856054
856057
|
continue;
|
|
856055
856058
|
}
|
|
856056
856059
|
rest.push(token);
|
|
856057
856060
|
}
|
|
856058
856061
|
return { rest, flags: flags2, yes };
|
|
856059
856062
|
}
|
|
856063
|
+
|
|
856064
|
+
// src/input/commands/personas-runtime.ts
|
|
856065
|
+
var PERSONA_VALUE_FLAGS = ["name", "description", "body", "tags", "triggers"];
|
|
856066
|
+
function parsePersonaArgs(args2) {
|
|
856067
|
+
return parseAgentLocalLibraryArgs(args2, { valueFlags: PERSONA_VALUE_FLAGS });
|
|
856068
|
+
}
|
|
856060
856069
|
function splitList(value) {
|
|
856061
856070
|
if (!value)
|
|
856062
856071
|
return [];
|
|
@@ -856343,30 +856352,9 @@ ${formatPersonaReceipt("Active Agent persona", persona)}`);
|
|
|
856343
856352
|
}
|
|
856344
856353
|
|
|
856345
856354
|
// src/input/commands/agent-skills-runtime.ts
|
|
856355
|
+
var SKILL_VALUE_FLAGS = ["name", "description", "procedure", "tags", "triggers", "requires-env", "requires-command", "requires-commands", "skills"];
|
|
856346
856356
|
function parseSkillArgs(args2) {
|
|
856347
|
-
|
|
856348
|
-
const rest = [];
|
|
856349
|
-
let yes = false;
|
|
856350
|
-
for (let index = 0;index < args2.length; index += 1) {
|
|
856351
|
-
const token = args2[index] ?? "";
|
|
856352
|
-
if (token === "--yes") {
|
|
856353
|
-
yes = true;
|
|
856354
|
-
continue;
|
|
856355
|
-
}
|
|
856356
|
-
if (token.startsWith("--")) {
|
|
856357
|
-
const key = token.slice(2);
|
|
856358
|
-
const next = args2[index + 1];
|
|
856359
|
-
if (next !== undefined && !next.startsWith("--")) {
|
|
856360
|
-
flags2.set(key, next);
|
|
856361
|
-
index += 1;
|
|
856362
|
-
} else {
|
|
856363
|
-
flags2.set(key, "true");
|
|
856364
|
-
}
|
|
856365
|
-
continue;
|
|
856366
|
-
}
|
|
856367
|
-
rest.push(token);
|
|
856368
|
-
}
|
|
856369
|
-
return { rest, flags: flags2, yes };
|
|
856357
|
+
return parseAgentLocalLibraryArgs(args2, { valueFlags: SKILL_VALUE_FLAGS });
|
|
856370
856358
|
}
|
|
856371
856359
|
function splitList2(value) {
|
|
856372
856360
|
if (!value)
|
|
@@ -856853,30 +856841,9 @@ function registerAgentSkillsRuntimeCommands(registry5) {
|
|
|
856853
856841
|
}
|
|
856854
856842
|
|
|
856855
856843
|
// src/input/commands/routines-runtime.ts
|
|
856844
|
+
var ROUTINE_VALUE_FLAGS = ["name", "description", "steps", "tags", "triggers", "requires-env", "requires-command", "requires-commands"];
|
|
856856
856845
|
function parseRoutineArgs(args2) {
|
|
856857
|
-
|
|
856858
|
-
const rest = [];
|
|
856859
|
-
let yes = false;
|
|
856860
|
-
for (let index = 0;index < args2.length; index += 1) {
|
|
856861
|
-
const token = args2[index] ?? "";
|
|
856862
|
-
if (token === "--yes") {
|
|
856863
|
-
yes = true;
|
|
856864
|
-
continue;
|
|
856865
|
-
}
|
|
856866
|
-
if (token.startsWith("--")) {
|
|
856867
|
-
const key = token.slice(2);
|
|
856868
|
-
const next = args2[index + 1];
|
|
856869
|
-
if (next !== undefined && !next.startsWith("--")) {
|
|
856870
|
-
flags2.set(key, next);
|
|
856871
|
-
index += 1;
|
|
856872
|
-
} else {
|
|
856873
|
-
flags2.set(key, "true");
|
|
856874
|
-
}
|
|
856875
|
-
continue;
|
|
856876
|
-
}
|
|
856877
|
-
rest.push(token);
|
|
856878
|
-
}
|
|
856879
|
-
return { rest, flags: flags2, yes };
|
|
856846
|
+
return parseAgentLocalLibraryArgs(args2, { valueFlags: ROUTINE_VALUE_FLAGS });
|
|
856880
856847
|
}
|
|
856881
856848
|
function splitList3(value) {
|
|
856882
856849
|
if (!value)
|
|
@@ -860749,6 +860716,19 @@ async function renderPairing(runtime2) {
|
|
|
860749
860716
|
}
|
|
860750
860717
|
|
|
860751
860718
|
// src/cli/local-library-command.ts
|
|
860719
|
+
var LOCAL_LIBRARY_VALUE_OPTIONS = [
|
|
860720
|
+
"name",
|
|
860721
|
+
"description",
|
|
860722
|
+
"body",
|
|
860723
|
+
"procedure",
|
|
860724
|
+
"tags",
|
|
860725
|
+
"triggers",
|
|
860726
|
+
"requires-env",
|
|
860727
|
+
"requires-command",
|
|
860728
|
+
"requires-commands",
|
|
860729
|
+
"skills",
|
|
860730
|
+
"provenance"
|
|
860731
|
+
];
|
|
860752
860732
|
function jsonOrText(runtime2, value, text) {
|
|
860753
860733
|
return runtime2.cli.flags.outputFormat === "json" ? JSON.stringify(value, null, 2) : text;
|
|
860754
860734
|
}
|
|
@@ -860763,24 +860743,30 @@ function failure6(runtime2, kind2, error51, exitCode) {
|
|
|
860763
860743
|
exitCode
|
|
860764
860744
|
};
|
|
860765
860745
|
}
|
|
860766
|
-
function parseOptions(args2) {
|
|
860746
|
+
function parseOptions(args2, valueOptions = LOCAL_LIBRARY_VALUE_OPTIONS) {
|
|
860747
|
+
const valued = new Set(valueOptions);
|
|
860767
860748
|
const values2 = new Map;
|
|
860768
860749
|
const flags2 = new Set;
|
|
860769
860750
|
const positionals = [];
|
|
860770
860751
|
for (let index = 0;index < args2.length; index += 1) {
|
|
860771
860752
|
const arg = args2[index] ?? "";
|
|
860753
|
+
if (arg === "--") {
|
|
860754
|
+
positionals.push(...args2.slice(index + 1));
|
|
860755
|
+
break;
|
|
860756
|
+
}
|
|
860772
860757
|
if (!arg.startsWith("--")) {
|
|
860773
860758
|
positionals.push(arg);
|
|
860774
860759
|
continue;
|
|
860775
860760
|
}
|
|
860776
|
-
const
|
|
860761
|
+
const raw = arg.slice(2);
|
|
860762
|
+
const equalIndex = raw.indexOf("=");
|
|
860777
860763
|
if (equalIndex >= 0) {
|
|
860778
|
-
values2.set(
|
|
860764
|
+
values2.set(raw.slice(0, equalIndex), raw.slice(equalIndex + 1));
|
|
860779
860765
|
continue;
|
|
860780
860766
|
}
|
|
860781
|
-
const name51 =
|
|
860767
|
+
const name51 = raw;
|
|
860782
860768
|
const next = args2[index + 1];
|
|
860783
|
-
if (next !== undefined && !next.startsWith("--")) {
|
|
860769
|
+
if (next !== undefined && (valued.has(name51) || !next.startsWith("--"))) {
|
|
860784
860770
|
values2.set(name51, next);
|
|
860785
860771
|
index += 1;
|
|
860786
860772
|
continue;
|
|
@@ -861553,7 +861539,7 @@ import { mkdirSync as mkdirSync64, readFileSync as readFileSync86, writeFileSync
|
|
|
861553
861539
|
import { dirname as dirname63, resolve as resolve39 } from "path";
|
|
861554
861540
|
init_state3();
|
|
861555
861541
|
var VALID_CLASSES2 = ["decision", "constraint", "incident", "pattern", "fact", "risk", "runbook", "architecture", "ownership"];
|
|
861556
|
-
var
|
|
861542
|
+
var VALID_SCOPES4 = ["session", "project", "team"];
|
|
861557
861543
|
var VALID_REVIEW_STATES3 = ["fresh", "reviewed", "stale", "contradicted"];
|
|
861558
861544
|
var VALID_PROVENANCE_KINDS = ["session", "turn", "task", "event", "file"];
|
|
861559
861545
|
var VALUE_OPTIONS = new Set([
|
|
@@ -861653,7 +861639,7 @@ function isMemoryClass2(value) {
|
|
|
861653
861639
|
return VALID_CLASSES2.includes(value);
|
|
861654
861640
|
}
|
|
861655
861641
|
function isMemoryScope2(value) {
|
|
861656
|
-
return
|
|
861642
|
+
return VALID_SCOPES4.includes(value);
|
|
861657
861643
|
}
|
|
861658
861644
|
function isReviewState(value) {
|
|
861659
861645
|
return VALID_REVIEW_STATES3.includes(value);
|
|
@@ -861668,7 +861654,7 @@ function requireClass(value) {
|
|
|
861668
861654
|
}
|
|
861669
861655
|
function requireScope(value) {
|
|
861670
861656
|
if (!value || !isMemoryScope2(value))
|
|
861671
|
-
throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${
|
|
861657
|
+
throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${VALID_SCOPES4.join(", ")}`);
|
|
861672
861658
|
return value;
|
|
861673
861659
|
}
|
|
861674
861660
|
function optionalScope(value) {
|
|
@@ -862755,6 +862741,7 @@ async function handleProfilesCommand(runtime2) {
|
|
|
862755
862741
|
|
|
862756
862742
|
// src/cli/routines-command.ts
|
|
862757
862743
|
var ROUTINE_CREATE_USAGE = "Usage: goodvibes-agent routines create --name <name> --description <summary> --steps <steps> [--tags a,b] [--triggers a,b] [--requires-env A,B] [--requires-command gh,jq] [--enabled]";
|
|
862744
|
+
var ROUTINE_VALUE_OPTIONS = ["name", "description", "steps", "tags", "triggers", "requires-env", "requires-command", "requires-commands"];
|
|
862758
862745
|
function jsonOrText3(runtime2, value, text) {
|
|
862759
862746
|
return runtime2.cli.flags.outputFormat === "json" ? JSON.stringify(value, null, 2) : text;
|
|
862760
862747
|
}
|
|
@@ -862789,19 +862776,30 @@ function splitList4(value) {
|
|
|
862789
862776
|
return value.split(",").map((entry) => entry.trim()).filter(Boolean);
|
|
862790
862777
|
}
|
|
862791
862778
|
function parseRoutineOptions(args2) {
|
|
862779
|
+
const valued = new Set(ROUTINE_VALUE_OPTIONS);
|
|
862792
862780
|
const flags2 = new Map;
|
|
862793
862781
|
const positionals = [];
|
|
862794
862782
|
let yes = false;
|
|
862795
862783
|
for (let index = 0;index < args2.length; index += 1) {
|
|
862796
862784
|
const token = args2[index] ?? "";
|
|
862785
|
+
if (token === "--") {
|
|
862786
|
+
positionals.push(...args2.slice(index + 1));
|
|
862787
|
+
break;
|
|
862788
|
+
}
|
|
862797
862789
|
if (token === "--yes") {
|
|
862798
862790
|
yes = true;
|
|
862799
862791
|
continue;
|
|
862800
862792
|
}
|
|
862801
|
-
if (token.startsWith("--")) {
|
|
862802
|
-
const
|
|
862793
|
+
if (token.startsWith("--") && token.length > 2) {
|
|
862794
|
+
const raw = token.slice(2);
|
|
862795
|
+
const equalIndex = raw.indexOf("=");
|
|
862796
|
+
if (equalIndex >= 0) {
|
|
862797
|
+
flags2.set(raw.slice(0, equalIndex), raw.slice(equalIndex + 1));
|
|
862798
|
+
continue;
|
|
862799
|
+
}
|
|
862800
|
+
const key = raw;
|
|
862803
862801
|
const next = args2[index + 1];
|
|
862804
|
-
if (next !== undefined && !next.startsWith("--")) {
|
|
862802
|
+
if (next !== undefined && (valued.has(key) || !next.startsWith("--"))) {
|
|
862805
862803
|
flags2.set(key, next);
|
|
862806
862804
|
index += 1;
|
|
862807
862805
|
} else {
|
|
@@ -882074,62 +882072,6 @@ function createAgentWorkspaceTaskCommandEditor(kind2) {
|
|
|
882074
882072
|
};
|
|
882075
882073
|
}
|
|
882076
882074
|
|
|
882077
|
-
// src/input/slash-command-parser.ts
|
|
882078
|
-
function parseSlashCommand(command8) {
|
|
882079
|
-
const tokens = tokenizeSlashCommand(command8.trim().replace(/^\//, ""));
|
|
882080
|
-
return {
|
|
882081
|
-
name: tokens[0] ?? "",
|
|
882082
|
-
args: tokens.slice(1)
|
|
882083
|
-
};
|
|
882084
|
-
}
|
|
882085
|
-
function tokenizeSlashCommand(command8) {
|
|
882086
|
-
const tokens = [];
|
|
882087
|
-
let current = "";
|
|
882088
|
-
let quote2 = null;
|
|
882089
|
-
let escaping = false;
|
|
882090
|
-
for (const char of command8) {
|
|
882091
|
-
if (escaping) {
|
|
882092
|
-
current += char;
|
|
882093
|
-
escaping = false;
|
|
882094
|
-
continue;
|
|
882095
|
-
}
|
|
882096
|
-
if (char === "\\") {
|
|
882097
|
-
escaping = true;
|
|
882098
|
-
continue;
|
|
882099
|
-
}
|
|
882100
|
-
if (quote2) {
|
|
882101
|
-
if (char === quote2) {
|
|
882102
|
-
quote2 = null;
|
|
882103
|
-
continue;
|
|
882104
|
-
}
|
|
882105
|
-
current += char;
|
|
882106
|
-
continue;
|
|
882107
|
-
}
|
|
882108
|
-
if (char === '"' || char === "'") {
|
|
882109
|
-
quote2 = char;
|
|
882110
|
-
continue;
|
|
882111
|
-
}
|
|
882112
|
-
if (/\s/.test(char)) {
|
|
882113
|
-
if (current.length > 0) {
|
|
882114
|
-
tokens.push(current);
|
|
882115
|
-
current = "";
|
|
882116
|
-
}
|
|
882117
|
-
continue;
|
|
882118
|
-
}
|
|
882119
|
-
current += char;
|
|
882120
|
-
}
|
|
882121
|
-
if (escaping)
|
|
882122
|
-
current += "\\";
|
|
882123
|
-
if (current.length > 0)
|
|
882124
|
-
tokens.push(current);
|
|
882125
|
-
return tokens;
|
|
882126
|
-
}
|
|
882127
|
-
function quoteSlashCommandArg(value) {
|
|
882128
|
-
if (/^[A-Za-z0-9._/:=@,+-]+$/.test(value))
|
|
882129
|
-
return value;
|
|
882130
|
-
return `"${value.replace(/\\/g, "\\\\").replace(/"/g, "\\\"")}"`;
|
|
882131
|
-
}
|
|
882132
|
-
|
|
882133
882075
|
// src/input/agent-workspace-access-command-editor-submission.ts
|
|
882134
882076
|
function isAgentWorkspaceAccessCommandSubmissionKind(kind2) {
|
|
882135
882077
|
return isAgentWorkspaceAccessCommandEditorKind(kind2);
|
|
@@ -886038,19 +885980,12 @@ function buildAgentKnowledgeUrlEditorSubmission(editor, readField, commandDispat
|
|
|
886038
885980
|
};
|
|
886039
885981
|
}
|
|
886040
885982
|
const folder = readField("folder");
|
|
886041
|
-
if (/\s/.test(folder)) {
|
|
886042
|
-
return {
|
|
886043
|
-
kind: "editor",
|
|
886044
|
-
editor: { ...editor, message: "Folder paths with spaces are not supported from this compact workspace form." },
|
|
886045
|
-
status: "Folder path contains spaces."
|
|
886046
|
-
};
|
|
886047
|
-
}
|
|
886048
885983
|
const tags = splitList6(readField("tags"));
|
|
886049
|
-
const parts2 = ["/knowledge", "ingest-url", url2];
|
|
885984
|
+
const parts2 = ["/knowledge", "ingest-url", quoteSlashCommandArg(url2)];
|
|
886050
885985
|
if (tags.length > 0)
|
|
886051
|
-
parts2.push("--tags", tags.join(","));
|
|
885986
|
+
parts2.push("--tags", quoteSlashCommandArg(tags.join(",")));
|
|
886052
885987
|
if (folder.length > 0)
|
|
886053
|
-
parts2.push("--folder", folder);
|
|
885988
|
+
parts2.push("--folder", quoteSlashCommandArg(folder));
|
|
886054
885989
|
parts2.push("--yes");
|
|
886055
885990
|
const command8 = parts2.join(" ");
|
|
886056
885991
|
return {
|
|
@@ -887389,7 +887324,7 @@ function sessionLoadedMessage(name51, messageCount) {
|
|
|
887389
887324
|
return `Loaded session ${name51} (${messageCount} messages)`;
|
|
887390
887325
|
}
|
|
887391
887326
|
function sessionDeletionCommandRequiredMessage(name51) {
|
|
887392
|
-
return `Deletion requires an explicit command: /session delete ${name51} --yes`;
|
|
887327
|
+
return `Deletion requires an explicit command: /session delete ${quoteSlashCommandArg(name51)} --yes`;
|
|
887393
887328
|
}
|
|
887394
887329
|
class SessionPickerModal {
|
|
887395
887330
|
sessionManager;
|