@lssm/example.agent-console 0.0.0-canary-20251223214424 → 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 (55) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +29 -29
  2. package/.turbo/turbo-build.log +32 -32
  3. package/CHANGELOG.md +6 -6
  4. package/dist/agent/agent.event.d.ts.map +1 -1
  5. package/dist/agent/agent.event.js +41 -12
  6. package/dist/agent/agent.event.js.map +1 -1
  7. package/dist/agent/agent.operation.d.ts +5 -39
  8. package/dist/agent/agent.operation.d.ts.map +1 -1
  9. package/dist/agent/agent.operation.js +12 -9
  10. package/dist/agent/agent.operation.js.map +1 -1
  11. package/dist/agent/agent.presentation.d.ts.map +1 -1
  12. package/dist/agent/agent.presentation.js +19 -6
  13. package/dist/agent/agent.presentation.js.map +1 -1
  14. package/dist/agent.feature.js +76 -69
  15. package/dist/agent.feature.js.map +1 -1
  16. package/dist/run/run.entity.d.ts +56 -56
  17. package/dist/run/run.enum.d.ts +5 -5
  18. package/dist/run/run.event.d.ts +70 -70
  19. package/dist/run/run.event.d.ts.map +1 -1
  20. package/dist/run/run.event.js +69 -21
  21. package/dist/run/run.event.js.map +1 -1
  22. package/dist/run/run.operation.d.ts +182 -176
  23. package/dist/run/run.operation.d.ts.map +1 -1
  24. package/dist/run/run.operation.js +16 -10
  25. package/dist/run/run.operation.js.map +1 -1
  26. package/dist/run/run.presentation.d.ts.map +1 -1
  27. package/dist/run/run.presentation.js +13 -4
  28. package/dist/run/run.presentation.js.map +1 -1
  29. package/dist/run/run.schema.d.ts +99 -99
  30. package/dist/tool/tool.entity.d.ts +24 -24
  31. package/dist/tool/tool.enum.d.ts +4 -4
  32. package/dist/tool/tool.event.d.ts +24 -24
  33. package/dist/tool/tool.event.d.ts.map +1 -1
  34. package/dist/tool/tool.event.js +25 -9
  35. package/dist/tool/tool.event.js.map +1 -1
  36. package/dist/tool/tool.handler.d.ts.map +1 -1
  37. package/dist/tool/tool.operation.d.ts +108 -102
  38. package/dist/tool/tool.operation.d.ts.map +1 -1
  39. package/dist/tool/tool.operation.js +14 -8
  40. package/dist/tool/tool.operation.js.map +1 -1
  41. package/dist/tool/tool.presentation.d.ts.map +1 -1
  42. package/dist/tool/tool.presentation.js +13 -4
  43. package/dist/tool/tool.presentation.js.map +1 -1
  44. package/package.json +8 -8
  45. package/src/agent/agent.event.ts +34 -12
  46. package/src/agent/agent.operation.ts +12 -9
  47. package/src/agent/agent.presentation.ts +16 -3
  48. package/src/agent.feature.ts +58 -56
  49. package/src/run/run.event.ts +58 -21
  50. package/src/run/run.operation.ts +16 -10
  51. package/src/run/run.presentation.ts +11 -2
  52. package/src/tool/tool.event.ts +27 -10
  53. package/src/tool/tool.operation.ts +14 -8
  54. package/src/tool/tool.presentation.ts +11 -2
  55. package/tsconfig.tsbuildinfo +1 -1
@@ -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: { aud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6BAA6B,cAAc;CACtD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAS;GAAQ;GAAS;EACjC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO,kBAAkB;GACvB,MAAM;GACN,QAAQ;IACN,SAAS;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACtE,QAAQ;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACtE;GACF,CAAC;EACF,QAAQ,kBAAkB;GACxB,MAAM;GACN,QAAQ,EACN,SAAS;IAAE,MAAM,eAAe,SAAS;IAAE,YAAY;IAAO,EAC/D;GACF,CAAC;EACH;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa,EAAE,OAAO,CAAC,qBAAqB,EAAE;CAC/C,CAAC"}
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 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;KAAO;IACrD;GACF,CAAC;EACF,QAAQ,EACN,aAAa;GACX,aACE;GACF,MAAM;GACN,SAAS;GACT,MAAM;GACP,EACF;EACF;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa;EACX,OAAO,CACL;GAIE,KAAK,kBAAkB;GACvB,MAAM;GACP,CACF;EACD,OAAO,CAAC,8BAA8B;EACvC;CACF,CAAC;;;;AAKF,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,QAAQ;KAAE,MAAM;KAAiB,YAAY;KAAO;IACpD,W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;GACN,SAAS;GACT,MAAM;GACP,EACF;EACF;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa,EAAE,OAAO,CAAC,sBAAsB,EAAE;CAChD,CAAC;;;;AAKF,MAAa,6BAA6B,cAAc;CACtD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAS;GAAQ;GAAS;EACjC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO,kBAAkB;GACvB,MAAM;GACN,QAAQ;IACN,SAAS;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACtE,QAAQ;KAAE,MAAM,eAAe,iBAAiB;KAAE,YAAY;KAAO;IACtE;GACF,CAAC;EACF,QAAQ,kBAAkB;GACxB,MAAM;GACN,QAAQ,EACN,SAAS;IAAE,MAAM,eAAe,SAAS;IAAE,YAAY;IAAO,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"}
@@ -6,6 +6,7 @@
6
6
  const AgentConsoleFeature = {
7
7
  meta: {
8
8
  key: "agent-console",
9
+ version: 1,
9
10
  title: "AI Agent Console",
10
11
  description: "AI agent orchestration with tools, runs, and logs management",
11
12
  domain: "ai-ops",
@@ -15,240 +16,240 @@ const AgentConsoleFeature = {
15
16
  "agents",
16
17
  "orchestration"
17
18
  ],
18
- stability: "experimental"
19
+ stability: "stable"
19
20
  },
20
21
  operations: [
21
22
  {
22
- name: "agent.agent.create",
23
+ key: "agent-console.agent.create",
23
24
  version: 1
24
25
  },
25
26
  {
26
- name: "agent.agent.update",
27
+ key: "agent-console.agent.update",
27
28
  version: 1
28
29
  },
29
30
  {
30
- name: "agent.agent.get",
31
+ key: "agent-console.agent.get",
31
32
  version: 1
32
33
  },
33
34
  {
34
- name: "agent.agent.list",
35
+ key: "agent-console.agent.list",
35
36
  version: 1
36
37
  },
37
38
  {
38
- name: "agent.agent.assignTool",
39
+ key: "agent-console.agent.assignTool",
39
40
  version: 1
40
41
  },
41
42
  {
42
- name: "agent.agent.removeTool",
43
+ key: "agent-console.agent.removeTool",
43
44
  version: 1
44
45
  },
45
46
  {
46
- name: "agent.tool.create",
47
+ key: "agent.tool.create",
47
48
  version: 1
48
49
  },
49
50
  {
50
- name: "agent.tool.update",
51
+ key: "agent.tool.update",
51
52
  version: 1
52
53
  },
53
54
  {
54
- name: "agent.tool.get",
55
+ key: "agent.tool.get",
55
56
  version: 1
56
57
  },
57
58
  {
58
- name: "agent.tool.list",
59
+ key: "agent.tool.list",
59
60
  version: 1
60
61
  },
61
62
  {
62
- name: "agent.tool.test",
63
+ key: "agent.tool.test",
63
64
  version: 1
64
65
  },
65
66
  {
66
- name: "agent.run.execute",
67
+ key: "agent.run.execute",
67
68
  version: 1
68
69
  },
69
70
  {
70
- name: "agent.run.cancel",
71
+ key: "agent.run.cancel",
71
72
  version: 1
72
73
  },
73
74
  {
74
- name: "agent.run.get",
75
+ key: "agent.run.get",
75
76
  version: 1
76
77
  },
77
78
  {
78
- name: "agent.run.list",
79
+ key: "agent.run.list",
79
80
  version: 1
80
81
  },
81
82
  {
82
- name: "agent.run.getSteps",
83
+ key: "agent.run.getSteps",
83
84
  version: 1
84
85
  },
85
86
  {
86
- name: "agent.run.getLogs",
87
+ key: "agent.run.getLogs",
87
88
  version: 1
88
89
  },
89
90
  {
90
- name: "agent.run.getMetrics",
91
+ key: "agent.run.getMetrics",
91
92
  version: 1
92
93
  }
93
94
  ],
94
95
  events: [
95
96
  {
96
- name: "agent.agent.created",
97
+ key: "agent-console.agent.created",
97
98
  version: 1
98
99
  },
99
100
  {
100
- name: "agent.agent.updated",
101
+ key: "agent-console.agent.updated",
101
102
  version: 1
102
103
  },
103
104
  {
104
- name: "agent.agent.toolAssigned",
105
+ key: "agent-console.agent.toolAssigned",
105
106
  version: 1
106
107
  },
107
108
  {
108
- name: "agent.agent.toolRemoved",
109
+ key: "agent-console.agent.toolRemoved",
109
110
  version: 1
110
111
  },
111
112
  {
112
- name: "agent.tool.created",
113
+ key: "agent.tool.created",
113
114
  version: 1
114
115
  },
115
116
  {
116
- name: "agent.tool.updated",
117
+ key: "agent.tool.updated",
117
118
  version: 1
118
119
  },
119
120
  {
120
- name: "agent.tool.statusChanged",
121
+ key: "agent.tool.statusChanged",
121
122
  version: 1
122
123
  },
123
124
  {
124
- name: "agent.run.started",
125
+ key: "agent.run.started",
125
126
  version: 1
126
127
  },
127
128
  {
128
- name: "agent.run.completed",
129
+ key: "agent.run.completed",
129
130
  version: 1
130
131
  },
131
132
  {
132
- name: "agent.run.failed",
133
+ key: "agent.run.failed",
133
134
  version: 1
134
135
  },
135
136
  {
136
- name: "agent.run.cancelled",
137
+ key: "agent.run.cancelled",
137
138
  version: 1
138
139
  },
139
140
  {
140
- name: "agent.run.toolInvoked",
141
+ key: "agent.run.toolInvoked",
141
142
  version: 1
142
143
  },
143
144
  {
144
- name: "agent.run.toolCompleted",
145
+ key: "agent.run.toolCompleted",
145
146
  version: 1
146
147
  },
147
148
  {
148
- name: "agent.run.messageGenerated",
149
+ key: "agent.run.messageGenerated",
149
150
  version: 1
150
151
  }
151
152
  ],
152
153
  presentations: [
153
154
  {
154
- name: "agent-console.dashboard",
155
+ key: "agent-console.dashboard",
155
156
  version: 1
156
157
  },
157
158
  {
158
- name: "agent-console.agent.list",
159
+ key: "agent-console.agent.list",
159
160
  version: 1
160
161
  },
161
162
  {
162
- name: "agent-console.agent.detail",
163
+ key: "agent-console.agent.detail",
163
164
  version: 1
164
165
  },
165
166
  {
166
- name: "agent-console.run.list",
167
+ key: "agent-console.run.list",
167
168
  version: 1
168
169
  },
169
170
  {
170
- name: "agent-console.run.detail",
171
+ key: "agent-console.run.detail",
171
172
  version: 1
172
173
  },
173
174
  {
174
- name: "agent-console.tool.list",
175
+ key: "agent-console.tool.list",
175
176
  version: 1
176
177
  },
177
178
  {
178
- name: "agent-console.tool.detail",
179
+ key: "agent-console.tool.detail",
179
180
  version: 1
180
181
  }
181
182
  ],
182
183
  opToPresentation: [
183
184
  {
184
185
  op: {
185
- name: "agent.agent.list",
186
+ key: "agent-console.agent.list",
186
187
  version: 1
187
188
  },
188
189
  pres: {
189
- name: "agent-console.agent.list",
190
+ key: "agent-console.agent.list",
190
191
  version: 1
191
192
  }
192
193
  },
193
194
  {
194
195
  op: {
195
- name: "agent.agent.get",
196
+ key: "agent-console.agent.get",
196
197
  version: 1
197
198
  },
198
199
  pres: {
199
- name: "agent-console.agent.detail",
200
+ key: "agent-console.agent.detail",
200
201
  version: 1
201
202
  }
202
203
  },
203
204
  {
204
205
  op: {
205
- name: "agent.run.list",
206
+ key: "agent.run.list",
206
207
  version: 1
207
208
  },
208
209
  pres: {
209
- name: "agent-console.run.list",
210
+ key: "agent-console.run.list",
210
211
  version: 1
211
212
  }
212
213
  },
213
214
  {
214
215
  op: {
215
- name: "agent.run.get",
216
+ key: "agent.run.get",
216
217
  version: 1
217
218
  },
218
219
  pres: {
219
- name: "agent-console.run.detail",
220
+ key: "agent-console.run.detail",
220
221
  version: 1
221
222
  }
222
223
  },
223
224
  {
224
225
  op: {
225
- name: "agent.tool.list",
226
+ key: "agent.tool.list",
226
227
  version: 1
227
228
  },
228
229
  pres: {
229
- name: "agent-console.tool.list",
230
+ key: "agent-console.tool.list",
230
231
  version: 1
231
232
  }
232
233
  },
233
234
  {
234
235
  op: {
235
- name: "agent.tool.get",
236
+ key: "agent.tool.get",
236
237
  version: 1
237
238
  },
238
239
  pres: {
239
- name: "agent-console.tool.detail",
240
+ key: "agent-console.tool.detail",
240
241
  version: 1
241
242
  }
242
243
  }
243
244
  ],
244
245
  presentationsTargets: [
245
246
  {
246
- name: "agent-console.dashboard",
247
+ key: "agent-console.dashboard",
247
248
  version: 1,
248
249
  targets: ["react", "markdown"]
249
250
  },
250
251
  {
251
- name: "agent-console.agent.list",
252
+ key: "agent-console.agent.list",
252
253
  version: 1,
253
254
  targets: [
254
255
  "react",
@@ -257,7 +258,7 @@ const AgentConsoleFeature = {
257
258
  ]
258
259
  },
259
260
  {
260
- name: "agent-console.run.list",
261
+ key: "agent-console.run.list",
261
262
  version: 1,
262
263
  targets: [
263
264
  "react",
@@ -266,7 +267,7 @@ const AgentConsoleFeature = {
266
267
  ]
267
268
  },
268
269
  {
269
- name: "agent-console.tool.list",
270
+ key: "agent-console.tool.list",
270
271
  version: 1,
271
272
  targets: [
272
273
  "react",
@@ -275,20 +276,26 @@ const AgentConsoleFeature = {
275
276
  ]
276
277
  }
277
278
  ],
278
- capabilities: { requires: [
279
- {
280
- key: "identity",
281
- version: 1
282
- },
283
- {
284
- key: "audit-trail",
285
- version: 1
286
- },
287
- {
288
- key: "jobs",
279
+ capabilities: {
280
+ requires: [
281
+ {
282
+ key: "identity",
283
+ version: 1
284
+ },
285
+ {
286
+ key: "audit-trail",
287
+ version: 1
288
+ },
289
+ {
290
+ key: "jobs",
291
+ version: 1
292
+ }
293
+ ],
294
+ provides: [{
295
+ key: "agent",
289
296
  version: 1
290
- }
291
- ] }
297
+ }]
298
+ }
292
299
  };
293
300
 
294
301
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"agent.feature.js","names":["AgentConsoleFeature: FeatureModuleSpec"],"sources":["../src/agent.feature.ts"],"sourcesContent":["/**\n * Agent Console Feature Module Specification\n *\n * Defines the feature module for agent orchestration capabilities.\n */\nimport type { FeatureModuleSpec } from '@lssm/lib.contracts';\n\n/**\n * Agent Console feature module that bundles all agent, tool, and run\n * operations, events, and presentations into an installable feature.\n */\nexport const AgentConsoleFeature: FeatureModuleSpec = {\n meta: {\n key: 'agent-console',\n title: 'AI Agent Console',\n description: 'AI agent orchestration with tools, runs, and logs management',\n domain: 'ai-ops',\n owners: ['@agent-console-team'],\n tags: ['ai', 'agents', 'orchestration'],\n stability: 'experimental',\n },\n\n // All contract operations included in this feature\n operations: [\n // Agent operations\n { name: 'agent.agent.create', version: 1 },\n { name: 'agent.agent.update', version: 1 },\n { name: 'agent.agent.get', version: 1 },\n { name: 'agent.agent.list', version: 1 },\n { name: 'agent.agent.assignTool', version: 1 },\n { name: 'agent.agent.removeTool', version: 1 },\n\n // Tool operations\n { name: 'agent.tool.create', version: 1 },\n { name: 'agent.tool.update', version: 1 },\n { name: 'agent.tool.get', version: 1 },\n { name: 'agent.tool.list', version: 1 },\n { name: 'agent.tool.test', version: 1 },\n\n // Run operations\n { name: 'agent.run.execute', version: 1 },\n { name: 'agent.run.cancel', version: 1 },\n { name: 'agent.run.get', version: 1 },\n { name: 'agent.run.list', version: 1 },\n { name: 'agent.run.getSteps', version: 1 },\n { name: 'agent.run.getLogs', version: 1 },\n { name: 'agent.run.getMetrics', version: 1 },\n ],\n\n // Events emitted by this feature\n events: [\n // Agent events\n { name: 'agent.agent.created', version: 1 },\n { name: 'agent.agent.updated', version: 1 },\n { name: 'agent.agent.toolAssigned', version: 1 },\n { name: 'agent.agent.toolRemoved', version: 1 },\n\n // Tool events\n { name: 'agent.tool.created', version: 1 },\n { name: 'agent.tool.updated', version: 1 },\n { name: 'agent.tool.statusChanged', version: 1 },\n\n // Run events\n { name: 'agent.run.started', version: 1 },\n { name: 'agent.run.completed', version: 1 },\n { name: 'agent.run.failed', version: 1 },\n { name: 'agent.run.cancelled', version: 1 },\n { name: 'agent.run.toolInvoked', version: 1 },\n { name: 'agent.run.toolCompleted', version: 1 },\n { name: 'agent.run.messageGenerated', version: 1 },\n ],\n\n // Presentations associated with this feature\n presentations: [\n { name: 'agent-console.dashboard', version: 1 },\n { name: 'agent-console.agent.list', version: 1 },\n { name: 'agent-console.agent.detail', version: 1 },\n { name: 'agent-console.run.list', version: 1 },\n { name: 'agent-console.run.detail', version: 1 },\n { name: 'agent-console.tool.list', version: 1 },\n { name: 'agent-console.tool.detail', version: 1 },\n ],\n\n // Link operations to their primary presentations\n opToPresentation: [\n {\n op: { name: 'agent.agent.list', version: 1 },\n pres: { name: 'agent-console.agent.list', version: 1 },\n },\n {\n op: { name: 'agent.agent.get', version: 1 },\n pres: { name: 'agent-console.agent.detail', version: 1 },\n },\n {\n op: { name: 'agent.run.list', version: 1 },\n pres: { name: 'agent-console.run.list', version: 1 },\n },\n {\n op: { name: 'agent.run.get', version: 1 },\n pres: { name: 'agent-console.run.detail', version: 1 },\n },\n {\n op: { name: 'agent.tool.list', version: 1 },\n pres: { name: 'agent-console.tool.list', version: 1 },\n },\n {\n op: { name: 'agent.tool.get', version: 1 },\n pres: { name: 'agent-console.tool.detail', version: 1 },\n },\n ],\n\n // Target requirements for multi-surface rendering\n presentationsTargets: [\n {\n name: 'agent-console.dashboard',\n version: 1,\n targets: ['react', 'markdown'],\n },\n {\n name: 'agent-console.agent.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n name: 'agent-console.run.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n name: 'agent-console.tool.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n ],\n\n // Capability requirements\n capabilities: {\n requires: [\n { key: 'identity', version: 1 },\n { key: 'audit-trail', version: 1 },\n { key: 'jobs', version: 1 },\n ],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,sBAAyC;CACpD,MAAM;EACJ,KAAK;EACL,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM;GAAC;GAAM;GAAU;GAAgB;EACvC,WAAW;EACZ;CAGD,YAAY;EAEV;GAAE,MAAM;GAAsB,SAAS;GAAG;EAC1C;GAAE,MAAM;GAAsB,SAAS;GAAG;EAC1C;GAAE,MAAM;GAAmB,SAAS;GAAG;EACvC;GAAE,MAAM;GAAoB,SAAS;GAAG;EACxC;GAAE,MAAM;GAA0B,SAAS;GAAG;EAC9C;GAAE,MAAM;GAA0B,SAAS;GAAG;EAG9C;GAAE,MAAM;GAAqB,SAAS;GAAG;EACzC;GAAE,MAAM;GAAqB,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GD,kBAAkB;EAChB;GACE,IAAI;IAAE,MAAM;IAAoB,SAAS;IAAG;GAC5C,MAAM;IAAE,MAAM;IAA4B,SAAS;IAAG;GACvD;EACD;GACE,IAAI;IAAE,MAAM;IAAmB,SAAS;IAAG;GAC3C,MAAM;IAAE,MAAM;IAA8B,SAAS;IAAG;GACzD;EACD;GACE,IAAI;IAAE,MAAM;IAAkB,SAAS;IAAG;GAC1C,MAAM;IAAE,MAAM;IAA0B,SAAS;IAAG;GACrD;EACD;GACE,IAAI;IAAE,MAAM;IAAiB,SAAS;IAAG;GACzC,MAAM;IAAE,MAAM;IAA4B,SAAS;IAAG;GACvD;EACD;GACE,IAAI;IAAE,MAAM;IAAmB,SAAS;IAAG;GAC3C,MAAM;IAAE,MAAM;IAA2B,SAAS;IAAG;GACtD;EACD;GACE,IAAI;IAAE,MAAM;IAAkB,SAAS;IAAG;GAC1C,MAAM;IAAE,MAAM;IAA6B,SAAS;IAAG;GACxD;EACF;CAGD,sBAAsB;EACpB;GACE,MAAM;GACN,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,MAAM;GACN,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACD;GACE,MAAM;GACN,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACD;GACE,MAAM;GACN,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACF;CAGD,cAAc,EACZ,UAAU;EACR;GAAE,KAAK;GAAY,SAAS;GAAG;EAC/B;GAAE,KAAK;GAAe,SAAS;GAAG;EAClC;GAAE,KAAK;GAAQ,SAAS;GAAG;EAC5B,EACF;CACF"}
1
+ {"version":3,"file":"agent.feature.js","names":["AgentConsoleFeature: FeatureModuleSpec"],"sources":["../src/agent.feature.ts"],"sourcesContent":["/**\n * Agent Console Feature Module Specification\n *\n * Defines the feature module for agent orchestration capabilities.\n */\nimport type { FeatureModuleSpec } from '@lssm/lib.contracts';\n\n/**\n * Agent Console feature module that bundles all agent, tool, and run\n * operations, events, and presentations into an installable feature.\n */\nexport const AgentConsoleFeature: FeatureModuleSpec = {\n meta: {\n key: 'agent-console',\n version: 1,\n title: 'AI Agent Console',\n description: 'AI agent orchestration with tools, runs, and logs management',\n domain: 'ai-ops',\n owners: ['@agent-console-team'],\n tags: ['ai', 'agents', 'orchestration'],\n stability: 'stable',\n },\n\n // All contract operations included in this feature\n operations: [\n // Agent operations\n { key: 'agent-console.agent.create', version: 1 },\n { key: 'agent-console.agent.update', version: 1 },\n { key: 'agent-console.agent.get', version: 1 },\n { key: 'agent-console.agent.list', version: 1 },\n { key: 'agent-console.agent.assignTool', version: 1 },\n { key: 'agent-console.agent.removeTool', version: 1 },\n\n // Tool operations\n { key: 'agent.tool.create', version: 1 },\n { key: 'agent.tool.update', version: 1 },\n { key: 'agent.tool.get', version: 1 },\n { key: 'agent.tool.list', version: 1 },\n { key: 'agent.tool.test', version: 1 },\n\n // Run operations\n { key: 'agent.run.execute', version: 1 },\n { key: 'agent.run.cancel', version: 1 },\n { key: 'agent.run.get', version: 1 },\n { key: 'agent.run.list', version: 1 },\n { key: 'agent.run.getSteps', version: 1 },\n { key: 'agent.run.getLogs', version: 1 },\n { key: 'agent.run.getMetrics', version: 1 },\n ],\n\n // Events emitted by this feature\n events: [\n // Agent events\n { key: 'agent-console.agent.created', version: 1 },\n { key: 'agent-console.agent.updated', version: 1 },\n { key: 'agent-console.agent.toolAssigned', version: 1 },\n { key: 'agent-console.agent.toolRemoved', version: 1 },\n\n // Tool events\n { key: 'agent.tool.created', version: 1 },\n { key: 'agent.tool.updated', version: 1 },\n { key: 'agent.tool.statusChanged', version: 1 },\n\n // Run events\n { key: 'agent.run.started', version: 1 },\n { key: 'agent.run.completed', version: 1 },\n { key: 'agent.run.failed', version: 1 },\n { key: 'agent.run.cancelled', version: 1 },\n { key: 'agent.run.toolInvoked', version: 1 },\n { key: 'agent.run.toolCompleted', version: 1 },\n { key: 'agent.run.messageGenerated', version: 1 },\n ],\n\n // Presentations associated with this feature\n presentations: [\n { key: 'agent-console.dashboard', version: 1 },\n { key: 'agent-console.agent.list', version: 1 },\n { key: 'agent-console.agent.detail', version: 1 },\n { key: 'agent-console.run.list', version: 1 },\n { key: 'agent-console.run.detail', version: 1 },\n { key: 'agent-console.tool.list', version: 1 },\n { key: 'agent-console.tool.detail', version: 1 },\n ],\n\n // Link operations to their primary presentations\n opToPresentation: [\n {\n op: { key: 'agent-console.agent.list', version: 1 },\n pres: { key: 'agent-console.agent.list', version: 1 },\n },\n {\n op: { key: 'agent-console.agent.get', version: 1 },\n pres: { key: 'agent-console.agent.detail', version: 1 },\n },\n {\n op: { key: 'agent.run.list', version: 1 },\n pres: { key: 'agent-console.run.list', version: 1 },\n },\n {\n op: { key: 'agent.run.get', version: 1 },\n pres: { key: 'agent-console.run.detail', version: 1 },\n },\n {\n op: { key: 'agent.tool.list', version: 1 },\n pres: { key: 'agent-console.tool.list', version: 1 },\n },\n {\n op: { key: 'agent.tool.get', version: 1 },\n pres: { key: 'agent-console.tool.detail', version: 1 },\n },\n ],\n\n // Target requirements for multi-surface rendering\n presentationsTargets: [\n {\n key: 'agent-console.dashboard',\n version: 1,\n targets: ['react', 'markdown'],\n },\n {\n key: 'agent-console.agent.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n key: 'agent-console.run.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n key: 'agent-console.tool.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n ],\n\n // Capability requirements\n capabilities: {\n requires: [\n { key: 'identity', version: 1 },\n { key: 'audit-trail', version: 1 },\n { key: 'jobs', version: 1 },\n ],\n provides: [{ key: 'agent', version: 1 }],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,sBAAyC;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM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