@vertesia/common 1.5.0-dev.20260807.073259Z → 1.5.0-dev.20260901.005903Z
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/access-control.d.ts +0 -14
- package/lib/access-control.d.ts.map +1 -1
- package/lib/access-control.js +0 -23
- package/lib/access-control.js.map +1 -1
- package/lib/account-values.d.ts +0 -10
- package/lib/account-values.d.ts.map +1 -1
- package/lib/account-values.js +0 -44
- package/lib/account-values.js.map +1 -1
- package/lib/api-contract/components.generated.json +40405 -0
- package/lib/api-contract/index.d.ts +186 -0
- package/lib/api-contract/index.d.ts.map +1 -0
- package/lib/api-contract/index.js +554 -0
- package/lib/api-contract/index.js.map +1 -0
- package/lib/api-schemas/agent-communication.d.ts +199 -0
- package/lib/api-schemas/agent-communication.d.ts.map +1 -0
- package/lib/api-schemas/agent-communication.js +150 -0
- package/lib/api-schemas/agent-communication.js.map +1 -0
- package/lib/api-schemas/agent-runs.d.ts +593 -0
- package/lib/api-schemas/agent-runs.d.ts.map +1 -1
- package/lib/api-schemas/agent-runs.js +44 -2
- package/lib/api-schemas/agent-runs.js.map +1 -1
- package/lib/api-schemas/app-lifecycle.d.ts +19 -0
- package/lib/api-schemas/app-lifecycle.d.ts.map +1 -1
- package/lib/api-schemas/app-lifecycle.js +34 -4
- package/lib/api-schemas/app-lifecycle.js.map +1 -1
- package/lib/api-schemas/app-runtime.d.ts +9871 -9257
- package/lib/api-schemas/app-runtime.d.ts.map +1 -1
- package/lib/api-schemas/app-runtime.js +7 -0
- package/lib/api-schemas/app-runtime.js.map +1 -1
- package/lib/api-schemas/apps.d.ts +1 -0
- package/lib/api-schemas/apps.d.ts.map +1 -1
- package/lib/api-schemas/apps.js +4 -3
- package/lib/api-schemas/apps.js.map +1 -1
- package/lib/api-schemas/content-query.d.ts +39 -0
- package/lib/api-schemas/content-query.d.ts.map +1 -0
- package/lib/api-schemas/content-query.js +30 -0
- package/lib/api-schemas/content-query.js.map +1 -0
- package/lib/api-schemas/content.d.ts +835 -29
- package/lib/api-schemas/content.d.ts.map +1 -1
- package/lib/api-schemas/content.js +82 -15
- package/lib/api-schemas/content.js.map +1 -1
- package/lib/api-schemas/dashboard.d.ts +4 -0
- package/lib/api-schemas/dashboard.d.ts.map +1 -1
- package/lib/api-schemas/dashboard.js +3 -0
- package/lib/api-schemas/dashboard.js.map +1 -1
- package/lib/api-schemas/document-processing.d.ts +333 -0
- package/lib/api-schemas/document-processing.d.ts.map +1 -1
- package/lib/api-schemas/events.d.ts +1007 -4
- package/lib/api-schemas/events.d.ts.map +1 -1
- package/lib/api-schemas/events.js +4 -1
- package/lib/api-schemas/events.js.map +1 -1
- package/lib/api-schemas/files.d.ts +17 -0
- package/lib/api-schemas/files.d.ts.map +1 -1
- package/lib/api-schemas/files.js +23 -0
- package/lib/api-schemas/files.js.map +1 -1
- package/lib/api-schemas/group.d.ts +7 -0
- package/lib/api-schemas/group.d.ts.map +1 -1
- package/lib/api-schemas/group.js +9 -0
- package/lib/api-schemas/group.js.map +1 -1
- package/lib/api-schemas/index.d.ts +4 -0
- package/lib/api-schemas/index.d.ts.map +1 -1
- package/lib/api-schemas/index.js +4 -0
- package/lib/api-schemas/index.js.map +1 -1
- package/lib/api-schemas/integrations.d.ts +19 -5
- package/lib/api-schemas/integrations.d.ts.map +1 -1
- package/lib/api-schemas/integrations.js +25 -2
- package/lib/api-schemas/integrations.js.map +1 -1
- package/lib/api-schemas/interaction.d.ts +8399 -1076
- package/lib/api-schemas/interaction.d.ts.map +1 -1
- package/lib/api-schemas/interaction.js +161 -9
- package/lib/api-schemas/interaction.js.map +1 -1
- package/lib/api-schemas/oauth-server.d.ts +131 -3
- package/lib/api-schemas/oauth-server.d.ts.map +1 -1
- package/lib/api-schemas/oauth-server.js +137 -3
- package/lib/api-schemas/oauth-server.js.map +1 -1
- package/lib/api-schemas/process.d.ts +1295 -0
- package/lib/api-schemas/process.d.ts.map +1 -1
- package/lib/api-schemas/process.js +318 -2
- package/lib/api-schemas/process.js.map +1 -1
- package/lib/api-schemas/project-configuration.d.ts +1118 -1
- package/lib/api-schemas/project-configuration.d.ts.map +1 -1
- package/lib/api-schemas/project-configuration.js +6 -2
- package/lib/api-schemas/project-configuration.js.map +1 -1
- package/lib/api-schemas/project.d.ts +1680 -6
- package/lib/api-schemas/project.d.ts.map +1 -1
- package/lib/api-schemas/registry.d.ts +87529 -69142
- package/lib/api-schemas/registry.d.ts.map +1 -1
- package/lib/api-schemas/registry.js +234 -413
- package/lib/api-schemas/registry.js.map +1 -1
- package/lib/api-schemas/schema-primitives.d.ts +4 -0
- package/lib/api-schemas/schema-primitives.d.ts.map +1 -1
- package/lib/api-schemas/schema-primitives.js +10 -0
- package/lib/api-schemas/schema-primitives.js.map +1 -1
- package/lib/api-schemas/store.d.ts +5596 -37
- package/lib/api-schemas/store.d.ts.map +1 -1
- package/lib/api-schemas/store.js +53 -8
- package/lib/api-schemas/store.js.map +1 -1
- package/lib/api-schemas/tools.d.ts +115 -0
- package/lib/api-schemas/tools.d.ts.map +1 -1
- package/lib/api-schemas/tools.js +55 -0
- package/lib/api-schemas/tools.js.map +1 -1
- package/lib/api-schemas/view-execution.d.ts +330 -854
- package/lib/api-schemas/view-execution.d.ts.map +1 -1
- package/lib/api-schemas/view-execution.js +26 -2
- package/lib/api-schemas/view-execution.js.map +1 -1
- package/lib/api-schemas/views.d.ts +452 -2562
- package/lib/api-schemas/views.d.ts.map +1 -1
- package/lib/api-schemas/views.js +119 -3
- package/lib/api-schemas/views.js.map +1 -1
- package/lib/api-schemas/workflow-runs.d.ts +344 -5
- package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
- package/lib/api-schemas/workflow-runs.js +9 -7
- package/lib/api-schemas/workflow-runs.js.map +1 -1
- package/lib/apps.d.ts +8 -145
- package/lib/apps.d.ts.map +1 -1
- package/lib/apps.js +1 -54
- package/lib/apps.js.map +1 -1
- package/lib/ask-user.d.ts +2 -1
- package/lib/ask-user.d.ts.map +1 -1
- package/lib/audit-trail.d.ts +2 -2
- package/lib/audit-trail.d.ts.map +1 -1
- package/lib/audit-trail.js +2 -2
- package/lib/audit-trail.js.map +1 -1
- package/lib/browser-credentials.d.ts +2 -7
- package/lib/browser-credentials.d.ts.map +1 -1
- package/lib/common.d.ts +4 -1
- package/lib/common.d.ts.map +1 -1
- package/lib/content-query.d.ts +5 -0
- package/lib/content-query.d.ts.map +1 -0
- package/lib/content-query.js +2 -0
- package/lib/content-query.js.map +1 -0
- package/lib/data-platform.d.ts +4 -46
- package/lib/data-platform.d.ts.map +1 -1
- package/lib/data-platform.js.map +1 -1
- package/lib/email.d.ts +12 -18
- package/lib/email.d.ts.map +1 -1
- package/lib/email.js.map +1 -1
- package/lib/environment.d.ts +0 -10
- package/lib/environment.d.ts.map +1 -1
- package/lib/environment.js +1 -12
- package/lib/environment.js.map +1 -1
- package/lib/facets.d.ts +0 -4
- package/lib/facets.d.ts.map +1 -1
- package/lib/group.d.ts +2 -12
- package/lib/group.d.ts.map +1 -1
- package/lib/group.js.map +1 -1
- package/lib/index.d.ts +3 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -10
- package/lib/index.js.map +1 -1
- package/lib/integrations.d.ts +1 -27
- package/lib/integrations.d.ts.map +1 -1
- package/lib/integrations.js +0 -6
- package/lib/integrations.js.map +1 -1
- package/lib/interaction.d.ts +10 -222
- package/lib/interaction.d.ts.map +1 -1
- package/lib/interaction.js +0 -31
- package/lib/interaction.js.map +1 -1
- package/lib/meters.d.ts +5 -10
- package/lib/meters.d.ts.map +1 -1
- package/lib/meters.js +1 -9
- package/lib/meters.js.map +1 -1
- package/lib/oauth-scopes.d.ts +2 -16
- package/lib/oauth-scopes.d.ts.map +1 -1
- package/lib/oauth-scopes.js +9 -49
- package/lib/oauth-scopes.js.map +1 -1
- package/lib/oauth-server.d.ts +16 -195
- package/lib/oauth-server.d.ts.map +1 -1
- package/lib/payload.d.ts +2 -5
- package/lib/payload.d.ts.map +1 -1
- package/lib/pending-asks.d.ts +9 -41
- package/lib/pending-asks.d.ts.map +1 -1
- package/lib/platform-event.d.ts +4 -142
- package/lib/platform-event.d.ts.map +1 -1
- package/lib/platform-event.js.map +1 -1
- package/lib/project.d.ts +7 -46
- package/lib/project.d.ts.map +1 -1
- package/lib/project.js +2 -132
- package/lib/project.js.map +1 -1
- package/lib/prompt.d.ts +4 -7
- package/lib/prompt.d.ts.map +1 -1
- package/lib/prompt.js.map +1 -1
- package/lib/query.d.ts +0 -8
- package/lib/query.d.ts.map +1 -1
- package/lib/rate-limiter.d.ts +4 -3
- package/lib/rate-limiter.d.ts.map +1 -1
- package/lib/runs.d.ts +5 -1
- package/lib/runs.d.ts.map +1 -1
- package/lib/schema-for-extraction.d.ts +0 -1
- package/lib/schema-for-extraction.d.ts.map +1 -1
- package/lib/schema-for-extraction.js +1 -1
- package/lib/schema-for-extraction.js.map +1 -1
- package/lib/secrets.d.ts +2 -1
- package/lib/secrets.d.ts.map +1 -1
- package/lib/skill.d.ts +0 -13
- package/lib/skill.d.ts.map +1 -1
- package/lib/store/activity-catalog.d.ts +2 -0
- package/lib/store/activity-catalog.d.ts.map +1 -1
- package/lib/store/agent-approval.d.ts +0 -1
- package/lib/store/agent-approval.d.ts.map +1 -1
- package/lib/store/agent-approval.js +0 -3
- package/lib/store/agent-approval.js.map +1 -1
- package/lib/store/agent-run.d.ts +32 -69
- package/lib/store/agent-run.d.ts.map +1 -1
- package/lib/store/collections.d.ts +2 -6
- package/lib/store/collections.d.ts.map +1 -1
- package/lib/store/collections.js.map +1 -1
- package/lib/store/conversation-state.d.ts +11 -12
- package/lib/store/conversation-state.d.ts.map +1 -1
- package/lib/store/conversation-state.js +0 -18
- package/lib/store/conversation-state.js.map +1 -1
- package/lib/store/doc-analyzer.d.ts +0 -22
- package/lib/store/doc-analyzer.d.ts.map +1 -1
- package/lib/store/dsl-workflow.d.ts +22 -5
- package/lib/store/dsl-workflow.d.ts.map +1 -1
- package/lib/store/dsl-workflow.js.map +1 -1
- package/lib/store/grounded-extraction.d.ts +0 -14
- package/lib/store/grounded-extraction.d.ts.map +1 -1
- package/lib/store/grounded-extraction.js +1 -7
- package/lib/store/grounded-extraction.js.map +1 -1
- package/lib/store/index.d.ts +0 -5
- package/lib/store/index.d.ts.map +1 -1
- package/lib/store/index.js +0 -6
- package/lib/store/index.js.map +1 -1
- package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
- package/lib/store/intake-policy-schema.generated.js +279 -1
- package/lib/store/intake-policy-schema.generated.js.map +1 -1
- package/lib/store/process.d.ts +43 -1
- package/lib/store/process.d.ts.map +1 -1
- package/lib/store/process.js.map +1 -1
- package/lib/store/rendering.d.ts +3 -5
- package/lib/store/rendering.d.ts.map +1 -1
- package/lib/store/rendering.js +0 -4
- package/lib/store/rendering.js.map +1 -1
- package/lib/store/schedule.d.ts +0 -16
- package/lib/store/schedule.d.ts.map +1 -1
- package/lib/store/schedule.js.map +1 -1
- package/lib/store/signals.d.ts +12 -0
- package/lib/store/signals.d.ts.map +1 -1
- package/lib/store/store.d.ts +80 -94
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +5 -25
- package/lib/store/store.js.map +1 -1
- package/lib/store/workflow.d.ts +35 -86
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js +0 -47
- package/lib/store/workflow.js.map +1 -1
- package/lib/sts-errors.d.ts +0 -1
- package/lib/sts-errors.d.ts.map +1 -1
- package/lib/sts-token-types.d.ts +2 -8
- package/lib/sts-token-types.d.ts.map +1 -1
- package/lib/sts-token-types.js +1 -19
- package/lib/sts-token-types.js.map +1 -1
- package/lib/tools.d.ts +6 -1
- package/lib/tools.d.ts.map +1 -1
- package/lib/transient-tokens.d.ts +0 -2
- package/lib/transient-tokens.d.ts.map +1 -1
- package/lib/user.d.ts +0 -17
- package/lib/user.d.ts.map +1 -1
- package/lib/user.js.map +1 -1
- package/lib/utils/schemas.d.ts +2 -24
- package/lib/utils/schemas.d.ts.map +1 -1
- package/lib/utils/schemas.js +0 -151
- package/lib/utils/schemas.js.map +1 -1
- package/lib/vertesia-common.js +3 -4
- package/lib/vertesia-common.js.map +1 -1
- package/lib/views.d.ts +23 -27
- package/lib/views.d.ts.map +1 -1
- package/lib/views.js +5 -26
- package/lib/views.js.map +1 -1
- package/lib/workflow-analytics.d.ts +12 -34
- package/lib/workflow-analytics.d.ts.map +1 -1
- package/package.json +12 -6
- package/src/access-control.ts +0 -26
- package/src/account-values.ts +0 -49
- package/src/agent-resources.test.ts +1 -12
- package/src/api-contract/components.contract.test.ts +99 -0
- package/src/api-contract/components.generated.json +40405 -0
- package/src/api-contract/index.ts +664 -0
- package/src/api-schemas/agent-communication.contract.test.ts +90 -0
- package/src/api-schemas/agent-communication.ts +169 -0
- package/src/api-schemas/agent-runs.ts +46 -1
- package/src/api-schemas/api-discriminators.test.ts +101 -0
- package/src/api-schemas/app-lifecycle.ts +39 -4
- package/src/api-schemas/app-runtime.ts +8 -0
- package/src/api-schemas/apps.ts +4 -3
- package/src/api-schemas/content-query.ts +31 -0
- package/src/api-schemas/content.ts +88 -15
- package/src/api-schemas/dashboard.contract.test.ts +16 -5
- package/src/api-schemas/dashboard.ts +3 -0
- package/src/api-schemas/events.ts +9 -1
- package/src/api-schemas/files.ts +27 -0
- package/src/api-schemas/group.ts +10 -0
- package/src/api-schemas/index.ts +4 -0
- package/src/api-schemas/integrations.ts +27 -2
- package/src/api-schemas/interaction.contract.test.ts +204 -1
- package/src/api-schemas/interaction.ts +176 -8
- package/src/api-schemas/llumiverse.contract.test.ts +33 -2
- package/src/api-schemas/oauth-server.ts +152 -3
- package/src/api-schemas/oauth.contract.test.ts +64 -1
- package/src/api-schemas/process.ts +352 -2
- package/src/api-schemas/project-configuration.ts +11 -7
- package/src/api-schemas/project.contract.test.ts +83 -6
- package/src/api-schemas/registry.ts +290 -457
- package/src/api-schemas/schema-primitives.ts +13 -0
- package/src/api-schemas/store.contract.test.ts +30 -1
- package/src/api-schemas/store.ts +58 -11
- package/src/api-schemas/tools.ts +62 -0
- package/src/api-schemas/view-execution.ts +28 -2
- package/src/api-schemas/views.contract.test.ts +119 -0
- package/src/api-schemas/views.ts +142 -3
- package/src/api-schemas/workflow-runs.ts +9 -7
- package/src/api-schemas/zeno-response-contracts.test.ts +344 -0
- package/src/apps.test.ts +2 -40
- package/src/apps.ts +14 -181
- package/src/ask-user.ts +1 -1
- package/src/audit-trail.ts +3 -3
- package/src/browser-credentials.ts +3 -7
- package/src/common.ts +13 -1
- package/src/content-query.ts +5 -0
- package/src/data-platform.ts +4 -51
- package/src/email.ts +24 -18
- package/src/environment.ts +1 -14
- package/src/facets.ts +0 -6
- package/src/group.ts +2 -12
- package/src/index.ts +3 -15
- package/src/integrations.ts +1 -52
- package/src/interaction.ts +12 -271
- package/src/meters.ts +10 -11
- package/src/oauth-scopes.test.ts +15 -0
- package/src/oauth-scopes.ts +10 -64
- package/src/oauth-server.ts +28 -215
- package/src/payload.ts +1 -6
- package/src/pending-asks.ts +17 -42
- package/src/platform-event.ts +3 -156
- package/src/project.ts +12 -160
- package/src/prompt.ts +9 -8
- package/src/query.ts +0 -9
- package/src/rate-limiter.ts +3 -3
- package/src/runs.ts +8 -0
- package/src/schema-for-extraction.ts +1 -1
- package/src/secrets.ts +3 -0
- package/src/skill.ts +0 -15
- package/src/store/activity-catalog.ts +3 -0
- package/src/store/agent-approval.ts +0 -4
- package/src/store/agent-run.ts +39 -93
- package/src/store/collections.ts +3 -6
- package/src/store/conversation-state.ts +12 -25
- package/src/store/doc-analyzer.ts +0 -26
- package/src/store/dsl-workflow.ts +28 -5
- package/src/store/grounded-extraction.ts +0 -18
- package/src/store/index.ts +0 -6
- package/src/store/intake-policy-schema.generated.ts +293 -1
- package/src/store/process.ts +84 -0
- package/src/store/rendering.ts +3 -8
- package/src/store/schedule.ts +0 -19
- package/src/store/signals.ts +14 -0
- package/src/store/store.ts +118 -127
- package/src/store/workflow.ts +32 -120
- package/src/sts-errors.ts +0 -2
- package/src/sts-token-types.ts +3 -28
- package/src/tools.ts +15 -0
- package/src/transient-tokens.ts +0 -2
- package/src/user.ts +0 -20
- package/src/utils/schemas.ts +2 -159
- package/src/views.ts +50 -47
- package/src/workflow-analytics.ts +12 -40
- package/tsconfig.dist.json +4 -1
- package/lib/Progress.d.ts +0 -22
- package/lib/Progress.d.ts.map +0 -1
- package/lib/Progress.js +0 -57
- package/lib/Progress.js.map +0 -1
- package/lib/agent-request-template.d.ts +0 -4
- package/lib/agent-request-template.d.ts.map +0 -1
- package/lib/agent-request-template.js +0 -46
- package/lib/agent-request-template.js.map +0 -1
- package/lib/channels.d.ts +0 -22
- package/lib/channels.d.ts.map +0 -1
- package/lib/channels.js +0 -57
- package/lib/channels.js.map +0 -1
- package/lib/host-utils.d.ts +0 -8
- package/lib/host-utils.d.ts.map +0 -1
- package/lib/host-utils.js +0 -84
- package/lib/host-utils.js.map +0 -1
- package/lib/platform-event-validation.d.ts +0 -45
- package/lib/platform-event-validation.d.ts.map +0 -1
- package/lib/platform-event-validation.js +0 -336
- package/lib/platform-event-validation.js.map +0 -1
- package/lib/store/hive-memory.d.ts +0 -117
- package/lib/store/hive-memory.d.ts.map +0 -1
- package/lib/store/hive-memory.js +0 -2
- package/lib/store/hive-memory.js.map +0 -1
- package/lib/store/object-types.d.ts +0 -24
- package/lib/store/object-types.d.ts.map +0 -1
- package/lib/store/object-types.js +0 -95
- package/lib/store/object-types.js.map +0 -1
- package/lib/store/process-schema.d.ts +0 -561
- package/lib/store/process-schema.d.ts.map +0 -1
- package/lib/store/process-schema.js +0 -561
- package/lib/store/process-schema.js.map +0 -1
- package/lib/store/process-validation.d.ts +0 -17
- package/lib/store/process-validation.d.ts.map +0 -1
- package/lib/store/process-validation.js +0 -515
- package/lib/store/process-validation.js.map +0 -1
- package/lib/store/temporalio.d.ts +0 -17
- package/lib/store/temporalio.d.ts.map +0 -1
- package/lib/store/temporalio.js +0 -41
- package/lib/store/temporalio.js.map +0 -1
- package/lib/view-configuration-validation.d.ts +0 -15
- package/lib/view-configuration-validation.d.ts.map +0 -1
- package/lib/view-configuration-validation.js +0 -63
- package/lib/view-configuration-validation.js.map +0 -1
- package/lib/view-query-validation.d.ts +0 -13
- package/lib/view-query-validation.d.ts.map +0 -1
- package/lib/view-query-validation.js +0 -266
- package/lib/view-query-validation.js.map +0 -1
- package/lib/view-validation-helpers.d.ts +0 -15
- package/lib/view-validation-helpers.d.ts.map +0 -1
- package/lib/view-validation-helpers.js +0 -25
- package/lib/view-validation-helpers.js.map +0 -1
- package/lib/views-schema.d.ts +0 -1992
- package/lib/views-schema.d.ts.map +0 -1
- package/lib/views-schema.js +0 -674
- package/lib/views-schema.js.map +0 -1
- package/lib/views-validation.d.ts +0 -21
- package/lib/views-validation.d.ts.map +0 -1
- package/lib/views-validation.js +0 -164
- package/lib/views-validation.js.map +0 -1
- package/src/Progress.ts +0 -59
- package/src/agent-request-template.test.ts +0 -40
- package/src/agent-request-template.ts +0 -45
- package/src/channels.ts +0 -70
- package/src/host-utils.test.ts +0 -61
- package/src/host-utils.ts +0 -93
- package/src/platform-event-validation.test.ts +0 -251
- package/src/platform-event-validation.ts +0 -372
- package/src/project.test.ts +0 -44
- package/src/store/hive-memory.ts +0 -167
- package/src/store/object-types.ts +0 -123
- package/src/store/process-schema.test.ts +0 -149
- package/src/store/process-schema.ts +0 -564
- package/src/store/process-validation.test.ts +0 -635
- package/src/store/process-validation.ts +0 -646
- package/src/store/temporalio.ts +0 -54
- package/src/view-configuration-validation.ts +0 -74
- package/src/view-query-validation.test.ts +0 -21
- package/src/view-query-validation.ts +0 -319
- package/src/view-validation-helpers.ts +0 -28
- package/src/views-schema.test.ts +0 -372
- package/src/views-schema.ts +0 -689
- package/src/views-validation.ts +0 -234
package/src/store/hive-memory.ts
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import type { BaseObject } from './common.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Tool recommendation within a hive memory unit
|
|
5
|
-
*/
|
|
6
|
-
export interface HiveMemoryToolRecommendation {
|
|
7
|
-
tool_name: string;
|
|
8
|
-
guidance: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Memory unit scope - project-scoped by default, can be elevated to account
|
|
13
|
-
*/
|
|
14
|
-
export type HiveMemoryScope = 'project' | 'account';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Base interface for hive memory items (list/summary view)
|
|
18
|
-
*/
|
|
19
|
-
export interface HiveMemoryItem extends BaseObject {
|
|
20
|
-
// Classification
|
|
21
|
-
task_category: string; // "document-analysis", "data-extraction", etc.
|
|
22
|
-
domain?: string; // "financial", "legal", etc.
|
|
23
|
-
|
|
24
|
-
// Summary
|
|
25
|
-
summary: string;
|
|
26
|
-
|
|
27
|
-
// Tools involved in the learnings
|
|
28
|
-
tools_involved: string[];
|
|
29
|
-
|
|
30
|
-
// Quality metrics
|
|
31
|
-
confidence_score: number; // 0-1
|
|
32
|
-
usage_count: number;
|
|
33
|
-
success_correlation: number; // correlation with successful runs
|
|
34
|
-
contribution_count: number; // number of runs that contributed
|
|
35
|
-
|
|
36
|
-
// Scoping
|
|
37
|
-
scope: HiveMemoryScope;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Full hive memory unit with all learnings and patterns
|
|
42
|
-
*/
|
|
43
|
-
export interface HiveMemory extends HiveMemoryItem {
|
|
44
|
-
// Objective patterns this memory applies to
|
|
45
|
-
objective_patterns: string[];
|
|
46
|
-
|
|
47
|
-
// Learnings
|
|
48
|
-
general_learnings: string[];
|
|
49
|
-
best_practices: string[];
|
|
50
|
-
pitfalls_to_avoid: string[];
|
|
51
|
-
tool_recommendations: HiveMemoryToolRecommendation[];
|
|
52
|
-
|
|
53
|
-
// Vector search
|
|
54
|
-
embedding?: number[];
|
|
55
|
-
|
|
56
|
-
// Security field for granular permissions
|
|
57
|
-
security?: Record<string, string[]>;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Payload for creating a new hive memory unit
|
|
62
|
-
*/
|
|
63
|
-
export interface CreateHiveMemoryPayload {
|
|
64
|
-
// Classification
|
|
65
|
-
task_category: string;
|
|
66
|
-
domain?: string;
|
|
67
|
-
|
|
68
|
-
// Content
|
|
69
|
-
summary: string;
|
|
70
|
-
objective_patterns: string[];
|
|
71
|
-
|
|
72
|
-
// Learnings
|
|
73
|
-
general_learnings: string[];
|
|
74
|
-
best_practices?: string[];
|
|
75
|
-
pitfalls_to_avoid?: string[];
|
|
76
|
-
tool_recommendations?: HiveMemoryToolRecommendation[];
|
|
77
|
-
|
|
78
|
-
// Metadata
|
|
79
|
-
tools_involved?: string[];
|
|
80
|
-
|
|
81
|
-
// Quality (optional, defaults applied)
|
|
82
|
-
confidence_score?: number;
|
|
83
|
-
|
|
84
|
-
// Scoping
|
|
85
|
-
scope?: HiveMemoryScope;
|
|
86
|
-
|
|
87
|
-
// Standard fields
|
|
88
|
-
name?: string;
|
|
89
|
-
description?: string;
|
|
90
|
-
tags?: string[];
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Payload for updating an existing hive memory unit
|
|
95
|
-
*/
|
|
96
|
-
export interface UpdateHiveMemoryPayload {
|
|
97
|
-
// Classification updates
|
|
98
|
-
task_category?: string;
|
|
99
|
-
domain?: string;
|
|
100
|
-
|
|
101
|
-
// Content updates
|
|
102
|
-
summary?: string;
|
|
103
|
-
|
|
104
|
-
// Array additions (merged with existing)
|
|
105
|
-
add_objective_patterns?: string[];
|
|
106
|
-
add_general_learnings?: string[];
|
|
107
|
-
add_best_practices?: string[];
|
|
108
|
-
add_pitfalls_to_avoid?: string[];
|
|
109
|
-
add_tool_recommendations?: HiveMemoryToolRecommendation[];
|
|
110
|
-
add_tools_involved?: string[];
|
|
111
|
-
|
|
112
|
-
// Quality updates
|
|
113
|
-
confidence_score?: number;
|
|
114
|
-
increment_usage_count?: boolean;
|
|
115
|
-
increment_contribution_count?: boolean;
|
|
116
|
-
success_correlation?: number;
|
|
117
|
-
|
|
118
|
-
// Scoping
|
|
119
|
-
scope?: HiveMemoryScope;
|
|
120
|
-
|
|
121
|
-
// Standard fields
|
|
122
|
-
name?: string;
|
|
123
|
-
description?: string;
|
|
124
|
-
tags?: string[];
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Search parameters for finding relevant memories
|
|
129
|
-
*/
|
|
130
|
-
export interface HiveMemorySearchParams {
|
|
131
|
-
// Semantic search
|
|
132
|
-
query?: string; // Natural language query
|
|
133
|
-
embedding?: number[]; // Pre-computed embedding for vector search
|
|
134
|
-
|
|
135
|
-
// Filters
|
|
136
|
-
task_category?: string;
|
|
137
|
-
domain?: string;
|
|
138
|
-
tools_involved?: string[];
|
|
139
|
-
scope?: HiveMemoryScope;
|
|
140
|
-
min_confidence?: number; // Minimum confidence score (0-1)
|
|
141
|
-
|
|
142
|
-
// Pagination
|
|
143
|
-
limit?: number; // Default: 5
|
|
144
|
-
offset?: number;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Response from memory search
|
|
149
|
-
*/
|
|
150
|
-
export interface HiveMemorySearchResult {
|
|
151
|
-
memories: HiveMemory[];
|
|
152
|
-
total: number;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Formatted memory for agent consumption
|
|
157
|
-
*/
|
|
158
|
-
export interface FormattedMemoryForAgent {
|
|
159
|
-
category: string;
|
|
160
|
-
domain?: string;
|
|
161
|
-
summary: string;
|
|
162
|
-
learnings: string[];
|
|
163
|
-
best_practices: string[];
|
|
164
|
-
pitfalls_to_avoid: string[];
|
|
165
|
-
tool_guidance: { tool: string; guidance: string }[];
|
|
166
|
-
confidence: number;
|
|
167
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import type { JSONSchemaType } from 'ajv';
|
|
2
|
-
|
|
3
|
-
/*Default JSON Schema type for rendition*/
|
|
4
|
-
|
|
5
|
-
export interface RenditionProperties {
|
|
6
|
-
mime_type: string;
|
|
7
|
-
source_etag?: string;
|
|
8
|
-
height?: number;
|
|
9
|
-
width?: number;
|
|
10
|
-
multipart?: boolean;
|
|
11
|
-
total_parts?: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const RenditionSchema: JSONSchemaType<RenditionProperties> = {
|
|
15
|
-
type: 'object',
|
|
16
|
-
description:
|
|
17
|
-
'Represent a rendition of a file stored in an object. It will be stored as a separate object in the database.',
|
|
18
|
-
properties: {
|
|
19
|
-
mime_type: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
description: 'The format of the rendition. This is a MIME type.',
|
|
22
|
-
},
|
|
23
|
-
source_etag: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
description: 'The ETag of the file used for the rendition.',
|
|
26
|
-
nullable: true,
|
|
27
|
-
},
|
|
28
|
-
height: {
|
|
29
|
-
type: 'integer',
|
|
30
|
-
description: 'The height of the rendition',
|
|
31
|
-
nullable: true,
|
|
32
|
-
},
|
|
33
|
-
width: {
|
|
34
|
-
type: 'integer',
|
|
35
|
-
description: 'The width of the rendition',
|
|
36
|
-
nullable: true,
|
|
37
|
-
},
|
|
38
|
-
multipart: {
|
|
39
|
-
type: 'boolean',
|
|
40
|
-
description: 'If the rendition is a multi-part rendition',
|
|
41
|
-
nullable: true,
|
|
42
|
-
default: false,
|
|
43
|
-
},
|
|
44
|
-
total_parts: {
|
|
45
|
-
type: 'integer',
|
|
46
|
-
description: 'The total number of parts in the rendition',
|
|
47
|
-
nullable: true,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
required: ['mime_type'],
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export interface DocumentPartProperties {
|
|
54
|
-
source_etag?: string;
|
|
55
|
-
part_number: number;
|
|
56
|
-
title?: string;
|
|
57
|
-
source_line_start?: number;
|
|
58
|
-
source_line_end?: number;
|
|
59
|
-
type?: 'text' | 'image' | 'table' | 'chart' | 'diagram' | 'code' | 'other';
|
|
60
|
-
page_number?: number;
|
|
61
|
-
description?: string;
|
|
62
|
-
height?: number;
|
|
63
|
-
width?: number;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export const DocumentPartSchema: JSONSchemaType<DocumentPartProperties> = {
|
|
67
|
-
type: 'object',
|
|
68
|
-
description: 'Represent a semantic chunk of a document',
|
|
69
|
-
properties: {
|
|
70
|
-
source_etag: {
|
|
71
|
-
type: 'string',
|
|
72
|
-
description: 'The ETag of the file used for the rendition.',
|
|
73
|
-
nullable: true,
|
|
74
|
-
},
|
|
75
|
-
part_number: {
|
|
76
|
-
type: 'integer',
|
|
77
|
-
description: 'The part number of the chunk',
|
|
78
|
-
},
|
|
79
|
-
title: {
|
|
80
|
-
type: 'string',
|
|
81
|
-
description: 'The title of the chunk',
|
|
82
|
-
nullable: true,
|
|
83
|
-
},
|
|
84
|
-
source_line_start: {
|
|
85
|
-
type: 'integer',
|
|
86
|
-
description: 'The line number where the chunk starts',
|
|
87
|
-
nullable: true,
|
|
88
|
-
},
|
|
89
|
-
source_line_end: {
|
|
90
|
-
type: 'integer',
|
|
91
|
-
description: 'The line number where the chunk ends',
|
|
92
|
-
nullable: true,
|
|
93
|
-
},
|
|
94
|
-
type: {
|
|
95
|
-
type: 'string',
|
|
96
|
-
description: 'The type of the chunk',
|
|
97
|
-
enum: ['text', 'image', 'table', 'chart', 'diagram', 'code', 'other'],
|
|
98
|
-
nullable: true,
|
|
99
|
-
},
|
|
100
|
-
page_number: {
|
|
101
|
-
type: 'integer',
|
|
102
|
-
description: 'The page number of the document part',
|
|
103
|
-
nullable: true,
|
|
104
|
-
},
|
|
105
|
-
description: {
|
|
106
|
-
type: 'string',
|
|
107
|
-
description:
|
|
108
|
-
"The description of the document part, if it's an image, the exhaustive description of the image",
|
|
109
|
-
nullable: true,
|
|
110
|
-
},
|
|
111
|
-
height: {
|
|
112
|
-
type: 'integer',
|
|
113
|
-
description: 'The height of the rendition',
|
|
114
|
-
nullable: true,
|
|
115
|
-
},
|
|
116
|
-
width: {
|
|
117
|
-
type: 'integer',
|
|
118
|
-
description: 'The width of the rendition',
|
|
119
|
-
nullable: true,
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
required: ['part_number'],
|
|
123
|
-
};
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import Ajv from 'ajv';
|
|
2
|
-
import { describe, expect, it } from 'vitest';
|
|
3
|
-
import { PROCESS_DEFINITION_FORMAT_VERSION, type ProcessDefinitionBody } from './process.js';
|
|
4
|
-
import { ProcessDefinitionBodyJsonSchema } from './process-schema.js';
|
|
5
|
-
|
|
6
|
-
function validDefinition(): ProcessDefinitionBody {
|
|
7
|
-
return {
|
|
8
|
-
format_version: PROCESS_DEFINITION_FORMAT_VERSION,
|
|
9
|
-
process: 'invoice_review',
|
|
10
|
-
initial: 'fanout',
|
|
11
|
-
metadata: {
|
|
12
|
-
provenance: {
|
|
13
|
-
bpmn: {
|
|
14
|
-
process_id: 'InvoiceReview',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
context: {
|
|
19
|
-
schema: {
|
|
20
|
-
type: 'object',
|
|
21
|
-
additionalProperties: true,
|
|
22
|
-
properties: {
|
|
23
|
-
invoices: { type: 'array' },
|
|
24
|
-
results: { type: 'array' },
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
initial: {
|
|
28
|
-
invoices: [],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
nodes: {
|
|
32
|
-
fanout: {
|
|
33
|
-
type: 'foreach',
|
|
34
|
-
foreach: 'invoices',
|
|
35
|
-
as: 'invoice',
|
|
36
|
-
item_id: '{{invoice.id}}',
|
|
37
|
-
max_concurrency: 10,
|
|
38
|
-
failure_policy: 'collect_errors',
|
|
39
|
-
collect: {
|
|
40
|
-
into: 'results',
|
|
41
|
-
include: ['status', 'index', 'item_id', 'output', 'child_run_id'],
|
|
42
|
-
},
|
|
43
|
-
metadata: {
|
|
44
|
-
editor: {
|
|
45
|
-
render: 'foreach',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
node: {
|
|
49
|
-
type: 'process',
|
|
50
|
-
process: 'invoice_child_review',
|
|
51
|
-
run_type: 'programmatic',
|
|
52
|
-
returns: {
|
|
53
|
-
from: 'context.review',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
transitions: [{ to: 'done', metadata: { edge_kind: 'default' } }],
|
|
57
|
-
},
|
|
58
|
-
done: {
|
|
59
|
-
type: 'final',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
describe('process definition JSON schema', () => {
|
|
66
|
-
it('accepts current process engine definition features', () => {
|
|
67
|
-
const validate = new Ajv.default({ allErrors: true, strict: false }).compile(ProcessDefinitionBodyJsonSchema);
|
|
68
|
-
|
|
69
|
-
expect(validate(validDefinition())).toBe(true);
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
it('accepts inline script sources and script nodes', () => {
|
|
73
|
-
const validate = new Ajv.default({ allErrors: true, strict: false }).compile(ProcessDefinitionBodyJsonSchema);
|
|
74
|
-
const definition = validDefinition();
|
|
75
|
-
definition.resources = {
|
|
76
|
-
scripts: {
|
|
77
|
-
normalize: {
|
|
78
|
-
language: 'typescript',
|
|
79
|
-
entrypoint: 'main.ts',
|
|
80
|
-
source: {
|
|
81
|
-
type: 'inline',
|
|
82
|
-
files: {
|
|
83
|
-
'main.ts': 'console.log("ok");',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
packages: ['zod@4.0.0'],
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
definition.nodes.fanout.node = {
|
|
91
|
-
type: 'script',
|
|
92
|
-
script: 'normalize',
|
|
93
|
-
timeout: 120,
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
expect(validate(definition)).toBe(true);
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
it('rejects legacy script resources without a source discriminator', () => {
|
|
100
|
-
const validate = new Ajv.default({ allErrors: true, strict: false }).compile(ProcessDefinitionBodyJsonSchema);
|
|
101
|
-
const definition = validDefinition() as unknown as Record<string, unknown>;
|
|
102
|
-
definition.resources = {
|
|
103
|
-
scripts: {
|
|
104
|
-
normalize: {
|
|
105
|
-
language: 'typescript',
|
|
106
|
-
entrypoint: 'main.ts',
|
|
107
|
-
files: { 'main.ts': 'console.log("ok");' },
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
expect(validate(definition)).toBe(false);
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
it('rejects malformed process definition shape for editor diagnostics', () => {
|
|
116
|
-
const validate = new Ajv.default({ allErrors: true, strict: false }).compile(ProcessDefinitionBodyJsonSchema);
|
|
117
|
-
const invalidDefinition = {
|
|
118
|
-
format_version: PROCESS_DEFINITION_FORMAT_VERSION,
|
|
119
|
-
process: 'invoice_review',
|
|
120
|
-
initial: 'fanout',
|
|
121
|
-
context: {
|
|
122
|
-
schema: {
|
|
123
|
-
type: 'object',
|
|
124
|
-
},
|
|
125
|
-
initial: {},
|
|
126
|
-
},
|
|
127
|
-
nodes: {
|
|
128
|
-
fanout: {
|
|
129
|
-
type: 'foreach',
|
|
130
|
-
collect: {
|
|
131
|
-
into: 'results',
|
|
132
|
-
include: ['bogus'],
|
|
133
|
-
},
|
|
134
|
-
node: {
|
|
135
|
-
type: 'human_task',
|
|
136
|
-
},
|
|
137
|
-
transitions: [{ to: 'done', trigger: 'manual' }],
|
|
138
|
-
},
|
|
139
|
-
done: {
|
|
140
|
-
type: 'final',
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
expect(validate(invalidDefinition)).toBe(false);
|
|
146
|
-
const messages = validate.errors?.map((error) => error.message ?? '') ?? [];
|
|
147
|
-
expect(messages).toContain('must be equal to one of the allowed values');
|
|
148
|
-
});
|
|
149
|
-
});
|