@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.
- package/build/.spruce/events/events.contract.d.ts +0 -10
- package/build/.spruce/events/events.contract.js +0 -2
- package/build/.spruce/permissions/permissions.types.d.ts +3 -4
- package/build/.spruce/schemas/mercury/v2020_12_25/agent.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/agent.schema.js +31 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/registerAgent.schema.js +6 -2
- package/build/.spruce/schemas/mercury/v2020_12_25/registerAgentResponsePayload.schema.js +1 -1
- package/build/.spruce/schemas/schemas.types.d.ts +291 -326
- package/build/esm/.spruce/events/events.contract.d.ts +0 -10
- package/build/esm/.spruce/events/events.contract.js +0 -2
- package/build/esm/.spruce/permissions/permissions.types.d.ts +3 -4
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/agent.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/agent.schema.js +29 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgent.schema.js +6 -2
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgentResponsePayload.schema.js +2 -2
- package/build/esm/.spruce/schemas/schemas.types.d.ts +291 -326
- package/package.json +3 -3
- package/build/.spruce/events/mercury/getAgent.v2020_12_25.contract.d.ts +0 -12
- package/build/.spruce/events/mercury/getAgent.v2020_12_25.contract.js +0 -19
- package/build/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTarget.schema.d.ts +0 -3
- package/build/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTarget.schema.js +0 -19
- package/build/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTargetAndPayload.schema.js +0 -29
- package/build/.spruce/schemas/mercury/v2020_12_25/getAgentResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/mercury/v2020_12_25/getAgentResponsePayload.schema.js +0 -22
- package/build/.spruce/schemas/spruce/v2020_07_22/agent.schema.d.ts +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/agent.schema.js +0 -5
- package/build/.spruce/schemas/spruce/v2020_07_22/agentSource.schema.d.ts +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/agentSource.schema.js +0 -5
- package/build/esm/.spruce/events/mercury/getAgent.v2020_12_25.contract.d.ts +0 -12
- package/build/esm/.spruce/events/mercury/getAgent.v2020_12_25.contract.js +0 -14
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTarget.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTarget.schema.js +0 -17
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentEmitTargetAndPayload.schema.js +0 -24
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentResponsePayload.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/getAgentResponsePayload.schema.js +0 -17
- package/build/esm/.spruce/schemas/spruce/v2020_07_22/agent.schema.d.ts +0 -1
- 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'];
|
|
@@ -19,7 +19,6 @@ import mercuryDidUpdateAuthorizerStatusEventContract_v2020_12_25 from './mercury
|
|
|
19
19
|
import mercuryDidUpdateFeedEventContract_v2020_12_25 from './mercury/didUpdateFeed.v2020_12_25.contract.js';
|
|
20
20
|
import mercuryDidUpdatePersonEventContract_v2020_12_25 from './mercury/didUpdatePerson.v2020_12_25.contract.js';
|
|
21
21
|
import mercuryDoesHonorPermissionContractEventContract_v2020_12_25 from './mercury/doesHonorPermissionContract.v2020_12_25.contract.js';
|
|
22
|
-
import mercuryGetAgentEventContract_v2020_12_25 from './mercury/getAgent.v2020_12_25.contract.js';
|
|
23
22
|
import mercuryGetAnonymousPersonEventContract_v2020_12_25 from './mercury/getAnonymousPerson.v2020_12_25.contract.js';
|
|
24
23
|
import mercuryGetConversationTopicsEventContract_v2020_12_25 from './mercury/getConversationTopics.v2020_12_25.contract.js';
|
|
25
24
|
import mercuryGetEventContractsEventContract_v2020_12_25 from './mercury/getEventContracts.v2020_12_25.contract.js';
|
|
@@ -99,7 +98,6 @@ export default [
|
|
|
99
98
|
mercuryDidUpdateFeedEventContract_v2020_12_25,
|
|
100
99
|
mercuryDidUpdatePersonEventContract_v2020_12_25,
|
|
101
100
|
mercuryDoesHonorPermissionContractEventContract_v2020_12_25,
|
|
102
|
-
mercuryGetAgentEventContract_v2020_12_25,
|
|
103
101
|
mercuryGetAnonymousPersonEventContract_v2020_12_25,
|
|
104
102
|
mercuryGetConversationTopicsEventContract_v2020_12_25,
|
|
105
103
|
mercuryGetEventContractsEventContract_v2020_12_25,
|
|
@@ -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,29 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
const agentSchema = {
|
|
3
|
+
id: 'agent',
|
|
4
|
+
version: 'v2020_12_25',
|
|
5
|
+
namespace: 'Mercury',
|
|
6
|
+
name: '',
|
|
7
|
+
fields: {
|
|
8
|
+
/** . */
|
|
9
|
+
'id': {
|
|
10
|
+
type: 'id',
|
|
11
|
+
isRequired: true,
|
|
12
|
+
options: undefined
|
|
13
|
+
},
|
|
14
|
+
/** . */
|
|
15
|
+
'name': {
|
|
16
|
+
type: 'text',
|
|
17
|
+
isRequired: true,
|
|
18
|
+
options: undefined
|
|
19
|
+
},
|
|
20
|
+
/** . */
|
|
21
|
+
'systemPrompt': {
|
|
22
|
+
type: 'text',
|
|
23
|
+
isRequired: true,
|
|
24
|
+
options: undefined
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
SchemaRegistry.getInstance().trackSchema(agentSchema);
|
|
29
|
+
export default agentSchema;
|
|
@@ -5,16 +5,20 @@ const registerAgentSchema = {
|
|
|
5
5
|
namespace: 'Mercury',
|
|
6
6
|
name: '',
|
|
7
7
|
fields: {
|
|
8
|
-
/** . */
|
|
8
|
+
/** Name. What is the name of your new AI Agent? */
|
|
9
9
|
'name': {
|
|
10
|
+
label: 'Name',
|
|
10
11
|
type: 'text',
|
|
11
12
|
isRequired: true,
|
|
13
|
+
hint: 'What is the name of your new AI Agent?',
|
|
12
14
|
options: undefined
|
|
13
15
|
},
|
|
14
|
-
/** . */
|
|
16
|
+
/** System Prompt. How should your AI Agent behave? This is injected into every conversation to guide its responses. */
|
|
15
17
|
'systemPrompt': {
|
|
18
|
+
label: 'System Prompt',
|
|
16
19
|
type: 'text',
|
|
17
20
|
isRequired: true,
|
|
21
|
+
hint: 'How should your AI Agent behave? This is injected into every conversation to guide its responses.',
|
|
18
22
|
options: undefined
|
|
19
23
|
},
|
|
20
24
|
}
|
package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerAgentResponsePayload.schema.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
-
import
|
|
2
|
+
import agentSchema_v2020_12_25 from './agent.schema.js';
|
|
3
3
|
const registerAgentResponsePayloadSchema = {
|
|
4
4
|
id: 'registerAgentResponsePayload',
|
|
5
5
|
version: 'v2020_12_25',
|
|
@@ -10,7 +10,7 @@ const registerAgentResponsePayloadSchema = {
|
|
|
10
10
|
'agent': {
|
|
11
11
|
type: 'schema',
|
|
12
12
|
isRequired: true,
|
|
13
|
-
options: { schema:
|
|
13
|
+
options: { schema: agentSchema_v2020_12_25, }
|
|
14
14
|
},
|
|
15
15
|
}
|
|
16
16
|
};
|