quidproquo-core 0.1.28 → 0.1.30
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/lib/commonjs/actions/ai/AiActionType.d.ts +2 -1
- package/lib/commonjs/actions/ai/AiActionType.js +1 -0
- package/lib/commonjs/actions/ai/AiActionType.js.map +1 -1
- package/lib/commonjs/actions/ai/AiCacheTtl.d.ts +12 -0
- package/lib/commonjs/actions/ai/AiCacheTtl.js +17 -0
- package/lib/commonjs/actions/ai/AiCacheTtl.js.map +1 -0
- package/lib/commonjs/actions/ai/AiDataRegion.d.ts +5 -0
- package/lib/commonjs/actions/ai/AiDataRegion.js +10 -0
- package/lib/commonjs/actions/ai/AiDataRegion.js.map +1 -0
- package/lib/commonjs/actions/ai/AiModel.d.ts +9 -1
- package/lib/commonjs/actions/ai/AiModel.js +8 -0
- package/lib/commonjs/actions/ai/AiModel.js.map +1 -1
- package/lib/commonjs/actions/ai/AiModelRegionMap.d.ts +4 -0
- package/lib/commonjs/actions/ai/AiModelRegionMap.js +3 -0
- package/lib/commonjs/actions/ai/AiModelRegionMap.js.map +1 -0
- package/lib/commonjs/actions/ai/AiReasoningConfig.d.ts +8 -6
- package/lib/commonjs/actions/ai/AiReasoningConfig.js.map +1 -1
- package/lib/commonjs/actions/ai/AiReasoningEffort.d.ts +8 -0
- package/lib/commonjs/actions/ai/AiReasoningEffort.js +13 -0
- package/lib/commonjs/actions/ai/AiReasoningEffort.js.map +1 -0
- package/lib/commonjs/actions/ai/askAiGetModelRegions.d.ts +8 -0
- package/lib/commonjs/actions/ai/askAiGetModelRegions.js +14 -0
- package/lib/commonjs/actions/ai/askAiGetModelRegions.js.map +1 -0
- package/lib/commonjs/actions/ai/askAiPrompt.d.ts +13 -2
- package/lib/commonjs/actions/ai/askAiPrompt.js +2 -0
- package/lib/commonjs/actions/ai/askAiPrompt.js.map +1 -1
- package/lib/commonjs/actions/ai/askAiPromptStream.d.ts +8 -0
- package/lib/commonjs/actions/ai/askAiPromptStream.js +2 -0
- package/lib/commonjs/actions/ai/askAiPromptStream.js.map +1 -1
- package/lib/commonjs/actions/ai/index.d.ts +6 -0
- package/lib/commonjs/actions/ai/index.js +6 -0
- package/lib/commonjs/actions/ai/index.js.map +1 -1
- package/lib/commonjs/actions/ai/sumAiStreamUsage.d.ts +6 -0
- package/lib/commonjs/actions/ai/sumAiStreamUsage.js +14 -0
- package/lib/commonjs/actions/ai/sumAiStreamUsage.js.map +1 -0
- package/lib/commonjs/actions/ai/types/AiStreamFinish.d.ts +2 -0
- package/lib/commonjs/actions/ai/types/AiStreamFinish.js.map +1 -1
- package/lib/commonjs/actions/ai/types/AiStreamFinishStep.d.ts +2 -0
- package/lib/commonjs/actions/ai/types/AiStreamFinishStep.js.map +1 -1
- package/lib/commonjs/actions/ai/types/AiStreamUsage.d.ts +7 -1
- package/lib/commonjs/actions/ai/types/AiStreamUsage.js.map +1 -1
- package/lib/commonjs/actions/index.d.ts +1 -0
- package/lib/commonjs/actions/index.js +1 -0
- package/lib/commonjs/actions/index.js.map +1 -1
- package/lib/commonjs/actions/log/LogActionType.d.ts +2 -1
- package/lib/commonjs/actions/log/LogActionType.js +1 -0
- package/lib/commonjs/actions/log/LogActionType.js.map +1 -1
- package/lib/commonjs/actions/log/askRedactString.d.ts +10 -0
- package/lib/commonjs/actions/log/askRedactString.js +16 -0
- package/lib/commonjs/actions/log/askRedactString.js.map +1 -0
- package/lib/commonjs/actions/log/index.d.ts +1 -0
- package/lib/commonjs/actions/log/index.js +1 -0
- package/lib/commonjs/actions/log/index.js.map +1 -1
- package/lib/commonjs/actions/secureToken/SECURE_TOKEN_MAX_BYTE_LENGTH.d.ts +2 -0
- package/lib/commonjs/actions/secureToken/SECURE_TOKEN_MAX_BYTE_LENGTH.js +6 -0
- package/lib/commonjs/actions/secureToken/SECURE_TOKEN_MAX_BYTE_LENGTH.js.map +1 -0
- package/lib/commonjs/actions/secureToken/SecureTokenActionType.d.ts +3 -0
- package/lib/commonjs/actions/secureToken/SecureTokenActionType.js +8 -0
- package/lib/commonjs/actions/secureToken/SecureTokenActionType.js.map +1 -0
- package/lib/commonjs/actions/secureToken/askSecureTokenGenerate.d.ts +10 -0
- package/lib/commonjs/actions/secureToken/askSecureTokenGenerate.js +20 -0
- package/lib/commonjs/actions/secureToken/askSecureTokenGenerate.js.map +1 -0
- package/lib/commonjs/actions/secureToken/index.d.ts +3 -0
- package/lib/commonjs/actions/secureToken/index.js +20 -0
- package/lib/commonjs/actions/secureToken/index.js.map +1 -0
- package/lib/commonjs/createImplementationRuntime.d.ts +1 -0
- package/lib/commonjs/createImplementationRuntime.js +2 -33
- package/lib/commonjs/createImplementationRuntime.js.map +1 -1
- package/lib/commonjs/logic/context/toCrossServiceSession.js +6 -6
- package/lib/commonjs/logic/context/toCrossServiceSession.js.map +1 -1
- package/lib/commonjs/runtime/createNestedRuntime.d.ts +10 -0
- package/lib/commonjs/runtime/createNestedRuntime.js +30 -0
- package/lib/commonjs/runtime/createNestedRuntime.js.map +1 -0
- package/lib/commonjs/runtime/index.d.ts +2 -0
- package/lib/commonjs/runtime/index.js +2 -0
- package/lib/commonjs/runtime/index.js.map +1 -1
- package/lib/commonjs/runtime/storyResultToActionResult.d.ts +7 -0
- package/lib/commonjs/runtime/storyResultToActionResult.js +16 -0
- package/lib/commonjs/runtime/storyResultToActionResult.js.map +1 -0
- package/lib/commonjs/types/StorySession.js.map +1 -1
- package/lib/commonjs/utils/index.d.ts +1 -0
- package/lib/commonjs/utils/index.js +1 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/object/index.d.ts +1 -0
- package/lib/commonjs/utils/object/index.js +18 -0
- package/lib/commonjs/utils/object/index.js.map +1 -0
- package/lib/commonjs/utils/object/omitKey.d.ts +7 -0
- package/lib/commonjs/utils/object/omitKey.js +7 -0
- package/lib/commonjs/utils/object/omitKey.js.map +1 -0
- package/lib/commonjs/utils/uuid/generateUuid.d.ts +9 -5
- package/lib/commonjs/utils/uuid/generateUuid.js +28 -6
- package/lib/commonjs/utils/uuid/generateUuid.js.map +1 -1
- package/lib/esm/actions/ai/AiActionType.d.ts +2 -1
- package/lib/esm/actions/ai/AiActionType.js +1 -0
- package/lib/esm/actions/ai/AiActionType.js.map +1 -1
- package/lib/esm/actions/ai/AiCacheTtl.d.ts +12 -0
- package/lib/esm/actions/ai/AiCacheTtl.js +14 -0
- package/lib/esm/actions/ai/AiCacheTtl.js.map +1 -0
- package/lib/esm/actions/ai/AiDataRegion.d.ts +5 -0
- package/lib/esm/actions/ai/AiDataRegion.js +7 -0
- package/lib/esm/actions/ai/AiDataRegion.js.map +1 -0
- package/lib/esm/actions/ai/AiModel.d.ts +9 -1
- package/lib/esm/actions/ai/AiModel.js +8 -0
- package/lib/esm/actions/ai/AiModel.js.map +1 -1
- package/lib/esm/actions/ai/AiModelRegionMap.d.ts +4 -0
- package/lib/esm/actions/ai/AiModelRegionMap.js +2 -0
- package/lib/esm/actions/ai/AiModelRegionMap.js.map +1 -0
- package/lib/esm/actions/ai/AiReasoningConfig.d.ts +8 -6
- package/lib/esm/actions/ai/AiReasoningConfig.js.map +1 -1
- package/lib/esm/actions/ai/AiReasoningEffort.d.ts +8 -0
- package/lib/esm/actions/ai/AiReasoningEffort.js +10 -0
- package/lib/esm/actions/ai/AiReasoningEffort.js.map +1 -0
- package/lib/esm/actions/ai/askAiGetModelRegions.d.ts +8 -0
- package/lib/esm/actions/ai/askAiGetModelRegions.js +11 -0
- package/lib/esm/actions/ai/askAiGetModelRegions.js.map +1 -0
- package/lib/esm/actions/ai/askAiPrompt.d.ts +13 -2
- package/lib/esm/actions/ai/askAiPrompt.js +2 -0
- package/lib/esm/actions/ai/askAiPrompt.js.map +1 -1
- package/lib/esm/actions/ai/askAiPromptStream.d.ts +8 -0
- package/lib/esm/actions/ai/askAiPromptStream.js +2 -0
- package/lib/esm/actions/ai/askAiPromptStream.js.map +1 -1
- package/lib/esm/actions/ai/index.d.ts +6 -0
- package/lib/esm/actions/ai/index.js +6 -0
- package/lib/esm/actions/ai/index.js.map +1 -1
- package/lib/esm/actions/ai/sumAiStreamUsage.d.ts +6 -0
- package/lib/esm/actions/ai/sumAiStreamUsage.js +10 -0
- package/lib/esm/actions/ai/sumAiStreamUsage.js.map +1 -0
- package/lib/esm/actions/ai/types/AiStreamFinish.d.ts +2 -0
- package/lib/esm/actions/ai/types/AiStreamFinish.js.map +1 -1
- package/lib/esm/actions/ai/types/AiStreamFinishStep.d.ts +2 -0
- package/lib/esm/actions/ai/types/AiStreamFinishStep.js.map +1 -1
- package/lib/esm/actions/ai/types/AiStreamUsage.d.ts +7 -1
- package/lib/esm/actions/ai/types/AiStreamUsage.js.map +1 -1
- package/lib/esm/actions/index.d.ts +1 -0
- package/lib/esm/actions/index.js +1 -0
- package/lib/esm/actions/index.js.map +1 -1
- package/lib/esm/actions/log/LogActionType.d.ts +2 -1
- package/lib/esm/actions/log/LogActionType.js +1 -0
- package/lib/esm/actions/log/LogActionType.js.map +1 -1
- package/lib/esm/actions/log/askRedactString.d.ts +10 -0
- package/lib/esm/actions/log/askRedactString.js +13 -0
- package/lib/esm/actions/log/askRedactString.js.map +1 -0
- package/lib/esm/actions/log/index.d.ts +1 -0
- package/lib/esm/actions/log/index.js +1 -0
- package/lib/esm/actions/log/index.js.map +1 -1
- package/lib/esm/actions/secureToken/SECURE_TOKEN_MAX_BYTE_LENGTH.d.ts +2 -0
- package/lib/esm/actions/secureToken/SECURE_TOKEN_MAX_BYTE_LENGTH.js +3 -0
- package/lib/esm/actions/secureToken/SECURE_TOKEN_MAX_BYTE_LENGTH.js.map +1 -0
- package/lib/esm/actions/secureToken/SecureTokenActionType.d.ts +3 -0
- package/lib/esm/actions/secureToken/SecureTokenActionType.js +5 -0
- package/lib/esm/actions/secureToken/SecureTokenActionType.js.map +1 -0
- package/lib/esm/actions/secureToken/askSecureTokenGenerate.d.ts +10 -0
- package/lib/esm/actions/secureToken/askSecureTokenGenerate.js +17 -0
- package/lib/esm/actions/secureToken/askSecureTokenGenerate.js.map +1 -0
- package/lib/esm/actions/secureToken/index.d.ts +3 -0
- package/lib/esm/actions/secureToken/index.js +4 -0
- package/lib/esm/actions/secureToken/index.js.map +1 -0
- package/lib/esm/createImplementationRuntime.d.ts +1 -0
- package/lib/esm/createImplementationRuntime.js +3 -34
- package/lib/esm/createImplementationRuntime.js.map +1 -1
- package/lib/esm/logic/context/toCrossServiceSession.js +6 -6
- package/lib/esm/logic/context/toCrossServiceSession.js.map +1 -1
- package/lib/esm/runtime/createNestedRuntime.d.ts +10 -0
- package/lib/esm/runtime/createNestedRuntime.js +17 -0
- package/lib/esm/runtime/createNestedRuntime.js.map +1 -0
- package/lib/esm/runtime/index.d.ts +2 -0
- package/lib/esm/runtime/index.js +2 -0
- package/lib/esm/runtime/index.js.map +1 -1
- package/lib/esm/runtime/storyResultToActionResult.d.ts +7 -0
- package/lib/esm/runtime/storyResultToActionResult.js +12 -0
- package/lib/esm/runtime/storyResultToActionResult.js.map +1 -0
- package/lib/esm/types/StorySession.js.map +1 -1
- package/lib/esm/utils/index.d.ts +1 -0
- package/lib/esm/utils/index.js +1 -0
- package/lib/esm/utils/index.js.map +1 -1
- package/lib/esm/utils/object/index.d.ts +1 -0
- package/lib/esm/utils/object/index.js +2 -0
- package/lib/esm/utils/object/index.js.map +1 -0
- package/lib/esm/utils/object/omitKey.d.ts +7 -0
- package/lib/esm/utils/object/omitKey.js +3 -0
- package/lib/esm/utils/object/omitKey.js.map +1 -0
- package/lib/esm/utils/uuid/generateUuid.d.ts +9 -5
- package/lib/esm/utils/uuid/generateUuid.js +27 -6
- package/lib/esm/utils/uuid/generateUuid.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,5 +5,6 @@ var AiActionType;
|
|
|
5
5
|
(function (AiActionType) {
|
|
6
6
|
AiActionType["Prompt"] = "@quidproquo-core/Ai/Prompt";
|
|
7
7
|
AiActionType["PromptStream"] = "@quidproquo-core/Ai/PromptStream";
|
|
8
|
+
AiActionType["GetModelRegions"] = "@quidproquo-core/Ai/GetModelRegions";
|
|
8
9
|
})(AiActionType || (exports.AiActionType = AiActionType = {}));
|
|
9
10
|
//# sourceMappingURL=AiActionType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiActionType.js","sourceRoot":"","sources":["../../../../src/actions/ai/AiActionType.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"AiActionType.js","sourceRoot":"","sources":["../../../../src/actions/ai/AiActionType.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,qDAAqC,CAAA;IACrC,iEAAiD,CAAA;IACjD,uEAAuD,CAAA;AACzD,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB","sourcesContent":["export enum AiActionType {\n Prompt = '@quidproquo-core/Ai/Prompt',\n PromptStream = '@quidproquo-core/Ai/PromptStream',\n GetModelRegions = '@quidproquo-core/Ai/GetModelRegions',\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How long a prompt cache entry should live once written. A request, not a guarantee: each
|
|
3
|
+
* provider maps it onto the lifetimes its models accept. `Dynamic` lets the provider pick the
|
|
4
|
+
* best lifetime for each cache point; `ProviderDefault` leaves every point on the provider's own
|
|
5
|
+
* default; the hour costs a dearer write and is only accepted by models that support it.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum AiCacheTtl {
|
|
8
|
+
Dynamic = "dynamic",
|
|
9
|
+
ProviderDefault = "default",
|
|
10
|
+
FiveMinutes = "5m",
|
|
11
|
+
OneHour = "1h"
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiCacheTtl = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* How long a prompt cache entry should live once written. A request, not a guarantee: each
|
|
6
|
+
* provider maps it onto the lifetimes its models accept. `Dynamic` lets the provider pick the
|
|
7
|
+
* best lifetime for each cache point; `ProviderDefault` leaves every point on the provider's own
|
|
8
|
+
* default; the hour costs a dearer write and is only accepted by models that support it.
|
|
9
|
+
*/
|
|
10
|
+
var AiCacheTtl;
|
|
11
|
+
(function (AiCacheTtl) {
|
|
12
|
+
AiCacheTtl["Dynamic"] = "dynamic";
|
|
13
|
+
AiCacheTtl["ProviderDefault"] = "default";
|
|
14
|
+
AiCacheTtl["FiveMinutes"] = "5m";
|
|
15
|
+
AiCacheTtl["OneHour"] = "1h";
|
|
16
|
+
})(AiCacheTtl || (exports.AiCacheTtl = AiCacheTtl = {}));
|
|
17
|
+
//# sourceMappingURL=AiCacheTtl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiCacheTtl.js","sourceRoot":"","sources":["../../../../src/actions/ai/AiCacheTtl.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,yCAA2B,CAAA;IAC3B,gCAAkB,CAAA;IAClB,4BAAc,CAAA;AAChB,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB","sourcesContent":["/**\n * How long a prompt cache entry should live once written. A request, not a guarantee: each\n * provider maps it onto the lifetimes its models accept. `Dynamic` lets the provider pick the\n * best lifetime for each cache point; `ProviderDefault` leaves every point on the provider's own\n * default; the hour costs a dearer write and is only accepted by models that support it.\n */\nexport enum AiCacheTtl {\n Dynamic = 'dynamic',\n ProviderDefault = 'default',\n FiveMinutes = '5m',\n OneHour = '1h',\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiDataRegion = void 0;
|
|
4
|
+
/** Where a model's requests are processed, so a model picker can show where the data goes. */
|
|
5
|
+
var AiDataRegion;
|
|
6
|
+
(function (AiDataRegion) {
|
|
7
|
+
AiDataRegion["Australia"] = "australia";
|
|
8
|
+
AiDataRegion["Global"] = "global";
|
|
9
|
+
})(AiDataRegion || (exports.AiDataRegion = AiDataRegion = {}));
|
|
10
|
+
//# sourceMappingURL=AiDataRegion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiDataRegion.js","sourceRoot":"","sources":["../../../../src/actions/ai/AiDataRegion.ts"],"names":[],"mappings":";;;AAAA,8FAA8F;AAC9F,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iCAAiB,CAAA;AACnB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB","sourcesContent":["/** Where a model's requests are processed, so a model picker can show where the data goes. */\nexport enum AiDataRegion {\n Australia = 'australia',\n Global = 'global',\n}\n"]}
|
|
@@ -7,5 +7,13 @@ export declare enum AiModel {
|
|
|
7
7
|
ClaudeSonnet45 = "claude-sonnet-4-5",
|
|
8
8
|
ClaudeOpus45 = "claude-opus-4-5",
|
|
9
9
|
ClaudeSonnet46 = "claude-sonnet-4-6",
|
|
10
|
-
ClaudeOpus46 = "claude-opus-4-6"
|
|
10
|
+
ClaudeOpus46 = "claude-opus-4-6",
|
|
11
|
+
ClaudeOpus47 = "claude-opus-4-7",
|
|
12
|
+
ClaudeOpus48 = "claude-opus-4-8",
|
|
13
|
+
ClaudeSonnet5 = "claude-sonnet-5",
|
|
14
|
+
ClaudeOpus5 = "claude-opus-5",
|
|
15
|
+
ClaudeOpus55 = "claude-opus-5-5",
|
|
16
|
+
ClaudeSonnet55 = "claude-sonnet-5-5",
|
|
17
|
+
ClaudeFable5 = "claude-fable-5",
|
|
18
|
+
ClaudeFable51 = "claude-fable-5-1"
|
|
11
19
|
}
|
|
@@ -12,5 +12,13 @@ var AiModel;
|
|
|
12
12
|
AiModel["ClaudeOpus45"] = "claude-opus-4-5";
|
|
13
13
|
AiModel["ClaudeSonnet46"] = "claude-sonnet-4-6";
|
|
14
14
|
AiModel["ClaudeOpus46"] = "claude-opus-4-6";
|
|
15
|
+
AiModel["ClaudeOpus47"] = "claude-opus-4-7";
|
|
16
|
+
AiModel["ClaudeOpus48"] = "claude-opus-4-8";
|
|
17
|
+
AiModel["ClaudeSonnet5"] = "claude-sonnet-5";
|
|
18
|
+
AiModel["ClaudeOpus5"] = "claude-opus-5";
|
|
19
|
+
AiModel["ClaudeOpus55"] = "claude-opus-5-5";
|
|
20
|
+
AiModel["ClaudeSonnet55"] = "claude-sonnet-5-5";
|
|
21
|
+
AiModel["ClaudeFable5"] = "claude-fable-5";
|
|
22
|
+
AiModel["ClaudeFable51"] = "claude-fable-5-1";
|
|
15
23
|
})(AiModel || (exports.AiModel = AiModel = {}));
|
|
16
24
|
//# sourceMappingURL=AiModel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiModel.js","sourceRoot":"","sources":["../../../../src/actions/ai/AiModel.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"AiModel.js","sourceRoot":"","sources":["../../../../src/actions/ai/AiModel.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAkBX;AAlBD,WAAY,OAAO;IACjB,6CAAkC,CAAA;IAClC,+CAAoC,CAAA;IACpC,4CAAiC,CAAA;IACjC,wCAA6B,CAAA;IAC7B,6CAAkC,CAAA;IAClC,+CAAoC,CAAA;IACpC,2CAAgC,CAAA;IAChC,+CAAoC,CAAA;IACpC,2CAAgC,CAAA;IAChC,2CAAgC,CAAA;IAChC,2CAAgC,CAAA;IAChC,4CAAiC,CAAA;IACjC,wCAA6B,CAAA;IAC7B,2CAAgC,CAAA;IAChC,+CAAoC,CAAA;IACpC,0CAA+B,CAAA;IAC/B,6CAAkC,CAAA;AACpC,CAAC,EAlBW,OAAO,uBAAP,OAAO,QAkBlB","sourcesContent":["export enum AiModel {\n ClaudeHaiku35 = 'claude-3-5-haiku',\n ClaudeSonnet35 = 'claude-3-5-sonnet',\n ClaudeSonnet4 = 'claude-sonnet-4',\n ClaudeOpus4 = 'claude-opus-4',\n ClaudeHaiku45 = 'claude-haiku-4-5',\n ClaudeSonnet45 = 'claude-sonnet-4-5',\n ClaudeOpus45 = 'claude-opus-4-5',\n ClaudeSonnet46 = 'claude-sonnet-4-6',\n ClaudeOpus46 = 'claude-opus-4-6',\n ClaudeOpus47 = 'claude-opus-4-7',\n ClaudeOpus48 = 'claude-opus-4-8',\n ClaudeSonnet5 = 'claude-sonnet-5',\n ClaudeOpus5 = 'claude-opus-5',\n ClaudeOpus55 = 'claude-opus-5-5',\n ClaudeSonnet55 = 'claude-sonnet-5-5',\n ClaudeFable5 = 'claude-fable-5',\n ClaudeFable51 = 'claude-fable-5-1',\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiModelRegionMap.js","sourceRoot":"","sources":["../../../../src/actions/ai/AiModelRegionMap.ts"],"names":[],"mappings":"","sourcesContent":["import { AiDataRegion } from './AiDataRegion';\nimport { AiModel } from './AiModel';\n\n/** The regions each model is offered in on the current platform; a model may be in several. */\nexport type AiModelRegionMap = Record<AiModel, AiDataRegion[]>;\n"]}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { AiReasoningEffort } from './AiReasoningEffort';
|
|
1
2
|
/**
|
|
2
|
-
* Enables extended thinking for a prompt. Presence turns
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Enables extended thinking for a prompt at the given effort. Presence turns thinking on. On
|
|
4
|
+
* Claude 4.6 and older the platform turns the effort into a thinking token budget; Opus 4.7 and
|
|
5
|
+
* newer and Sonnet 5 run adaptive thinking and take the effort directly. Reasoning progress is
|
|
6
|
+
* surfaced as Reasoning* stream parts.
|
|
5
7
|
*/
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
}
|
|
8
|
+
export type AiReasoningConfig = {
|
|
9
|
+
effort: AiReasoningEffort;
|
|
10
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiReasoningConfig.js","sourceRoot":"","sources":["../../../../src/actions/ai/AiReasoningConfig.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Enables extended thinking for a prompt. Presence turns
|
|
1
|
+
{"version":3,"file":"AiReasoningConfig.js","sourceRoot":"","sources":["../../../../src/actions/ai/AiReasoningConfig.ts"],"names":[],"mappings":"","sourcesContent":["import { AiReasoningEffort } from './AiReasoningEffort';\n\n/**\n * Enables extended thinking for a prompt at the given effort. Presence turns thinking on. On\n * Claude 4.6 and older the platform turns the effort into a thinking token budget; Opus 4.7 and\n * newer and Sonnet 5 run adaptive thinking and take the effort directly. Reasoning progress is\n * surfaced as Reasoning* stream parts.\n */\nexport type AiReasoningConfig = {\n effort: AiReasoningEffort;\n};\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiReasoningEffort = void 0;
|
|
4
|
+
/** How hard a model that runs adaptive thinking may think before it answers. */
|
|
5
|
+
var AiReasoningEffort;
|
|
6
|
+
(function (AiReasoningEffort) {
|
|
7
|
+
AiReasoningEffort["Low"] = "low";
|
|
8
|
+
AiReasoningEffort["Medium"] = "medium";
|
|
9
|
+
AiReasoningEffort["High"] = "high";
|
|
10
|
+
AiReasoningEffort["XHigh"] = "xhigh";
|
|
11
|
+
AiReasoningEffort["Max"] = "max";
|
|
12
|
+
})(AiReasoningEffort || (exports.AiReasoningEffort = AiReasoningEffort = {}));
|
|
13
|
+
//# sourceMappingURL=AiReasoningEffort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiReasoningEffort.js","sourceRoot":"","sources":["../../../../src/actions/ai/AiReasoningEffort.ts"],"names":[],"mappings":";;;AAAA,gFAAgF;AAChF,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,gCAAW,CAAA;IACX,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,oCAAe,CAAA;IACf,gCAAW,CAAA;AACb,CAAC,EANW,iBAAiB,iCAAjB,iBAAiB,QAM5B","sourcesContent":["/** How hard a model that runs adaptive thinking may think before it answers. */\nexport enum AiReasoningEffort {\n Low = 'low',\n Medium = 'medium',\n High = 'high',\n XHigh = 'xhigh',\n Max = 'max',\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AiActionType } from './AiActionType';
|
|
2
|
+
import { AiModelRegionMap } from './AiModelRegionMap';
|
|
3
|
+
/**
|
|
4
|
+
* The regions every `AiModel` is offered in on the current platform, for a picker that shows
|
|
5
|
+
* where a request's data goes. The mapping is platform-owned, so a story asks for it rather than
|
|
6
|
+
* hard-coding it.
|
|
7
|
+
*/
|
|
8
|
+
export declare const askAiGetModelRegions: import("../../types").ActionRequesterFunction<AiActionType.GetModelRegions, [], undefined, AiModelRegionMap, never>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askAiGetModelRegions = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const AiActionType_1 = require("./AiActionType");
|
|
6
|
+
/**
|
|
7
|
+
* The regions every `AiModel` is offered in on the current platform, for a picker that shows
|
|
8
|
+
* where a request's data goes. The mapping is platform-owned, so a story asks for it rather than
|
|
9
|
+
* hard-coding it.
|
|
10
|
+
*/
|
|
11
|
+
exports.askAiGetModelRegions = (0, types_1.createActionRequester)()({
|
|
12
|
+
actionType: AiActionType_1.AiActionType.GetModelRegions,
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=askAiGetModelRegions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"askAiGetModelRegions.js","sourceRoot":"","sources":["../../../../src/actions/ai/askAiGetModelRegions.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AACpD,iDAA8C;AAG9C;;;;GAIG;AACU,QAAA,oBAAoB,GAAG,IAAA,6BAAqB,GAAoB,CAAC;IAC5E,UAAU,EAAE,2BAAY,CAAC,eAAe;CACzC,CAAC,CAAC","sourcesContent":["import { createActionRequester } from '../../types';\nimport { AiActionType } from './AiActionType';\nimport { AiModelRegionMap } from './AiModelRegionMap';\n\n/**\n * The regions every `AiModel` is offered in on the current platform, for a picker that shows\n * where a request's data goes. The mapping is platform-owned, so a story asks for it rather than\n * hard-coding it.\n */\nexport const askAiGetModelRegions = createActionRequester<AiModelRegionMap>()({\n actionType: AiActionType.GetModelRegions,\n});\n"]}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { AiStreamUsage } from './types/AiStreamUsage';
|
|
1
2
|
import { AiActionType } from './AiActionType';
|
|
3
|
+
import { AiCacheTtl } from './AiCacheTtl';
|
|
2
4
|
import { AiMessage } from './AiMessage';
|
|
3
5
|
import { AiModel } from './AiModel';
|
|
4
6
|
import { AiReasoningConfig } from './AiReasoningConfig';
|
|
@@ -6,8 +8,13 @@ export type AskAiPromptOptions = {
|
|
|
6
8
|
system?: string;
|
|
7
9
|
aiName?: string;
|
|
8
10
|
messages?: AiMessage[];
|
|
11
|
+
/** Per-request messages sent after `messages`. They never receive a cache point and the caller
|
|
12
|
+
* never persists them; with only `prompt`, the prompt becomes the first user message. */
|
|
13
|
+
turnContext?: AiMessage[];
|
|
9
14
|
reasoning?: AiReasoningConfig;
|
|
10
15
|
caching?: boolean;
|
|
16
|
+
/** Requested lifetime of the request's cache points. Unset means `AiCacheTtl.Dynamic`. */
|
|
17
|
+
cacheTtl?: AiCacheTtl;
|
|
11
18
|
/** Stop the tool loop between steps once this much wall-clock time has passed. The
|
|
12
19
|
* turn then finishes with `toolCalls` if the model still wanted to act, so it can be resumed. */
|
|
13
20
|
maxDurationMs?: number;
|
|
@@ -18,17 +25,21 @@ export type AskAiPromptOptions = {
|
|
|
18
25
|
* large tool input plus reasoning can exceed; the step then finishes with `length`. */
|
|
19
26
|
maxOutputTokens?: number;
|
|
20
27
|
};
|
|
21
|
-
export
|
|
28
|
+
export type AiPromptActionResult = {
|
|
22
29
|
text: string;
|
|
23
|
-
|
|
30
|
+
/** Token usage summed across every step, when the provider reports it. */
|
|
31
|
+
usage?: AiStreamUsage;
|
|
32
|
+
};
|
|
24
33
|
export declare const askAiPrompt: import("../../types").ActionRequesterFunction<AiActionType.Prompt, [model: AiModel, prompt: string, options?: AskAiPromptOptions | undefined], {
|
|
25
34
|
model: AiModel;
|
|
26
35
|
prompt: string;
|
|
27
36
|
messages: AiMessage[] | undefined;
|
|
37
|
+
turnContext: AiMessage[] | undefined;
|
|
28
38
|
system: string | undefined;
|
|
29
39
|
aiName: string | undefined;
|
|
30
40
|
reasoning: AiReasoningConfig | undefined;
|
|
31
41
|
caching: boolean | undefined;
|
|
42
|
+
cacheTtl: AiCacheTtl | undefined;
|
|
32
43
|
maxDurationMs: number | undefined;
|
|
33
44
|
maxSteps: number | undefined;
|
|
34
45
|
maxOutputTokens: number | undefined;
|
|
@@ -9,10 +9,12 @@ exports.askAiPrompt = (0, types_1.createActionRequester)()({
|
|
|
9
9
|
model,
|
|
10
10
|
prompt,
|
|
11
11
|
messages: options === null || options === void 0 ? void 0 : options.messages,
|
|
12
|
+
turnContext: options === null || options === void 0 ? void 0 : options.turnContext,
|
|
12
13
|
system: options === null || options === void 0 ? void 0 : options.system,
|
|
13
14
|
aiName: options === null || options === void 0 ? void 0 : options.aiName,
|
|
14
15
|
reasoning: options === null || options === void 0 ? void 0 : options.reasoning,
|
|
15
16
|
caching: options === null || options === void 0 ? void 0 : options.caching,
|
|
17
|
+
cacheTtl: options === null || options === void 0 ? void 0 : options.cacheTtl,
|
|
16
18
|
maxDurationMs: options === null || options === void 0 ? void 0 : options.maxDurationMs,
|
|
17
19
|
maxSteps: options === null || options === void 0 ? void 0 : options.maxSteps,
|
|
18
20
|
maxOutputTokens: options === null || options === void 0 ? void 0 : options.maxOutputTokens,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"askAiPrompt.js","sourceRoot":"","sources":["../../../../src/actions/ai/askAiPrompt.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;
|
|
1
|
+
{"version":3,"file":"askAiPrompt.js","sourceRoot":"","sources":["../../../../src/actions/ai/askAiPrompt.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AAEpD,iDAA8C;AAkCjC,QAAA,WAAW,GAAG,IAAA,6BAAqB,GAAwB,CAAC;IACvE,UAAU,EAAE,2BAAY,CAAC,MAAM;IAC/B,UAAU,EAAE,CAAC,KAAc,EAAE,MAAc,EAAE,OAA4B,EAAE,EAAE,CAAC,CAAC;QAC7E,KAAK;QACL,MAAM;QACN,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;QAC3B,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;QACjC,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;QACvB,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;QACvB,SAAS,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS;QAC7B,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;QACzB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;QAC3B,aAAa,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa;QACrC,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;QAC3B,eAAe,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe;KAC1C,CAAC;CACH,CAAC,CAAC","sourcesContent":["import { createActionRequester } from '../../types';\nimport { AiStreamUsage } from './types/AiStreamUsage';\nimport { AiActionType } from './AiActionType';\nimport { AiCacheTtl } from './AiCacheTtl';\nimport { AiMessage } from './AiMessage';\nimport { AiModel } from './AiModel';\nimport { AiReasoningConfig } from './AiReasoningConfig';\n\nexport type AskAiPromptOptions = {\n system?: string;\n aiName?: string;\n messages?: AiMessage[];\n /** Per-request messages sent after `messages`. They never receive a cache point and the caller\n * never persists them; with only `prompt`, the prompt becomes the first user message. */\n turnContext?: AiMessage[];\n reasoning?: AiReasoningConfig;\n caching?: boolean;\n /** Requested lifetime of the request's cache points. Unset means `AiCacheTtl.Dynamic`. */\n cacheTtl?: AiCacheTtl;\n /** Stop the tool loop between steps once this much wall-clock time has passed. The\n * turn then finishes with `toolCalls` if the model still wanted to act, so it can be resumed. */\n maxDurationMs?: number;\n /** Cap on model/tool steps in one call. Unset means the loop runs until the model stops\n * (or `maxDurationMs` trips); client-side tools still halt it immediately. */\n maxSteps?: number;\n /** Output token cap per model call. Unset uses the provider default (8192 on Bedrock), which a\n * large tool input plus reasoning can exceed; the step then finishes with `length`. */\n maxOutputTokens?: number;\n};\n\nexport type AiPromptActionResult = {\n text: string;\n /** Token usage summed across every step, when the provider reports it. */\n usage?: AiStreamUsage;\n};\n\nexport const askAiPrompt = createActionRequester<AiPromptActionResult>()({\n actionType: AiActionType.Prompt,\n getPayload: (model: AiModel, prompt: string, options?: AskAiPromptOptions) => ({\n model,\n prompt,\n messages: options?.messages,\n turnContext: options?.turnContext,\n system: options?.system,\n aiName: options?.aiName,\n reasoning: options?.reasoning,\n caching: options?.caching,\n cacheTtl: options?.cacheTtl,\n maxDurationMs: options?.maxDurationMs,\n maxSteps: options?.maxSteps,\n maxOutputTokens: options?.maxOutputTokens,\n }),\n});\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StreamHandle } from '../../types/StreamRegistry';
|
|
2
2
|
import { AiActionType } from './AiActionType';
|
|
3
|
+
import { AiCacheTtl } from './AiCacheTtl';
|
|
3
4
|
import { AiMessage } from './AiMessage';
|
|
4
5
|
import { AiModel } from './AiModel';
|
|
5
6
|
import { AiReasoningConfig } from './AiReasoningConfig';
|
|
@@ -8,8 +9,13 @@ export type AskAiPromptStreamOptions = {
|
|
|
8
9
|
system?: string;
|
|
9
10
|
aiName?: string;
|
|
10
11
|
messages?: AiMessage[];
|
|
12
|
+
/** Per-request messages sent after `messages`. They never receive a cache point and the caller
|
|
13
|
+
* never persists them; with only `prompt`, the prompt becomes the first user message. */
|
|
14
|
+
turnContext?: AiMessage[];
|
|
11
15
|
reasoning?: AiReasoningConfig;
|
|
12
16
|
caching?: boolean;
|
|
17
|
+
/** Requested lifetime of the request's cache points. Unset means `AiCacheTtl.Dynamic`. */
|
|
18
|
+
cacheTtl?: AiCacheTtl;
|
|
13
19
|
/** Stop the tool loop between steps once this much wall-clock time has passed. The
|
|
14
20
|
* turn then finishes with `toolCalls` if the model still wanted to act, so it can be resumed. */
|
|
15
21
|
maxDurationMs?: number;
|
|
@@ -24,10 +30,12 @@ export declare const askAiPromptStream: import("../../types").ActionRequesterFun
|
|
|
24
30
|
model: AiModel;
|
|
25
31
|
prompt: string;
|
|
26
32
|
messages: AiMessage[] | undefined;
|
|
33
|
+
turnContext: AiMessage[] | undefined;
|
|
27
34
|
system: string | undefined;
|
|
28
35
|
aiName: string | undefined;
|
|
29
36
|
reasoning: AiReasoningConfig | undefined;
|
|
30
37
|
caching: boolean | undefined;
|
|
38
|
+
cacheTtl: AiCacheTtl | undefined;
|
|
31
39
|
maxDurationMs: number | undefined;
|
|
32
40
|
maxSteps: number | undefined;
|
|
33
41
|
maxOutputTokens: number | undefined;
|
|
@@ -9,10 +9,12 @@ exports.askAiPromptStream = (0, types_1.createActionRequester)()({
|
|
|
9
9
|
model,
|
|
10
10
|
prompt,
|
|
11
11
|
messages: options === null || options === void 0 ? void 0 : options.messages,
|
|
12
|
+
turnContext: options === null || options === void 0 ? void 0 : options.turnContext,
|
|
12
13
|
system: options === null || options === void 0 ? void 0 : options.system,
|
|
13
14
|
aiName: options === null || options === void 0 ? void 0 : options.aiName,
|
|
14
15
|
reasoning: options === null || options === void 0 ? void 0 : options.reasoning,
|
|
15
16
|
caching: options === null || options === void 0 ? void 0 : options.caching,
|
|
17
|
+
cacheTtl: options === null || options === void 0 ? void 0 : options.cacheTtl,
|
|
16
18
|
maxDurationMs: options === null || options === void 0 ? void 0 : options.maxDurationMs,
|
|
17
19
|
maxSteps: options === null || options === void 0 ? void 0 : options.maxSteps,
|
|
18
20
|
maxOutputTokens: options === null || options === void 0 ? void 0 : options.maxOutputTokens,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"askAiPromptStream.js","sourceRoot":"","sources":["../../../../src/actions/ai/askAiPromptStream.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AAEpD,iDAA8C;
|
|
1
|
+
{"version":3,"file":"askAiPromptStream.js","sourceRoot":"","sources":["../../../../src/actions/ai/askAiPromptStream.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AAEpD,iDAA8C;AA6BjC,QAAA,iBAAiB,GAAG,IAAA,6BAAqB,GAAsC,CAAC;IAC3F,UAAU,EAAE,2BAAY,CAAC,YAAY;IACrC,UAAU,EAAE,CAAC,KAAc,EAAE,MAAc,EAAE,OAAkC,EAAE,EAAE,CAAC,CAAC;QACnF,KAAK;QACL,MAAM;QACN,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;QAC3B,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;QACjC,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;QACvB,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;QACvB,SAAS,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS;QAC7B,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;QACzB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;QAC3B,aAAa,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa;QACrC,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;QAC3B,eAAe,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe;KAC1C,CAAC;CACH,CAAC,CAAC","sourcesContent":["import { createActionRequester } from '../../types';\nimport { StreamHandle } from '../../types/StreamRegistry';\nimport { AiActionType } from './AiActionType';\nimport { AiCacheTtl } from './AiCacheTtl';\nimport { AiMessage } from './AiMessage';\nimport { AiModel } from './AiModel';\nimport { AiReasoningConfig } from './AiReasoningConfig';\nimport { AiStreamPart } from './types';\n\nexport type AskAiPromptStreamOptions = {\n system?: string;\n aiName?: string;\n messages?: AiMessage[];\n /** Per-request messages sent after `messages`. They never receive a cache point and the caller\n * never persists them; with only `prompt`, the prompt becomes the first user message. */\n turnContext?: AiMessage[];\n reasoning?: AiReasoningConfig;\n caching?: boolean;\n /** Requested lifetime of the request's cache points. Unset means `AiCacheTtl.Dynamic`. */\n cacheTtl?: AiCacheTtl;\n /** Stop the tool loop between steps once this much wall-clock time has passed. The\n * turn then finishes with `toolCalls` if the model still wanted to act, so it can be resumed. */\n maxDurationMs?: number;\n /** Cap on model/tool steps in one call. Unset means the loop runs until the model stops\n * (or `maxDurationMs` trips); client-side tools still halt it immediately. */\n maxSteps?: number;\n /** Output token cap per model call. Unset uses the provider default (8192 on Bedrock), which a\n * large tool input plus reasoning can exceed; the step then finishes with `length`. */\n maxOutputTokens?: number;\n};\n\nexport const askAiPromptStream = createActionRequester<StreamHandle<'json', AiStreamPart>>()({\n actionType: AiActionType.PromptStream,\n getPayload: (model: AiModel, prompt: string, options?: AskAiPromptStreamOptions) => ({\n model,\n prompt,\n messages: options?.messages,\n turnContext: options?.turnContext,\n system: options?.system,\n aiName: options?.aiName,\n reasoning: options?.reasoning,\n caching: options?.caching,\n cacheTtl: options?.cacheTtl,\n maxDurationMs: options?.maxDurationMs,\n maxSteps: options?.maxSteps,\n maxOutputTokens: options?.maxOutputTokens,\n }),\n});\n"]}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
export * from './AiActionType';
|
|
2
|
+
export * from './AiCacheTtl';
|
|
3
|
+
export * from './AiDataRegion';
|
|
2
4
|
export * from './AiMessage';
|
|
3
5
|
export * from './AiModel';
|
|
6
|
+
export * from './AiModelRegionMap';
|
|
4
7
|
export * from './AiReasoningConfig';
|
|
8
|
+
export * from './AiReasoningEffort';
|
|
9
|
+
export * from './askAiGetModelRegions';
|
|
5
10
|
export * from './askAiPrompt';
|
|
6
11
|
export * from './askAiPromptStream';
|
|
12
|
+
export * from './sumAiStreamUsage';
|
|
7
13
|
export * from './types';
|
|
@@ -15,10 +15,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AiActionType"), exports);
|
|
18
|
+
__exportStar(require("./AiCacheTtl"), exports);
|
|
19
|
+
__exportStar(require("./AiDataRegion"), exports);
|
|
18
20
|
__exportStar(require("./AiMessage"), exports);
|
|
19
21
|
__exportStar(require("./AiModel"), exports);
|
|
22
|
+
__exportStar(require("./AiModelRegionMap"), exports);
|
|
20
23
|
__exportStar(require("./AiReasoningConfig"), exports);
|
|
24
|
+
__exportStar(require("./AiReasoningEffort"), exports);
|
|
25
|
+
__exportStar(require("./askAiGetModelRegions"), exports);
|
|
21
26
|
__exportStar(require("./askAiPrompt"), exports);
|
|
22
27
|
__exportStar(require("./askAiPromptStream"), exports);
|
|
28
|
+
__exportStar(require("./sumAiStreamUsage"), exports);
|
|
23
29
|
__exportStar(require("./types"), exports);
|
|
24
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/actions/ai/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,4CAA0B;AAC1B,sDAAoC;AACpC,gDAA8B;AAC9B,sDAAoC;AACpC,0CAAwB","sourcesContent":["export * from './AiActionType';\nexport * from './AiMessage';\nexport * from './AiModel';\nexport * from './AiReasoningConfig';\nexport * from './askAiPrompt';\nexport * from './askAiPromptStream';\nexport * from './types';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/actions/ai/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,+CAA6B;AAC7B,iDAA+B;AAC/B,8CAA4B;AAC5B,4CAA0B;AAC1B,qDAAmC;AACnC,sDAAoC;AACpC,sDAAoC;AACpC,yDAAuC;AACvC,gDAA8B;AAC9B,sDAAoC;AACpC,qDAAmC;AACnC,0CAAwB","sourcesContent":["export * from './AiActionType';\nexport * from './AiCacheTtl';\nexport * from './AiDataRegion';\nexport * from './AiMessage';\nexport * from './AiModel';\nexport * from './AiModelRegionMap';\nexport * from './AiReasoningConfig';\nexport * from './AiReasoningEffort';\nexport * from './askAiGetModelRegions';\nexport * from './askAiPrompt';\nexport * from './askAiPromptStream';\nexport * from './sumAiStreamUsage';\nexport * from './types';\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AiStreamUsage } from './types/AiStreamUsage';
|
|
2
|
+
/**
|
|
3
|
+
* Adds token usages together field by field, for a chat's cost or a turn that spanned several
|
|
4
|
+
* executions. A field no usage reported stays undefined rather than becoming zero.
|
|
5
|
+
*/
|
|
6
|
+
export declare const sumAiStreamUsage: (usages: readonly AiStreamUsage[]) => AiStreamUsage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sumAiStreamUsage = void 0;
|
|
4
|
+
const USAGE_FIELDS = ['inputTokens', 'outputTokens', 'totalTokens', 'cacheReadInputTokens', 'cacheWriteInputTokens', 'noCacheInputTokens'];
|
|
5
|
+
/**
|
|
6
|
+
* Adds token usages together field by field, for a chat's cost or a turn that spanned several
|
|
7
|
+
* executions. A field no usage reported stays undefined rather than becoming zero.
|
|
8
|
+
*/
|
|
9
|
+
const sumAiStreamUsage = (usages) => USAGE_FIELDS.reduce((sum, field) => {
|
|
10
|
+
const reported = usages.map((usage) => usage[field]).filter((value) => value !== undefined);
|
|
11
|
+
return reported.length > 0 ? Object.assign(Object.assign({}, sum), { [field]: reported.reduce((total, value) => total + value, 0) }) : sum;
|
|
12
|
+
}, {});
|
|
13
|
+
exports.sumAiStreamUsage = sumAiStreamUsage;
|
|
14
|
+
//# sourceMappingURL=sumAiStreamUsage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sumAiStreamUsage.js","sourceRoot":"","sources":["../../../../src/actions/ai/sumAiStreamUsage.ts"],"names":[],"mappings":";;;AAEA,MAAM,YAAY,GAAG,CAAC,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,oBAAoB,CAAU,CAAC;AAEpJ;;;GAGG;AACI,MAAM,gBAAgB,GAAG,CAAC,MAAgC,EAAiB,EAAE,CAClF,YAAY,CAAC,MAAM,CAAgB,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;IAChD,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC;IAE7G,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,iCAAM,GAAG,KAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,KAAK,EAAE,CAAC,CAAC,IAAG,CAAC,CAAC,GAAG,CAAC;AAC9G,CAAC,EAAE,EAAE,CAAC,CAAC;AALI,QAAA,gBAAgB,oBAKpB","sourcesContent":["import { AiStreamUsage } from './types/AiStreamUsage';\n\nconst USAGE_FIELDS = ['inputTokens', 'outputTokens', 'totalTokens', 'cacheReadInputTokens', 'cacheWriteInputTokens', 'noCacheInputTokens'] as const;\n\n/**\n * Adds token usages together field by field, for a chat's cost or a turn that spanned several\n * executions. A field no usage reported stays undefined rather than becoming zero.\n */\nexport const sumAiStreamUsage = (usages: readonly AiStreamUsage[]): AiStreamUsage =>\n USAGE_FIELDS.reduce<AiStreamUsage>((sum, field) => {\n const reported = usages.map((usage) => usage[field]).filter((value): value is number => value !== undefined);\n\n return reported.length > 0 ? { ...sum, [field]: reported.reduce((total, value) => total + value, 0) } : sum;\n }, {});\n"]}
|
|
@@ -9,6 +9,8 @@ export interface AiStreamFinish {
|
|
|
9
9
|
type: AiStreamPartType.Finish;
|
|
10
10
|
/** Why the model stopped. `toolCalls` here means the loop was halted early and is resumable. */
|
|
11
11
|
finishReason: AiStreamFinishReasonEnum;
|
|
12
|
+
/** The provider's own stop reason string, when it reported one; explains an `other` or `unknown` reason. */
|
|
13
|
+
rawFinishReason?: string;
|
|
12
14
|
/** Aggregate token usage across all steps. */
|
|
13
15
|
usage: AiStreamUsage;
|
|
14
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiStreamFinish.js","sourceRoot":"","sources":["../../../../../src/actions/ai/types/AiStreamFinish.ts"],"names":[],"mappings":"","sourcesContent":["import { AiStreamFinishReasonEnum } from './AiStreamFinishReason';\nimport { AiStreamPartType } from './AiStreamPartType';\nimport { AiStreamUsage } from './AiStreamUsage';\n\n/**\n * Emitted once at the very end of the response with the aggregate finish reason and total usage\n * across every step. Use this (not `FinishStep`) for end-of-response accounting.\n */\nexport interface AiStreamFinish {\n type: AiStreamPartType.Finish;\n /** Why the model stopped. `toolCalls` here means the loop was halted early and is resumable. */\n finishReason: AiStreamFinishReasonEnum;\n /** Aggregate token usage across all steps. */\n usage: AiStreamUsage;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"AiStreamFinish.js","sourceRoot":"","sources":["../../../../../src/actions/ai/types/AiStreamFinish.ts"],"names":[],"mappings":"","sourcesContent":["import { AiStreamFinishReasonEnum } from './AiStreamFinishReason';\nimport { AiStreamPartType } from './AiStreamPartType';\nimport { AiStreamUsage } from './AiStreamUsage';\n\n/**\n * Emitted once at the very end of the response with the aggregate finish reason and total usage\n * across every step. Use this (not `FinishStep`) for end-of-response accounting.\n */\nexport interface AiStreamFinish {\n type: AiStreamPartType.Finish;\n /** Why the model stopped. `toolCalls` here means the loop was halted early and is resumable. */\n finishReason: AiStreamFinishReasonEnum;\n /** The provider's own stop reason string, when it reported one; explains an `other` or `unknown` reason. */\n rawFinishReason?: string;\n /** Aggregate token usage across all steps. */\n usage: AiStreamUsage;\n}\n"]}
|
|
@@ -10,6 +10,8 @@ export interface AiStreamFinishStep {
|
|
|
10
10
|
type: AiStreamPartType.FinishStep;
|
|
11
11
|
/** Why this step stopped — `toolCalls` between steps, `stop` on the final step. */
|
|
12
12
|
finishReason: AiStreamFinishReasonEnum;
|
|
13
|
+
/** The provider's own stop reason string, when it reported one; explains an `other` or `unknown` reason. */
|
|
14
|
+
rawFinishReason?: string;
|
|
13
15
|
/** Token usage for this step only. */
|
|
14
16
|
usage: AiStreamUsage;
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiStreamFinishStep.js","sourceRoot":"","sources":["../../../../../src/actions/ai/types/AiStreamFinishStep.ts"],"names":[],"mappings":"","sourcesContent":["import { AiStreamFinishReasonEnum } from './AiStreamFinishReason';\nimport { AiStreamPartType } from './AiStreamPartType';\nimport { AiStreamUsage } from './AiStreamUsage';\n\n/**\n * The current generation step ended.\n *\n * For total-response accounting use {@link AiStreamFinish}; this carries the per-step slice only.\n */\nexport interface AiStreamFinishStep {\n type: AiStreamPartType.FinishStep;\n /** Why this step stopped — `toolCalls` between steps, `stop` on the final step. */\n finishReason: AiStreamFinishReasonEnum;\n /** Token usage for this step only. */\n usage: AiStreamUsage;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"AiStreamFinishStep.js","sourceRoot":"","sources":["../../../../../src/actions/ai/types/AiStreamFinishStep.ts"],"names":[],"mappings":"","sourcesContent":["import { AiStreamFinishReasonEnum } from './AiStreamFinishReason';\nimport { AiStreamPartType } from './AiStreamPartType';\nimport { AiStreamUsage } from './AiStreamUsage';\n\n/**\n * The current generation step ended.\n *\n * For total-response accounting use {@link AiStreamFinish}; this carries the per-step slice only.\n */\nexport interface AiStreamFinishStep {\n type: AiStreamPartType.FinishStep;\n /** Why this step stopped — `toolCalls` between steps, `stop` on the final step. */\n finishReason: AiStreamFinishReasonEnum;\n /** The provider's own stop reason string, when it reported one; explains an `other` or `unknown` reason. */\n rawFinishReason?: string;\n /** Token usage for this step only. */\n usage: AiStreamUsage;\n}\n"]}
|
|
@@ -9,6 +9,12 @@ export interface AiStreamUsage {
|
|
|
9
9
|
inputTokens?: number;
|
|
10
10
|
/** Completion tokens produced. */
|
|
11
11
|
outputTokens?: number;
|
|
12
|
-
/** Total tokens
|
|
12
|
+
/** Total tokens, typically `inputTokens + outputTokens` (+ reasoning, when applicable). */
|
|
13
13
|
totalTokens?: number;
|
|
14
|
+
/** Prompt tokens served from the prompt cache. */
|
|
15
|
+
cacheReadInputTokens?: number;
|
|
16
|
+
/** Prompt tokens written to the prompt cache by this request. */
|
|
17
|
+
cacheWriteInputTokens?: number;
|
|
18
|
+
/** Prompt tokens neither read from nor written to the cache. */
|
|
19
|
+
noCacheInputTokens?: number;
|
|
14
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiStreamUsage.js","sourceRoot":"","sources":["../../../../../src/actions/ai/types/AiStreamUsage.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Token usage reported by the model.\n *\n * Each field may be undefined if the underlying provider doesn't report it.\n * `totalTokens` is the sum of input + output (plus any reasoning tokens, when applicable).\n */\nexport interface AiStreamUsage {\n /** Prompt tokens consumed. */\n inputTokens?: number;\n /** Completion tokens produced. */\n outputTokens?: number;\n /** Total tokens
|
|
1
|
+
{"version":3,"file":"AiStreamUsage.js","sourceRoot":"","sources":["../../../../../src/actions/ai/types/AiStreamUsage.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Token usage reported by the model.\n *\n * Each field may be undefined if the underlying provider doesn't report it.\n * `totalTokens` is the sum of input + output (plus any reasoning tokens, when applicable).\n */\nexport interface AiStreamUsage {\n /** Prompt tokens consumed. */\n inputTokens?: number;\n /** Completion tokens produced. */\n outputTokens?: number;\n /** Total tokens, typically `inputTokens + outputTokens` (+ reasoning, when applicable). */\n totalTokens?: number;\n /** Prompt tokens served from the prompt cache. */\n cacheReadInputTokens?: number;\n /** Prompt tokens written to the prompt cache by this request. */\n cacheWriteInputTokens?: number;\n /** Prompt tokens neither read from nor written to the cache. */\n noCacheInputTokens?: number;\n}\n"]}
|
|
@@ -34,6 +34,7 @@ __exportStar(require("./metric"), exports);
|
|
|
34
34
|
__exportStar(require("./network"), exports);
|
|
35
35
|
__exportStar(require("./platform"), exports);
|
|
36
36
|
__exportStar(require("./queue"), exports);
|
|
37
|
+
__exportStar(require("./secureToken"), exports);
|
|
37
38
|
__exportStar(require("./state"), exports);
|
|
38
39
|
__exportStar(require("./stream"), exports);
|
|
39
40
|
__exportStar(require("./system"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB;AACzB,yCAAuB;AACvB,qDAAmC;AACnC,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,yCAAuB;AACvB,kDAAgC;AAChC,yCAAuB;AACvB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC","sourcesContent":["export * from './ai';\nexport * from './config';\nexport * from './context';\nexport * from './crypto';\nexport * from './date';\nexport * from './dynamicFunctions';\nexport * from './error';\nexport * from './event';\nexport * from './eventBus';\nexport * from './file';\nexport * from './graphDatabase';\nexport * from './guid';\nexport * from './inlineFunction';\nexport * from './keyValueStore';\nexport * from './log';\nexport * from './math';\nexport * from './metric';\nexport * from './network';\nexport * from './platform';\nexport * from './queue';\nexport * from './state';\nexport * from './stream';\nexport * from './system';\nexport * from './userDirectory';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB;AACzB,yCAAuB;AACvB,qDAAmC;AACnC,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,yCAAuB;AACvB,kDAAgC;AAChC,yCAAuB;AACvB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,0CAAwB;AACxB,gDAA8B;AAC9B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC","sourcesContent":["export * from './ai';\nexport * from './config';\nexport * from './context';\nexport * from './crypto';\nexport * from './date';\nexport * from './dynamicFunctions';\nexport * from './error';\nexport * from './event';\nexport * from './eventBus';\nexport * from './file';\nexport * from './graphDatabase';\nexport * from './guid';\nexport * from './inlineFunction';\nexport * from './keyValueStore';\nexport * from './log';\nexport * from './math';\nexport * from './metric';\nexport * from './network';\nexport * from './platform';\nexport * from './queue';\nexport * from './secureToken';\nexport * from './state';\nexport * from './stream';\nexport * from './system';\nexport * from './userDirectory';\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare enum LogActionType {
|
|
2
2
|
Create = "@quidproquo-core/Log/Create",
|
|
3
3
|
DisableEventHistory = "@quidproquo-core/Log/DisableEventHistory",
|
|
4
|
-
TemplateLiteral = "@quidproquo-core/Log/TemplateLiteral"
|
|
4
|
+
TemplateLiteral = "@quidproquo-core/Log/TemplateLiteral",
|
|
5
|
+
RedactString = "@quidproquo-core/Log/RedactString"
|
|
5
6
|
}
|
|
@@ -6,5 +6,6 @@ var LogActionType;
|
|
|
6
6
|
LogActionType["Create"] = "@quidproquo-core/Log/Create";
|
|
7
7
|
LogActionType["DisableEventHistory"] = "@quidproquo-core/Log/DisableEventHistory";
|
|
8
8
|
LogActionType["TemplateLiteral"] = "@quidproquo-core/Log/TemplateLiteral";
|
|
9
|
+
LogActionType["RedactString"] = "@quidproquo-core/Log/RedactString";
|
|
9
10
|
})(LogActionType || (exports.LogActionType = LogActionType = {}));
|
|
10
11
|
//# sourceMappingURL=LogActionType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogActionType.js","sourceRoot":"","sources":["../../../../src/actions/log/LogActionType.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"LogActionType.js","sourceRoot":"","sources":["../../../../src/actions/log/LogActionType.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,uDAAsC,CAAA;IACtC,iFAAgE,CAAA;IAChE,yEAAwD,CAAA;IACxD,mEAAkD,CAAA;AACpD,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB","sourcesContent":["export enum LogActionType {\n Create = '@quidproquo-core/Log/Create',\n DisableEventHistory = '@quidproquo-core/Log/DisableEventHistory',\n TemplateLiteral = '@quidproquo-core/Log/TemplateLiteral',\n RedactString = '@quidproquo-core/Log/RedactString',\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LogActionType } from './LogActionType';
|
|
2
|
+
/**
|
|
3
|
+
* Marks a value as sensitive in this story's log: the admin log redaction removes it from every
|
|
4
|
+
* string in the log, including entries recorded before this call (and this call's own entry). Does
|
|
5
|
+
* nothing at runtime. Only this story's log is covered: a value handed to another service (in a
|
|
6
|
+
* queue message, an email, a service function) must be marked there too.
|
|
7
|
+
*/
|
|
8
|
+
export declare const askRedactString: import("../../types").ActionRequesterFunction<LogActionType.RedactString, [value: string], {
|
|
9
|
+
value: string;
|
|
10
|
+
}, void, never>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askRedactString = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const LogActionType_1 = require("./LogActionType");
|
|
6
|
+
/**
|
|
7
|
+
* Marks a value as sensitive in this story's log: the admin log redaction removes it from every
|
|
8
|
+
* string in the log, including entries recorded before this call (and this call's own entry). Does
|
|
9
|
+
* nothing at runtime. Only this story's log is covered: a value handed to another service (in a
|
|
10
|
+
* queue message, an email, a service function) must be marked there too.
|
|
11
|
+
*/
|
|
12
|
+
exports.askRedactString = (0, types_1.createActionRequester)()({
|
|
13
|
+
actionType: LogActionType_1.LogActionType.RedactString,
|
|
14
|
+
getPayload: (value) => ({ value }),
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=askRedactString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"askRedactString.js","sourceRoot":"","sources":["../../../../src/actions/log/askRedactString.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AACpD,mDAAgD;AAEhD;;;;;GAKG;AACU,QAAA,eAAe,GAAG,IAAA,6BAAqB,GAAQ,CAAC;IAC3D,UAAU,EAAE,6BAAa,CAAC,YAAY;IACtC,UAAU,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;CAC3C,CAAC,CAAC","sourcesContent":["import { createActionRequester } from '../../types';\nimport { LogActionType } from './LogActionType';\n\n/**\n * Marks a value as sensitive in this story's log: the admin log redaction removes it from every\n * string in the log, including entries recorded before this call (and this call's own entry). Does\n * nothing at runtime. Only this story's log is covered: a value handed to another service (in a\n * queue message, an email, a service function) must be marked there too.\n */\nexport const askRedactString = createActionRequester<void>()({\n actionType: LogActionType.RedactString,\n getPayload: (value: string) => ({ value }),\n});\n"]}
|