@shawnstack/quickforge 1.3.17 → 1.3.19
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/README.md +10 -10
- package/bin/quickforge.mjs +258 -49
- package/dist/assets/anthropic-Bj3HAZgj.js +39 -0
- package/dist/assets/azure-openai-responses-IdZZrSrI.js +1 -0
- package/dist/assets/github-copilot-headers-CMb2BbzT.js +1 -0
- package/dist/assets/google-Brt_lS1J.js +1 -0
- package/dist/assets/{google-shared-XhYUKiGZ.js → google-shared-CLc4ziON.js} +3 -3
- package/dist/assets/google-vertex-B6HsoZ34.js +1 -0
- package/dist/assets/{index-Dm7aEWvT.js → index-D0CVLdX_.js} +525 -489
- package/dist/assets/index-D0W9hAl_.css +3 -0
- package/dist/assets/{mistral-DxhS4Wkn.js → mistral-CenXqwPz.js} +3 -3
- package/dist/assets/openai-codex-responses-D9ffGwbj.js +7 -0
- package/dist/assets/openai-completions-eWdeSGBG.js +5 -0
- package/dist/assets/openai-responses-Cavpmjeu.js +1 -0
- package/dist/assets/{openai-responses-shared-f_P3e1nz.js → openai-responses-shared-DF3ZGaUx.js} +5 -3
- package/dist/assets/transform-messages-CmnxG9RB.js +1 -0
- package/dist/index.html +2 -2
- package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +34 -0
- package/node_modules/@anthropic-ai/sdk/bin/migration-config.json +185 -0
- package/node_modules/@anthropic-ai/sdk/package.json +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.js +11 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.js +11 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.mjs +5 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js +130 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs +126 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js +145 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs +140 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js +81 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs +77 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.js +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.js +12 -5
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.mjs +12 -5
- package/node_modules/@anthropic-ai/sdk/version.js +1 -1
- package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +5 -5
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +12 -6
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +12 -6
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@mariozechner/pi-agent-core/README.md +14 -0
- package/node_modules/@mariozechner/pi-agent-core/dist/agent-loop.js +9 -0
- package/node_modules/@mariozechner/pi-agent-core/dist/agent.js +1 -1
- package/node_modules/@mariozechner/pi-agent-core/package.json +2 -2
- package/node_modules/@mariozechner/pi-ai/README.md +20 -31
- package/node_modules/@mariozechner/pi-ai/dist/env-api-keys.js +7 -0
- package/node_modules/@mariozechner/pi-ai/dist/index.js +2 -0
- package/node_modules/@mariozechner/pi-ai/dist/models.generated.js +2420 -1213
- package/node_modules/@mariozechner/pi-ai/dist/models.js +28 -20
- package/node_modules/@mariozechner/pi-ai/dist/providers/amazon-bedrock.js +11 -11
- package/node_modules/@mariozechner/pi-ai/dist/providers/anthropic.js +43 -26
- package/node_modules/@mariozechner/pi-ai/dist/providers/azure-openai-responses.js +12 -6
- package/node_modules/@mariozechner/pi-ai/dist/providers/cloudflare.js +10 -3
- package/node_modules/@mariozechner/pi-ai/dist/providers/google-shared.js +4 -13
- package/node_modules/@mariozechner/pi-ai/dist/providers/google-vertex.js +4 -3
- package/node_modules/@mariozechner/pi-ai/dist/providers/google.js +4 -3
- package/node_modules/@mariozechner/pi-ai/dist/providers/mistral.js +8 -7
- package/node_modules/@mariozechner/pi-ai/dist/providers/openai-codex-responses.js +296 -41
- package/node_modules/@mariozechner/pi-ai/dist/providers/openai-completions.js +169 -153
- package/node_modules/@mariozechner/pi-ai/dist/providers/openai-responses-shared.js +14 -1
- package/node_modules/@mariozechner/pi-ai/dist/providers/openai-responses.js +22 -8
- package/node_modules/@mariozechner/pi-ai/dist/providers/register-builtins.js +0 -18
- package/node_modules/@mariozechner/pi-ai/dist/providers/simple-options.js +1 -0
- package/node_modules/@mariozechner/pi-ai/dist/session-resources.js +22 -0
- package/node_modules/@mariozechner/pi-ai/dist/utils/diagnostics.js +25 -0
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/index.js +0 -10
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/openai-codex.js +25 -14
- package/node_modules/@mariozechner/pi-ai/dist/utils/overflow.js +14 -0
- package/node_modules/@mariozechner/pi-ai/package.json +2 -6
- package/package.json +3 -3
- package/server/agent-manager.mjs +279 -12
- package/server/auto-compaction.mjs +1 -2
- package/server/conversation-compaction.mjs +0 -5
- package/server/index.mjs +1 -0
- package/server/routes/static.mjs +1 -0
- package/server/routes/tools.mjs +3 -1
- package/server/session-utils.mjs +6 -1
- package/server/share-store.mjs +27 -4
- package/server/subagents.mjs +101 -0
- package/server/system-prompt.mjs +30 -1
- package/server/tools/definitions.mjs +20 -0
- package/server/tools/index.mjs +956 -726
- package/dist/assets/anthropic-Ck2DxOfr.js +0 -39
- package/dist/assets/azure-openai-responses-DIoz5q4Z.js +0 -1
- package/dist/assets/github-copilot-headers-CrI0CIJ7.js +0 -1
- package/dist/assets/google-Dau-4ve_.js +0 -1
- package/dist/assets/google-gemini-cli-DttMmbGb.js +0 -2
- package/dist/assets/google-vertex-BeukMl44.js +0 -1
- package/dist/assets/index-DgJVElbv.css +0 -3
- package/dist/assets/openai-codex-responses-X3sTzNAa.js +0 -7
- package/dist/assets/openai-completions-CRB9Vm0w.js +0 -5
- package/dist/assets/openai-responses-DXluu3oi.js +0 -1
- package/dist/assets/transform-messages-CV4kCtBB.js +0 -1
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/LICENSE +0 -201
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/README.md +0 -62
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +0 -156
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/constants.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +0 -16
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +0 -80
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +0 -8
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +0 -11
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +0 -10
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -4
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +0 -5
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +0 -7
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +0 -7
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +0 -8
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +0 -69
- package/node_modules/@mariozechner/pi-ai/dist/providers/google-gemini-cli.js +0 -779
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/google-antigravity.js +0 -377
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/google-gemini-cli.js +0 -482
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { PageCursor } from "../../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
export class MemoryVersions extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* GetMemoryVersion
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const betaManagedAgentsMemoryVersion =
|
|
13
|
+
* await client.beta.memoryStores.memoryVersions.retrieve(
|
|
14
|
+
* 'memory_version_id',
|
|
15
|
+
* { memory_store_id: 'memory_store_id' },
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(memoryVersionID, params, options) {
|
|
20
|
+
const { memory_store_id, betas, ...query } = params;
|
|
21
|
+
return this._client.get(path `/v1/memory_stores/${memory_store_id}/memory_versions/${memoryVersionID}?beta=true`, {
|
|
22
|
+
query,
|
|
23
|
+
...options,
|
|
24
|
+
headers: buildHeaders([
|
|
25
|
+
{ 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString() },
|
|
26
|
+
options?.headers,
|
|
27
|
+
]),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* ListMemoryVersions
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* // Automatically fetches more pages as needed.
|
|
36
|
+
* for await (const betaManagedAgentsMemoryVersion of client.beta.memoryStores.memoryVersions.list(
|
|
37
|
+
* 'memory_store_id',
|
|
38
|
+
* )) {
|
|
39
|
+
* // ...
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
list(memoryStoreID, params = {}, options) {
|
|
44
|
+
const { betas, ...query } = params ?? {};
|
|
45
|
+
return this._client.getAPIList(path `/v1/memory_stores/${memoryStoreID}/memory_versions?beta=true`, (PageCursor), {
|
|
46
|
+
query,
|
|
47
|
+
...options,
|
|
48
|
+
headers: buildHeaders([
|
|
49
|
+
{ 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString() },
|
|
50
|
+
options?.headers,
|
|
51
|
+
]),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* RedactMemoryVersion
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const betaManagedAgentsMemoryVersion =
|
|
60
|
+
* await client.beta.memoryStores.memoryVersions.redact(
|
|
61
|
+
* 'memory_version_id',
|
|
62
|
+
* { memory_store_id: 'memory_store_id' },
|
|
63
|
+
* );
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
redact(memoryVersionID, params, options) {
|
|
67
|
+
const { memory_store_id, betas } = params;
|
|
68
|
+
return this._client.post(path `/v1/memory_stores/${memory_store_id}/memory_versions/${memoryVersionID}/redact?beta=true`, {
|
|
69
|
+
...options,
|
|
70
|
+
headers: buildHeaders([
|
|
71
|
+
{ 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString() },
|
|
72
|
+
options?.headers,
|
|
73
|
+
]),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=memory-versions.mjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./memory-stores/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=memory-stores.js.map
|
|
@@ -7,6 +7,13 @@ Object.defineProperty(exports, "betaMemoryTool", { enumerable: true, get: functi
|
|
|
7
7
|
const fs = tslib_1.__importStar(require("fs/promises"));
|
|
8
8
|
const path = tslib_1.__importStar(require("path"));
|
|
9
9
|
const crypto_1 = require("crypto");
|
|
10
|
+
// Owner read/write only. Avoids the Node.js default of 0o666 which, in
|
|
11
|
+
// environments with a permissive umask (e.g. Docker where umask is often
|
|
12
|
+
// 0o000), would make memory files world-readable or even world-writable.
|
|
13
|
+
const FILE_CREATE_MODE = 0o600;
|
|
14
|
+
// fs.mkdir defaults to 0o777; restrict memory directories so they aren't
|
|
15
|
+
// world-accessible in environments with permissive umasks.
|
|
16
|
+
const DIR_CREATE_MODE = 0o700;
|
|
10
17
|
async function exists(path) {
|
|
11
18
|
return await fs
|
|
12
19
|
.access(path)
|
|
@@ -32,7 +39,7 @@ async function atomicWriteFile(targetPath, content) {
|
|
|
32
39
|
const tempPath = path.join(dir, `.tmp-${process.pid}-${(0, crypto_1.randomUUID)()}`);
|
|
33
40
|
let handle;
|
|
34
41
|
try {
|
|
35
|
-
handle = await fs.open(tempPath, 'wx');
|
|
42
|
+
handle = await fs.open(tempPath, 'wx', FILE_CREATE_MODE);
|
|
36
43
|
await handle.writeFile(content, 'utf-8');
|
|
37
44
|
await handle.sync();
|
|
38
45
|
await handle.close();
|
|
@@ -108,7 +115,7 @@ class BetaLocalFilesystemMemoryTool {
|
|
|
108
115
|
}
|
|
109
116
|
static async init(basePath = './memory') {
|
|
110
117
|
const memory = new BetaLocalFilesystemMemoryTool(basePath);
|
|
111
|
-
await fs.mkdir(memory.memoryRoot, { recursive: true });
|
|
118
|
+
await fs.mkdir(memory.memoryRoot, { recursive: true, mode: DIR_CREATE_MODE });
|
|
112
119
|
return memory;
|
|
113
120
|
}
|
|
114
121
|
async validatePath(memoryPath) {
|
|
@@ -199,10 +206,10 @@ class BetaLocalFilesystemMemoryTool {
|
|
|
199
206
|
}
|
|
200
207
|
async create(command) {
|
|
201
208
|
const fullPath = await this.validatePath(command.path);
|
|
202
|
-
await fs.mkdir(path.dirname(fullPath), { recursive: true });
|
|
209
|
+
await fs.mkdir(path.dirname(fullPath), { recursive: true, mode: DIR_CREATE_MODE });
|
|
203
210
|
let handle;
|
|
204
211
|
try {
|
|
205
|
-
handle = await fs.open(fullPath, 'wx');
|
|
212
|
+
handle = await fs.open(fullPath, 'wx', FILE_CREATE_MODE);
|
|
206
213
|
await handle.writeFile(command.file_text, 'utf-8');
|
|
207
214
|
await handle.sync();
|
|
208
215
|
}
|
|
@@ -307,7 +314,7 @@ class BetaLocalFilesystemMemoryTool {
|
|
|
307
314
|
throw new Error(`The destination ${command.new_path} already exists`);
|
|
308
315
|
}
|
|
309
316
|
const newDir = path.dirname(newFullPath);
|
|
310
|
-
await fs.mkdir(newDir, { recursive: true });
|
|
317
|
+
await fs.mkdir(newDir, { recursive: true, mode: DIR_CREATE_MODE });
|
|
311
318
|
try {
|
|
312
319
|
await fs.rename(oldFullPath, newFullPath);
|
|
313
320
|
}
|
|
@@ -2,6 +2,13 @@ export { betaMemoryTool } from "../../helpers/beta/memory.mjs";
|
|
|
2
2
|
import * as fs from 'fs/promises';
|
|
3
3
|
import * as path from 'path';
|
|
4
4
|
import { randomUUID } from 'crypto';
|
|
5
|
+
// Owner read/write only. Avoids the Node.js default of 0o666 which, in
|
|
6
|
+
// environments with a permissive umask (e.g. Docker where umask is often
|
|
7
|
+
// 0o000), would make memory files world-readable or even world-writable.
|
|
8
|
+
const FILE_CREATE_MODE = 0o600;
|
|
9
|
+
// fs.mkdir defaults to 0o777; restrict memory directories so they aren't
|
|
10
|
+
// world-accessible in environments with permissive umasks.
|
|
11
|
+
const DIR_CREATE_MODE = 0o700;
|
|
5
12
|
async function exists(path) {
|
|
6
13
|
return await fs
|
|
7
14
|
.access(path)
|
|
@@ -27,7 +34,7 @@ async function atomicWriteFile(targetPath, content) {
|
|
|
27
34
|
const tempPath = path.join(dir, `.tmp-${process.pid}-${randomUUID()}`);
|
|
28
35
|
let handle;
|
|
29
36
|
try {
|
|
30
|
-
handle = await fs.open(tempPath, 'wx');
|
|
37
|
+
handle = await fs.open(tempPath, 'wx', FILE_CREATE_MODE);
|
|
31
38
|
await handle.writeFile(content, 'utf-8');
|
|
32
39
|
await handle.sync();
|
|
33
40
|
await handle.close();
|
|
@@ -103,7 +110,7 @@ export class BetaLocalFilesystemMemoryTool {
|
|
|
103
110
|
}
|
|
104
111
|
static async init(basePath = './memory') {
|
|
105
112
|
const memory = new BetaLocalFilesystemMemoryTool(basePath);
|
|
106
|
-
await fs.mkdir(memory.memoryRoot, { recursive: true });
|
|
113
|
+
await fs.mkdir(memory.memoryRoot, { recursive: true, mode: DIR_CREATE_MODE });
|
|
107
114
|
return memory;
|
|
108
115
|
}
|
|
109
116
|
async validatePath(memoryPath) {
|
|
@@ -194,10 +201,10 @@ export class BetaLocalFilesystemMemoryTool {
|
|
|
194
201
|
}
|
|
195
202
|
async create(command) {
|
|
196
203
|
const fullPath = await this.validatePath(command.path);
|
|
197
|
-
await fs.mkdir(path.dirname(fullPath), { recursive: true });
|
|
204
|
+
await fs.mkdir(path.dirname(fullPath), { recursive: true, mode: DIR_CREATE_MODE });
|
|
198
205
|
let handle;
|
|
199
206
|
try {
|
|
200
|
-
handle = await fs.open(fullPath, 'wx');
|
|
207
|
+
handle = await fs.open(fullPath, 'wx', FILE_CREATE_MODE);
|
|
201
208
|
await handle.writeFile(command.file_text, 'utf-8');
|
|
202
209
|
await handle.sync();
|
|
203
210
|
}
|
|
@@ -302,7 +309,7 @@ export class BetaLocalFilesystemMemoryTool {
|
|
|
302
309
|
throw new Error(`The destination ${command.new_path} already exists`);
|
|
303
310
|
}
|
|
304
311
|
const newDir = path.dirname(newFullPath);
|
|
305
|
-
await fs.mkdir(newDir, { recursive: true });
|
|
312
|
+
await fs.mkdir(newDir, { recursive: true, mode: DIR_CREATE_MODE });
|
|
306
313
|
try {
|
|
307
314
|
await fs.rename(oldFullPath, newFullPath);
|
|
308
315
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.91.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1054.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@aws-sdk/core": "^3.974.
|
|
33
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
32
|
+
"@aws-sdk/core": "^3.974.14",
|
|
33
|
+
"@aws-sdk/credential-provider-node": "^3.972.45",
|
|
34
34
|
"@aws-sdk/eventstream-handler-node": "^3.972.17",
|
|
35
35
|
"@aws-sdk/middleware-eventstream": "^3.972.13",
|
|
36
|
-
"@aws-sdk/middleware-websocket": "^3.972.
|
|
37
|
-
"@aws-sdk/token-providers": "3.
|
|
36
|
+
"@aws-sdk/middleware-websocket": "^3.972.22",
|
|
37
|
+
"@aws-sdk/token-providers": "3.1054.0",
|
|
38
38
|
"@aws-sdk/types": "^3.973.9",
|
|
39
39
|
"@smithy/core": "^3.24.3",
|
|
40
40
|
"@smithy/fetch-http-handler": "^5.4.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.974.
|
|
3
|
+
"version": "3.974.14",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn prebuild && yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"license": "Apache-2.0",
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"@aws-sdk/types": "^3.973.9",
|
|
114
|
-
"@aws-sdk/xml-builder": "^3.972.
|
|
114
|
+
"@aws-sdk/xml-builder": "^3.972.26",
|
|
115
115
|
"@aws/lambda-invoke-store": "^0.2.2",
|
|
116
116
|
"@smithy/core": "^3.24.3",
|
|
117
117
|
"@smithy/signature-v4": "^5.4.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-env",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.40",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from known environment variables",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.974.
|
|
29
|
+
"@aws-sdk/core": "^3.974.14",
|
|
30
30
|
"@aws-sdk/types": "^3.973.9",
|
|
31
31
|
"@smithy/core": "^3.24.3",
|
|
32
32
|
"@smithy/types": "^4.14.2",
|
|
@@ -46,11 +46,9 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
46
46
|
}
|
|
47
47
|
const url = new URL(host);
|
|
48
48
|
(0, checkUrl_1.checkUrl)(url, options.logger);
|
|
49
|
-
const requestHandler = node_http_handler_1.NodeHttpHandler.create({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
});
|
|
53
|
-
return (0, retry_wrapper_1.retryWrapper)(async () => {
|
|
49
|
+
const requestHandler = node_http_handler_1.NodeHttpHandler.create({ connectionTimeout: options.timeout ?? 1000 });
|
|
50
|
+
const requestTimeout = options.timeout ?? 1000;
|
|
51
|
+
const provider = (0, retry_wrapper_1.retryWrapper)(async () => {
|
|
54
52
|
const request = (0, requestHelpers_1.createGetRequest)(url);
|
|
55
53
|
if (token) {
|
|
56
54
|
request.headers.Authorization = token;
|
|
@@ -59,12 +57,20 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
59
57
|
request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();
|
|
60
58
|
}
|
|
61
59
|
try {
|
|
62
|
-
const result = await requestHandler.handle(request);
|
|
60
|
+
const result = await requestHandler.handle(request, { requestTimeout });
|
|
63
61
|
return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z"));
|
|
64
62
|
}
|
|
65
63
|
catch (e) {
|
|
66
64
|
throw new config_1.CredentialsProviderError(String(e), { logger: options.logger });
|
|
67
65
|
}
|
|
68
66
|
}, options.maxRetries ?? 3, options.timeout ?? 1000);
|
|
67
|
+
return async () => {
|
|
68
|
+
try {
|
|
69
|
+
return await provider();
|
|
70
|
+
}
|
|
71
|
+
finally {
|
|
72
|
+
requestHandler.destroy?.();
|
|
73
|
+
}
|
|
74
|
+
};
|
|
69
75
|
};
|
|
70
76
|
exports.fromHttp = fromHttp;
|
|
@@ -42,11 +42,9 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
42
42
|
}
|
|
43
43
|
const url = new URL(host);
|
|
44
44
|
checkUrl(url, options.logger);
|
|
45
|
-
const requestHandler = NodeHttpHandler.create({
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
});
|
|
49
|
-
return retryWrapper(async () => {
|
|
45
|
+
const requestHandler = NodeHttpHandler.create({ connectionTimeout: options.timeout ?? 1000 });
|
|
46
|
+
const requestTimeout = options.timeout ?? 1000;
|
|
47
|
+
const provider = retryWrapper(async () => {
|
|
50
48
|
const request = createGetRequest(url);
|
|
51
49
|
if (token) {
|
|
52
50
|
request.headers.Authorization = token;
|
|
@@ -55,11 +53,19 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
55
53
|
request.headers.Authorization = (await fs.readFile(tokenFile)).toString();
|
|
56
54
|
}
|
|
57
55
|
try {
|
|
58
|
-
const result = await requestHandler.handle(request);
|
|
56
|
+
const result = await requestHandler.handle(request, { requestTimeout });
|
|
59
57
|
return getCredentials(result.response).then((creds) => setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
|
|
60
58
|
}
|
|
61
59
|
catch (e) {
|
|
62
60
|
throw new CredentialsProviderError(String(e), { logger: options.logger });
|
|
63
61
|
}
|
|
64
62
|
}, options.maxRetries ?? 3, options.timeout ?? 1000);
|
|
63
|
+
return async () => {
|
|
64
|
+
try {
|
|
65
|
+
return await provider();
|
|
66
|
+
}
|
|
67
|
+
finally {
|
|
68
|
+
requestHandler.destroy?.();
|
|
69
|
+
}
|
|
70
|
+
};
|
|
65
71
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-http",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.42",
|
|
4
4
|
"description": "AWS credential provider for containers and HTTP sources",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
24
24
|
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
25
25
|
"test": "yarn g:vitest run",
|
|
26
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
26
27
|
"test:watch": "yarn g:vitest watch"
|
|
27
28
|
},
|
|
28
29
|
"keywords": [
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
},
|
|
37
38
|
"license": "Apache-2.0",
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@aws-sdk/core": "^3.974.
|
|
40
|
+
"@aws-sdk/core": "^3.974.14",
|
|
40
41
|
"@aws-sdk/types": "^3.973.9",
|
|
41
42
|
"@smithy/core": "^3.24.3",
|
|
42
43
|
"@smithy/fetch-http-handler": "^5.4.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.44",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.974.
|
|
32
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
33
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
34
|
-
"@aws-sdk/credential-provider-login": "^3.972.
|
|
35
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
36
|
-
"@aws-sdk/credential-provider-sso": "^3.972.
|
|
37
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
38
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
31
|
+
"@aws-sdk/core": "^3.974.14",
|
|
32
|
+
"@aws-sdk/credential-provider-env": "^3.972.40",
|
|
33
|
+
"@aws-sdk/credential-provider-http": "^3.972.42",
|
|
34
|
+
"@aws-sdk/credential-provider-login": "^3.972.44",
|
|
35
|
+
"@aws-sdk/credential-provider-process": "^3.972.40",
|
|
36
|
+
"@aws-sdk/credential-provider-sso": "^3.972.44",
|
|
37
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.44",
|
|
38
|
+
"@aws-sdk/nested-clients": "^3.997.12",
|
|
39
39
|
"@aws-sdk/types": "^3.973.9",
|
|
40
40
|
"@smithy/core": "^3.24.3",
|
|
41
41
|
"@smithy/credential-provider-imds": "^4.3.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-login",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.44",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from aws login cached tokens",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.974.
|
|
32
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
31
|
+
"@aws-sdk/core": "^3.974.14",
|
|
32
|
+
"@aws-sdk/nested-clients": "^3.997.12",
|
|
33
33
|
"@aws-sdk/types": "^3.973.9",
|
|
34
34
|
"@smithy/core": "^3.24.3",
|
|
35
35
|
"@smithy/types": "^4.14.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.45",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.0.0"
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
35
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
36
|
-
"@aws-sdk/credential-provider-ini": "^3.972.
|
|
37
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
38
|
-
"@aws-sdk/credential-provider-sso": "^3.972.
|
|
39
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
34
|
+
"@aws-sdk/credential-provider-env": "^3.972.40",
|
|
35
|
+
"@aws-sdk/credential-provider-http": "^3.972.42",
|
|
36
|
+
"@aws-sdk/credential-provider-ini": "^3.972.44",
|
|
37
|
+
"@aws-sdk/credential-provider-process": "^3.972.40",
|
|
38
|
+
"@aws-sdk/credential-provider-sso": "^3.972.44",
|
|
39
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.44",
|
|
40
40
|
"@aws-sdk/types": "^3.973.9",
|
|
41
41
|
"@smithy/core": "^3.24.3",
|
|
42
42
|
"@smithy/credential-provider-imds": "^4.3.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.40",
|
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.974.
|
|
29
|
+
"@aws-sdk/core": "^3.974.14",
|
|
30
30
|
"@aws-sdk/types": "^3.973.9",
|
|
31
31
|
"@smithy/core": "^3.24.3",
|
|
32
32
|
"@smithy/types": "^4.14.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.44",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.974.
|
|
30
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
31
|
-
"@aws-sdk/token-providers": "3.
|
|
29
|
+
"@aws-sdk/core": "^3.974.14",
|
|
30
|
+
"@aws-sdk/nested-clients": "^3.997.12",
|
|
31
|
+
"@aws-sdk/token-providers": "3.1054.0",
|
|
32
32
|
"@aws-sdk/types": "^3.973.9",
|
|
33
33
|
"@smithy/core": "^3.24.3",
|
|
34
34
|
"@smithy/types": "^4.14.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.44",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "Apache-2.0",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@aws-sdk/core": "^3.974.
|
|
38
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
37
|
+
"@aws-sdk/core": "^3.974.14",
|
|
38
|
+
"@aws-sdk/nested-clients": "^3.997.12",
|
|
39
39
|
"@aws-sdk/types": "^3.973.9",
|
|
40
40
|
"@smithy/core": "^3.24.3",
|
|
41
41
|
"@smithy/types": "^4.14.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-websocket",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.22",
|
|
4
4
|
"main": "./dist-cjs/index.js",
|
|
5
5
|
"module": "./dist-es/index.js",
|
|
6
6
|
"types": "./dist-types/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/core": "^3.974.
|
|
27
|
+
"@aws-sdk/core": "^3.974.14",
|
|
28
28
|
"@aws-sdk/types": "^3.973.9",
|
|
29
29
|
"@smithy/core": "^3.24.3",
|
|
30
30
|
"@smithy/fetch-http-handler": "^5.4.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.997.
|
|
3
|
+
"version": "3.997.12",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@aws-sdk/core": "^3.974.
|
|
33
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
32
|
+
"@aws-sdk/core": "^3.974.14",
|
|
33
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.29",
|
|
34
34
|
"@aws-sdk/types": "^3.973.9",
|
|
35
35
|
"@smithy/core": "^3.24.3",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.4.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4-multi-region",
|
|
3
|
-
"version": "3.996.
|
|
3
|
+
"version": "3.996.29",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline signature-v4-multi-region",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-sdk/types": "^3.973.9",
|
|
29
|
-
"@smithy/core": "^3.24.3",
|
|
30
29
|
"@smithy/signature-v4": "^5.4.2",
|
|
31
30
|
"@smithy/types": "^4.14.2",
|
|
32
31
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1054.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-sdk/core": "^3.974.
|
|
33
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
32
|
+
"@aws-sdk/core": "^3.974.14",
|
|
33
|
+
"@aws-sdk/nested-clients": "^3.997.12",
|
|
34
34
|
"@aws-sdk/types": "^3.973.9",
|
|
35
35
|
"@smithy/core": "^3.24.3",
|
|
36
36
|
"@smithy/types": "^4.14.2",
|