@lssm/example.agent-console 0.0.0-canary-20251206160926
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/.turbo/turbo-build.log +202 -0
- package/CHANGELOG.md +13 -0
- package/README.md +83 -0
- package/dist/contracts/agent.d.ts +886 -0
- package/dist/contracts/agent.js +1 -0
- package/dist/contracts/index.d.ts +4 -0
- package/dist/contracts/index.js +1 -0
- package/dist/contracts/run.d.ts +1106 -0
- package/dist/contracts/run.js +1 -0
- package/dist/contracts/tool.d.ts +607 -0
- package/dist/contracts/tool.js +1 -0
- package/dist/entities/agent.d.ts +54 -0
- package/dist/entities/agent.js +1 -0
- package/dist/entities/index.d.ts +4 -0
- package/dist/entities/index.js +1 -0
- package/dist/entities/log.d.ts +31 -0
- package/dist/entities/log.js +1 -0
- package/dist/entities/run.d.ts +85 -0
- package/dist/entities/run.js +1 -0
- package/dist/entities/tool.d.ts +36 -0
- package/dist/entities/tool.js +1 -0
- package/dist/events.d.ts +965 -0
- package/dist/events.js +1 -0
- package/dist/feature.d.ts +11 -0
- package/dist/feature.js +1 -0
- package/dist/handlers/agent.handlers.d.ts +99 -0
- package/dist/handlers/agent.handlers.js +1 -0
- package/dist/handlers/index.d.ts +5 -0
- package/dist/handlers/index.js +1 -0
- package/dist/handlers/mock-data.d.ts +533 -0
- package/dist/handlers/mock-data.js +1 -0
- package/dist/handlers/run.handlers.d.ts +145 -0
- package/dist/handlers/run.handlers.js +1 -0
- package/dist/handlers/tool.handlers.d.ts +86 -0
- package/dist/handlers/tool.handlers.js +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +1 -0
- package/dist/libs/contracts/dist/capabilities/openbanking.js +1 -0
- package/dist/libs/contracts/dist/client/index.js +1 -0
- package/dist/libs/contracts/dist/client/react/feature-render.js +1 -0
- package/dist/libs/contracts/dist/client/react/form-render.js +1 -0
- package/dist/libs/contracts/dist/client/react/index.js +1 -0
- package/dist/libs/contracts/dist/events.js +1 -0
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
- package/dist/libs/contracts/dist/graphql-federation/dist/index.js +1 -0
- package/dist/libs/contracts/dist/index.js +1 -0
- package/dist/libs/contracts/dist/install.js +1 -0
- package/dist/libs/contracts/dist/integrations/contracts.js +1 -0
- package/dist/libs/contracts/dist/integrations/index.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/elevenlabs-voice.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/gcs-storage.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/gmail-inbound.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/gmail-outbound.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/google-calendar.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/index.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/mistral-embedding.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/mistral-llm.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/postmark-email.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/powens-client.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/powens-openbanking.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/provider-factory.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/qdrant-vector.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/stripe-payments.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/impls/twilio-sms.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/index.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +1 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +1 -0
- package/dist/libs/contracts/dist/integrations/runtime.js +1 -0
- package/dist/libs/contracts/dist/integrations/secrets/env-secret-provider.js +1 -0
- package/dist/libs/contracts/dist/integrations/secrets/gcp-secret-manager.js +1 -0
- package/dist/libs/contracts/dist/integrations/secrets/index.js +1 -0
- package/dist/libs/contracts/dist/integrations/secrets/manager.js +1 -0
- package/dist/libs/contracts/dist/integrations/secrets/provider.js +1 -0
- package/dist/libs/contracts/dist/jsonschema.js +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +1 -0
- package/dist/libs/contracts/dist/knowledge/index.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +1 -0
- package/dist/libs/contracts/dist/ownership.js +1 -0
- package/dist/libs/contracts/dist/presentations.js +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +1 -0
- package/dist/libs/contracts/dist/prompt.js +1 -0
- package/dist/libs/contracts/dist/promptRegistry.js +1 -0
- package/dist/libs/contracts/dist/regenerator/index.js +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +1 -0
- package/dist/libs/contracts/dist/registry.js +1 -0
- package/dist/libs/contracts/dist/resources.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +1 -0
- package/dist/libs/contracts/dist/server/graphql-pothos.js +1 -0
- package/dist/libs/contracts/dist/server/graphql-schema-export.js +1 -0
- package/dist/libs/contracts/dist/server/index.js +1 -0
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
- package/dist/libs/contracts/dist/server/rest-express.js +1 -0
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
- package/dist/libs/contracts/dist/spec.js +1 -0
- package/dist/libs/contracts/dist/telemetry/index.js +1 -0
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
- package/dist/libs/contracts/dist/tests/index.js +1 -0
- package/dist/libs/contracts/dist/tests/runner.js +1 -0
- package/dist/libs/contracts/dist/workflow/index.js +1 -0
- package/dist/libs/contracts/dist/workflow/runner.js +1 -0
- package/dist/libs/schema/dist/EnumType.js +1 -0
- package/dist/libs/schema/dist/FieldType.js +1 -0
- package/dist/libs/schema/dist/ScalarTypeEnum.js +1 -0
- package/dist/libs/schema/dist/SchemaModel.js +1 -0
- package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/schema/dist/entity/index.js +1 -0
- package/dist/libs/schema/dist/entity/types.js +1 -0
- package/dist/libs/schema/dist/index.js +1 -0
- package/dist/presentations/agent-list.d.ts +15 -0
- package/dist/presentations/agent-list.js +1 -0
- package/dist/presentations/dashboard.d.ts +11 -0
- package/dist/presentations/dashboard.js +1 -0
- package/dist/presentations/index.d.ts +11 -0
- package/dist/presentations/index.js +1 -0
- package/dist/presentations/run-list.d.ts +18 -0
- package/dist/presentations/run-list.js +1 -0
- package/dist/presentations/tool-registry.d.ts +14 -0
- package/dist/presentations/tool-registry.js +1 -0
- package/package.json +86 -0
- package/src/contracts/agent.ts +501 -0
- package/src/contracts/index.ts +29 -0
- package/src/contracts/run.ts +561 -0
- package/src/contracts/tool.ts +392 -0
- package/src/entities/agent.ts +151 -0
- package/src/entities/index.ts +20 -0
- package/src/entities/log.ts +76 -0
- package/src/entities/run.ts +240 -0
- package/src/entities/tool.ts +105 -0
- package/src/events.ts +419 -0
- package/src/feature.ts +144 -0
- package/src/handlers/agent.handlers.ts +203 -0
- package/src/handlers/index.ts +55 -0
- package/src/handlers/mock-data.ts +413 -0
- package/src/handlers/run.handlers.ts +331 -0
- package/src/handlers/tool.handlers.ts +188 -0
- package/src/index.ts +34 -0
- package/src/presentations/agent-list.ts +55 -0
- package/src/presentations/dashboard.ts +29 -0
- package/src/presentations/index.ts +48 -0
- package/src/presentations/run-list.ts +76 -0
- package/src/presentations/tool-registry.ts +52 -0
- package/tsconfig.json +10 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsdown.config.js +7 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"../libs/contracts/dist/spec.js";import{r as n}from"../libs/schema/dist/EnumType.js";import{l as r}from"../libs/schema/dist/ScalarTypeEnum.js";import{n as i}from"../libs/schema/dist/SchemaModel.js";import"../libs/schema/dist/index.js";const a=[`agent-console-team`],o=n(`RunStatus`,[`QUEUED`,`IN_PROGRESS`,`COMPLETED`,`FAILED`,`CANCELLED`,`EXPIRED`]),s=n(`RunStepType`,[`MESSAGE_CREATION`,`TOOL_CALL`,`TOOL_RESULT`,`ERROR`]),c=n(`LogLevel`,[`DEBUG`,`INFO`,`WARN`,`ERROR`]),l=n(`Granularity`,[`hour`,`day`,`week`,`month`]),u=i({name:`RunInput`,description:`Input data for agent execution`,fields:{message:{type:r.NonEmptyString(),isOptional:!1},context:{type:r.JSONObject(),isOptional:!0}}}),d=i({name:`RunStep`,description:`Individual step within a run`,fields:{id:{type:r.String_unsecure(),isOptional:!1},stepNumber:{type:r.Int_unsecure(),isOptional:!1},type:{type:s,isOptional:!1},toolId:{type:r.String_unsecure(),isOptional:!0},toolName:{type:r.String_unsecure(),isOptional:!0},input:{type:r.JSONObject(),isOptional:!0},output:{type:r.JSONObject(),isOptional:!0},status:{type:o,isOptional:!1},errorMessage:{type:r.String_unsecure(),isOptional:!0},tokensUsed:{type:r.Int_unsecure(),isOptional:!1,defaultValue:0},durationMs:{type:r.Int_unsecure(),isOptional:!0},startedAt:{type:r.DateTime(),isOptional:!1},completedAt:{type:r.DateTime(),isOptional:!0}}}),f=i({name:`RunLog`,description:`Execution log entry`,fields:{id:{type:r.String_unsecure(),isOptional:!1},stepId:{type:r.String_unsecure(),isOptional:!0},level:{type:c,isOptional:!1},message:{type:r.String_unsecure(),isOptional:!1},data:{type:r.JSONObject(),isOptional:!0},source:{type:r.String_unsecure(),isOptional:!0},traceId:{type:r.String_unsecure(),isOptional:!0},spanId:{type:r.String_unsecure(),isOptional:!0},timestamp:{type:r.DateTime(),isOptional:!1}}}),p=i({name:`RunAgentRef`,description:`Agent reference in a run`,fields:{id:{type:r.String_unsecure(),isOptional:!1},name:{type:r.NonEmptyString(),isOptional:!1},modelProvider:{type:r.String_unsecure(),isOptional:!1},modelName:{type:r.String_unsecure(),isOptional:!1}}}),m=i({name:`Run`,description:`Agent execution instance`,fields:{id:{type:r.String_unsecure(),isOptional:!1},organizationId:{type:r.String_unsecure(),isOptional:!1},agentId:{type:r.String_unsecure(),isOptional:!1},userId:{type:r.String_unsecure(),isOptional:!0},sessionId:{type:r.String_unsecure(),isOptional:!0},input:{type:r.JSONObject(),isOptional:!1},output:{type:r.JSONObject(),isOptional:!0},status:{type:o,isOptional:!1},errorMessage:{type:r.String_unsecure(),isOptional:!0},errorCode:{type:r.String_unsecure(),isOptional:!0},totalTokens:{type:r.Int_unsecure(),isOptional:!1,defaultValue:0},promptTokens:{type:r.Int_unsecure(),isOptional:!1,defaultValue:0},completionTokens:{type:r.Int_unsecure(),isOptional:!1,defaultValue:0},totalIterations:{type:r.Int_unsecure(),isOptional:!1,defaultValue:0},durationMs:{type:r.Int_unsecure(),isOptional:!0},estimatedCostUsd:{type:r.Float_unsecure(),isOptional:!0},queuedAt:{type:r.DateTime(),isOptional:!1},startedAt:{type:r.DateTime(),isOptional:!0},completedAt:{type:r.DateTime(),isOptional:!0},metadata:{type:r.JSONObject(),isOptional:!0},steps:{type:d,isArray:!0,isOptional:!0},logs:{type:f,isArray:!0,isOptional:!0},agent:{type:p,isOptional:!0}}}),h=i({name:`RunSummary`,description:`Summary of a run for list views`,fields:{id:{type:r.String_unsecure(),isOptional:!1},agentId:{type:r.String_unsecure(),isOptional:!1},agentName:{type:r.NonEmptyString(),isOptional:!1},status:{type:o,isOptional:!1},totalTokens:{type:r.Int_unsecure(),isOptional:!1},durationMs:{type:r.Int_unsecure(),isOptional:!0},estimatedCostUsd:{type:r.Float_unsecure(),isOptional:!0},queuedAt:{type:r.DateTime(),isOptional:!1},completedAt:{type:r.DateTime(),isOptional:!0}}}),g=i({name:`TimelineDataPoint`,description:`Timeline data point for metrics`,fields:{period:{type:r.String_unsecure(),isOptional:!1},runs:{type:r.Int_unsecure(),isOptional:!1},tokens:{type:r.Int_unsecure(),isOptional:!1},costUsd:{type:r.Float_unsecure(),isOptional:!1},avgDurationMs:{type:r.Float_unsecure(),isOptional:!1}}}),_=t({meta:{name:`agent.run.execute`,version:1,stability:`stable`,owners:[...a],tags:[`run`,`execute`],description:`Starts a new agent run with the given input.`,goal:`Execute an AI agent with user input.`,context:`Called from chat interface or API.`},io:{input:i({name:`ExecuteAgentInput`,fields:{agentId:{type:r.String_unsecure(),isOptional:!1},input:{type:u,isOptional:!1},sessionId:{type:r.String_unsecure(),isOptional:!0},metadata:{type:r.JSONObject(),isOptional:!0},stream:{type:r.Boolean(),isOptional:!0},maxIterations:{type:r.Int_unsecure(),isOptional:!0},timeoutMs:{type:r.Int_unsecure(),isOptional:!0}}}),output:i({name:`ExecuteAgentOutput`,fields:{runId:{type:r.String_unsecure(),isOptional:!1},status:{type:o,isOptional:!1},estimatedWaitMs:{type:r.Int_unsecure(),isOptional:!0}}}),errors:{AGENT_NOT_FOUND:{description:`The specified agent does not exist`,http:404,gqlCode:`AGENT_NOT_FOUND`,when:`Agent ID is invalid`},AGENT_NOT_ACTIVE:{description:`The specified agent is not active`,http:400,gqlCode:`AGENT_NOT_ACTIVE`,when:`Agent is in draft/paused/archived state`}}},policy:{auth:`user`},sideEffects:{emits:[{name:`run.started`,version:1,when:`Run is queued`,payload:h}],audit:[`run.started`]}}),v=t({meta:{name:`agent.run.cancel`,version:1,stability:`stable`,owners:[...a],tags:[`run`,`cancel`],description:`Cancels an in-progress agent run.`,goal:`Stop a running agent execution.`,context:`Called when user wants to abort a long-running task.`},io:{input:i({name:`CancelRunInput`,fields:{runId:{type:r.String_unsecure(),isOptional:!1},reason:{type:r.String_unsecure(),isOptional:!0}}}),output:i({name:`CancelRunOutput`,fields:{success:{type:r.Boolean(),isOptional:!1},status:{type:o,isOptional:!1}}}),errors:{RUN_NOT_FOUND:{description:`The specified run does not exist`,http:404,gqlCode:`RUN_NOT_FOUND`,when:`Run ID is invalid`},RUN_NOT_CANCELLABLE:{description:`The run cannot be cancelled`,http:400,gqlCode:`RUN_NOT_CANCELLABLE`,when:`Run is already completed/failed/cancelled`}}},policy:{auth:`user`},sideEffects:{emits:[{name:`run.cancelled`,version:1,when:`Run is cancelled`,payload:h}],audit:[`run.cancelled`]}}),y=e({meta:{name:`agent.run.get`,version:1,stability:`stable`,owners:[...a],tags:[`run`,`get`],description:`Retrieves a run by its ID with optional details.`,goal:`View detailed run information.`,context:`Run details page or monitoring.`},io:{input:i({name:`GetRunInput`,fields:{runId:{type:r.String_unsecure(),isOptional:!1},includeSteps:{type:r.Boolean(),isOptional:!0},includeLogs:{type:r.Boolean(),isOptional:!0}}}),output:m,errors:{RUN_NOT_FOUND:{description:`The specified run does not exist`,http:404,gqlCode:`RUN_NOT_FOUND`,when:`Run ID is invalid`}}},policy:{auth:`user`}}),b=e({meta:{name:`agent.run.list`,version:1,stability:`stable`,owners:[...a],tags:[`run`,`list`],description:`Lists runs with optional filtering.`,goal:`Browse and search run history.`,context:`Run history/dashboard view.`},io:{input:i({name:`ListRunsInput`,fields:{organizationId:{type:r.String_unsecure(),isOptional:!0},agentId:{type:r.String_unsecure(),isOptional:!0},userId:{type:r.String_unsecure(),isOptional:!0},sessionId:{type:r.String_unsecure(),isOptional:!0},status:{type:o,isOptional:!0},startDate:{type:r.DateTime(),isOptional:!0},endDate:{type:r.DateTime(),isOptional:!0},limit:{type:r.Int_unsecure(),isOptional:!0,defaultValue:20},offset:{type:r.Int_unsecure(),isOptional:!0,defaultValue:0}}}),output:i({name:`ListRunsOutput`,fields:{items:{type:h,isArray:!0,isOptional:!1},total:{type:r.Int_unsecure(),isOptional:!1},hasMore:{type:r.Boolean(),isOptional:!1}}})},policy:{auth:`user`}}),x=e({meta:{name:`agent.run.getSteps`,version:1,stability:`stable`,owners:[...a],tags:[`run`,`steps`],description:`Retrieves all steps for a specific run.`,goal:`View step-by-step execution details.`,context:`Run details page - steps tab.`},io:{input:i({name:`GetRunStepsInput`,fields:{runId:{type:r.String_unsecure(),isOptional:!1}}}),output:i({name:`GetRunStepsOutput`,fields:{steps:{type:d,isArray:!0,isOptional:!1}}})},policy:{auth:`user`}}),S=e({meta:{name:`agent.run.getLogs`,version:1,stability:`stable`,owners:[...a],tags:[`run`,`logs`],description:`Retrieves all logs for a specific run.`,goal:`Debug and audit run execution.`,context:`Run details page - logs tab.`},io:{input:i({name:`GetRunLogsInput`,fields:{runId:{type:r.String_unsecure(),isOptional:!1},level:{type:c,isOptional:!0},stepId:{type:r.String_unsecure(),isOptional:!0},limit:{type:r.Int_unsecure(),isOptional:!0,defaultValue:100},offset:{type:r.Int_unsecure(),isOptional:!0,defaultValue:0}}}),output:i({name:`GetRunLogsOutput`,fields:{items:{type:f,isArray:!0,isOptional:!1},total:{type:r.Int_unsecure(),isOptional:!1},hasMore:{type:r.Boolean(),isOptional:!1}}})},policy:{auth:`user`}}),C=e({meta:{name:`agent.run.getMetrics`,version:1,stability:`stable`,owners:[...a],tags:[`run`,`metrics`],description:`Retrieves aggregated metrics for runs within a time period.`,goal:`Monitor and analyze agent usage.`,context:`Analytics dashboard.`},io:{input:i({name:`GetRunMetricsInput`,fields:{organizationId:{type:r.String_unsecure(),isOptional:!1},agentId:{type:r.String_unsecure(),isOptional:!0},startDate:{type:r.DateTime(),isOptional:!1},endDate:{type:r.DateTime(),isOptional:!1},granularity:{type:l,isOptional:!0,defaultValue:`day`}}}),output:i({name:`GetRunMetricsOutput`,fields:{totalRuns:{type:r.Int_unsecure(),isOptional:!1},completedRuns:{type:r.Int_unsecure(),isOptional:!1},failedRuns:{type:r.Int_unsecure(),isOptional:!1},totalTokens:{type:r.Int_unsecure(),isOptional:!1},totalCostUsd:{type:r.Float_unsecure(),isOptional:!1},averageDurationMs:{type:r.Float_unsecure(),isOptional:!1},successRate:{type:r.Float_unsecure(),isOptional:!1},timeline:{type:g,isArray:!0,isOptional:!1}}})},policy:{auth:`user`}});export{v as CancelRunCommand,_ as ExecuteAgentCommand,S as GetRunLogsQuery,C as GetRunMetricsQuery,y as GetRunQuery,x as GetRunStepsQuery,l as GranularityEnum,b as ListRunsQuery,c as LogLevelEnum,p as RunAgentRefModel,u as RunInputModel,f as RunLogModel,m as RunModel,o as RunStatusEnum,d as RunStepModel,s as RunStepTypeEnum,h as RunSummaryModel,g as TimelineDataPointModel};
|
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
import * as _lssm_lib_schema71 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/contracts/tool.d.ts
|
|
5
|
+
declare const ToolCategoryEnum: _lssm_lib_schema71.EnumType<[string, string, string, string, string, string]>;
|
|
6
|
+
declare const ToolStatusEnum: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
7
|
+
declare const ImplementationTypeEnum: _lssm_lib_schema71.EnumType<[string, string, string]>;
|
|
8
|
+
declare const ToolModel: _lssm_lib_schema71.SchemaModel<{
|
|
9
|
+
id: {
|
|
10
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
12
|
+
};
|
|
13
|
+
organizationId: {
|
|
14
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
15
|
+
isOptional: false;
|
|
16
|
+
};
|
|
17
|
+
name: {
|
|
18
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
19
|
+
isOptional: false;
|
|
20
|
+
};
|
|
21
|
+
slug: {
|
|
22
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
25
|
+
description: {
|
|
26
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
27
|
+
isOptional: false;
|
|
28
|
+
};
|
|
29
|
+
category: {
|
|
30
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string, string, string]>;
|
|
31
|
+
isOptional: false;
|
|
32
|
+
};
|
|
33
|
+
status: {
|
|
34
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
35
|
+
isOptional: false;
|
|
36
|
+
};
|
|
37
|
+
parametersSchema: {
|
|
38
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
39
|
+
isOptional: false;
|
|
40
|
+
};
|
|
41
|
+
outputSchema: {
|
|
42
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
43
|
+
isOptional: true;
|
|
44
|
+
};
|
|
45
|
+
implementationType: {
|
|
46
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string]>;
|
|
47
|
+
isOptional: false;
|
|
48
|
+
};
|
|
49
|
+
implementationConfig: {
|
|
50
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
51
|
+
isOptional: false;
|
|
52
|
+
};
|
|
53
|
+
maxInvocationsPerMinute: {
|
|
54
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
55
|
+
isOptional: true;
|
|
56
|
+
};
|
|
57
|
+
timeoutMs: {
|
|
58
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
59
|
+
isOptional: false;
|
|
60
|
+
defaultValue: number;
|
|
61
|
+
};
|
|
62
|
+
version: {
|
|
63
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
64
|
+
isOptional: false;
|
|
65
|
+
};
|
|
66
|
+
tags: {
|
|
67
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
68
|
+
isArray: true;
|
|
69
|
+
isOptional: true;
|
|
70
|
+
};
|
|
71
|
+
createdAt: {
|
|
72
|
+
type: _lssm_lib_schema71.FieldType<Date, string>;
|
|
73
|
+
isOptional: false;
|
|
74
|
+
};
|
|
75
|
+
updatedAt: {
|
|
76
|
+
type: _lssm_lib_schema71.FieldType<Date, string>;
|
|
77
|
+
isOptional: false;
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
80
|
+
declare const ToolSummaryModel: _lssm_lib_schema71.SchemaModel<{
|
|
81
|
+
id: {
|
|
82
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
83
|
+
isOptional: false;
|
|
84
|
+
};
|
|
85
|
+
name: {
|
|
86
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
87
|
+
isOptional: false;
|
|
88
|
+
};
|
|
89
|
+
slug: {
|
|
90
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
91
|
+
isOptional: false;
|
|
92
|
+
};
|
|
93
|
+
description: {
|
|
94
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
95
|
+
isOptional: false;
|
|
96
|
+
};
|
|
97
|
+
category: {
|
|
98
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string, string, string]>;
|
|
99
|
+
isOptional: false;
|
|
100
|
+
};
|
|
101
|
+
status: {
|
|
102
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
103
|
+
isOptional: false;
|
|
104
|
+
};
|
|
105
|
+
version: {
|
|
106
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
107
|
+
isOptional: false;
|
|
108
|
+
};
|
|
109
|
+
createdAt: {
|
|
110
|
+
type: _lssm_lib_schema71.FieldType<Date, string>;
|
|
111
|
+
isOptional: false;
|
|
112
|
+
};
|
|
113
|
+
}>;
|
|
114
|
+
declare const CreateToolInputModel: _lssm_lib_schema71.SchemaModel<{
|
|
115
|
+
organizationId: {
|
|
116
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
117
|
+
isOptional: false;
|
|
118
|
+
};
|
|
119
|
+
name: {
|
|
120
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
121
|
+
isOptional: false;
|
|
122
|
+
};
|
|
123
|
+
slug: {
|
|
124
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
125
|
+
isOptional: false;
|
|
126
|
+
};
|
|
127
|
+
description: {
|
|
128
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
129
|
+
isOptional: false;
|
|
130
|
+
};
|
|
131
|
+
category: {
|
|
132
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string, string, string]>;
|
|
133
|
+
isOptional: true;
|
|
134
|
+
};
|
|
135
|
+
parametersSchema: {
|
|
136
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
137
|
+
isOptional: false;
|
|
138
|
+
};
|
|
139
|
+
outputSchema: {
|
|
140
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
141
|
+
isOptional: true;
|
|
142
|
+
};
|
|
143
|
+
implementationType: {
|
|
144
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string]>;
|
|
145
|
+
isOptional: false;
|
|
146
|
+
};
|
|
147
|
+
implementationConfig: {
|
|
148
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
149
|
+
isOptional: false;
|
|
150
|
+
};
|
|
151
|
+
maxInvocationsPerMinute: {
|
|
152
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
153
|
+
isOptional: true;
|
|
154
|
+
};
|
|
155
|
+
timeoutMs: {
|
|
156
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
157
|
+
isOptional: true;
|
|
158
|
+
};
|
|
159
|
+
tags: {
|
|
160
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
161
|
+
isArray: true;
|
|
162
|
+
isOptional: true;
|
|
163
|
+
};
|
|
164
|
+
}>;
|
|
165
|
+
declare const UpdateToolInputModel: _lssm_lib_schema71.SchemaModel<{
|
|
166
|
+
toolId: {
|
|
167
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
168
|
+
isOptional: false;
|
|
169
|
+
};
|
|
170
|
+
name: {
|
|
171
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
172
|
+
isOptional: true;
|
|
173
|
+
};
|
|
174
|
+
description: {
|
|
175
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
176
|
+
isOptional: true;
|
|
177
|
+
};
|
|
178
|
+
status: {
|
|
179
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
180
|
+
isOptional: true;
|
|
181
|
+
};
|
|
182
|
+
parametersSchema: {
|
|
183
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
184
|
+
isOptional: true;
|
|
185
|
+
};
|
|
186
|
+
outputSchema: {
|
|
187
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
188
|
+
isOptional: true;
|
|
189
|
+
};
|
|
190
|
+
implementationConfig: {
|
|
191
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
192
|
+
isOptional: true;
|
|
193
|
+
};
|
|
194
|
+
maxInvocationsPerMinute: {
|
|
195
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
196
|
+
isOptional: true;
|
|
197
|
+
};
|
|
198
|
+
timeoutMs: {
|
|
199
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
200
|
+
isOptional: true;
|
|
201
|
+
};
|
|
202
|
+
tags: {
|
|
203
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
204
|
+
isArray: true;
|
|
205
|
+
isOptional: true;
|
|
206
|
+
};
|
|
207
|
+
}>;
|
|
208
|
+
/**
|
|
209
|
+
* CreateToolCommand - Creates a new tool definition
|
|
210
|
+
*/
|
|
211
|
+
declare const CreateToolCommand: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema71.SchemaModel<{
|
|
212
|
+
organizationId: {
|
|
213
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
214
|
+
isOptional: false;
|
|
215
|
+
};
|
|
216
|
+
name: {
|
|
217
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
218
|
+
isOptional: false;
|
|
219
|
+
};
|
|
220
|
+
slug: {
|
|
221
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
222
|
+
isOptional: false;
|
|
223
|
+
};
|
|
224
|
+
description: {
|
|
225
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
226
|
+
isOptional: false;
|
|
227
|
+
};
|
|
228
|
+
category: {
|
|
229
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string, string, string]>;
|
|
230
|
+
isOptional: true;
|
|
231
|
+
};
|
|
232
|
+
parametersSchema: {
|
|
233
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
234
|
+
isOptional: false;
|
|
235
|
+
};
|
|
236
|
+
outputSchema: {
|
|
237
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
238
|
+
isOptional: true;
|
|
239
|
+
};
|
|
240
|
+
implementationType: {
|
|
241
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string]>;
|
|
242
|
+
isOptional: false;
|
|
243
|
+
};
|
|
244
|
+
implementationConfig: {
|
|
245
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
246
|
+
isOptional: false;
|
|
247
|
+
};
|
|
248
|
+
maxInvocationsPerMinute: {
|
|
249
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
250
|
+
isOptional: true;
|
|
251
|
+
};
|
|
252
|
+
timeoutMs: {
|
|
253
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
254
|
+
isOptional: true;
|
|
255
|
+
};
|
|
256
|
+
tags: {
|
|
257
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
258
|
+
isArray: true;
|
|
259
|
+
isOptional: true;
|
|
260
|
+
};
|
|
261
|
+
}>, _lssm_lib_schema71.SchemaModel<{
|
|
262
|
+
id: {
|
|
263
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
264
|
+
isOptional: false;
|
|
265
|
+
};
|
|
266
|
+
name: {
|
|
267
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
268
|
+
isOptional: false;
|
|
269
|
+
};
|
|
270
|
+
slug: {
|
|
271
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
272
|
+
isOptional: false;
|
|
273
|
+
};
|
|
274
|
+
status: {
|
|
275
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
276
|
+
isOptional: false;
|
|
277
|
+
};
|
|
278
|
+
}>, {
|
|
279
|
+
name: string;
|
|
280
|
+
version: number;
|
|
281
|
+
when: string;
|
|
282
|
+
payload: _lssm_lib_schema71.SchemaModel<{
|
|
283
|
+
id: {
|
|
284
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
285
|
+
isOptional: false;
|
|
286
|
+
};
|
|
287
|
+
name: {
|
|
288
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
289
|
+
isOptional: false;
|
|
290
|
+
};
|
|
291
|
+
slug: {
|
|
292
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
293
|
+
isOptional: false;
|
|
294
|
+
};
|
|
295
|
+
description: {
|
|
296
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
297
|
+
isOptional: false;
|
|
298
|
+
};
|
|
299
|
+
category: {
|
|
300
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string, string, string]>;
|
|
301
|
+
isOptional: false;
|
|
302
|
+
};
|
|
303
|
+
status: {
|
|
304
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
305
|
+
isOptional: false;
|
|
306
|
+
};
|
|
307
|
+
version: {
|
|
308
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
309
|
+
isOptional: false;
|
|
310
|
+
};
|
|
311
|
+
createdAt: {
|
|
312
|
+
type: _lssm_lib_schema71.FieldType<Date, string>;
|
|
313
|
+
isOptional: false;
|
|
314
|
+
};
|
|
315
|
+
}>;
|
|
316
|
+
}[]>;
|
|
317
|
+
/**
|
|
318
|
+
* UpdateToolCommand - Updates an existing tool
|
|
319
|
+
*/
|
|
320
|
+
declare const UpdateToolCommand: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema71.SchemaModel<{
|
|
321
|
+
toolId: {
|
|
322
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
323
|
+
isOptional: false;
|
|
324
|
+
};
|
|
325
|
+
name: {
|
|
326
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
327
|
+
isOptional: true;
|
|
328
|
+
};
|
|
329
|
+
description: {
|
|
330
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
331
|
+
isOptional: true;
|
|
332
|
+
};
|
|
333
|
+
status: {
|
|
334
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
335
|
+
isOptional: true;
|
|
336
|
+
};
|
|
337
|
+
parametersSchema: {
|
|
338
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
339
|
+
isOptional: true;
|
|
340
|
+
};
|
|
341
|
+
outputSchema: {
|
|
342
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
343
|
+
isOptional: true;
|
|
344
|
+
};
|
|
345
|
+
implementationConfig: {
|
|
346
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
347
|
+
isOptional: true;
|
|
348
|
+
};
|
|
349
|
+
maxInvocationsPerMinute: {
|
|
350
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
351
|
+
isOptional: true;
|
|
352
|
+
};
|
|
353
|
+
timeoutMs: {
|
|
354
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
355
|
+
isOptional: true;
|
|
356
|
+
};
|
|
357
|
+
tags: {
|
|
358
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
359
|
+
isArray: true;
|
|
360
|
+
isOptional: true;
|
|
361
|
+
};
|
|
362
|
+
}>, _lssm_lib_schema71.SchemaModel<{
|
|
363
|
+
id: {
|
|
364
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
365
|
+
isOptional: false;
|
|
366
|
+
};
|
|
367
|
+
name: {
|
|
368
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
369
|
+
isOptional: false;
|
|
370
|
+
};
|
|
371
|
+
status: {
|
|
372
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
373
|
+
isOptional: false;
|
|
374
|
+
};
|
|
375
|
+
updatedAt: {
|
|
376
|
+
type: _lssm_lib_schema71.FieldType<Date, string>;
|
|
377
|
+
isOptional: false;
|
|
378
|
+
};
|
|
379
|
+
}>, {
|
|
380
|
+
name: string;
|
|
381
|
+
version: number;
|
|
382
|
+
when: string;
|
|
383
|
+
payload: _lssm_lib_schema71.SchemaModel<{
|
|
384
|
+
id: {
|
|
385
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
386
|
+
isOptional: false;
|
|
387
|
+
};
|
|
388
|
+
name: {
|
|
389
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
390
|
+
isOptional: false;
|
|
391
|
+
};
|
|
392
|
+
slug: {
|
|
393
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
394
|
+
isOptional: false;
|
|
395
|
+
};
|
|
396
|
+
description: {
|
|
397
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
398
|
+
isOptional: false;
|
|
399
|
+
};
|
|
400
|
+
category: {
|
|
401
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string, string, string]>;
|
|
402
|
+
isOptional: false;
|
|
403
|
+
};
|
|
404
|
+
status: {
|
|
405
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
406
|
+
isOptional: false;
|
|
407
|
+
};
|
|
408
|
+
version: {
|
|
409
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
410
|
+
isOptional: false;
|
|
411
|
+
};
|
|
412
|
+
createdAt: {
|
|
413
|
+
type: _lssm_lib_schema71.FieldType<Date, string>;
|
|
414
|
+
isOptional: false;
|
|
415
|
+
};
|
|
416
|
+
}>;
|
|
417
|
+
}[]>;
|
|
418
|
+
/**
|
|
419
|
+
* GetToolQuery - Retrieves a tool by ID
|
|
420
|
+
*/
|
|
421
|
+
declare const GetToolQuery: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema71.SchemaModel<{
|
|
422
|
+
toolId: {
|
|
423
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
424
|
+
isOptional: false;
|
|
425
|
+
};
|
|
426
|
+
}>, _lssm_lib_schema71.SchemaModel<{
|
|
427
|
+
id: {
|
|
428
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
429
|
+
isOptional: false;
|
|
430
|
+
};
|
|
431
|
+
organizationId: {
|
|
432
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
433
|
+
isOptional: false;
|
|
434
|
+
};
|
|
435
|
+
name: {
|
|
436
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
437
|
+
isOptional: false;
|
|
438
|
+
};
|
|
439
|
+
slug: {
|
|
440
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
441
|
+
isOptional: false;
|
|
442
|
+
};
|
|
443
|
+
description: {
|
|
444
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
445
|
+
isOptional: false;
|
|
446
|
+
};
|
|
447
|
+
category: {
|
|
448
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string, string, string]>;
|
|
449
|
+
isOptional: false;
|
|
450
|
+
};
|
|
451
|
+
status: {
|
|
452
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
453
|
+
isOptional: false;
|
|
454
|
+
};
|
|
455
|
+
parametersSchema: {
|
|
456
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
457
|
+
isOptional: false;
|
|
458
|
+
};
|
|
459
|
+
outputSchema: {
|
|
460
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
461
|
+
isOptional: true;
|
|
462
|
+
};
|
|
463
|
+
implementationType: {
|
|
464
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string]>;
|
|
465
|
+
isOptional: false;
|
|
466
|
+
};
|
|
467
|
+
implementationConfig: {
|
|
468
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
469
|
+
isOptional: false;
|
|
470
|
+
};
|
|
471
|
+
maxInvocationsPerMinute: {
|
|
472
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
473
|
+
isOptional: true;
|
|
474
|
+
};
|
|
475
|
+
timeoutMs: {
|
|
476
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
477
|
+
isOptional: false;
|
|
478
|
+
defaultValue: number;
|
|
479
|
+
};
|
|
480
|
+
version: {
|
|
481
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
482
|
+
isOptional: false;
|
|
483
|
+
};
|
|
484
|
+
tags: {
|
|
485
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
486
|
+
isArray: true;
|
|
487
|
+
isOptional: true;
|
|
488
|
+
};
|
|
489
|
+
createdAt: {
|
|
490
|
+
type: _lssm_lib_schema71.FieldType<Date, string>;
|
|
491
|
+
isOptional: false;
|
|
492
|
+
};
|
|
493
|
+
updatedAt: {
|
|
494
|
+
type: _lssm_lib_schema71.FieldType<Date, string>;
|
|
495
|
+
isOptional: false;
|
|
496
|
+
};
|
|
497
|
+
}>, undefined>;
|
|
498
|
+
/**
|
|
499
|
+
* ListToolsQuery - Lists tools for an organization
|
|
500
|
+
*/
|
|
501
|
+
declare const ListToolsQuery: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema71.SchemaModel<{
|
|
502
|
+
organizationId: {
|
|
503
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
504
|
+
isOptional: false;
|
|
505
|
+
};
|
|
506
|
+
category: {
|
|
507
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string, string, string]>;
|
|
508
|
+
isOptional: true;
|
|
509
|
+
};
|
|
510
|
+
status: {
|
|
511
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
512
|
+
isOptional: true;
|
|
513
|
+
};
|
|
514
|
+
search: {
|
|
515
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
516
|
+
isOptional: true;
|
|
517
|
+
};
|
|
518
|
+
limit: {
|
|
519
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
520
|
+
isOptional: true;
|
|
521
|
+
defaultValue: number;
|
|
522
|
+
};
|
|
523
|
+
offset: {
|
|
524
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
525
|
+
isOptional: true;
|
|
526
|
+
defaultValue: number;
|
|
527
|
+
};
|
|
528
|
+
}>, _lssm_lib_schema71.SchemaModel<{
|
|
529
|
+
items: {
|
|
530
|
+
type: _lssm_lib_schema71.SchemaModel<{
|
|
531
|
+
id: {
|
|
532
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
533
|
+
isOptional: false;
|
|
534
|
+
};
|
|
535
|
+
name: {
|
|
536
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
537
|
+
isOptional: false;
|
|
538
|
+
};
|
|
539
|
+
slug: {
|
|
540
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
541
|
+
isOptional: false;
|
|
542
|
+
};
|
|
543
|
+
description: {
|
|
544
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
545
|
+
isOptional: false;
|
|
546
|
+
};
|
|
547
|
+
category: {
|
|
548
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string, string, string]>;
|
|
549
|
+
isOptional: false;
|
|
550
|
+
};
|
|
551
|
+
status: {
|
|
552
|
+
type: _lssm_lib_schema71.EnumType<[string, string, string, string]>;
|
|
553
|
+
isOptional: false;
|
|
554
|
+
};
|
|
555
|
+
version: {
|
|
556
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
557
|
+
isOptional: false;
|
|
558
|
+
};
|
|
559
|
+
createdAt: {
|
|
560
|
+
type: _lssm_lib_schema71.FieldType<Date, string>;
|
|
561
|
+
isOptional: false;
|
|
562
|
+
};
|
|
563
|
+
}>;
|
|
564
|
+
isArray: true;
|
|
565
|
+
isOptional: false;
|
|
566
|
+
};
|
|
567
|
+
total: {
|
|
568
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
569
|
+
isOptional: false;
|
|
570
|
+
};
|
|
571
|
+
hasMore: {
|
|
572
|
+
type: _lssm_lib_schema71.FieldType<boolean, boolean>;
|
|
573
|
+
isOptional: false;
|
|
574
|
+
};
|
|
575
|
+
}>, undefined>;
|
|
576
|
+
/**
|
|
577
|
+
* TestToolCommand - Tests a tool with sample input
|
|
578
|
+
*/
|
|
579
|
+
declare const TestToolCommand: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema71.SchemaModel<{
|
|
580
|
+
toolId: {
|
|
581
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
582
|
+
isOptional: false;
|
|
583
|
+
};
|
|
584
|
+
testInput: {
|
|
585
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
586
|
+
isOptional: false;
|
|
587
|
+
};
|
|
588
|
+
}>, _lssm_lib_schema71.SchemaModel<{
|
|
589
|
+
success: {
|
|
590
|
+
type: _lssm_lib_schema71.FieldType<boolean, boolean>;
|
|
591
|
+
isOptional: false;
|
|
592
|
+
};
|
|
593
|
+
output: {
|
|
594
|
+
type: _lssm_lib_schema71.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
595
|
+
isOptional: true;
|
|
596
|
+
};
|
|
597
|
+
error: {
|
|
598
|
+
type: _lssm_lib_schema71.FieldType<string, string>;
|
|
599
|
+
isOptional: true;
|
|
600
|
+
};
|
|
601
|
+
durationMs: {
|
|
602
|
+
type: _lssm_lib_schema71.FieldType<number, number>;
|
|
603
|
+
isOptional: false;
|
|
604
|
+
};
|
|
605
|
+
}>, undefined>;
|
|
606
|
+
//#endregion
|
|
607
|
+
export { CreateToolCommand, CreateToolInputModel, GetToolQuery, ImplementationTypeEnum, ListToolsQuery, TestToolCommand, ToolCategoryEnum, ToolModel, ToolStatusEnum, ToolSummaryModel, UpdateToolCommand, UpdateToolInputModel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"../libs/contracts/dist/spec.js";import{r as n}from"../libs/schema/dist/EnumType.js";import{l as r}from"../libs/schema/dist/ScalarTypeEnum.js";import{n as i}from"../libs/schema/dist/SchemaModel.js";import"../libs/schema/dist/index.js";const a=[`agent-console-team`],o=n(`ToolCategory`,[`RETRIEVAL`,`COMPUTATION`,`COMMUNICATION`,`INTEGRATION`,`UTILITY`,`CUSTOM`]),s=n(`ToolStatus`,[`DRAFT`,`ACTIVE`,`DEPRECATED`,`DISABLED`]),c=n(`ImplementationType`,[`http`,`function`,`workflow`]),l=i({name:`Tool`,description:`AI tool definition`,fields:{id:{type:r.String_unsecure(),isOptional:!1},organizationId:{type:r.String_unsecure(),isOptional:!1},name:{type:r.NonEmptyString(),isOptional:!1},slug:{type:r.String_unsecure(),isOptional:!1},description:{type:r.String_unsecure(),isOptional:!1},category:{type:o,isOptional:!1},status:{type:s,isOptional:!1},parametersSchema:{type:r.JSONObject(),isOptional:!1},outputSchema:{type:r.JSONObject(),isOptional:!0},implementationType:{type:c,isOptional:!1},implementationConfig:{type:r.JSONObject(),isOptional:!1},maxInvocationsPerMinute:{type:r.Int_unsecure(),isOptional:!0},timeoutMs:{type:r.Int_unsecure(),isOptional:!1,defaultValue:3e4},version:{type:r.NonEmptyString(),isOptional:!1},tags:{type:r.String_unsecure(),isArray:!0,isOptional:!0},createdAt:{type:r.DateTime(),isOptional:!1},updatedAt:{type:r.DateTime(),isOptional:!1}}}),u=i({name:`ToolSummary`,description:`Summary of a tool for list views`,fields:{id:{type:r.String_unsecure(),isOptional:!1},name:{type:r.NonEmptyString(),isOptional:!1},slug:{type:r.String_unsecure(),isOptional:!1},description:{type:r.String_unsecure(),isOptional:!1},category:{type:o,isOptional:!1},status:{type:s,isOptional:!1},version:{type:r.NonEmptyString(),isOptional:!1},createdAt:{type:r.DateTime(),isOptional:!1}}}),d=i({name:`CreateToolInput`,description:`Input for creating a tool`,fields:{organizationId:{type:r.String_unsecure(),isOptional:!1},name:{type:r.NonEmptyString(),isOptional:!1},slug:{type:r.String_unsecure(),isOptional:!1},description:{type:r.String_unsecure(),isOptional:!1},category:{type:o,isOptional:!0},parametersSchema:{type:r.JSONObject(),isOptional:!1},outputSchema:{type:r.JSONObject(),isOptional:!0},implementationType:{type:c,isOptional:!1},implementationConfig:{type:r.JSONObject(),isOptional:!1},maxInvocationsPerMinute:{type:r.Int_unsecure(),isOptional:!0},timeoutMs:{type:r.Int_unsecure(),isOptional:!0},tags:{type:r.String_unsecure(),isArray:!0,isOptional:!0}}}),f=i({name:`UpdateToolInput`,description:`Input for updating a tool`,fields:{toolId:{type:r.String_unsecure(),isOptional:!1},name:{type:r.NonEmptyString(),isOptional:!0},description:{type:r.String_unsecure(),isOptional:!0},status:{type:s,isOptional:!0},parametersSchema:{type:r.JSONObject(),isOptional:!0},outputSchema:{type:r.JSONObject(),isOptional:!0},implementationConfig:{type:r.JSONObject(),isOptional:!0},maxInvocationsPerMinute:{type:r.Int_unsecure(),isOptional:!0},timeoutMs:{type:r.Int_unsecure(),isOptional:!0},tags:{type:r.String_unsecure(),isArray:!0,isOptional:!0}}}),p=t({meta:{name:`agent.tool.create`,version:1,stability:`stable`,owners:[...a],tags:[`tool`,`create`],description:`Creates a new AI tool definition.`,goal:`Allow users to define new tools that agents can use.`,context:`Called from the tool builder UI when creating a new tool.`},io:{input:d,output:i({name:`CreateToolOutput`,fields:{id:{type:r.String_unsecure(),isOptional:!1},name:{type:r.NonEmptyString(),isOptional:!1},slug:{type:r.String_unsecure(),isOptional:!1},status:{type:s,isOptional:!1}}}),errors:{SLUG_EXISTS:{description:`A tool with this slug already exists in the organization`,http:409,gqlCode:`SLUG_EXISTS`,when:`Slug is already taken`}}},policy:{auth:`user`},sideEffects:{emits:[{name:`tool.created`,version:1,when:`Tool is successfully created`,payload:u}],audit:[`tool.created`]}}),m=t({meta:{name:`agent.tool.update`,version:1,stability:`stable`,owners:[...a],tags:[`tool`,`update`],description:`Updates an existing AI tool definition.`,goal:`Allow users to modify tool settings and configuration.`,context:`Called from the tool settings UI.`},io:{input:f,output:i({name:`UpdateToolOutput`,fields:{id:{type:r.String_unsecure(),isOptional:!1},name:{type:r.NonEmptyString(),isOptional:!1},status:{type:s,isOptional:!1},updatedAt:{type:r.DateTime(),isOptional:!1}}}),errors:{TOOL_NOT_FOUND:{description:`The specified tool does not exist`,http:404,gqlCode:`TOOL_NOT_FOUND`,when:`Tool ID is invalid`}}},policy:{auth:`user`},sideEffects:{emits:[{name:`tool.updated`,version:1,when:`Tool is updated`,payload:u}],audit:[`tool.updated`]}}),h=e({meta:{name:`agent.tool.get`,version:1,stability:`stable`,owners:[...a],tags:[`tool`,`get`],description:`Retrieves a tool by its ID.`,goal:`View detailed tool configuration.`,context:`Called when viewing tool details or editing.`},io:{input:i({name:`GetToolInput`,fields:{toolId:{type:r.String_unsecure(),isOptional:!1}}}),output:l,errors:{TOOL_NOT_FOUND:{description:`The specified tool does not exist`,http:404,gqlCode:`TOOL_NOT_FOUND`,when:`Tool ID is invalid`}}},policy:{auth:`user`}}),g=e({meta:{name:`agent.tool.list`,version:1,stability:`stable`,owners:[...a],tags:[`tool`,`list`],description:`Lists tools for an organization with optional filtering.`,goal:`Browse and search available tools.`,context:`Tool list/dashboard view.`},io:{input:i({name:`ListToolsInput`,fields:{organizationId:{type:r.String_unsecure(),isOptional:!1},category:{type:o,isOptional:!0},status:{type:s,isOptional:!0},search:{type:r.String_unsecure(),isOptional:!0},limit:{type:r.Int_unsecure(),isOptional:!0,defaultValue:20},offset:{type:r.Int_unsecure(),isOptional:!0,defaultValue:0}}}),output:i({name:`ListToolsOutput`,fields:{items:{type:u,isArray:!0,isOptional:!1},total:{type:r.Int_unsecure(),isOptional:!1},hasMore:{type:r.Boolean(),isOptional:!1}}})},policy:{auth:`user`}}),_=t({meta:{name:`agent.tool.test`,version:1,stability:`stable`,owners:[...a],tags:[`tool`,`test`],description:`Tests a tool with sample input to verify it works correctly.`,goal:`Validate tool configuration before deployment.`,context:`Tool builder UI - test panel.`},io:{input:i({name:`TestToolInput`,fields:{toolId:{type:r.String_unsecure(),isOptional:!1},testInput:{type:r.JSONObject(),isOptional:!1}}}),output:i({name:`TestToolOutput`,fields:{success:{type:r.Boolean(),isOptional:!1},output:{type:r.JSONObject(),isOptional:!0},error:{type:r.String_unsecure(),isOptional:!0},durationMs:{type:r.Int_unsecure(),isOptional:!1}}}),errors:{TOOL_NOT_FOUND:{description:`The specified tool does not exist`,http:404,gqlCode:`TOOL_NOT_FOUND`,when:`Tool ID is invalid`},TOOL_EXECUTION_ERROR:{description:`Tool execution failed`,http:500,gqlCode:`TOOL_EXECUTION_ERROR`,when:`Tool returns an error`}}},policy:{auth:`user`},sideEffects:{audit:[`tool.tested`]}});export{p as CreateToolCommand,d as CreateToolInputModel,h as GetToolQuery,c as ImplementationTypeEnum,g as ListToolsQuery,_ as TestToolCommand,o as ToolCategoryEnum,l as ToolModel,s as ToolStatusEnum,u as ToolSummaryModel,m as UpdateToolCommand,f as UpdateToolInputModel};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as _lssm_lib_schema36 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/agent.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Agent status for lifecycle management
|
|
6
|
+
*/
|
|
7
|
+
declare const AgentStatusEnum: _lssm_lib_schema36.EntityEnumDef;
|
|
8
|
+
/**
|
|
9
|
+
* Agent model provider
|
|
10
|
+
*/
|
|
11
|
+
declare const ModelProviderEnum: _lssm_lib_schema36.EntityEnumDef;
|
|
12
|
+
/**
|
|
13
|
+
* Agent entity - Represents an AI agent configuration
|
|
14
|
+
*/
|
|
15
|
+
declare const AgentEntity: _lssm_lib_schema36.EntitySpec<{
|
|
16
|
+
id: _lssm_lib_schema36.EntityScalarField;
|
|
17
|
+
organizationId: _lssm_lib_schema36.EntityScalarField;
|
|
18
|
+
name: _lssm_lib_schema36.EntityScalarField;
|
|
19
|
+
slug: _lssm_lib_schema36.EntityScalarField;
|
|
20
|
+
description: _lssm_lib_schema36.EntityScalarField;
|
|
21
|
+
status: _lssm_lib_schema36.EntityEnumField;
|
|
22
|
+
modelProvider: _lssm_lib_schema36.EntityEnumField;
|
|
23
|
+
modelName: _lssm_lib_schema36.EntityScalarField;
|
|
24
|
+
modelConfig: _lssm_lib_schema36.EntityScalarField;
|
|
25
|
+
systemPrompt: _lssm_lib_schema36.EntityScalarField;
|
|
26
|
+
userPromptTemplate: _lssm_lib_schema36.EntityScalarField;
|
|
27
|
+
toolIds: _lssm_lib_schema36.EntityScalarField;
|
|
28
|
+
toolChoice: _lssm_lib_schema36.EntityScalarField;
|
|
29
|
+
maxIterations: _lssm_lib_schema36.EntityScalarField;
|
|
30
|
+
maxTokensPerRun: _lssm_lib_schema36.EntityScalarField;
|
|
31
|
+
timeoutMs: _lssm_lib_schema36.EntityScalarField;
|
|
32
|
+
version: _lssm_lib_schema36.EntityScalarField;
|
|
33
|
+
tags: _lssm_lib_schema36.EntityScalarField;
|
|
34
|
+
createdAt: _lssm_lib_schema36.EntityScalarField;
|
|
35
|
+
updatedAt: _lssm_lib_schema36.EntityScalarField;
|
|
36
|
+
createdById: _lssm_lib_schema36.EntityScalarField;
|
|
37
|
+
tools: _lssm_lib_schema36.EntityRelationField;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* AgentTool join entity - Links agents to their assigned tools
|
|
41
|
+
*/
|
|
42
|
+
declare const AgentToolEntity: _lssm_lib_schema36.EntitySpec<{
|
|
43
|
+
id: _lssm_lib_schema36.EntityScalarField;
|
|
44
|
+
agentId: _lssm_lib_schema36.EntityScalarField;
|
|
45
|
+
toolId: _lssm_lib_schema36.EntityScalarField;
|
|
46
|
+
config: _lssm_lib_schema36.EntityScalarField;
|
|
47
|
+
order: _lssm_lib_schema36.EntityScalarField;
|
|
48
|
+
isEnabled: _lssm_lib_schema36.EntityScalarField;
|
|
49
|
+
createdAt: _lssm_lib_schema36.EntityScalarField;
|
|
50
|
+
agent: _lssm_lib_schema36.EntityRelationField;
|
|
51
|
+
tool: _lssm_lib_schema36.EntityRelationField;
|
|
52
|
+
}>;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { AgentEntity, AgentStatusEnum, AgentToolEntity, ModelProviderEnum };
|