@lssm/example.agent-console 0.0.0-canary-20251223215909 → 0.0.0-canary-20251225042407

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.
Files changed (64) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +36 -36
  2. package/.turbo/turbo-build.log +35 -35
  3. package/CHANGELOG.md +6 -6
  4. package/dist/agent/agent.entity.d.ts +36 -36
  5. package/dist/agent/agent.entity.d.ts.map +1 -1
  6. package/dist/agent/agent.enum.d.ts +4 -4
  7. package/dist/agent/agent.enum.d.ts.map +1 -1
  8. package/dist/agent/agent.event.d.ts +30 -30
  9. package/dist/agent/agent.event.d.ts.map +1 -1
  10. package/dist/agent/agent.event.js +41 -12
  11. package/dist/agent/agent.event.js.map +1 -1
  12. package/dist/agent/agent.operation.d.ts +120 -154
  13. package/dist/agent/agent.operation.d.ts.map +1 -1
  14. package/dist/agent/agent.operation.js +12 -9
  15. package/dist/agent/agent.operation.js.map +1 -1
  16. package/dist/agent/agent.presentation.d.ts.map +1 -1
  17. package/dist/agent/agent.presentation.js +19 -6
  18. package/dist/agent/agent.presentation.js.map +1 -1
  19. package/dist/agent/agent.schema.d.ts +95 -95
  20. package/dist/agent/agent.schema.d.ts.map +1 -1
  21. package/dist/agent.feature.js +76 -69
  22. package/dist/agent.feature.js.map +1 -1
  23. package/dist/run/run.entity.d.ts +56 -56
  24. package/dist/run/run.enum.d.ts +5 -5
  25. package/dist/run/run.event.d.ts +70 -70
  26. package/dist/run/run.event.d.ts.map +1 -1
  27. package/dist/run/run.event.js +69 -21
  28. package/dist/run/run.event.js.map +1 -1
  29. package/dist/run/run.operation.d.ts +182 -176
  30. package/dist/run/run.operation.d.ts.map +1 -1
  31. package/dist/run/run.operation.js +16 -10
  32. package/dist/run/run.operation.js.map +1 -1
  33. package/dist/run/run.presentation.d.ts.map +1 -1
  34. package/dist/run/run.presentation.js +13 -4
  35. package/dist/run/run.presentation.js.map +1 -1
  36. package/dist/run/run.schema.d.ts +99 -99
  37. package/dist/tool/tool.entity.d.ts +24 -24
  38. package/dist/tool/tool.enum.d.ts +4 -4
  39. package/dist/tool/tool.event.d.ts +24 -24
  40. package/dist/tool/tool.event.d.ts.map +1 -1
  41. package/dist/tool/tool.event.js +25 -9
  42. package/dist/tool/tool.event.js.map +1 -1
  43. package/dist/tool/tool.handler.d.ts.map +1 -1
  44. package/dist/tool/tool.operation.d.ts +108 -102
  45. package/dist/tool/tool.operation.d.ts.map +1 -1
  46. package/dist/tool/tool.operation.js +14 -8
  47. package/dist/tool/tool.operation.js.map +1 -1
  48. package/dist/tool/tool.presentation.d.ts.map +1 -1
  49. package/dist/tool/tool.presentation.js +13 -4
  50. package/dist/tool/tool.presentation.js.map +1 -1
  51. package/dist/tool/tool.schema.d.ts +52 -52
  52. package/dist/tool/tool.schema.d.ts.map +1 -1
  53. package/package.json +8 -8
  54. package/src/agent/agent.event.ts +34 -12
  55. package/src/agent/agent.operation.ts +12 -9
  56. package/src/agent/agent.presentation.ts +16 -3
  57. package/src/agent.feature.ts +58 -56
  58. package/src/run/run.event.ts +58 -21
  59. package/src/run/run.operation.ts +16 -10
  60. package/src/run/run.presentation.ts +11 -2
  61. package/src/tool/tool.event.ts +27 -10
  62. package/src/tool/tool.operation.ts +14 -8
  63. package/src/tool/tool.presentation.ts +11 -2
  64. package/tsconfig.tsbuildinfo +1 -1
@@ -11,7 +11,7 @@ const OWNERS = ["@agent-console-team"];
11
11
  */
12
12
  const CreateAgentCommand = defineCommand({
13
13
  meta: {
14
- name: "agent.agent.create",
14
+ key: "agent-console.agent.create",
15
15
  version: 1,
16
16
  stability: "stable",
17
17
  owners: [...OWNERS],
@@ -53,10 +53,10 @@ const CreateAgentCommand = defineCommand({
53
53
  policy: { auth: "user" },
54
54
  sideEffects: {
55
55
  emits: [{
56
- ref: AgentCreatedEvent,
56
+ ref: AgentCreatedEvent.meta,
57
57
  when: "Agent is successfully created"
58
58
  }],
59
- audit: ["agent.created"]
59
+ audit: ["agent-console.agent.created"]
60
60
  }
61
61
  });
62
62
  /**
@@ -64,7 +64,7 @@ const CreateAgentCommand = defineCommand({
64
64
  */
65
65
  const UpdateAgentCommand = defineCommand({
66
66
  meta: {
67
- name: "agent.agent.update",
67
+ key: "agent-console.agent.update",
68
68
  version: 1,
69
69
  stability: "stable",
70
70
  owners: [...OWNERS],
@@ -106,8 +106,11 @@ const UpdateAgentCommand = defineCommand({
106
106
  policy: { auth: "user" },
107
107
  sideEffects: {
108
108
  emits: [{
109
- name: "agent.updated",
109
+ key: "agent.updated",
110
110
  version: 1,
111
+ stability: "stable",
112
+ owners: [...OWNERS],
113
+ tags: ["agent", "updated"],
111
114
  when: "Agent is updated",
112
115
  payload: AgentSummaryModel
113
116
  }],
@@ -119,7 +122,7 @@ const UpdateAgentCommand = defineCommand({
119
122
  */
120
123
  const GetAgentQuery = defineQuery({
121
124
  meta: {
122
- name: "agent.agent.get",
125
+ key: "agent-console.agent.get",
123
126
  version: 1,
124
127
  stability: "stable",
125
128
  owners: [...OWNERS],
@@ -157,7 +160,7 @@ const GetAgentQuery = defineQuery({
157
160
  */
158
161
  const ListAgentsQuery = defineQuery({
159
162
  meta: {
160
- name: "agent.agent.list",
163
+ key: "agent-console.agent.list",
161
164
  version: 1,
162
165
  stability: "stable",
163
166
  owners: [...OWNERS],
@@ -224,7 +227,7 @@ const ListAgentsQuery = defineQuery({
224
227
  */
225
228
  const AssignToolToAgentCommand = defineCommand({
226
229
  meta: {
227
- name: "agent.agent.assignTool",
230
+ key: "agent-console.agent.assignTool",
228
231
  version: 1,
229
232
  stability: "stable",
230
233
  owners: [...OWNERS],
@@ -291,7 +294,7 @@ const AssignToolToAgentCommand = defineCommand({
291
294
  */
292
295
  const RemoveToolFromAgentCommand = defineCommand({
293
296
  meta: {
294
- name: "agent.agent.removeTool",
297
+ key: "agent-console.agent.removeTool",
295
298
  version: 1,
296
299
  stability: "stable",
297
300
  owners: [...OWNERS],
@@ -1 +1 @@
1
- {"version":3,"file":"agent.operation.js","names":[],"sources":["../../src/agent/agent.operation.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/operations';\nimport { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { AgentStatusEnum, ModelProviderEnum } from './agent.enum';\nimport {\n AgentSummaryModel,\n AgentWithToolsModel,\n CreateAgentInputModel,\n UpdateAgentInputModel,\n} from './agent.schema';\nimport { AgentCreatedEvent } from './agent.event';\n\nconst OWNERS = ['@agent-console-team'] as const;\n\n/**\n * CreateAgentCommand - Creates a new agent configuration.\n */\nexport const CreateAgentCommand = defineCommand({\n meta: {\n name: 'agent.agent.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'create'],\n description: 'Creates a new AI agent configuration.',\n goal: 'Allow users to define new AI agents with specific models and tools.',\n context: 'Called from the agent builder UI when creating a new agent.',\n },\n io: {\n input: CreateAgentInputModel,\n output: defineSchemaModel({\n name: 'CreateAgentOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: AgentStatusEnum, isOptional: false },\n },\n }),\n errors: {\n SLUG_EXISTS: {\n description:\n 'An agent with this slug already exists in the organization',\n http: 409,\n gqlCode: 'SLUG_EXISTS',\n when: 'Slug is already taken',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n // name: 'agent.created',\n // version: 1,\n // payload: AgentSummaryModel,\n ref: AgentCreatedEvent,\n when: 'Agent is successfully created',\n },\n ],\n audit: ['agent.created'],\n },\n});\n\n/**\n * UpdateAgentCommand - Updates an existing agent.\n */\nexport const UpdateAgentCommand = defineCommand({\n meta: {\n name: 'agent.agent.update',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'update'],\n description: 'Updates an existing AI agent configuration.',\n goal: 'Allow users to modify agent settings and configuration.',\n context: 'Called from the agent settings UI.',\n },\n io: {\n input: UpdateAgentInputModel,\n output: defineSchemaModel({\n name: 'UpdateAgentOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n status: { type: AgentStatusEnum, isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n }),\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'agent.updated',\n version: 1,\n when: 'Agent is updated',\n payload: AgentSummaryModel,\n },\n ],\n audit: ['agent.updated'],\n },\n});\n\n/**\n * GetAgentQuery - Retrieves an agent by ID.\n */\nexport const GetAgentQuery = defineQuery({\n meta: {\n name: 'agent.agent.get',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'get'],\n description: 'Retrieves an agent by its ID.',\n goal: 'View detailed agent configuration.',\n context: 'Called when viewing agent details or editing.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n includeTools: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n }),\n output: AgentWithToolsModel,\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n});\n\n/**\n * ListAgentsQuery - Lists agents for an organization.\n */\nexport const ListAgentsQuery = defineQuery({\n meta: {\n name: 'agent.agent.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'list'],\n description: 'Lists agents for an organization with optional filtering.',\n goal: 'Browse and search available agents.',\n context: 'Agent list/dashboard view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ListAgentsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n status: { type: AgentStatusEnum, isOptional: true },\n modelProvider: { type: ModelProviderEnum, isOptional: true },\n search: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'ListAgentsOutput',\n fields: {\n items: { type: AgentSummaryModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * AssignToolToAgentCommand - Assigns a tool to an agent.\n */\nexport const AssignToolToAgentCommand = defineCommand({\n meta: {\n name: 'agent.agent.assignTool',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'assign'],\n description: 'Assigns a tool to an agent with optional configuration.',\n goal: 'Enable agents to use specific tools.',\n context: 'Agent configuration UI - tool selection.',\n },\n io: {\n input: defineSchemaModel({\n name: 'AssignToolToAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n config: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n order: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n }),\n output: defineSchemaModel({\n name: 'AssignToolToAgentOutput',\n fields: {\n agentToolId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n errors: {\n TOOL_ALREADY_ASSIGNED: {\n description: 'This tool is already assigned to the agent',\n http: 409,\n gqlCode: 'TOOL_ALREADY_ASSIGNED',\n when: 'Tool assignment already exists',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['agent.tool.assigned'] },\n});\n\n/**\n * RemoveToolFromAgentCommand - Removes a tool from an agent.\n */\nexport const RemoveToolFromAgentCommand = defineCommand({\n meta: {\n name: 'agent.agent.removeTool',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'remove'],\n description: 'Removes a tool assignment from an agent.',\n goal: 'Disable specific tools for an agent.',\n context: 'Agent configuration UI - tool management.',\n },\n io: {\n input: defineSchemaModel({\n name: 'RemoveToolFromAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n output: defineSchemaModel({\n name: 'RemoveToolFromAgentOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['agent.tool.removed'] },\n});\n"],"mappings":";;;;;;;AAWA,MAAM,SAAS,CAAC,sBAAsB;;;;AAKtC,MAAa,qBAAqB,cAAc;CAC9C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,SAAS,SAAS;EACzB,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ,kBAAkB;GACxB,MAAM;GACN,QAAQ;IACN,IAAI;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACjE,MAAM;KAAE,MAAM,eAAe,gBAAgB;KAAE,YAAY;KAAO;IAClE,MAAM;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACnE,QAAQ;KAAE,MAAM;KAAiB,YAAY;KAAO;IACrD;GACF,CAAC;EACF,QAAQ,EACN,aAAa;GACX,aACE;GACF,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ation.js","names":[],"sources":["../../src/agent/agent.operation.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/operations';\nimport { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { AgentStatusEnum, ModelProviderEnum } from './agent.enum';\nimport {\n AgentSummaryModel,\n AgentWithToolsModel,\n CreateAgentInputModel,\n UpdateAgentInputModel,\n} from './agent.schema';\nimport { AgentCreatedEvent } from './agent.event';\n\nconst OWNERS = ['@agent-console-team'] as const;\n\n/**\n * CreateAgentCommand - Creates a new agent configuration.\n */\nexport const CreateAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'create'],\n description: 'Creates a new AI agent configuration.',\n goal: 'Allow users to define new AI agents with specific models and tools.',\n context: 'Called from the agent builder UI when creating a new agent.',\n },\n io: {\n input: CreateAgentInputModel,\n output: defineSchemaModel({\n name: 'CreateAgentOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: AgentStatusEnum, isOptional: false },\n },\n }),\n errors: {\n SLUG_EXISTS: {\n description:\n 'An agent with this slug already exists in the organization',\n http: 409,\n gqlCode: 'SLUG_EXISTS',\n when: 'Slug is already taken',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n // name: 'agent.created',\n // version: 1,\n // payload: AgentSummaryModel,\n ref: AgentCreatedEvent.meta,\n when: 'Agent is successfully created',\n },\n ],\n audit: ['agent-console.agent.created'],\n },\n});\n\n/**\n * UpdateAgentCommand - Updates an existing agent.\n */\nexport const UpdateAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.update',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'update'],\n description: 'Updates an existing AI agent configuration.',\n goal: 'Allow users to modify agent settings and configuration.',\n context: 'Called from the agent settings UI.',\n },\n io: {\n input: UpdateAgentInputModel,\n output: defineSchemaModel({\n name: 'UpdateAgentOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n status: { type: AgentStatusEnum, isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n }),\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n key: 'agent.updated',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'updated'],\n when: 'Agent is updated',\n payload: AgentSummaryModel,\n },\n ],\n audit: ['agent.updated'],\n },\n});\n\n/**\n * GetAgentQuery - Retrieves an agent by ID.\n */\nexport const GetAgentQuery = defineQuery({\n meta: {\n key: 'agent-console.agent.get',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'get'],\n description: 'Retrieves an agent by its ID.',\n goal: 'View detailed agent configuration.',\n context: 'Called when viewing agent details or editing.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n includeTools: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n }),\n output: AgentWithToolsModel,\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n});\n\n/**\n * ListAgentsQuery - Lists agents for an organization.\n */\nexport const ListAgentsQuery = defineQuery({\n meta: {\n key: 'agent-console.agent.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'list'],\n description: 'Lists agents for an organization with optional filtering.',\n goal: 'Browse and search available agents.',\n context: 'Agent list/dashboard view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ListAgentsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n status: { type: AgentStatusEnum, isOptional: true },\n modelProvider: { type: ModelProviderEnum, isOptional: true },\n search: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'ListAgentsOutput',\n fields: {\n items: { type: AgentSummaryModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * AssignToolToAgentCommand - Assigns a tool to an agent.\n */\nexport const AssignToolToAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.assignTool',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'assign'],\n description: 'Assigns a tool to an agent with optional configuration.',\n goal: 'Enable agents to use specific tools.',\n context: 'Agent configuration UI - tool selection.',\n },\n io: {\n input: defineSchemaModel({\n name: 'AssignToolToAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n config: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n order: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n }),\n output: defineSchemaModel({\n name: 'AssignToolToAgentOutput',\n fields: {\n agentToolId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n errors: {\n TOOL_ALREADY_ASSIGNED: {\n description: 'This tool is already assigned to the agent',\n http: 409,\n gqlCode: 'TOOL_ALREADY_ASSIGNED',\n when: 'Tool assignment already exists',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['agent.tool.assigned'] },\n});\n\n/**\n * RemoveToolFromAgentCommand - Removes a tool from an agent.\n */\nexport const RemoveToolFromAgentCommand = defineCommand({\n meta: {\n key: 'agent-console.agent.removeTool',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'remove'],\n description: 'Removes a tool assignment from an agent.',\n goal: 'Disable specific tools for an agent.',\n context: 'Agent configuration UI - tool management.',\n },\n io: {\n input: defineSchemaModel({\n name: 'RemoveToolFromAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n output: defineSchemaModel({\n name: 'RemoveToolFromAgentOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['agent.tool.removed'] },\n});\n"],"mappings":";;;;;;;AAWA,MAAM,SAAS,CAAC,sBAAsB;;;;AAKtC,MAAa,qBAAqB,cAAc;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,SAAS,SAAS;EACzB,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ,kBAAkB;GACxB,MAAM;GACN,QAAQ;IACN,IAAI;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACjE,MAAM;KAAE,MAAM,eAAe,gBAAgB;KAAE,YAAY;KAAO;IAClE,MAAM;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACnE,QAAQ;KAAE,MAAM;KAAiB,YAAY;KA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AAO,EAC/D;GACF,CAAC;EACH;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa,EAAE,OAAO,CAAC,qBAAqB,EAAE;CAC/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"agent.presentation.d.ts","names":[],"sources":["../../src/agent/agent.presentation.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;AAuBa,cAvBA,qBAuByB,EAvBF,gBAwCnC;AAKD;;;cAtBa,yBAAyB;;;;cAsBzB,mCAAmC"}
1
+ {"version":3,"file":"agent.presentation.d.ts","names":[],"sources":["../../src/agent/agent.presentation.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;AA2Ba,cA3BA,qBA2ByB,EA3BF,gBAgDnC;AAKD;;;cA1Ba,yBAAyB;;;;cA0BzB,mCAAmC"}
@@ -1,4 +1,5 @@
1
1
  import { AgentSummaryModel } from "./agent.schema.js";
2
+ import { StabilityEnum } from "@lssm/lib.contracts";
2
3
 
3
4
  //#region src/agent/agent.presentation.ts
4
5
  /**
@@ -6,16 +7,20 @@ import { AgentSummaryModel } from "./agent.schema.js";
6
7
  */
7
8
  const AgentListPresentation = {
8
9
  meta: {
9
- name: "agent-console.agent.list",
10
+ key: "agent-console.agent.list",
10
11
  version: 1,
12
+ title: "Agent List",
11
13
  description: "List view of AI agents with status, model provider, and version info",
14
+ goal: "Provide an overview of all agents in an organization.",
15
+ context: "Main landing page for agent management.",
12
16
  domain: "agent-console",
13
17
  owners: ["@agent-console-team"],
14
18
  tags: [
15
19
  "agent",
16
20
  "list",
17
21
  "dashboard"
18
- ]
22
+ ],
23
+ stability: StabilityEnum.Experimental
19
24
  },
20
25
  source: {
21
26
  type: "component",
@@ -35,12 +40,16 @@ const AgentListPresentation = {
35
40
  */
36
41
  const AgentDetailPresentation = {
37
42
  meta: {
38
- name: "agent-console.agent.detail",
43
+ key: "agent-console.agent.detail",
39
44
  version: 1,
45
+ title: "Agent Details",
40
46
  description: "Detailed view of an AI agent with configuration, tools, and recent runs",
47
+ goal: "Allow users to inspect and configure a specific agent.",
48
+ context: "Detailed view of an agent.",
41
49
  domain: "agent-console",
42
50
  owners: ["@agent-console-team"],
43
- tags: ["agent", "detail"]
51
+ tags: ["agent", "detail"],
52
+ stability: StabilityEnum.Experimental
44
53
  },
45
54
  source: {
46
55
  type: "component",
@@ -55,12 +64,16 @@ const AgentDetailPresentation = {
55
64
  */
56
65
  const AgentConsoleDashboardPresentation = {
57
66
  meta: {
58
- name: "agent-console.dashboard",
67
+ key: "agent-console.dashboard",
59
68
  version: 1,
69
+ title: "Agent Console Dashboard",
60
70
  description: "Dashboard overview of AI agents, runs, and tools",
71
+ goal: "Provide a high-level overview of the AI platform health and usage.",
72
+ context: "Root dashboard of the Agent Console.",
61
73
  domain: "agent-console",
62
74
  owners: ["@agent-console-team"],
63
- tags: ["dashboard", "overview"]
75
+ tags: ["dashboard", "overview"],
76
+ stability: StabilityEnum.Experimental
64
77
  },
65
78
  source: {
66
79
  type: "component",
@@ -1 +1 @@
1
- {"version":3,"file":"agent.presentation.js","names":["AgentListPresentation: PresentationSpec","AgentDetailPresentation: PresentationSpec","AgentConsoleDashboardPresentation: PresentationSpec"],"sources":["../../src/agent/agent.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@lssm/lib.contracts';\nimport { AgentSummaryModel } from './agent.schema';\n\n/**\n * Presentation for displaying a list of AI agents.\n */\nexport const AgentListPresentation: PresentationSpec = {\n meta: {\n name: 'agent-console.agent.list',\n version: 1,\n description:\n 'List view of AI agents with status, model provider, and version info',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['agent', 'list', 'dashboard'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentListView',\n props: AgentSummaryModel,\n },\n targets: ['react', 'markdown', 'application/json'],\n policy: { flags: ['agent-console.enabled'] },\n};\n\n/**\n * Presentation for agent detail view.\n */\nexport const AgentDetailPresentation: PresentationSpec = {\n meta: {\n name: 'agent-console.agent.detail',\n version: 1,\n description:\n 'Detailed view of an AI agent with configuration, tools, and recent runs',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['agent', 'detail'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentDetailView',\n },\n targets: ['react', 'markdown'],\n policy: { flags: ['agent-console.enabled'] },\n};\n\n/**\n * Dashboard presentation for Agent Console - overview of agents, runs, and tools.\n */\nexport const AgentConsoleDashboardPresentation: PresentationSpec = {\n meta: {\n name: 'agent-console.dashboard',\n version: 1,\n description: 'Dashboard overview of AI agents, runs, and tools',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['dashboard', 'overview'],\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentConsoleDashboard',\n },\n targets: ['react', 'markdown'],\n policy: { flags: ['agent-console.enabled'] },\n};\n"],"mappings":";;;;;;AAMA,MAAaA,wBAA0C;CACrD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM;GAAC;GAAS;GAAQ;GAAY;EACrC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS;EAAC;EAAS;EAAY;EAAmB;CAClD,QAAQ,EAAE,OAAO,CAAC,wBAAwB,EAAE;CAC7C;;;;AAKD,MAAaC,0BAA4C;CACvD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM,CAAC,SAAS,SAAS;EAC1B;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EAAE,OAAO,CAAC,wBAAwB,EAAE;CAC7C;;;;AAKD,MAAaC,oCAAsD;CACjE,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM,CAAC,aAAa,WAAW;EAChC;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EAAE,OAAO,CAAC,wBAAwB,EAAE;CAC7C"}
1
+ {"version":3,"file":"agent.presentation.js","names":["AgentListPresentation: PresentationSpec","AgentDetailPresentation: PresentationSpec","AgentConsoleDashboardPresentation: PresentationSpec"],"sources":["../../src/agent/agent.presentation.ts"],"sourcesContent":["import type { PresentationSpec } from '@lssm/lib.contracts';\nimport { StabilityEnum } from '@lssm/lib.contracts';\nimport { AgentSummaryModel } from './agent.schema';\n\n/**\n * Presentation for displaying a list of AI agents.\n */\nexport const AgentListPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.agent.list',\n version: 1,\n title: 'Agent List',\n description:\n 'List view of AI agents with status, model provider, and version info',\n goal: 'Provide an overview of all agents in an organization.',\n context: 'Main landing page for agent management.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['agent', 'list', 'dashboard'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentListView',\n props: AgentSummaryModel,\n },\n targets: ['react', 'markdown', 'application/json'],\n policy: { flags: ['agent-console.enabled'] },\n};\n\n/**\n * Presentation for agent detail view.\n */\nexport const AgentDetailPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.agent.detail',\n version: 1,\n title: 'Agent Details',\n description:\n 'Detailed view of an AI agent with configuration, tools, and recent runs',\n goal: 'Allow users to inspect and configure a specific agent.',\n context: 'Detailed view of an agent.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['agent', 'detail'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentDetailView',\n },\n targets: ['react', 'markdown'],\n policy: { flags: ['agent-console.enabled'] },\n};\n\n/**\n * Dashboard presentation for Agent Console - overview of agents, runs, and tools.\n */\nexport const AgentConsoleDashboardPresentation: PresentationSpec = {\n meta: {\n key: 'agent-console.dashboard',\n version: 1,\n title: 'Agent Console Dashboard',\n description: 'Dashboard overview of AI agents, runs, and tools',\n goal: 'Provide a high-level overview of the AI platform health and usage.',\n context: 'Root dashboard of the Agent Console.',\n domain: 'agent-console',\n owners: ['@agent-console-team'],\n tags: ['dashboard', 'overview'],\n stability: StabilityEnum.Experimental,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'AgentConsoleDashboard',\n },\n targets: ['react', 'markdown'],\n policy: { flags: ['agent-console.enabled'] },\n};\n"],"mappings":";;;;;;;AAOA,MAAaA,wBAA0C;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM;GAAC;GAAS;GAAQ;GAAY;EACpC,WAAW,cAAc;EAC1B;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS;EAAC;EAAS;EAAY;EAAmB;CAClD,QAAQ,EAAE,OAAO,CAAC,wBAAwB,EAAE;CAC7C;;;;AAKD,MAAaC,0BAA4C;CACvD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM,CAAC,SAAS,SAAS;EACzB,WAAW,cAAc;EAC1B;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EAAE,OAAO,CAAC,wBAAwB,EAAE;CAC7C;;;;AAKD,MAAaC,oCAAsD;CACjE,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,MAAM;EACN,SAAS;EACT,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM,CAAC,aAAa,WAAW;EAC/B,WAAW,cAAc;EAC1B;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EAAE,OAAO,CAAC,wBAAwB,EAAE;CAC7C"}