@vertesia/common 1.0.0-dev.20260203.130115Z → 1.0.0-dev.20260227.104700Z
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/cjs/Progress.js +61 -0
- package/lib/cjs/Progress.js.map +1 -0
- package/lib/cjs/access-control.js +56 -0
- package/lib/cjs/access-control.js.map +1 -0
- package/lib/cjs/analytics.js +3 -0
- package/lib/cjs/analytics.js.map +1 -0
- package/lib/cjs/apikey.js +17 -0
- package/lib/cjs/apikey.js.map +1 -0
- package/lib/cjs/apps.js +35 -0
- package/lib/cjs/apps.js.map +1 -0
- package/lib/cjs/ask-user.js +8 -0
- package/lib/cjs/ask-user.js.map +1 -0
- package/lib/cjs/audit-trail.js +3 -0
- package/lib/cjs/audit-trail.js.map +1 -0
- package/lib/cjs/channels.js +63 -0
- package/lib/cjs/channels.js.map +1 -0
- package/lib/cjs/common.js +3 -0
- package/lib/cjs/common.js.map +1 -0
- package/lib/cjs/data-platform.js +127 -0
- package/lib/cjs/data-platform.js.map +1 -0
- package/lib/cjs/email.js +20 -0
- package/lib/cjs/email.js.map +1 -0
- package/lib/cjs/environment.js +44 -0
- package/lib/cjs/environment.js.map +1 -0
- package/lib/cjs/facets.js +3 -0
- package/lib/cjs/facets.js.map +1 -0
- package/lib/cjs/group.js +5 -0
- package/lib/cjs/group.js.map +1 -0
- package/lib/cjs/index.js +56 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/integrations.js +16 -0
- package/lib/cjs/integrations.js.map +1 -0
- package/lib/cjs/interaction.js +97 -0
- package/lib/cjs/interaction.js.map +1 -0
- package/lib/cjs/json-schema.js +3 -0
- package/lib/cjs/json-schema.js.map +1 -0
- package/lib/cjs/json.js +3 -0
- package/lib/cjs/json.js.map +1 -0
- package/lib/cjs/meters.js +13 -0
- package/lib/cjs/meters.js.map +1 -0
- package/lib/cjs/model_utility.js +6 -0
- package/lib/cjs/model_utility.js.map +1 -0
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/payload.js +3 -0
- package/lib/cjs/payload.js.map +1 -0
- package/lib/cjs/pending-asks.js +7 -0
- package/lib/cjs/pending-asks.js.map +1 -0
- package/lib/cjs/project.js +143 -0
- package/lib/cjs/project.js.map +1 -0
- package/lib/cjs/prompt.js +21 -0
- package/lib/cjs/prompt.js.map +1 -0
- package/lib/cjs/query.js +3 -0
- package/lib/cjs/query.js.map +1 -0
- package/lib/cjs/rate-limiter.js +6 -0
- package/lib/cjs/rate-limiter.js.map +1 -0
- package/lib/cjs/refs.js +14 -0
- package/lib/cjs/refs.js.map +1 -0
- package/lib/cjs/runs.js +3 -0
- package/lib/cjs/runs.js.map +1 -0
- package/lib/cjs/skill.js +14 -0
- package/lib/cjs/skill.js.map +1 -0
- package/lib/cjs/store/activity-catalog.js +3 -0
- package/lib/cjs/store/activity-catalog.js.map +1 -0
- package/lib/cjs/store/collections.js +9 -0
- package/lib/cjs/store/collections.js.map +1 -0
- package/lib/cjs/store/common.js +3 -0
- package/lib/cjs/store/common.js.map +1 -0
- package/lib/cjs/store/conversation-state.js +3 -0
- package/lib/cjs/store/conversation-state.js.map +1 -0
- package/lib/cjs/store/doc-analyzer.js +3 -0
- package/lib/cjs/store/doc-analyzer.js.map +1 -0
- package/lib/cjs/store/dsl-workflow.js +5 -0
- package/lib/cjs/store/dsl-workflow.js.map +1 -0
- package/lib/cjs/store/hive-memory.js +3 -0
- package/lib/cjs/store/hive-memory.js.map +1 -0
- package/lib/cjs/store/index.js +32 -0
- package/lib/cjs/store/index.js.map +1 -0
- package/lib/cjs/store/object-types.js +98 -0
- package/lib/cjs/store/object-types.js.map +1 -0
- package/lib/cjs/store/rendering.js +22 -0
- package/lib/cjs/store/rendering.js.map +1 -0
- package/lib/cjs/store/schedule.js +32 -0
- package/lib/cjs/store/schedule.js.map +1 -0
- package/lib/cjs/store/signals.js +3 -0
- package/lib/cjs/store/signals.js.map +1 -0
- package/lib/cjs/store/store.js +179 -0
- package/lib/cjs/store/store.js.map +1 -0
- package/lib/cjs/store/temporalio.js +44 -0
- package/lib/cjs/store/temporalio.js.map +1 -0
- package/lib/cjs/store/worker.js +3 -0
- package/lib/cjs/store/worker.js.map +1 -0
- package/lib/cjs/store/workflow.js +305 -0
- package/lib/cjs/store/workflow.js.map +1 -0
- package/lib/cjs/sts-token-types.js +32 -0
- package/lib/cjs/sts-token-types.js.map +1 -0
- package/lib/cjs/tenant.js +3 -0
- package/lib/cjs/tenant.js.map +1 -0
- package/lib/cjs/tool-execution.js +6 -0
- package/lib/cjs/tool-execution.js.map +1 -0
- package/lib/cjs/training.js +14 -0
- package/lib/cjs/training.js.map +1 -0
- package/lib/cjs/transient-tokens.js +9 -0
- package/lib/cjs/transient-tokens.js.map +1 -0
- package/lib/cjs/user.js +25 -0
- package/lib/cjs/user.js.map +1 -0
- package/lib/cjs/utils/auth.js +15 -0
- package/lib/cjs/utils/auth.js.map +1 -0
- package/lib/cjs/utils/schemas.js +138 -0
- package/lib/cjs/utils/schemas.js.map +1 -0
- package/lib/cjs/utils/type-helpers.js +3 -0
- package/lib/cjs/utils/type-helpers.js.map +1 -0
- package/lib/cjs/versions.js +9 -0
- package/lib/cjs/versions.js.map +1 -0
- package/lib/cjs/workflow-analytics.js +52 -0
- package/lib/cjs/workflow-analytics.js.map +1 -0
- package/lib/esm/Progress.js +57 -0
- package/lib/esm/Progress.js.map +1 -0
- package/lib/esm/access-control.js +53 -0
- package/lib/esm/access-control.js.map +1 -0
- package/lib/esm/analytics.js +2 -0
- package/lib/esm/analytics.js.map +1 -0
- package/lib/esm/apikey.js +14 -0
- package/lib/esm/apikey.js.map +1 -0
- package/lib/esm/apps.js +32 -0
- package/lib/esm/apps.js.map +1 -0
- package/lib/esm/ask-user.js +7 -0
- package/lib/esm/ask-user.js.map +1 -0
- package/lib/esm/audit-trail.js +2 -0
- package/lib/esm/audit-trail.js.map +1 -0
- package/lib/esm/channels.js +57 -0
- package/lib/esm/channels.js.map +1 -0
- package/lib/esm/common.js +2 -0
- package/lib/esm/common.js.map +1 -0
- package/lib/esm/data-platform.js +124 -0
- package/lib/esm/data-platform.js.map +1 -0
- package/lib/esm/email.js +16 -0
- package/lib/esm/email.js.map +1 -0
- package/lib/esm/environment.js +41 -0
- package/lib/esm/environment.js.map +1 -0
- package/lib/esm/facets.js +2 -0
- package/lib/esm/facets.js.map +1 -0
- package/lib/esm/group.js +2 -0
- package/lib/esm/group.js.map +1 -0
- package/lib/esm/index.js +40 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/integrations.js +13 -0
- package/lib/esm/integrations.js.map +1 -0
- package/lib/esm/interaction.js +92 -0
- package/lib/esm/interaction.js.map +1 -0
- package/lib/esm/json-schema.js +2 -0
- package/lib/esm/json-schema.js.map +1 -0
- package/lib/esm/json.js +2 -0
- package/lib/esm/json.js.map +1 -0
- package/lib/esm/meters.js +10 -0
- package/lib/esm/meters.js.map +1 -0
- package/lib/esm/model_utility.js +2 -0
- package/lib/esm/model_utility.js.map +1 -0
- package/lib/esm/payload.js +2 -0
- package/lib/esm/payload.js.map +1 -0
- package/lib/esm/pending-asks.js +6 -0
- package/lib/esm/pending-asks.js.map +1 -0
- package/lib/esm/project.js +138 -0
- package/lib/esm/project.js.map +1 -0
- package/lib/esm/prompt.js +18 -0
- package/lib/esm/prompt.js.map +1 -0
- package/lib/esm/query.js +2 -0
- package/lib/esm/query.js.map +1 -0
- package/lib/esm/rate-limiter.js +5 -0
- package/lib/esm/rate-limiter.js.map +1 -0
- package/lib/esm/refs.js +11 -0
- package/lib/esm/refs.js.map +1 -0
- package/lib/esm/runs.js +2 -0
- package/lib/esm/runs.js.map +1 -0
- package/lib/esm/skill.js +13 -0
- package/lib/esm/skill.js.map +1 -0
- package/lib/esm/store/activity-catalog.js +2 -0
- package/lib/esm/store/activity-catalog.js.map +1 -0
- package/lib/esm/store/collections.js +6 -0
- package/lib/esm/store/collections.js.map +1 -0
- package/lib/esm/store/common.js +2 -0
- package/lib/esm/store/common.js.map +1 -0
- package/lib/esm/store/conversation-state.js +2 -0
- package/lib/esm/store/conversation-state.js.map +1 -0
- package/lib/esm/store/doc-analyzer.js +2 -0
- package/lib/esm/store/doc-analyzer.js.map +1 -0
- package/lib/esm/store/dsl-workflow.js +2 -0
- package/lib/esm/store/dsl-workflow.js.map +1 -0
- package/lib/esm/store/hive-memory.js +2 -0
- package/lib/esm/store/hive-memory.js.map +1 -0
- package/lib/esm/store/index.js +16 -0
- package/lib/esm/store/index.js.map +1 -0
- package/lib/esm/store/object-types.js +95 -0
- package/lib/esm/store/object-types.js.map +1 -0
- package/lib/esm/store/rendering.js +18 -0
- package/lib/esm/store/rendering.js.map +1 -0
- package/lib/esm/store/schedule.js +29 -0
- package/lib/esm/store/schedule.js.map +1 -0
- package/lib/esm/store/signals.js +2 -0
- package/lib/esm/store/signals.js.map +1 -0
- package/lib/esm/store/store.js +171 -0
- package/lib/esm/store/store.js.map +1 -0
- package/lib/esm/store/temporalio.js +41 -0
- package/lib/esm/store/temporalio.js.map +1 -0
- package/lib/esm/store/worker.js +2 -0
- package/lib/esm/store/worker.js.map +1 -0
- package/lib/esm/store/workflow.js +287 -0
- package/lib/esm/store/workflow.js.map +1 -0
- package/lib/esm/sts-token-types.js +24 -0
- package/lib/esm/sts-token-types.js.map +1 -0
- package/lib/esm/tenant.js +2 -0
- package/lib/esm/tenant.js.map +1 -0
- package/lib/esm/tool-execution.js +5 -0
- package/lib/esm/tool-execution.js.map +1 -0
- package/lib/esm/training.js +11 -0
- package/lib/esm/training.js.map +1 -0
- package/lib/esm/transient-tokens.js +6 -0
- package/lib/esm/transient-tokens.js.map +1 -0
- package/lib/esm/user.js +22 -0
- package/lib/esm/user.js.map +1 -0
- package/lib/esm/utils/auth.js +11 -0
- package/lib/esm/utils/auth.js.map +1 -0
- package/lib/esm/utils/schemas.js +129 -0
- package/lib/esm/utils/schemas.js.map +1 -0
- package/lib/esm/utils/type-helpers.js +2 -0
- package/lib/esm/utils/type-helpers.js.map +1 -0
- package/lib/esm/versions.js +6 -0
- package/lib/esm/versions.js.map +1 -0
- package/lib/esm/workflow-analytics.js +49 -0
- package/lib/esm/workflow-analytics.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/types/Progress.d.ts +21 -0
- package/lib/types/Progress.d.ts.map +1 -0
- package/lib/types/access-control.d.ts +73 -0
- package/lib/types/access-control.d.ts.map +1 -0
- package/lib/types/analytics.d.ts +87 -0
- package/lib/types/analytics.d.ts.map +1 -0
- package/lib/types/apikey.d.ts +99 -0
- package/lib/types/apikey.d.ts.map +1 -0
- package/lib/types/apps.d.ts +481 -0
- package/lib/types/apps.d.ts.map +1 -0
- package/lib/types/ask-user.d.ts +32 -0
- package/lib/types/ask-user.d.ts.map +1 -0
- package/lib/types/audit-trail.d.ts +49 -0
- package/lib/types/audit-trail.d.ts.map +1 -0
- package/lib/types/channels.d.ts +21 -0
- package/lib/types/channels.d.ts.map +1 -0
- package/lib/types/common.d.ts +31 -0
- package/lib/types/common.d.ts.map +1 -0
- package/lib/types/data-platform.d.ts +860 -0
- package/lib/types/data-platform.d.ts.map +1 -0
- package/lib/types/email.d.ts +66 -0
- package/lib/types/email.d.ts.map +1 -0
- package/lib/types/environment.d.ts +106 -0
- package/lib/types/environment.d.ts.map +1 -0
- package/lib/types/facets.d.ts +34 -0
- package/lib/types/facets.d.ts.map +1 -0
- package/lib/types/group.d.ts +21 -0
- package/lib/types/group.d.ts.map +1 -0
- package/lib/types/index.d.ts +40 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/integrations.d.ts +68 -0
- package/lib/types/integrations.d.ts.map +1 -0
- package/lib/types/interaction.d.ts +965 -0
- package/lib/types/interaction.d.ts.map +1 -0
- package/lib/types/json-schema.d.ts +1 -0
- package/lib/types/json-schema.d.ts.map +1 -0
- package/lib/types/json.d.ts +1 -0
- package/lib/types/json.d.ts.map +1 -0
- package/lib/types/meters.d.ts +23 -0
- package/lib/types/meters.d.ts.map +1 -0
- package/lib/types/model_utility.d.ts +1 -0
- package/lib/types/model_utility.d.ts.map +1 -0
- package/lib/types/payload.d.ts +60 -0
- package/lib/types/payload.d.ts.map +1 -0
- package/lib/types/pending-asks.d.ts +93 -0
- package/lib/types/pending-asks.d.ts.map +1 -0
- package/lib/types/project.d.ts +434 -0
- package/lib/types/project.d.ts.map +1 -0
- package/lib/types/prompt.d.ts +77 -0
- package/lib/types/prompt.d.ts.map +1 -0
- package/lib/types/query.d.ts +118 -0
- package/lib/types/query.d.ts.map +1 -0
- package/lib/types/rate-limiter.d.ts +28 -0
- package/lib/types/rate-limiter.d.ts.map +1 -0
- package/lib/types/refs.d.ts +22 -0
- package/lib/types/refs.d.ts.map +1 -0
- package/lib/types/runs.d.ts +32 -0
- package/lib/types/runs.d.ts.map +1 -0
- package/lib/types/skill.d.ts +78 -0
- package/lib/types/skill.d.ts.map +1 -0
- package/lib/types/store/activity-catalog.d.ts +26 -0
- package/lib/types/store/activity-catalog.d.ts.map +1 -0
- package/lib/types/store/collections.d.ts +78 -0
- package/lib/types/store/collections.d.ts.map +1 -0
- package/lib/types/store/common.d.ts +22 -0
- package/lib/types/store/common.d.ts.map +1 -0
- package/lib/types/store/conversation-state.d.ts +132 -0
- package/lib/types/store/conversation-state.d.ts.map +1 -0
- package/lib/types/store/doc-analyzer.d.ts +140 -0
- package/lib/types/store/doc-analyzer.d.ts.map +1 -0
- package/lib/types/store/dsl-workflow.d.ts +272 -0
- package/lib/types/store/dsl-workflow.d.ts.map +1 -0
- package/lib/types/store/hive-memory.d.ts +116 -0
- package/lib/types/store/hive-memory.d.ts.map +1 -0
- package/lib/types/store/index.d.ts +15 -0
- package/lib/types/store/index.d.ts.map +1 -0
- package/lib/types/store/object-types.d.ts +23 -0
- package/lib/types/store/object-types.d.ts.map +1 -0
- package/lib/types/store/rendering.d.ts +193 -0
- package/lib/types/store/rendering.d.ts.map +1 -0
- package/lib/types/store/schedule.d.ts +184 -0
- package/lib/types/store/schedule.d.ts.map +1 -0
- package/lib/types/store/signals.d.ts +24 -0
- package/lib/types/store/signals.d.ts.map +1 -0
- package/lib/types/store/store.d.ts +436 -0
- package/lib/types/store/store.d.ts.map +1 -0
- package/lib/types/store/temporalio.d.ts +16 -0
- package/lib/types/store/temporalio.d.ts.map +1 -0
- package/lib/types/store/worker.d.ts +18 -0
- package/lib/types/store/worker.d.ts.map +1 -0
- package/lib/types/store/workflow.d.ts +948 -0
- package/lib/types/store/workflow.d.ts.map +1 -0
- package/lib/types/sts-token-types.d.ts +72 -0
- package/lib/types/sts-token-types.d.ts.map +1 -0
- package/lib/types/tenant.d.ts +10 -0
- package/lib/types/tenant.d.ts.map +1 -0
- package/lib/types/tool-execution.d.ts +45 -0
- package/lib/types/tool-execution.d.ts.map +1 -0
- package/lib/types/training.d.ts +38 -0
- package/lib/types/training.d.ts.map +1 -0
- package/lib/types/transient-tokens.d.ts +24 -0
- package/lib/types/transient-tokens.d.ts.map +1 -0
- package/lib/types/user.d.ts +125 -0
- package/lib/types/user.d.ts.map +1 -0
- package/lib/types/utils/auth.d.ts +3 -0
- package/lib/types/utils/auth.d.ts.map +1 -0
- package/lib/types/utils/schemas.d.ts +18 -0
- package/lib/types/utils/schemas.d.ts.map +1 -0
- package/lib/types/utils/type-helpers.d.ts +3 -0
- package/lib/types/utils/type-helpers.d.ts.map +1 -0
- package/lib/types/versions.d.ts +4 -0
- package/lib/types/versions.d.ts.map +1 -0
- package/lib/types/workflow-analytics.d.ts +777 -0
- package/lib/types/workflow-analytics.d.ts.map +1 -0
- package/lib/vertesia-common.js +2 -0
- package/lib/vertesia-common.js.map +1 -0
- package/package.json +4 -6
- package/src/apikey.ts +1 -0
- package/src/apps.ts +193 -2
- package/src/audit-trail.ts +61 -0
- package/src/index.ts +1 -0
- package/src/integrations.ts +10 -0
- package/src/interaction.ts +12 -12
- package/src/project.ts +226 -0
- package/src/prompt.ts +3 -4
- package/src/store/conversation-state.ts +9 -0
- package/src/store/doc-analyzer.ts +1 -1
- package/src/store/dsl-workflow.ts +20 -0
- package/src/store/index.ts +1 -0
- package/src/store/rendering.ts +233 -0
- package/src/store/schedule.ts +3 -0
- package/src/store/store.ts +40 -5
- package/src/store/workflow.ts +184 -7
- package/src/user.ts +11 -0
- package/src/utils/schemas.ts +33 -11
- package/src/versions.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refs.js","sourceRoot":"","sources":["../../src/refs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,iBAQX;AARD,WAAY,iBAAiB;IACzB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,kCAAa,CAAA;IACb,wCAAmB,CAAA;IACnB,gDAA2B,CAAA;IAC3B,4CAAuB,CAAA;AAC3B,CAAC,EARW,iBAAiB,KAAjB,iBAAiB,QAQ5B"}
|
package/lib/esm/runs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../src/runs.ts"],"names":[],"mappings":""}
|
package/lib/esm/skill.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill types for interaction-based skills.
|
|
3
|
+
*
|
|
4
|
+
* Skills are interactions with `agent_runner_options.is_skill = true`.
|
|
5
|
+
* They provide contextual instructions to agents without executing code.
|
|
6
|
+
* When a skill is called, its rendered prompt is returned as instructions.
|
|
7
|
+
*
|
|
8
|
+
* Skills can have associated scripts stored at:
|
|
9
|
+
* skills/{skill_name}/*.py, *.js, etc.
|
|
10
|
+
* These are automatically synced to the sandbox when the skill is used.
|
|
11
|
+
*/
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=skill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill.js","sourceRoot":"","sources":["../../src/skill.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-catalog.js","sourceRoot":"","sources":["../../../src/store/activity-catalog.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../../src/store/collections.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;AACzB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/store/common.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-state.js","sourceRoot":"","sources":["../../../src/store/conversation-state.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doc-analyzer.js","sourceRoot":"","sources":["../../../src/store/doc-analyzer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dsl-workflow.js","sourceRoot":"","sources":["../../../src/store/dsl-workflow.ts"],"names":[],"mappings":"AAyTA,MAAM,CAAC,MAAM,6BAA6B,GAAG,gDAAgD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hive-memory.js","sourceRoot":"","sources":["../../../src/store/hive-memory.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./activity-catalog.js";
|
|
2
|
+
export * from "./collections.js";
|
|
3
|
+
export * from "./common.js";
|
|
4
|
+
export * from "./conversation-state.js";
|
|
5
|
+
export * from "./doc-analyzer.js";
|
|
6
|
+
export * from "./dsl-workflow.js";
|
|
7
|
+
export * from "./hive-memory.js";
|
|
8
|
+
export * from "./object-types.js";
|
|
9
|
+
export * from "./schedule.js";
|
|
10
|
+
export * from "./signals.js";
|
|
11
|
+
export * from "./store.js";
|
|
12
|
+
export * from "./rendering.js";
|
|
13
|
+
export * from "./temporalio.js";
|
|
14
|
+
export * from "./worker.js";
|
|
15
|
+
export * from "./workflow.js";
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export const RenditionSchema = {
|
|
2
|
+
type: "object",
|
|
3
|
+
description: "Represent a rendition of a file stored in an object. It will be stored as a separate object in the database.",
|
|
4
|
+
properties: {
|
|
5
|
+
mime_type: {
|
|
6
|
+
type: "string",
|
|
7
|
+
description: "The format of the rendition. This is a MIME type."
|
|
8
|
+
},
|
|
9
|
+
source_etag: {
|
|
10
|
+
type: "string",
|
|
11
|
+
description: "The ETag of the file used for the rendition.",
|
|
12
|
+
nullable: true
|
|
13
|
+
},
|
|
14
|
+
height: {
|
|
15
|
+
type: "integer",
|
|
16
|
+
description: "The height of the rendition",
|
|
17
|
+
nullable: true
|
|
18
|
+
},
|
|
19
|
+
width: {
|
|
20
|
+
type: "integer",
|
|
21
|
+
description: "The width of the rendition",
|
|
22
|
+
nullable: true
|
|
23
|
+
},
|
|
24
|
+
multipart: {
|
|
25
|
+
type: "boolean",
|
|
26
|
+
description: "If the rendition is a multi-part rendition",
|
|
27
|
+
nullable: true,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
total_parts: {
|
|
31
|
+
type: "integer",
|
|
32
|
+
description: "The total number of parts in the rendition",
|
|
33
|
+
nullable: true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
required: ["mime_type"],
|
|
37
|
+
};
|
|
38
|
+
export const DocumentPartSchema = {
|
|
39
|
+
type: "object",
|
|
40
|
+
description: "Represent a semantic chunk of a document",
|
|
41
|
+
properties: {
|
|
42
|
+
source_etag: {
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "The ETag of the file used for the rendition.",
|
|
45
|
+
nullable: true
|
|
46
|
+
},
|
|
47
|
+
part_number: {
|
|
48
|
+
type: "integer",
|
|
49
|
+
description: "The part number of the chunk",
|
|
50
|
+
},
|
|
51
|
+
title: {
|
|
52
|
+
type: "string",
|
|
53
|
+
description: "The title of the chunk",
|
|
54
|
+
nullable: true
|
|
55
|
+
},
|
|
56
|
+
source_line_start: {
|
|
57
|
+
type: "integer",
|
|
58
|
+
description: "The line number where the chunk starts",
|
|
59
|
+
nullable: true
|
|
60
|
+
},
|
|
61
|
+
source_line_end: {
|
|
62
|
+
type: "integer",
|
|
63
|
+
description: "The line number where the chunk ends",
|
|
64
|
+
nullable: true
|
|
65
|
+
},
|
|
66
|
+
type: {
|
|
67
|
+
type: "string",
|
|
68
|
+
description: "The type of the chunk",
|
|
69
|
+
enum: ['text', 'image', 'table', 'chart', 'diagram', 'code', 'other'],
|
|
70
|
+
nullable: true
|
|
71
|
+
},
|
|
72
|
+
page_number: {
|
|
73
|
+
type: "integer",
|
|
74
|
+
description: "The page number of the document part",
|
|
75
|
+
nullable: true
|
|
76
|
+
},
|
|
77
|
+
description: {
|
|
78
|
+
type: "string",
|
|
79
|
+
description: "The description of the document part, if it's an image, the exhaustive description of the image",
|
|
80
|
+
nullable: true
|
|
81
|
+
},
|
|
82
|
+
height: {
|
|
83
|
+
type: "integer",
|
|
84
|
+
description: "The height of the rendition",
|
|
85
|
+
nullable: true
|
|
86
|
+
},
|
|
87
|
+
width: {
|
|
88
|
+
type: "integer",
|
|
89
|
+
description: "The width of the rendition",
|
|
90
|
+
nullable: true
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
required: ["part_number"],
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=object-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object-types.js","sourceRoot":"","sources":["../../../src/store/object-types.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,eAAe,GAAwC;IAEhE,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,8GAA8G;IAC3H,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mDAAmD;SACnE;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,IAAI;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,IAAI;SACjB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,KAAK;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,CAAC,WAAW,CAAC;CAC1B,CAAA;AAoBD,MAAM,CAAC,MAAM,kBAAkB,GAA2C;IACtE,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,0CAA0C;IACvD,UAAU,EAAE;QACR,WAAW,EAAE;YACT,IAAI,EAAE,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{ WorkflowExecutionStatus } from "./workflow.js";
|
|
7
|
+
/** Type guard for markdown rendition vars */
|
|
8
|
+
export function isMarkdownRenditionVars(vars) {
|
|
9
|
+
return vars.format === 'pdf' || vars.format === 'docx';
|
|
10
|
+
}
|
|
11
|
+
export function isWorkflowTerminalStatus(status) {
|
|
12
|
+
return status === WorkflowExecutionStatus.COMPLETED
|
|
13
|
+
|| status === WorkflowExecutionStatus.FAILED
|
|
14
|
+
|| status === WorkflowExecutionStatus.CANCELED
|
|
15
|
+
|| status === WorkflowExecutionStatus.TERMINATED
|
|
16
|
+
|| status === WorkflowExecutionStatus.TIMED_OUT;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=rendering.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rendering.js","sourceRoot":"","sources":["../../../src/store/rendering.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,uBAAuB,EAAqB,MAAM,eAAe,CAAC;AAoE3E,6CAA6C;AAC7C,MAAM,UAAU,uBAAuB,CACnC,IAA2B;IAE3B,OAAO,IAAI,CAAC,MAAM,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC;AAC3D,CAAC;AAkJD,MAAM,UAAU,wBAAwB,CAAC,MAA+B;IACpE,OAAO,MAAM,KAAK,uBAAuB,CAAC,SAAS;WAC5C,MAAM,KAAK,uBAAuB,CAAC,MAAM;WACzC,MAAM,KAAK,uBAAuB,CAAC,QAAQ;WAC3C,MAAM,KAAK,uBAAuB,CAAC,UAAU;WAC7C,MAAM,KAAK,uBAAuB,CAAC,SAAS,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Schedule Types
|
|
3
|
+
*
|
|
4
|
+
* Defines types for scheduling agents to run on a recurring basis using cron expressions.
|
|
5
|
+
* Schedules are stored in MongoDB with execution handled by Temporal.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Common cron expression presets for UI convenience.
|
|
9
|
+
*/
|
|
10
|
+
export const CRON_PRESETS = {
|
|
11
|
+
EVERY_HOUR: '0 * * * *',
|
|
12
|
+
EVERY_DAY_MIDNIGHT: '0 0 * * *',
|
|
13
|
+
EVERY_DAY_9AM: '0 9 * * *',
|
|
14
|
+
EVERY_MONDAY_MIDNIGHT: '0 0 * * MON',
|
|
15
|
+
EVERY_WEEKDAY_9AM: '0 9 * * MON-FRI',
|
|
16
|
+
FIRST_OF_MONTH: '0 0 1 * *',
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Human-readable descriptions for cron presets.
|
|
20
|
+
*/
|
|
21
|
+
export const CRON_PRESET_LABELS = {
|
|
22
|
+
EVERY_HOUR: 'Every hour',
|
|
23
|
+
EVERY_DAY_MIDNIGHT: 'Daily at midnight',
|
|
24
|
+
EVERY_DAY_9AM: 'Daily at 9:00 AM',
|
|
25
|
+
EVERY_MONDAY_MIDNIGHT: 'Every Monday at midnight',
|
|
26
|
+
EVERY_WEEKDAY_9AM: 'Weekdays at 9:00 AM',
|
|
27
|
+
FIRST_OF_MONTH: 'First day of month at midnight',
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../../src/store/schedule.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAqNH;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,UAAU,EAAE,WAAW;IACvB,kBAAkB,EAAE,WAAW;IAC/B,aAAa,EAAE,WAAW;IAC1B,qBAAqB,EAAE,aAAa;IACpC,iBAAiB,EAAE,iBAAiB;IACpC,cAAc,EAAE,WAAW;CACrB,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA8C;IACzE,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,mBAAmB;IACvC,aAAa,EAAE,kBAAkB;IACjC,qBAAqB,EAAE,0BAA0B;IACjD,iBAAiB,EAAE,qBAAqB;IACxC,cAAc,EAAE,gCAAgC;CACnD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signals.js","sourceRoot":"","sources":["../../../src/store/signals.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,171 @@
|
|
|
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 function getContentTypeRefId(type) {
|
|
42
|
+
return type.id || type.code;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the type id represents an in-code type (system or app-contributed).
|
|
46
|
+
* In-code types use colon-separated ids like "sys:Invoice" or "app:myapp:Article".
|
|
47
|
+
* These types are read-only and cannot be edited through the UI.
|
|
48
|
+
*/
|
|
49
|
+
export function isInCodeType(typeId) {
|
|
50
|
+
return typeId.includes(':');
|
|
51
|
+
}
|
|
52
|
+
export var WorkflowRuleInputType;
|
|
53
|
+
(function (WorkflowRuleInputType) {
|
|
54
|
+
WorkflowRuleInputType["single"] = "single";
|
|
55
|
+
WorkflowRuleInputType["multiple"] = "multiple";
|
|
56
|
+
WorkflowRuleInputType["none"] = "none";
|
|
57
|
+
})(WorkflowRuleInputType || (WorkflowRuleInputType = {}));
|
|
58
|
+
export var ImageRenditionFormat;
|
|
59
|
+
(function (ImageRenditionFormat) {
|
|
60
|
+
ImageRenditionFormat["jpeg"] = "jpeg";
|
|
61
|
+
ImageRenditionFormat["png"] = "png";
|
|
62
|
+
ImageRenditionFormat["webp"] = "webp";
|
|
63
|
+
})(ImageRenditionFormat || (ImageRenditionFormat = {}));
|
|
64
|
+
export var MarkdownRenditionFormat;
|
|
65
|
+
(function (MarkdownRenditionFormat) {
|
|
66
|
+
MarkdownRenditionFormat["docx"] = "docx";
|
|
67
|
+
MarkdownRenditionFormat["pdf"] = "pdf";
|
|
68
|
+
})(MarkdownRenditionFormat || (MarkdownRenditionFormat = {}));
|
|
69
|
+
/**
|
|
70
|
+
* Matrix of supported content type → format conversions.
|
|
71
|
+
* This is the authoritative source of truth for what renditions can be generated.
|
|
72
|
+
*
|
|
73
|
+
* Key patterns:
|
|
74
|
+
* - Exact MIME types (e.g., 'application/pdf')
|
|
75
|
+
* - Wildcard patterns (e.g., 'image/*', 'video/*')
|
|
76
|
+
*/
|
|
77
|
+
const RENDITION_COMPATIBILITY = {
|
|
78
|
+
// Image formats can generate: jpeg, png, webp
|
|
79
|
+
'image/*': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png, ImageRenditionFormat.webp],
|
|
80
|
+
// Video formats can generate: jpeg, png (thumbnails)
|
|
81
|
+
'video/*': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png],
|
|
82
|
+
// PDF can generate: jpeg, png, webp (page images)
|
|
83
|
+
'application/pdf': [ImageRenditionFormat.jpeg, ImageRenditionFormat.png, ImageRenditionFormat.webp],
|
|
84
|
+
// Markdown can generate: pdf, docx (NOT jpeg/png)
|
|
85
|
+
'text/markdown': [MarkdownRenditionFormat.pdf, MarkdownRenditionFormat.docx],
|
|
86
|
+
// Any text/* can generate: docx (editable export)
|
|
87
|
+
'text/*': [MarkdownRenditionFormat.docx],
|
|
88
|
+
// Office documents can generate: pdf
|
|
89
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': [MarkdownRenditionFormat.pdf],
|
|
90
|
+
'application/msword': [MarkdownRenditionFormat.pdf],
|
|
91
|
+
'application/vnd.openxmlformats-officedocument.presentationml.presentation': [MarkdownRenditionFormat.pdf],
|
|
92
|
+
'application/vnd.ms-powerpoint': [MarkdownRenditionFormat.pdf],
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Check if a specific rendition format can be generated from a content type.
|
|
96
|
+
*
|
|
97
|
+
* @param contentType - The MIME type of the source content (e.g., 'image/png', 'text/markdown')
|
|
98
|
+
* @param format - The desired rendition format (e.g., ImageRenditionFormat.jpeg)
|
|
99
|
+
* @returns true if the format can be generated from the content type
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* canGenerateRendition('image/png', ImageRenditionFormat.jpeg) // true
|
|
103
|
+
* canGenerateRendition('text/markdown', ImageRenditionFormat.jpeg) // false
|
|
104
|
+
* canGenerateRendition('text/markdown', MarkdownRenditionFormat.pdf) // true
|
|
105
|
+
*/
|
|
106
|
+
export function canGenerateRendition(contentType, format) {
|
|
107
|
+
if (!contentType)
|
|
108
|
+
return false;
|
|
109
|
+
const formatStr = typeof format === 'string' ? format : format;
|
|
110
|
+
// Check exact match first
|
|
111
|
+
const exactMatch = RENDITION_COMPATIBILITY[contentType];
|
|
112
|
+
if (exactMatch && exactMatch.some(f => f === formatStr)) {
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
// Check wildcard patterns (e.g., 'image/*', 'video/*')
|
|
116
|
+
const [category] = contentType.split('/');
|
|
117
|
+
const wildcardKey = `${category}/*`;
|
|
118
|
+
const wildcardMatch = RENDITION_COMPATIBILITY[wildcardKey];
|
|
119
|
+
if (wildcardMatch && wildcardMatch.some(f => f === formatStr)) {
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Get the list of rendition formats supported for a given content type.
|
|
126
|
+
*
|
|
127
|
+
* @param contentType - The MIME type of the source content
|
|
128
|
+
* @returns Array of supported rendition formats, or empty array if none
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* getSupportedRenditionFormats('image/png') // [jpeg, png, webp]
|
|
132
|
+
* getSupportedRenditionFormats('text/markdown') // [pdf, docx]
|
|
133
|
+
* getSupportedRenditionFormats('text/html') // []
|
|
134
|
+
*/
|
|
135
|
+
export function getSupportedRenditionFormats(contentType) {
|
|
136
|
+
if (!contentType)
|
|
137
|
+
return [];
|
|
138
|
+
// Check exact match first
|
|
139
|
+
if (RENDITION_COMPATIBILITY[contentType]) {
|
|
140
|
+
return [...RENDITION_COMPATIBILITY[contentType]];
|
|
141
|
+
}
|
|
142
|
+
// Check wildcard patterns
|
|
143
|
+
const [category] = contentType.split('/');
|
|
144
|
+
const wildcardKey = `${category}/*`;
|
|
145
|
+
const wildcardMatch = RENDITION_COMPATIBILITY[wildcardKey];
|
|
146
|
+
if (wildcardMatch) {
|
|
147
|
+
return [...wildcardMatch];
|
|
148
|
+
}
|
|
149
|
+
return [];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Check if a content type supports visual (image) renditions.
|
|
153
|
+
* This is useful for determining if a document can have thumbnails/previews.
|
|
154
|
+
*
|
|
155
|
+
* @param contentType - The MIME type of the source content
|
|
156
|
+
* @returns true if the content type can generate JPEG renditions
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* supportsVisualRendition('image/png') // true
|
|
160
|
+
* supportsVisualRendition('application/pdf') // true
|
|
161
|
+
* supportsVisualRendition('text/markdown') // false
|
|
162
|
+
*/
|
|
163
|
+
export function supportsVisualRendition(contentType) {
|
|
164
|
+
return canGenerateRendition(contentType, ImageRenditionFormat.jpeg);
|
|
165
|
+
}
|
|
166
|
+
export var ContentObjectProcessingPriority;
|
|
167
|
+
(function (ContentObjectProcessingPriority) {
|
|
168
|
+
ContentObjectProcessingPriority["normal"] = "normal";
|
|
169
|
+
ContentObjectProcessingPriority["low"] = "low";
|
|
170
|
+
})(ContentObjectProcessingPriority || (ContentObjectProcessingPriority = {}));
|
|
171
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/store.ts"],"names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AQ,IAAI,CAAC;IACpC,MAAM,aAAa,GAAG,uBAAuB,CAAC,WAAW,CAAC,CAAC;IAC3D,IAAI,aAAa,EAAE,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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../src/store/worker.ts"],"names":[],"mappings":""}
|