@adecore/agent-contracts 0.31.1 → 0.31.2
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/dist/protocol.d.ts
CHANGED
|
@@ -4008,6 +4008,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
4008
4008
|
secretsAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
4009
4009
|
loginCommands: z.ZodOptional<z.ZodRecord<z.ZodString & z.core.$partial, z.ZodString>>;
|
|
4010
4010
|
chatLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4011
|
+
silentLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4011
4012
|
}, z.core.$strip>;
|
|
4012
4013
|
};
|
|
4013
4014
|
readonly 'accounts.save': {
|
|
@@ -4066,6 +4067,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
4066
4067
|
secretsAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
4067
4068
|
loginCommands: z.ZodOptional<z.ZodRecord<z.ZodString & z.core.$partial, z.ZodString>>;
|
|
4068
4069
|
chatLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4070
|
+
silentLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4069
4071
|
}, z.core.$strip>;
|
|
4070
4072
|
};
|
|
4071
4073
|
readonly 'accounts.refresh': {
|
|
@@ -4109,6 +4111,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
4109
4111
|
secretsAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
4110
4112
|
loginCommands: z.ZodOptional<z.ZodRecord<z.ZodString & z.core.$partial, z.ZodString>>;
|
|
4111
4113
|
chatLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4114
|
+
silentLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4112
4115
|
}, z.core.$strip>;
|
|
4113
4116
|
};
|
|
4114
4117
|
readonly 'accounts.create': {
|
|
@@ -4156,6 +4159,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
4156
4159
|
secretsAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
4157
4160
|
loginCommands: z.ZodOptional<z.ZodRecord<z.ZodString & z.core.$partial, z.ZodString>>;
|
|
4158
4161
|
chatLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4162
|
+
silentLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4159
4163
|
id: z.ZodString;
|
|
4160
4164
|
}, z.core.$strip>;
|
|
4161
4165
|
};
|
|
@@ -5944,6 +5948,7 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
5944
5948
|
secretsAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
5945
5949
|
loginCommands: z.ZodOptional<z.ZodRecord<z.ZodString & z.core.$partial, z.ZodString>>;
|
|
5946
5950
|
chatLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5951
|
+
silentLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5947
5952
|
}, z.core.$strip>;
|
|
5948
5953
|
};
|
|
5949
5954
|
export type AgentRequestType = keyof typeof AGENT_REQUEST_SCHEMAS;
|
|
@@ -110,6 +110,7 @@ export declare const ProviderAccountsSchema: z.ZodObject<{
|
|
|
110
110
|
secretsAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
111
111
|
loginCommands: z.ZodOptional<z.ZodRecord<z.ZodString & z.core.$partial, z.ZodString>>;
|
|
112
112
|
chatLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
113
|
+
silentLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
113
114
|
}, z.core.$strip>;
|
|
114
115
|
export type ProviderAccounts = z.infer<typeof ProviderAccountsSchema>;
|
|
115
116
|
export declare const ProviderAccountsSavePayloadSchema: z.ZodObject<{
|
|
@@ -174,6 +175,7 @@ export declare const ProviderAccountCreateResultSchema: z.ZodObject<{
|
|
|
174
175
|
secretsAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
175
176
|
loginCommands: z.ZodOptional<z.ZodRecord<z.ZodString & z.core.$partial, z.ZodString>>;
|
|
176
177
|
chatLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
178
|
+
silentLogins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
177
179
|
id: z.ZodString;
|
|
178
180
|
}, z.core.$strip>;
|
|
179
181
|
export type ProviderAccountCreateResult = z.infer<typeof ProviderAccountCreateResultSchema>;
|
|
@@ -71,7 +71,9 @@ export const ProviderAccountsSchema = z.object({
|
|
|
71
71
|
// Per agent kind, what a terminal types to sign that CLI in under an account, which the account's environment points at.
|
|
72
72
|
loginCommands: z.partialRecord(AgentKindSchema, z.string()).optional(),
|
|
73
73
|
// The agent kinds that keep accounts in folders of their own but sign in from a chat, with no command to type.
|
|
74
|
-
chatLogins: z.array(AgentKindSchema).optional()
|
|
74
|
+
chatLogins: z.array(AgentKindSchema).optional(),
|
|
75
|
+
// The agent kinds of `loginCommands` whose CLI cannot say who is signed in, so nothing notices a login end.
|
|
76
|
+
silentLogins: z.array(AgentKindSchema).optional()
|
|
75
77
|
});
|
|
76
78
|
/* The whole map: an id left out is removed, and its folder stays where it is. */
|
|
77
79
|
export const ProviderAccountsSavePayloadSchema = z.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/agent-contracts",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.2",
|
|
4
4
|
"description": "Schemas and port contracts for agent chats, provider accounts, models and usage.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"test": "bun --conditions=source test"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@adecore/intelligent-ui": "0.31.
|
|
89
|
+
"@adecore/intelligent-ui": "0.31.2",
|
|
90
90
|
"zod": "^4.6.5"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
package/src/provider-accounts.ts
CHANGED
|
@@ -85,7 +85,9 @@ export const ProviderAccountsSchema = z.object({
|
|
|
85
85
|
// Per agent kind, what a terminal types to sign that CLI in under an account, which the account's environment points at.
|
|
86
86
|
loginCommands: z.partialRecord(AgentKindSchema, z.string()).optional(),
|
|
87
87
|
// The agent kinds that keep accounts in folders of their own but sign in from a chat, with no command to type.
|
|
88
|
-
chatLogins: z.array(AgentKindSchema).optional()
|
|
88
|
+
chatLogins: z.array(AgentKindSchema).optional(),
|
|
89
|
+
// The agent kinds of `loginCommands` whose CLI cannot say who is signed in, so nothing notices a login end.
|
|
90
|
+
silentLogins: z.array(AgentKindSchema).optional()
|
|
89
91
|
});
|
|
90
92
|
export type ProviderAccounts = z.infer<typeof ProviderAccountsSchema>;
|
|
91
93
|
|