@sprucelabs/mercury-core-events 27.4.0 → 27.4.1

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 (39) hide show
  1. package/build/.spruce/events/events.contract.d.ts +0 -10
  2. package/build/.spruce/events/events.contract.js +0 -2
  3. package/build/.spruce/permissions/permissions.types.d.ts +3 -4
  4. package/build/.spruce/schemas/mercury/v2020_12_25/agent.schema.d.ts +3 -0
  5. package/build/.spruce/schemas/mercury/v2020_12_25/agent.schema.js +31 -0
  6. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgent.schema.js +6 -2
  7. package/build/.spruce/schemas/mercury/v2020_12_25/registerAgentResponsePayload.schema.js +1 -1
  8. package/build/.spruce/schemas/schemas.types.d.ts +291 -326
  9. package/build/esm/.spruce/events/events.contract.d.ts +0 -10
  10. package/build/esm/.spruce/events/events.contract.js +0 -2
  11. package/build/esm/.spruce/permissions/permissions.types.d.ts +3 -4
  12. package/build/esm/.spruce/schemas/mercury/v2020_12_25/agent.schema.d.ts +3 -0
  13. package/build/esm/.spruce/schemas/mercury/v2020_12_25/agent.schema.js +29 -0
  14. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgent.schema.js +6 -2
  15. package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgentResponsePayload.schema.js +2 -2
  16. package/build/esm/.spruce/schemas/schemas.types.d.ts +291 -326
  17. package/package.json +3 -3
  18. package/build/.spruce/events/mercury/getAgent.v2020_12_25.contract.d.ts +0 -12
  19. package/build/.spruce/events/mercury/getAgent.v2020_12_25.contract.js +0 -19
  20. package/build/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTarget.schema.d.ts +0 -3
  21. package/build/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTarget.schema.js +0 -19
  22. package/build/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTargetAndPayload.schema.d.ts +0 -3
  23. package/build/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTargetAndPayload.schema.js +0 -29
  24. package/build/.spruce/schemas/mercury/v2020_12_25/getAgentResponsePayload.schema.d.ts +0 -3
  25. package/build/.spruce/schemas/mercury/v2020_12_25/getAgentResponsePayload.schema.js +0 -22
  26. package/build/.spruce/schemas/spruce/v2020_07_22/agent.schema.d.ts +0 -1
  27. package/build/.spruce/schemas/spruce/v2020_07_22/agent.schema.js +0 -5
  28. package/build/.spruce/schemas/spruce/v2020_07_22/agentSource.schema.d.ts +0 -1
  29. package/build/.spruce/schemas/spruce/v2020_07_22/agentSource.schema.js +0 -5
  30. package/build/esm/.spruce/events/mercury/getAgent.v2020_12_25.contract.d.ts +0 -12
  31. package/build/esm/.spruce/events/mercury/getAgent.v2020_12_25.contract.js +0 -14
  32. package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTarget.schema.d.ts +0 -3
  33. package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTarget.schema.js +0 -17
  34. package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTargetAndPayload.schema.d.ts +0 -3
  35. package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTargetAndPayload.schema.js +0 -24
  36. package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentResponsePayload.schema.d.ts +0 -3
  37. package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentResponsePayload.schema.js +0 -17
  38. package/build/esm/.spruce/schemas/spruce/v2020_07_22/agent.schema.d.ts +0 -1
  39. package/build/esm/.spruce/schemas/spruce/v2020_07_22/agent.schema.js +0 -1
@@ -19,7 +19,6 @@ import { DidUpdateAuthorizerStatusEventContract as MercuryDidUpdateAuthorizerSta
19
19
  import { DidUpdateFeedEventContract as MercuryDidUpdateFeedEventContract_v2020_12_25 } from './mercury/didUpdateFeed.v2020_12_25.contract';
20
20
  import { DidUpdatePersonEventContract as MercuryDidUpdatePersonEventContract_v2020_12_25 } from './mercury/didUpdatePerson.v2020_12_25.contract';
21
21
  import { DoesHonorPermissionContractEventContract as MercuryDoesHonorPermissionContractEventContract_v2020_12_25 } from './mercury/doesHonorPermissionContract.v2020_12_25.contract';
22
- import { GetAgentEventContract as MercuryGetAgentEventContract_v2020_12_25 } from './mercury/getAgent.v2020_12_25.contract';
23
22
  import { GetAnonymousPersonEventContract as MercuryGetAnonymousPersonEventContract_v2020_12_25 } from './mercury/getAnonymousPerson.v2020_12_25.contract';
24
23
  import { GetConversationTopicsEventContract as MercuryGetConversationTopicsEventContract_v2020_12_25 } from './mercury/getConversationTopics.v2020_12_25.contract';
25
24
  import { GetEventContractsEventContract as MercuryGetEventContractsEventContract_v2020_12_25 } from './mercury/getEventContracts.v2020_12_25.contract';
@@ -304,14 +303,6 @@ declare const _default: ({
304
303
  responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DoesHonorPermissionContractRespondPayloadSchema;
305
304
  };
306
305
  };
307
- } | {
308
- eventSignatures: {
309
- 'get-agent::v2020_12_25': {
310
- description: string;
311
- emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.GetAgentEmitTargetAndPayloadSchema;
312
- responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.GetAgentResponsePayloadSchema;
313
- };
314
- };
315
306
  } | {
316
307
  eventSignatures: {
317
308
  'get-anonymous-person::v2020_12_25': {
@@ -829,7 +820,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
829
820
  'did-update-feed::v2020_12_25': MercuryDidUpdateFeedEventContract_v2020_12_25['eventSignatures']['did-update-feed::v2020_12_25'];
830
821
  'did-update-person::v2020_12_25': MercuryDidUpdatePersonEventContract_v2020_12_25['eventSignatures']['did-update-person::v2020_12_25'];
831
822
  'does-honor-permission-contract::v2020_12_25': MercuryDoesHonorPermissionContractEventContract_v2020_12_25['eventSignatures']['does-honor-permission-contract::v2020_12_25'];
832
- 'get-agent::v2020_12_25': MercuryGetAgentEventContract_v2020_12_25['eventSignatures']['get-agent::v2020_12_25'];
833
823
  'get-anonymous-person::v2020_12_25': MercuryGetAnonymousPersonEventContract_v2020_12_25['eventSignatures']['get-anonymous-person::v2020_12_25'];
834
824
  'get-conversation-topics::v2020_12_25': MercuryGetConversationTopicsEventContract_v2020_12_25['eventSignatures']['get-conversation-topics::v2020_12_25'];
835
825
  'get-event-contracts::v2020_12_25': MercuryGetEventContractsEventContract_v2020_12_25['eventSignatures']['get-event-contracts::v2020_12_25'];
@@ -24,7 +24,6 @@ const didUpdateAuthorizerStatus_v2020_12_25_contract_1 = __importDefault(require
24
24
  const didUpdateFeed_v2020_12_25_contract_1 = __importDefault(require("./mercury/didUpdateFeed.v2020_12_25.contract"));
25
25
  const didUpdatePerson_v2020_12_25_contract_1 = __importDefault(require("./mercury/didUpdatePerson.v2020_12_25.contract"));
26
26
  const doesHonorPermissionContract_v2020_12_25_contract_1 = __importDefault(require("./mercury/doesHonorPermissionContract.v2020_12_25.contract"));
27
- const getAgent_v2020_12_25_contract_1 = __importDefault(require("./mercury/getAgent.v2020_12_25.contract"));
28
27
  const getAnonymousPerson_v2020_12_25_contract_1 = __importDefault(require("./mercury/getAnonymousPerson.v2020_12_25.contract"));
29
28
  const getConversationTopics_v2020_12_25_contract_1 = __importDefault(require("./mercury/getConversationTopics.v2020_12_25.contract"));
30
29
  const getEventContracts_v2020_12_25_contract_1 = __importDefault(require("./mercury/getEventContracts.v2020_12_25.contract"));
@@ -104,7 +103,6 @@ exports.default = [
104
103
  didUpdateFeed_v2020_12_25_contract_1.default,
105
104
  didUpdatePerson_v2020_12_25_contract_1.default,
106
105
  doesHonorPermissionContract_v2020_12_25_contract_1.default,
107
- getAgent_v2020_12_25_contract_1.default,
108
106
  getAnonymousPerson_v2020_12_25_contract_1.default,
109
107
  getConversationTopics_v2020_12_25_contract_1.default,
110
108
  getEventContracts_v2020_12_25_contract_1.default,
@@ -1,6 +1,9 @@
1
1
  import '@sprucelabs/mercury-types';
2
2
  declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
3
3
  interface PermissionContractMap {
4
+ 'agent-contract': [
5
+ 'can-register-platform-agent'
6
+ ];
4
7
  'authorizer-contract': [
5
8
  'can-update-others-authorizer-status'
6
9
  ];
@@ -74,10 +77,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
74
77
  'can-check-if-skill-is-installed',
75
78
  'can-publish-own-skills'
76
79
  ];
77
- 'agent-contract': [
78
- 'can-register-platform-agent',
79
- 'can-get-platform-agent'
80
- ];
81
80
  }
82
81
  }
83
82
  export interface PermissionContractMap {
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const agentSchema: SpruceSchemas.Mercury.v2020_12_25.AgentSchema;
3
+ export default agentSchema;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ const agentSchema = {
5
+ id: 'agent',
6
+ version: 'v2020_12_25',
7
+ namespace: 'Mercury',
8
+ name: '',
9
+ fields: {
10
+ /** . */
11
+ 'id': {
12
+ type: 'id',
13
+ isRequired: true,
14
+ options: undefined
15
+ },
16
+ /** . */
17
+ 'name': {
18
+ type: 'text',
19
+ isRequired: true,
20
+ options: undefined
21
+ },
22
+ /** . */
23
+ 'systemPrompt': {
24
+ type: 'text',
25
+ isRequired: true,
26
+ options: undefined
27
+ },
28
+ }
29
+ };
30
+ schema_1.SchemaRegistry.getInstance().trackSchema(agentSchema);
31
+ exports.default = agentSchema;
@@ -7,16 +7,20 @@ const registerAgentSchema = {
7
7
  namespace: 'Mercury',
8
8
  name: '',
9
9
  fields: {
10
- /** . */
10
+ /** Name. What is the name of your new AI Agent? */
11
11
  'name': {
12
+ label: 'Name',
12
13
  type: 'text',
13
14
  isRequired: true,
15
+ hint: 'What is the name of your new AI Agent?',
14
16
  options: undefined
15
17
  },
16
- /** . */
18
+ /** System Prompt. How should your AI Agent behave? This is injected into every conversation to guide its responses. */
17
19
  'systemPrompt': {
20
+ label: 'System Prompt',
18
21
  type: 'text',
19
22
  isRequired: true,
23
+ hint: 'How should your AI Agent behave? This is injected into every conversation to guide its responses.',
20
24
  options: undefined
21
25
  },
22
26
  }
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const schema_1 = require("@sprucelabs/schema");
7
- const agent_schema_1 = __importDefault(require("./../../spruce/v2020_07_22/agent.schema"));
7
+ const agent_schema_1 = __importDefault(require("./agent.schema"));
8
8
  const registerAgentResponsePayloadSchema = {
9
9
  id: 'registerAgentResponsePayload',
10
10
  version: 'v2020_12_25',