@vertesia/common 1.0.0-dev.20260128.144200 → 1.0.0-dev.20260203.130115Z
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/package.json +2 -2
- package/src/apps.ts +87 -1
- package/src/project.ts +83 -1
- package/src/skill.ts +1 -0
- package/src/store/dsl-workflow.ts +6 -0
- package/src/store/hive-memory.ts +167 -0
- package/src/store/index.ts +1 -0
- package/src/store/store.ts +1 -0
- package/src/store/workflow.ts +7 -0
- package/lib/cjs/Progress.js +0 -61
- package/lib/cjs/Progress.js.map +0 -1
- package/lib/cjs/access-control.js +0 -56
- package/lib/cjs/access-control.js.map +0 -1
- package/lib/cjs/analytics.js +0 -3
- package/lib/cjs/analytics.js.map +0 -1
- package/lib/cjs/apikey.js +0 -16
- package/lib/cjs/apikey.js.map +0 -1
- package/lib/cjs/apps.js +0 -35
- package/lib/cjs/apps.js.map +0 -1
- package/lib/cjs/ask-user.js +0 -8
- package/lib/cjs/ask-user.js.map +0 -1
- package/lib/cjs/channels.js +0 -63
- package/lib/cjs/channels.js.map +0 -1
- package/lib/cjs/common.js +0 -3
- package/lib/cjs/common.js.map +0 -1
- package/lib/cjs/data-platform.js +0 -127
- package/lib/cjs/data-platform.js.map +0 -1
- package/lib/cjs/email.js +0 -20
- package/lib/cjs/email.js.map +0 -1
- package/lib/cjs/environment.js +0 -44
- package/lib/cjs/environment.js.map +0 -1
- package/lib/cjs/facets.js +0 -3
- package/lib/cjs/facets.js.map +0 -1
- package/lib/cjs/group.js +0 -5
- package/lib/cjs/group.js.map +0 -1
- package/lib/cjs/index.js +0 -55
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/integrations.js +0 -14
- package/lib/cjs/integrations.js.map +0 -1
- package/lib/cjs/interaction.js +0 -97
- package/lib/cjs/interaction.js.map +0 -1
- package/lib/cjs/json-schema.js +0 -3
- package/lib/cjs/json-schema.js.map +0 -1
- package/lib/cjs/json.js +0 -3
- package/lib/cjs/json.js.map +0 -1
- package/lib/cjs/meters.js +0 -13
- package/lib/cjs/meters.js.map +0 -1
- package/lib/cjs/model_utility.js +0 -6
- package/lib/cjs/model_utility.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/payload.js +0 -3
- package/lib/cjs/payload.js.map +0 -1
- package/lib/cjs/pending-asks.js +0 -7
- package/lib/cjs/pending-asks.js.map +0 -1
- package/lib/cjs/project.js +0 -107
- package/lib/cjs/project.js.map +0 -1
- package/lib/cjs/prompt.js +0 -21
- package/lib/cjs/prompt.js.map +0 -1
- package/lib/cjs/query.js +0 -3
- package/lib/cjs/query.js.map +0 -1
- package/lib/cjs/rate-limiter.js +0 -6
- package/lib/cjs/rate-limiter.js.map +0 -1
- package/lib/cjs/refs.js +0 -14
- package/lib/cjs/refs.js.map +0 -1
- package/lib/cjs/runs.js +0 -3
- package/lib/cjs/runs.js.map +0 -1
- package/lib/cjs/skill.js +0 -14
- package/lib/cjs/skill.js.map +0 -1
- package/lib/cjs/store/activity-catalog.js +0 -3
- package/lib/cjs/store/activity-catalog.js.map +0 -1
- package/lib/cjs/store/collections.js +0 -9
- package/lib/cjs/store/collections.js.map +0 -1
- package/lib/cjs/store/common.js +0 -3
- package/lib/cjs/store/common.js.map +0 -1
- package/lib/cjs/store/conversation-state.js +0 -3
- package/lib/cjs/store/conversation-state.js.map +0 -1
- package/lib/cjs/store/doc-analyzer.js +0 -3
- package/lib/cjs/store/doc-analyzer.js.map +0 -1
- package/lib/cjs/store/dsl-workflow.js +0 -5
- package/lib/cjs/store/dsl-workflow.js.map +0 -1
- package/lib/cjs/store/index.js +0 -30
- package/lib/cjs/store/index.js.map +0 -1
- package/lib/cjs/store/object-types.js +0 -98
- package/lib/cjs/store/object-types.js.map +0 -1
- package/lib/cjs/store/schedule.js +0 -32
- package/lib/cjs/store/schedule.js.map +0 -1
- package/lib/cjs/store/signals.js +0 -3
- package/lib/cjs/store/signals.js.map +0 -1
- package/lib/cjs/store/store.js +0 -166
- package/lib/cjs/store/store.js.map +0 -1
- package/lib/cjs/store/temporalio.js +0 -44
- package/lib/cjs/store/temporalio.js.map +0 -1
- package/lib/cjs/store/worker.js +0 -3
- package/lib/cjs/store/worker.js.map +0 -1
- package/lib/cjs/store/workflow.js +0 -262
- package/lib/cjs/store/workflow.js.map +0 -1
- package/lib/cjs/sts-token-types.js +0 -32
- package/lib/cjs/sts-token-types.js.map +0 -1
- package/lib/cjs/tenant.js +0 -3
- package/lib/cjs/tenant.js.map +0 -1
- package/lib/cjs/tool-execution.js +0 -6
- package/lib/cjs/tool-execution.js.map +0 -1
- package/lib/cjs/training.js +0 -14
- package/lib/cjs/training.js.map +0 -1
- package/lib/cjs/transient-tokens.js +0 -9
- package/lib/cjs/transient-tokens.js.map +0 -1
- package/lib/cjs/user.js +0 -25
- package/lib/cjs/user.js.map +0 -1
- package/lib/cjs/utils/auth.js +0 -15
- package/lib/cjs/utils/auth.js.map +0 -1
- package/lib/cjs/utils/schemas.js +0 -114
- package/lib/cjs/utils/schemas.js.map +0 -1
- package/lib/cjs/utils/type-helpers.js +0 -3
- package/lib/cjs/utils/type-helpers.js.map +0 -1
- package/lib/cjs/versions.js +0 -8
- package/lib/cjs/versions.js.map +0 -1
- package/lib/cjs/workflow-analytics.js +0 -52
- package/lib/cjs/workflow-analytics.js.map +0 -1
- package/lib/esm/Progress.js +0 -57
- package/lib/esm/Progress.js.map +0 -1
- package/lib/esm/access-control.js +0 -53
- package/lib/esm/access-control.js.map +0 -1
- package/lib/esm/analytics.js +0 -2
- package/lib/esm/analytics.js.map +0 -1
- package/lib/esm/apikey.js +0 -13
- package/lib/esm/apikey.js.map +0 -1
- package/lib/esm/apps.js +0 -32
- package/lib/esm/apps.js.map +0 -1
- package/lib/esm/ask-user.js +0 -7
- package/lib/esm/ask-user.js.map +0 -1
- package/lib/esm/channels.js +0 -57
- package/lib/esm/channels.js.map +0 -1
- package/lib/esm/common.js +0 -2
- package/lib/esm/common.js.map +0 -1
- package/lib/esm/data-platform.js +0 -124
- package/lib/esm/data-platform.js.map +0 -1
- package/lib/esm/email.js +0 -16
- package/lib/esm/email.js.map +0 -1
- package/lib/esm/environment.js +0 -41
- package/lib/esm/environment.js.map +0 -1
- package/lib/esm/facets.js +0 -2
- package/lib/esm/facets.js.map +0 -1
- package/lib/esm/group.js +0 -2
- package/lib/esm/group.js.map +0 -1
- package/lib/esm/index.js +0 -39
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/integrations.js +0 -11
- package/lib/esm/integrations.js.map +0 -1
- package/lib/esm/interaction.js +0 -92
- package/lib/esm/interaction.js.map +0 -1
- package/lib/esm/json-schema.js +0 -2
- package/lib/esm/json-schema.js.map +0 -1
- package/lib/esm/json.js +0 -2
- package/lib/esm/json.js.map +0 -1
- package/lib/esm/meters.js +0 -10
- package/lib/esm/meters.js.map +0 -1
- package/lib/esm/model_utility.js +0 -2
- package/lib/esm/model_utility.js.map +0 -1
- package/lib/esm/payload.js +0 -2
- package/lib/esm/payload.js.map +0 -1
- package/lib/esm/pending-asks.js +0 -6
- package/lib/esm/pending-asks.js.map +0 -1
- package/lib/esm/project.js +0 -102
- package/lib/esm/project.js.map +0 -1
- package/lib/esm/prompt.js +0 -18
- package/lib/esm/prompt.js.map +0 -1
- package/lib/esm/query.js +0 -2
- package/lib/esm/query.js.map +0 -1
- package/lib/esm/rate-limiter.js +0 -5
- package/lib/esm/rate-limiter.js.map +0 -1
- package/lib/esm/refs.js +0 -11
- package/lib/esm/refs.js.map +0 -1
- package/lib/esm/runs.js +0 -2
- package/lib/esm/runs.js.map +0 -1
- package/lib/esm/skill.js +0 -13
- package/lib/esm/skill.js.map +0 -1
- package/lib/esm/store/activity-catalog.js +0 -2
- package/lib/esm/store/activity-catalog.js.map +0 -1
- package/lib/esm/store/collections.js +0 -6
- package/lib/esm/store/collections.js.map +0 -1
- package/lib/esm/store/common.js +0 -2
- package/lib/esm/store/common.js.map +0 -1
- package/lib/esm/store/conversation-state.js +0 -2
- package/lib/esm/store/conversation-state.js.map +0 -1
- package/lib/esm/store/doc-analyzer.js +0 -2
- package/lib/esm/store/doc-analyzer.js.map +0 -1
- package/lib/esm/store/dsl-workflow.js +0 -2
- package/lib/esm/store/dsl-workflow.js.map +0 -1
- package/lib/esm/store/index.js +0 -14
- package/lib/esm/store/index.js.map +0 -1
- package/lib/esm/store/object-types.js +0 -95
- package/lib/esm/store/object-types.js.map +0 -1
- package/lib/esm/store/schedule.js +0 -29
- package/lib/esm/store/schedule.js.map +0 -1
- package/lib/esm/store/signals.js +0 -2
- package/lib/esm/store/signals.js.map +0 -1
- package/lib/esm/store/store.js +0 -160
- package/lib/esm/store/store.js.map +0 -1
- package/lib/esm/store/temporalio.js +0 -41
- package/lib/esm/store/temporalio.js.map +0 -1
- package/lib/esm/store/worker.js +0 -2
- package/lib/esm/store/worker.js.map +0 -1
- package/lib/esm/store/workflow.js +0 -249
- package/lib/esm/store/workflow.js.map +0 -1
- package/lib/esm/sts-token-types.js +0 -24
- package/lib/esm/sts-token-types.js.map +0 -1
- package/lib/esm/tenant.js +0 -2
- package/lib/esm/tenant.js.map +0 -1
- package/lib/esm/tool-execution.js +0 -5
- package/lib/esm/tool-execution.js.map +0 -1
- package/lib/esm/training.js +0 -11
- package/lib/esm/training.js.map +0 -1
- package/lib/esm/transient-tokens.js +0 -6
- package/lib/esm/transient-tokens.js.map +0 -1
- package/lib/esm/user.js +0 -22
- package/lib/esm/user.js.map +0 -1
- package/lib/esm/utils/auth.js +0 -11
- package/lib/esm/utils/auth.js.map +0 -1
- package/lib/esm/utils/schemas.js +0 -107
- package/lib/esm/utils/schemas.js.map +0 -1
- package/lib/esm/utils/type-helpers.js +0 -2
- package/lib/esm/utils/type-helpers.js.map +0 -1
- package/lib/esm/versions.js +0 -5
- package/lib/esm/versions.js.map +0 -1
- package/lib/esm/workflow-analytics.js +0 -49
- package/lib/esm/workflow-analytics.js.map +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/types/Progress.d.ts +0 -21
- package/lib/types/Progress.d.ts.map +0 -1
- package/lib/types/access-control.d.ts +0 -73
- package/lib/types/access-control.d.ts.map +0 -1
- package/lib/types/analytics.d.ts +0 -87
- package/lib/types/analytics.d.ts.map +0 -1
- package/lib/types/apikey.d.ts +0 -98
- package/lib/types/apikey.d.ts.map +0 -1
- package/lib/types/apps.d.ts +0 -236
- package/lib/types/apps.d.ts.map +0 -1
- package/lib/types/ask-user.d.ts +0 -32
- package/lib/types/ask-user.d.ts.map +0 -1
- package/lib/types/channels.d.ts +0 -21
- package/lib/types/channels.d.ts.map +0 -1
- package/lib/types/common.d.ts +0 -31
- package/lib/types/common.d.ts.map +0 -1
- package/lib/types/data-platform.d.ts +0 -860
- package/lib/types/data-platform.d.ts.map +0 -1
- package/lib/types/email.d.ts +0 -66
- package/lib/types/email.d.ts.map +0 -1
- package/lib/types/environment.d.ts +0 -106
- package/lib/types/environment.d.ts.map +0 -1
- package/lib/types/facets.d.ts +0 -34
- package/lib/types/facets.d.ts.map +0 -1
- package/lib/types/group.d.ts +0 -21
- package/lib/types/group.d.ts.map +0 -1
- package/lib/types/index.d.ts +0 -39
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/integrations.d.ts +0 -60
- package/lib/types/integrations.d.ts.map +0 -1
- package/lib/types/interaction.d.ts +0 -965
- package/lib/types/interaction.d.ts.map +0 -1
- package/lib/types/json-schema.d.ts +0 -1
- package/lib/types/json-schema.d.ts.map +0 -1
- package/lib/types/json.d.ts +0 -1
- package/lib/types/json.d.ts.map +0 -1
- package/lib/types/meters.d.ts +0 -23
- package/lib/types/meters.d.ts.map +0 -1
- package/lib/types/model_utility.d.ts +0 -1
- package/lib/types/model_utility.d.ts.map +0 -1
- package/lib/types/payload.d.ts +0 -60
- package/lib/types/payload.d.ts.map +0 -1
- package/lib/types/pending-asks.d.ts +0 -93
- package/lib/types/pending-asks.d.ts.map +0 -1
- package/lib/types/project.d.ts +0 -179
- package/lib/types/project.d.ts.map +0 -1
- package/lib/types/prompt.d.ts +0 -78
- package/lib/types/prompt.d.ts.map +0 -1
- package/lib/types/query.d.ts +0 -118
- package/lib/types/query.d.ts.map +0 -1
- package/lib/types/rate-limiter.d.ts +0 -28
- package/lib/types/rate-limiter.d.ts.map +0 -1
- package/lib/types/refs.d.ts +0 -22
- package/lib/types/refs.d.ts.map +0 -1
- package/lib/types/runs.d.ts +0 -32
- package/lib/types/runs.d.ts.map +0 -1
- package/lib/types/skill.d.ts +0 -78
- package/lib/types/skill.d.ts.map +0 -1
- package/lib/types/store/activity-catalog.d.ts +0 -26
- package/lib/types/store/activity-catalog.d.ts.map +0 -1
- package/lib/types/store/collections.d.ts +0 -78
- package/lib/types/store/collections.d.ts.map +0 -1
- package/lib/types/store/common.d.ts +0 -22
- package/lib/types/store/common.d.ts.map +0 -1
- package/lib/types/store/conversation-state.d.ts +0 -125
- package/lib/types/store/conversation-state.d.ts.map +0 -1
- package/lib/types/store/doc-analyzer.d.ts +0 -140
- package/lib/types/store/doc-analyzer.d.ts.map +0 -1
- package/lib/types/store/dsl-workflow.d.ts +0 -244
- package/lib/types/store/dsl-workflow.d.ts.map +0 -1
- package/lib/types/store/index.d.ts +0 -13
- package/lib/types/store/index.d.ts.map +0 -1
- package/lib/types/store/object-types.d.ts +0 -23
- package/lib/types/store/object-types.d.ts.map +0 -1
- package/lib/types/store/schedule.d.ts +0 -182
- package/lib/types/store/schedule.d.ts.map +0 -1
- package/lib/types/store/signals.d.ts +0 -24
- package/lib/types/store/signals.d.ts.map +0 -1
- package/lib/types/store/store.d.ts +0 -407
- package/lib/types/store/store.d.ts.map +0 -1
- package/lib/types/store/temporalio.d.ts +0 -16
- package/lib/types/store/temporalio.d.ts.map +0 -1
- package/lib/types/store/worker.d.ts +0 -18
- package/lib/types/store/worker.d.ts.map +0 -1
- package/lib/types/store/workflow.d.ts +0 -810
- package/lib/types/store/workflow.d.ts.map +0 -1
- package/lib/types/sts-token-types.d.ts +0 -72
- package/lib/types/sts-token-types.d.ts.map +0 -1
- package/lib/types/tenant.d.ts +0 -10
- package/lib/types/tenant.d.ts.map +0 -1
- package/lib/types/tool-execution.d.ts +0 -45
- package/lib/types/tool-execution.d.ts.map +0 -1
- package/lib/types/training.d.ts +0 -38
- package/lib/types/training.d.ts.map +0 -1
- package/lib/types/transient-tokens.d.ts +0 -24
- package/lib/types/transient-tokens.d.ts.map +0 -1
- package/lib/types/user.d.ts +0 -116
- package/lib/types/user.d.ts.map +0 -1
- package/lib/types/utils/auth.d.ts +0 -3
- package/lib/types/utils/auth.d.ts.map +0 -1
- package/lib/types/utils/schemas.d.ts +0 -9
- package/lib/types/utils/schemas.d.ts.map +0 -1
- package/lib/types/utils/type-helpers.d.ts +0 -3
- package/lib/types/utils/type-helpers.d.ts.map +0 -1
- package/lib/types/versions.d.ts +0 -3
- package/lib/types/versions.d.ts.map +0 -1
- package/lib/types/workflow-analytics.d.ts +0 -777
- package/lib/types/workflow-analytics.d.ts.map +0 -1
- package/lib/vertesia-common.js +0 -2
- package/lib/vertesia-common.js.map +0 -1
package/lib/esm/store/store.js
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
export var ContentObjectApiHeaders;
|
|
2
|
-
(function (ContentObjectApiHeaders) {
|
|
3
|
-
ContentObjectApiHeaders["COLLECTION_ID"] = "x-collection-id";
|
|
4
|
-
ContentObjectApiHeaders["PROCESSING_PRIORITY"] = "x-processing-priority";
|
|
5
|
-
ContentObjectApiHeaders["CREATE_REVISION"] = "x-create-revision";
|
|
6
|
-
ContentObjectApiHeaders["REVISION_LABEL"] = "x-revision-label";
|
|
7
|
-
/** When set to 'true', prevents this update from triggering workflow rules */
|
|
8
|
-
ContentObjectApiHeaders["SUPPRESS_WORKFLOWS"] = "x-suppress-workflows";
|
|
9
|
-
})(ContentObjectApiHeaders || (ContentObjectApiHeaders = {}));
|
|
10
|
-
/**
|
|
11
|
-
* Headers for Data Store API calls.
|
|
12
|
-
* Used for Cloud Run session affinity to route requests to the same instance.
|
|
13
|
-
*/
|
|
14
|
-
export var DataStoreApiHeaders;
|
|
15
|
-
(function (DataStoreApiHeaders) {
|
|
16
|
-
/** Data store ID for session affinity - routes requests for same store to same instance */
|
|
17
|
-
DataStoreApiHeaders["DATA_STORE_ID"] = "x-data-store-id";
|
|
18
|
-
})(DataStoreApiHeaders || (DataStoreApiHeaders = {}));
|
|
19
|
-
export var ContentObjectStatus;
|
|
20
|
-
(function (ContentObjectStatus) {
|
|
21
|
-
ContentObjectStatus["created"] = "created";
|
|
22
|
-
ContentObjectStatus["processing"] = "processing";
|
|
23
|
-
ContentObjectStatus["ready"] = "ready";
|
|
24
|
-
ContentObjectStatus["completed"] = "completed";
|
|
25
|
-
ContentObjectStatus["failed"] = "failed";
|
|
26
|
-
ContentObjectStatus["archived"] = "archived";
|
|
27
|
-
})(ContentObjectStatus || (ContentObjectStatus = {}));
|
|
28
|
-
export var ContentNature;
|
|
29
|
-
(function (ContentNature) {
|
|
30
|
-
ContentNature["Video"] = "video";
|
|
31
|
-
ContentNature["Image"] = "image";
|
|
32
|
-
ContentNature["Audio"] = "audio";
|
|
33
|
-
ContentNature["Document"] = "document";
|
|
34
|
-
ContentNature["Code"] = "code";
|
|
35
|
-
ContentNature["Other"] = "other";
|
|
36
|
-
})(ContentNature || (ContentNature = {}));
|
|
37
|
-
export const POSTER_RENDITION_NAME = "Poster";
|
|
38
|
-
export const AUDIO_RENDITION_NAME = "Audio";
|
|
39
|
-
export const WEB_VIDEO_RENDITION_NAME = "Web";
|
|
40
|
-
export const PDF_RENDITION_NAME = "PDF";
|
|
41
|
-
export var WorkflowRuleInputType;
|
|
42
|
-
(function (WorkflowRuleInputType) {
|
|
43
|
-
WorkflowRuleInputType["single"] = "single";
|
|
44
|
-
WorkflowRuleInputType["multiple"] = "multiple";
|
|
45
|
-
WorkflowRuleInputType["none"] = "none";
|
|
46
|
-
})(WorkflowRuleInputType || (WorkflowRuleInputType = {}));
|
|
47
|
-
export var ImageRenditionFormat;
|
|
48
|
-
(function (ImageRenditionFormat) {
|
|
49
|
-
ImageRenditionFormat["jpeg"] = "jpeg";
|
|
50
|
-
ImageRenditionFormat["png"] = "png";
|
|
51
|
-
ImageRenditionFormat["webp"] = "webp";
|
|
52
|
-
})(ImageRenditionFormat || (ImageRenditionFormat = {}));
|
|
53
|
-
export var MarkdownRenditionFormat;
|
|
54
|
-
(function (MarkdownRenditionFormat) {
|
|
55
|
-
MarkdownRenditionFormat["docx"] = "docx";
|
|
56
|
-
MarkdownRenditionFormat["pdf"] = "pdf";
|
|
57
|
-
})(MarkdownRenditionFormat || (MarkdownRenditionFormat = {}));
|
|
58
|
-
/**
|
|
59
|
-
* Matrix of supported content type → format conversions.
|
|
60
|
-
* This is the authoritative source of truth for what renditions can be generated.
|
|
61
|
-
*
|
|
62
|
-
* Key patterns:
|
|
63
|
-
* - Exact MIME types (e.g., 'application/pdf')
|
|
64
|
-
* - Wildcard patterns (e.g., 'image/*', 'video/*')
|
|
65
|
-
*/
|
|
66
|
-
const RENDITION_COMPATIBILITY = {
|
|
67
|
-
// Image formats can generate: jpeg, png, webp
|
|
68
|
-
'image/*': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png, ImageRenditionFormat.webp],
|
|
69
|
-
// Video formats can generate: jpeg, png (thumbnails)
|
|
70
|
-
'video/*': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png],
|
|
71
|
-
// PDF can generate: jpeg, png, webp (page images)
|
|
72
|
-
'application/pdf': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png, ImageRenditionFormat.webp],
|
|
73
|
-
// Markdown can generate: pdf, docx (NOT jpeg/png)
|
|
74
|
-
'text/markdown': [MarkdownRenditionFormat.pdf, MarkdownRenditionFormat.docx],
|
|
75
|
-
// Plain text can generate: docx
|
|
76
|
-
'text/plain': [MarkdownRenditionFormat.docx],
|
|
77
|
-
// Office documents can generate: pdf
|
|
78
|
-
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': [MarkdownRenditionFormat.pdf],
|
|
79
|
-
'application/msword': [MarkdownRenditionFormat.pdf],
|
|
80
|
-
'application/vnd.openxmlformats-officedocument.presentationml.presentation': [MarkdownRenditionFormat.pdf],
|
|
81
|
-
'application/vnd.ms-powerpoint': [MarkdownRenditionFormat.pdf],
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Check if a specific rendition format can be generated from a content type.
|
|
85
|
-
*
|
|
86
|
-
* @param contentType - The MIME type of the source content (e.g., 'image/png', 'text/markdown')
|
|
87
|
-
* @param format - The desired rendition format (e.g., ImageRenditionFormat.jpeg)
|
|
88
|
-
* @returns true if the format can be generated from the content type
|
|
89
|
-
*
|
|
90
|
-
* @example
|
|
91
|
-
* canGenerateRendition('image/png', ImageRenditionFormat.jpeg) // true
|
|
92
|
-
* canGenerateRendition('text/markdown', ImageRenditionFormat.jpeg) // false
|
|
93
|
-
* canGenerateRendition('text/markdown', MarkdownRenditionFormat.pdf) // true
|
|
94
|
-
*/
|
|
95
|
-
export function canGenerateRendition(contentType, format) {
|
|
96
|
-
if (!contentType)
|
|
97
|
-
return false;
|
|
98
|
-
const formatStr = typeof format === 'string' ? format : format;
|
|
99
|
-
// Check exact match first
|
|
100
|
-
const exactMatch = RENDITION_COMPATIBILITY[contentType];
|
|
101
|
-
if (exactMatch && exactMatch.some(f => f === formatStr)) {
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
// Check wildcard patterns (e.g., 'image/*', 'video/*')
|
|
105
|
-
const [category] = contentType.split('/');
|
|
106
|
-
const wildcardKey = `${category}/*`;
|
|
107
|
-
const wildcardMatch = RENDITION_COMPATIBILITY[wildcardKey];
|
|
108
|
-
if (wildcardMatch && wildcardMatch.some(f => f === formatStr)) {
|
|
109
|
-
return true;
|
|
110
|
-
}
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Get the list of rendition formats supported for a given content type.
|
|
115
|
-
*
|
|
116
|
-
* @param contentType - The MIME type of the source content
|
|
117
|
-
* @returns Array of supported rendition formats, or empty array if none
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* getSupportedRenditionFormats('image/png') // [jpeg, png, webp]
|
|
121
|
-
* getSupportedRenditionFormats('text/markdown') // [pdf, docx]
|
|
122
|
-
* getSupportedRenditionFormats('text/html') // []
|
|
123
|
-
*/
|
|
124
|
-
export function getSupportedRenditionFormats(contentType) {
|
|
125
|
-
if (!contentType)
|
|
126
|
-
return [];
|
|
127
|
-
// Check exact match first
|
|
128
|
-
if (RENDITION_COMPATIBILITY[contentType]) {
|
|
129
|
-
return [...RENDITION_COMPATIBILITY[contentType]];
|
|
130
|
-
}
|
|
131
|
-
// Check wildcard patterns
|
|
132
|
-
const [category] = contentType.split('/');
|
|
133
|
-
const wildcardKey = `${category}/*`;
|
|
134
|
-
const wildcardMatch = RENDITION_COMPATIBILITY[wildcardKey];
|
|
135
|
-
if (wildcardMatch) {
|
|
136
|
-
return [...wildcardMatch];
|
|
137
|
-
}
|
|
138
|
-
return [];
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Check if a content type supports visual (image) renditions.
|
|
142
|
-
* This is useful for determining if a document can have thumbnails/previews.
|
|
143
|
-
*
|
|
144
|
-
* @param contentType - The MIME type of the source content
|
|
145
|
-
* @returns true if the content type can generate JPEG renditions
|
|
146
|
-
*
|
|
147
|
-
* @example
|
|
148
|
-
* supportsVisualRendition('image/png') // true
|
|
149
|
-
* supportsVisualRendition('application/pdf') // true
|
|
150
|
-
* supportsVisualRendition('text/markdown') // false
|
|
151
|
-
*/
|
|
152
|
-
export function supportsVisualRendition(contentType) {
|
|
153
|
-
return canGenerateRendition(contentType, ImageRenditionFormat.jpeg);
|
|
154
|
-
}
|
|
155
|
-
export var ContentObjectProcessingPriority;
|
|
156
|
-
(function (ContentObjectProcessingPriority) {
|
|
157
|
-
ContentObjectProcessingPriority["normal"] = "normal";
|
|
158
|
-
ContentObjectProcessingPriority["low"] = "low";
|
|
159
|
-
})(ContentObjectProcessingPriority || (ContentObjectProcessingPriority = {}));
|
|
160
|
-
//# sourceMappingURL=store.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/store.ts"],"names":[],"mappings":"AAKA,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IAC/B,4DAAiC,CAAA;IACjC,wEAA6C,CAAA;IAC7C,gEAAqC,CAAA;IACrC,8DAAmC,CAAA;IACnC,8EAA8E;IAC9E,sEAA2C,CAAA;AAC/C,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,2FAA2F;IAC3F,wDAAiC,CAAA;AACrC,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AAED,MAAM,CAAN,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC3B,0CAAmB,CAAA;IACnB,gDAAyB,CAAA;IACzB,sCAAe,CAAA;IACf,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACzB,CAAC,EAPW,mBAAmB,KAAnB,mBAAmB,QAO9B;AAiCD,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,8BAAa,CAAA;IACb,gCAAe,CAAA;AACnB,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB;AAmCD,MAAM,CAAC,MAAM,qBAAqB,GAAG,QAAQ,CAAC;AAC9C,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAC5C,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC;AAC9C,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC;AA8PxC,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;I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CAAC;QAChB,OAAO,CAAC,GAAG,aAAa,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,uBAAuB,CAAC,WAA+B;IACnE,OAAO,oBAAoB,CAAC,WAAW,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;AACxE,CAAC;AA+BD,MAAM,CAAN,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACvC,oDAAiB,CAAA;IACjB,8CAAW,CAAA;AACf,CAAC,EAHW,+BAA+B,KAA/B,+BAA+B,QAG1C"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export const ParentClosePolicy = {
|
|
2
|
-
/**
|
|
3
|
-
* When the Parent is Closed, the Child is Terminated.
|
|
4
|
-
*
|
|
5
|
-
* @default
|
|
6
|
-
*/
|
|
7
|
-
TERMINATE: "TERMINATE",
|
|
8
|
-
/**
|
|
9
|
-
* When the Parent is Closed, nothing is done to the Child.
|
|
10
|
-
*/
|
|
11
|
-
ABANDON: "ABANDON",
|
|
12
|
-
/**
|
|
13
|
-
* When the Parent is Closed, the Child is Cancelled.
|
|
14
|
-
*/
|
|
15
|
-
REQUEST_CANCEL: "REQUEST_CANCEL",
|
|
16
|
-
/**
|
|
17
|
-
* If a `ParentClosePolicy` is set to this, or is not set at all, the server default value will be used.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated Either leave property `undefined`, or set an explicit policy instead.
|
|
20
|
-
*/
|
|
21
|
-
PARENT_CLOSE_POLICY_UNSPECIFIED: undefined,
|
|
22
|
-
/**
|
|
23
|
-
* When the Parent is Closed, the Child is Terminated.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated Use {@link ParentClosePolicy.TERMINATE} instead.
|
|
26
|
-
*/
|
|
27
|
-
PARENT_CLOSE_POLICY_TERMINATE: "TERMINATE",
|
|
28
|
-
/**
|
|
29
|
-
* When the Parent is Closed, nothing is done to the Child.
|
|
30
|
-
*
|
|
31
|
-
* @deprecated Use {@link ParentClosePolicy.ABANDON} instead.
|
|
32
|
-
*/
|
|
33
|
-
PARENT_CLOSE_POLICY_ABANDON: "ABANDON",
|
|
34
|
-
/**
|
|
35
|
-
* When the Parent is Closed, the Child is Cancelled.
|
|
36
|
-
*
|
|
37
|
-
* @deprecated Use {@link ParentClosePolicy.REQUEST_CANCEL} instead.
|
|
38
|
-
*/
|
|
39
|
-
PARENT_CLOSE_POLICY_REQUEST_CANCEL: "REQUEST_CANCEL"
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=temporalio.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"temporalio.js","sourceRoot":"","sources":["../../../src/store/temporalio.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B;;;;OAIG;IACH,SAAS,EAAE,WAAW;IACtB;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,cAAc,EAAE,gBAAgB;IAChC;;;;OAIG;IACH,+BAA+B,EAAE,SAAS;IAC1C;;;;OAIG;IACH,6BAA6B,EAAE,WAAW;IAC1C;;;;OAIG;IACH,2BAA2B,EAAE,SAAS;IACtC;;;;OAIG;IACH,kCAAkC,EAAE,gBAAgB;CACjC,CAAC"}
|
package/lib/esm/store/worker.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../src/store/worker.ts"],"names":[],"mappings":""}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
export var ContentEventName;
|
|
2
|
-
(function (ContentEventName) {
|
|
3
|
-
ContentEventName["create"] = "create";
|
|
4
|
-
ContentEventName["change_type"] = "change_type";
|
|
5
|
-
ContentEventName["update"] = "update";
|
|
6
|
-
ContentEventName["revision_created"] = "revision_created";
|
|
7
|
-
ContentEventName["delete"] = "delete";
|
|
8
|
-
ContentEventName["workflow_finished"] = "workflow_finished";
|
|
9
|
-
ContentEventName["workflow_execution_request"] = "workflow_execution_request";
|
|
10
|
-
ContentEventName["api_request"] = "api_request";
|
|
11
|
-
})(ContentEventName || (ContentEventName = {}));
|
|
12
|
-
export function getDocumentIds(payload) {
|
|
13
|
-
if ("objectIds" in payload) {
|
|
14
|
-
return payload.objectIds;
|
|
15
|
-
}
|
|
16
|
-
return [];
|
|
17
|
-
}
|
|
18
|
-
// Task status enum for processed history
|
|
19
|
-
export var TaskStatus;
|
|
20
|
-
(function (TaskStatus) {
|
|
21
|
-
TaskStatus["SCHEDULED"] = "scheduled";
|
|
22
|
-
TaskStatus["RUNNING"] = "running";
|
|
23
|
-
TaskStatus["COMPLETED"] = "completed";
|
|
24
|
-
TaskStatus["FAILED"] = "failed";
|
|
25
|
-
TaskStatus["CANCELED"] = "canceled";
|
|
26
|
-
TaskStatus["TIMED_OUT"] = "timed_out";
|
|
27
|
-
TaskStatus["TERMINATED"] = "terminated";
|
|
28
|
-
TaskStatus["SENT"] = "sent";
|
|
29
|
-
TaskStatus["RECEIVED"] = "received";
|
|
30
|
-
})(TaskStatus || (TaskStatus = {}));
|
|
31
|
-
// Task type enum
|
|
32
|
-
export var TaskType;
|
|
33
|
-
(function (TaskType) {
|
|
34
|
-
TaskType["ACTIVITY"] = "activity";
|
|
35
|
-
TaskType["CHILD_WORKFLOW"] = "childWorkflow";
|
|
36
|
-
TaskType["SIGNAL"] = "signal";
|
|
37
|
-
})(TaskType || (TaskType = {}));
|
|
38
|
-
export var WorkflowExecutionStatus;
|
|
39
|
-
(function (WorkflowExecutionStatus) {
|
|
40
|
-
WorkflowExecutionStatus[WorkflowExecutionStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
41
|
-
WorkflowExecutionStatus[WorkflowExecutionStatus["RUNNING"] = 1] = "RUNNING";
|
|
42
|
-
WorkflowExecutionStatus[WorkflowExecutionStatus["COMPLETED"] = 2] = "COMPLETED";
|
|
43
|
-
WorkflowExecutionStatus[WorkflowExecutionStatus["FAILED"] = 3] = "FAILED";
|
|
44
|
-
WorkflowExecutionStatus[WorkflowExecutionStatus["CANCELED"] = 4] = "CANCELED";
|
|
45
|
-
WorkflowExecutionStatus[WorkflowExecutionStatus["TERMINATED"] = 5] = "TERMINATED";
|
|
46
|
-
WorkflowExecutionStatus[WorkflowExecutionStatus["CONTINUED_AS_NEW"] = 6] = "CONTINUED_AS_NEW";
|
|
47
|
-
WorkflowExecutionStatus[WorkflowExecutionStatus["TIMED_OUT"] = 7] = "TIMED_OUT";
|
|
48
|
-
})(WorkflowExecutionStatus || (WorkflowExecutionStatus = {}));
|
|
49
|
-
export var AgentMessageType;
|
|
50
|
-
(function (AgentMessageType) {
|
|
51
|
-
AgentMessageType[AgentMessageType["SYSTEM"] = 0] = "SYSTEM";
|
|
52
|
-
AgentMessageType[AgentMessageType["THOUGHT"] = 1] = "THOUGHT";
|
|
53
|
-
AgentMessageType[AgentMessageType["PLAN"] = 2] = "PLAN";
|
|
54
|
-
AgentMessageType[AgentMessageType["UPDATE"] = 3] = "UPDATE";
|
|
55
|
-
AgentMessageType[AgentMessageType["COMPLETE"] = 4] = "COMPLETE";
|
|
56
|
-
AgentMessageType[AgentMessageType["WARNING"] = 5] = "WARNING";
|
|
57
|
-
AgentMessageType[AgentMessageType["ERROR"] = 6] = "ERROR";
|
|
58
|
-
AgentMessageType[AgentMessageType["ANSWER"] = 7] = "ANSWER";
|
|
59
|
-
AgentMessageType[AgentMessageType["QUESTION"] = 8] = "QUESTION";
|
|
60
|
-
AgentMessageType[AgentMessageType["REQUEST_INPUT"] = 9] = "REQUEST_INPUT";
|
|
61
|
-
AgentMessageType[AgentMessageType["IDLE"] = 10] = "IDLE";
|
|
62
|
-
AgentMessageType[AgentMessageType["TERMINATED"] = 11] = "TERMINATED";
|
|
63
|
-
AgentMessageType[AgentMessageType["STREAMING_CHUNK"] = 12] = "STREAMING_CHUNK";
|
|
64
|
-
AgentMessageType[AgentMessageType["BATCH_PROGRESS"] = 13] = "BATCH_PROGRESS";
|
|
65
|
-
})(AgentMessageType || (AgentMessageType = {}));
|
|
66
|
-
// ============================================
|
|
67
|
-
// TYPE GUARDS
|
|
68
|
-
// ============================================
|
|
69
|
-
/**
|
|
70
|
-
* Check if a message is in compact format
|
|
71
|
-
*/
|
|
72
|
-
export function isCompactMessage(msg) {
|
|
73
|
-
return typeof msg === 'object' && msg !== null && 't' in msg;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Check if a message is in legacy format
|
|
77
|
-
*/
|
|
78
|
-
export function isLegacyMessage(msg) {
|
|
79
|
-
return typeof msg === 'object' && msg !== null && 'type' in msg && !('t' in msg);
|
|
80
|
-
}
|
|
81
|
-
// ============================================
|
|
82
|
-
// CONVERTERS
|
|
83
|
-
// ============================================
|
|
84
|
-
/**
|
|
85
|
-
* Map old string enum values to AgentMessageType
|
|
86
|
-
*/
|
|
87
|
-
const STRING_TO_TYPE_MAP = {
|
|
88
|
-
'system': AgentMessageType.SYSTEM,
|
|
89
|
-
'thought': AgentMessageType.THOUGHT,
|
|
90
|
-
'plan': AgentMessageType.PLAN,
|
|
91
|
-
'update': AgentMessageType.UPDATE,
|
|
92
|
-
'complete': AgentMessageType.COMPLETE,
|
|
93
|
-
'warning': AgentMessageType.WARNING,
|
|
94
|
-
'error': AgentMessageType.ERROR,
|
|
95
|
-
'answer': AgentMessageType.ANSWER,
|
|
96
|
-
'question': AgentMessageType.QUESTION,
|
|
97
|
-
'request_input': AgentMessageType.REQUEST_INPUT,
|
|
98
|
-
'idle': AgentMessageType.IDLE,
|
|
99
|
-
'terminated': AgentMessageType.TERMINATED,
|
|
100
|
-
'streaming_chunk': AgentMessageType.STREAMING_CHUNK,
|
|
101
|
-
'batch_progress': AgentMessageType.BATCH_PROGRESS,
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Map integer values to AgentMessageType (primary format)
|
|
105
|
-
*/
|
|
106
|
-
const INT_TO_TYPE_MAP = {
|
|
107
|
-
0: AgentMessageType.SYSTEM,
|
|
108
|
-
1: AgentMessageType.THOUGHT,
|
|
109
|
-
2: AgentMessageType.PLAN,
|
|
110
|
-
3: AgentMessageType.UPDATE,
|
|
111
|
-
4: AgentMessageType.COMPLETE,
|
|
112
|
-
5: AgentMessageType.WARNING,
|
|
113
|
-
6: AgentMessageType.ERROR,
|
|
114
|
-
7: AgentMessageType.ANSWER,
|
|
115
|
-
8: AgentMessageType.QUESTION,
|
|
116
|
-
9: AgentMessageType.REQUEST_INPUT,
|
|
117
|
-
10: AgentMessageType.IDLE,
|
|
118
|
-
11: AgentMessageType.TERMINATED,
|
|
119
|
-
12: AgentMessageType.STREAMING_CHUNK,
|
|
120
|
-
13: AgentMessageType.BATCH_PROGRESS,
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* Normalize message type from string or number to AgentMessageType
|
|
124
|
-
*/
|
|
125
|
-
export function normalizeMessageType(type) {
|
|
126
|
-
// Handle integer type (current format and AgentMessageType enum values)
|
|
127
|
-
if (typeof type === 'number') {
|
|
128
|
-
return INT_TO_TYPE_MAP[type] ?? AgentMessageType.UPDATE;
|
|
129
|
-
}
|
|
130
|
-
// Handle string type (legacy messages from Redis with 90-day TTL)
|
|
131
|
-
if (typeof type === 'string') {
|
|
132
|
-
return STRING_TO_TYPE_MAP[type] ?? AgentMessageType.UPDATE;
|
|
133
|
-
}
|
|
134
|
-
return AgentMessageType.UPDATE;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Convert legacy AgentMessage to CompactMessage
|
|
138
|
-
*/
|
|
139
|
-
export function toCompactMessage(legacy) {
|
|
140
|
-
const compact = {
|
|
141
|
-
t: normalizeMessageType(legacy.type),
|
|
142
|
-
};
|
|
143
|
-
if (legacy.message)
|
|
144
|
-
compact.m = legacy.message;
|
|
145
|
-
if (legacy.workstream_id && legacy.workstream_id !== 'main')
|
|
146
|
-
compact.w = legacy.workstream_id;
|
|
147
|
-
if (legacy.timestamp)
|
|
148
|
-
compact.ts = legacy.timestamp;
|
|
149
|
-
// Handle legacy streaming chunk details
|
|
150
|
-
if (compact.t === AgentMessageType.STREAMING_CHUNK && legacy.details) {
|
|
151
|
-
const d = legacy.details;
|
|
152
|
-
if (d.is_final)
|
|
153
|
-
compact.f = 1;
|
|
154
|
-
// streaming_id and chunk_index are no longer needed
|
|
155
|
-
}
|
|
156
|
-
else if (legacy.details) {
|
|
157
|
-
compact.d = legacy.details;
|
|
158
|
-
}
|
|
159
|
-
return compact;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Parse any message format (compact or legacy) into CompactMessage.
|
|
163
|
-
* Use this as the entry point for all received messages.
|
|
164
|
-
*/
|
|
165
|
-
export function parseMessage(data) {
|
|
166
|
-
const parsed = typeof data === 'string' ? JSON.parse(data) : data;
|
|
167
|
-
if (isCompactMessage(parsed))
|
|
168
|
-
return parsed;
|
|
169
|
-
if (isLegacyMessage(parsed))
|
|
170
|
-
return toCompactMessage(parsed);
|
|
171
|
-
throw new Error('Unknown message format');
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Create a compact message (convenience function for server-side)
|
|
175
|
-
*/
|
|
176
|
-
export function createCompactMessage(type, options = {}) {
|
|
177
|
-
const compact = { t: type };
|
|
178
|
-
if (options.message)
|
|
179
|
-
compact.m = options.message;
|
|
180
|
-
if (options.workstreamId && options.workstreamId !== 'main')
|
|
181
|
-
compact.w = options.workstreamId;
|
|
182
|
-
if (options.details)
|
|
183
|
-
compact.d = options.details;
|
|
184
|
-
if (options.isFinal)
|
|
185
|
-
compact.f = 1;
|
|
186
|
-
if (options.timestamp)
|
|
187
|
-
compact.ts = options.timestamp;
|
|
188
|
-
return compact;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Convert CompactMessage back to AgentMessage (for UI components).
|
|
192
|
-
* This allows UI to continue using familiar field names while wire format is compact.
|
|
193
|
-
* @param compact The compact message to convert
|
|
194
|
-
* @param workflowRunId Optional workflow_run_id (known from SSE context, not in compact format)
|
|
195
|
-
*/
|
|
196
|
-
export function toAgentMessage(compact, workflowRunId = '') {
|
|
197
|
-
const message = {
|
|
198
|
-
type: compact.t,
|
|
199
|
-
timestamp: compact.ts || Date.now(),
|
|
200
|
-
workflow_run_id: workflowRunId,
|
|
201
|
-
message: compact.m || '',
|
|
202
|
-
workstream_id: compact.w || 'main',
|
|
203
|
-
};
|
|
204
|
-
if (compact.d !== undefined)
|
|
205
|
-
message.details = compact.d;
|
|
206
|
-
// For streaming chunks, restore is_final and streaming_id in details
|
|
207
|
-
// (streaming_id removed from wire format, use workstream_id as grouping key)
|
|
208
|
-
if (compact.t === AgentMessageType.STREAMING_CHUNK) {
|
|
209
|
-
message.details = {
|
|
210
|
-
...(typeof compact.d === 'object' ? compact.d : {}),
|
|
211
|
-
streaming_id: compact.w || 'main', // Use workstream_id as streaming_id
|
|
212
|
-
is_final: compact.f === 1,
|
|
213
|
-
activity_id: compact.i, // For deduplication with final THOUGHT/ANSWER
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
return message;
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Status of a file being processed for conversation use.
|
|
220
|
-
*/
|
|
221
|
-
export var FileProcessingStatus;
|
|
222
|
-
(function (FileProcessingStatus) {
|
|
223
|
-
/** File is being uploaded to artifact storage */
|
|
224
|
-
FileProcessingStatus["UPLOADING"] = "uploading";
|
|
225
|
-
/** File uploaded, text extraction in progress */
|
|
226
|
-
FileProcessingStatus["PROCESSING"] = "processing";
|
|
227
|
-
/** File is ready for use in conversation */
|
|
228
|
-
FileProcessingStatus["READY"] = "ready";
|
|
229
|
-
/** File processing failed */
|
|
230
|
-
FileProcessingStatus["ERROR"] = "error";
|
|
231
|
-
})(FileProcessingStatus || (FileProcessingStatus = {}));
|
|
232
|
-
/**
|
|
233
|
-
* Get the Redis pub/sub channel name for workflow messages.
|
|
234
|
-
* Used by both publishers (workflow activities, studio-server) and subscribers (zeno-server, clients).
|
|
235
|
-
* @param workflowRunId - The Temporal workflow run ID (NOT the interaction execution run ID)
|
|
236
|
-
*/
|
|
237
|
-
export function getWorkflowChannel(workflowRunId) {
|
|
238
|
-
return `workflow:${workflowRunId}:channel`;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Get the Redis list key for storing workflow message history.
|
|
242
|
-
* Messages are stored here for retrieval by reconnecting clients.
|
|
243
|
-
* @param workflowRunId - The Temporal workflow run ID (NOT the interaction execution run ID)
|
|
244
|
-
*/
|
|
245
|
-
export function getWorkflowUpdatesKey(workflowRunId) {
|
|
246
|
-
return `workflow:${workflowRunId}:updates`;
|
|
247
|
-
}
|
|
248
|
-
export const LOW_PRIORITY_TASK_QUEUE = "low_priority";
|
|
249
|
-
//# sourceMappingURL=workflow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../src/store/workflow.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,+CAA2B,CAAA;IAC3B,qCAAiB,CAAA;IACjB,yDAAqC,CAAA;IACrC,qCAAiB,CAAA;IACjB,2DAAuC,CAAA;IACvC,6EAAyD,CAAA;IACzD,+CAA2B,CAAA;AAC/B,CAAC,EATW,gBAAgB,KAAhB,gBAAgB,QAS3B;AAuJD,MAAM,UAAU,cAAc,CAAC,OAAiC;IAC5D,IAAI,WAAW,IAAI,OAAO,EAAE,CAAC;QACzB,OAAO,OAAO,CAAC,SAAS,CAAC;IAC7B,CAAC;IACD,OAAO,EAAE,CAAC;AACd,CAAC;AAuKD,yCAAyC;AACzC,MAAM,CAAN,IAAY,UAUX;AAVD,WAAY,UAAU;IAClB,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;IACvB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,qCAAuB,CAAA;IACvB,uCAAyB,CAAA;IACzB,2BAAa,CAAA;IACb,mCAAqB,CAAA;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|
2
|
-
* STS Token Request Types
|
|
3
|
-
* These types define the structure for token requests to the Security Token Service
|
|
4
|
-
*/
|
|
5
|
-
// Helper type guards for type narrowing
|
|
6
|
-
export function isApiKeyRequest(req) {
|
|
7
|
-
return req.type === 'apikey';
|
|
8
|
-
}
|
|
9
|
-
export function isUserRequest(req) {
|
|
10
|
-
return req.type === 'user';
|
|
11
|
-
}
|
|
12
|
-
export function isProjectRequest(req) {
|
|
13
|
-
return req.type === 'project';
|
|
14
|
-
}
|
|
15
|
-
export function isEnvironmentRequest(req) {
|
|
16
|
-
return req.type === 'environment';
|
|
17
|
-
}
|
|
18
|
-
export function isAgentRequest(req) {
|
|
19
|
-
return req.type === 'agent';
|
|
20
|
-
}
|
|
21
|
-
export function isServiceAccountRequest(req) {
|
|
22
|
-
return req.type === 'service_account';
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=sts-token-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sts-token-types.js","sourceRoot":"","sources":["../../src/sts-token-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+EH,wCAAwC;AACxC,MAAM,UAAU,eAAe,CAAC,GAAsB;IAClD,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,GAAsB;IAChD,OAAO,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,GAAsB;IACnD,OAAO,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,GAAsB;IACvD,OAAO,GAAG,CAAC,IAAI,KAAK,aAAa,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,GAAsB;IACjD,OAAO,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,GAAsB;IAC1D,OAAO,GAAG,CAAC,IAAI,KAAK,iBAAiB,CAAC;AAC1C,CAAC"}
|
package/lib/esm/tenant.js
DELETED
package/lib/esm/tenant.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.js","sourceRoot":"","sources":["../../src/tenant.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-execution.js","sourceRoot":"","sources":["../../src/tool-execution.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
package/lib/esm/training.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export var TrainingSessionStatus;
|
|
2
|
-
(function (TrainingSessionStatus) {
|
|
3
|
-
TrainingSessionStatus["created"] = "created";
|
|
4
|
-
TrainingSessionStatus["building"] = "building";
|
|
5
|
-
TrainingSessionStatus["prepared"] = "prepared";
|
|
6
|
-
TrainingSessionStatus["processing"] = "processing";
|
|
7
|
-
TrainingSessionStatus["completed"] = "completed";
|
|
8
|
-
TrainingSessionStatus["cancelled"] = "cancelled";
|
|
9
|
-
TrainingSessionStatus["failed"] = "failed";
|
|
10
|
-
})(TrainingSessionStatus || (TrainingSessionStatus = {}));
|
|
11
|
-
//# sourceMappingURL=training.js.map
|
package/lib/esm/training.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"training.js","sourceRoot":"","sources":["../../src/training.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,qBAQX;AARD,WAAY,qBAAqB;IAC7B,4CAAqB,CAAA;IACrB,8CAAuB,CAAA;IACvB,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,gDAAyB,CAAA;IACzB,gDAAyB,CAAA;IACzB,0CAAmB,CAAA;AACvB,CAAC,EARW,qBAAqB,KAArB,qBAAqB,QAQhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transient-tokens.js","sourceRoot":"","sources":["../../src/transient-tokens.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,gDAA0B,CAAA;IAC1B,6CAAuB,CAAA;AAC3B,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B"}
|
package/lib/esm/user.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export const UserRefPopulate = "id name email picture";
|
|
2
|
-
export var Datacenters;
|
|
3
|
-
(function (Datacenters) {
|
|
4
|
-
Datacenters["aws"] = "aws";
|
|
5
|
-
Datacenters["gcp"] = "gcp";
|
|
6
|
-
Datacenters["azure"] = "azure";
|
|
7
|
-
})(Datacenters || (Datacenters = {}));
|
|
8
|
-
export var BillingMethod;
|
|
9
|
-
(function (BillingMethod) {
|
|
10
|
-
BillingMethod["stripe"] = "stripe";
|
|
11
|
-
BillingMethod["invoice"] = "invoice";
|
|
12
|
-
})(BillingMethod || (BillingMethod = {}));
|
|
13
|
-
export var AccountType;
|
|
14
|
-
(function (AccountType) {
|
|
15
|
-
AccountType["vertesia"] = "vertesia";
|
|
16
|
-
AccountType["partner"] = "partner";
|
|
17
|
-
AccountType["free"] = "free";
|
|
18
|
-
AccountType["customer"] = "customer";
|
|
19
|
-
AccountType["unknown"] = "unknown";
|
|
20
|
-
})(AccountType || (AccountType = {}));
|
|
21
|
-
export const AccountRefPopulate = "id name";
|
|
22
|
-
//# sourceMappingURL=user.js.map
|
package/lib/esm/user.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/user.ts"],"names":[],"mappings":"AA8BA,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB,CAAC;AAEvD,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,8BAAe,CAAA;AACnB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAGD,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;AACvB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AAED,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACnB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,4BAAa,CAAA;IACb,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACvB,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AA4CD,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC"}
|
package/lib/esm/utils/auth.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export function getTenantId(accountId, projectId) {
|
|
2
|
-
//use the last 6 characters of the accountId as the db name
|
|
3
|
-
//as in mongo the last 6 char are an incrementing counter
|
|
4
|
-
const accountLast6 = accountId.slice(-6);
|
|
5
|
-
const projectLast6 = projectId.slice(-6);
|
|
6
|
-
return accountLast6 + '_' + projectLast6;
|
|
7
|
-
}
|
|
8
|
-
export function getTenantIdFromProject(project) {
|
|
9
|
-
return getTenantId(project.account, project.id);
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=auth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/utils/auth.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,WAAW,CAAC,SAAiB,EAAE,SAAiB;IAC5D,2DAA2D;IAC3D,yDAAyD;IACzD,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACzC,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACzC,OAAO,YAAY,GAAG,GAAG,GAAG,YAAY,CAAC;AAC7C,CAAC;AACD,MAAM,UAAU,sBAAsB,CAAC,OAAmB;IACtD,OAAO,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;AACpD,CAAC"}
|