@ericsanchezok/synergy-sdk 1.2.16 → 1.2.17
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/gen/sdk.gen.d.ts +1 -1
- package/dist/gen/sdk.gen.js +1 -1
- package/dist/gen/types.gen.d.ts +156 -68
- package/package.json +5 -5
package/dist/gen/sdk.gen.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ export declare class Agenda extends HeyApiClient {
|
|
|
134
134
|
/**
|
|
135
135
|
* Create agenda item
|
|
136
136
|
*
|
|
137
|
-
* Create a new agenda item with optional triggers
|
|
137
|
+
* Create a new agenda item with optional triggers and execution configuration.
|
|
138
138
|
*/
|
|
139
139
|
create<ThrowOnError extends boolean = false>(parameters?: {
|
|
140
140
|
directory?: string;
|
package/dist/gen/sdk.gen.js
CHANGED
|
@@ -255,7 +255,7 @@ export class Agenda extends HeyApiClient {
|
|
|
255
255
|
/**
|
|
256
256
|
* Create agenda item
|
|
257
257
|
*
|
|
258
|
-
* Create a new agenda item with optional triggers
|
|
258
|
+
* Create a new agenda item with optional triggers and execution configuration.
|
|
259
259
|
*/
|
|
260
260
|
create(parameters, options) {
|
|
261
261
|
const params = buildClientParams([parameters], [
|
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -90,6 +90,30 @@ export type AgendaTriggerWatch = {
|
|
|
90
90
|
* Debounce window before firing, e.g. '500ms', '2s'. Default: '500ms'
|
|
91
91
|
*/
|
|
92
92
|
debounce?: string;
|
|
93
|
+
} | {
|
|
94
|
+
kind: "tool";
|
|
95
|
+
/**
|
|
96
|
+
* Synergy tool name to call, e.g. 'inspire_jobs'
|
|
97
|
+
*/
|
|
98
|
+
tool: string;
|
|
99
|
+
/**
|
|
100
|
+
* Arguments to pass to the tool
|
|
101
|
+
*/
|
|
102
|
+
args?: {
|
|
103
|
+
[key: string]: unknown;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Poll interval, e.g. '5m'. Default: '5m'
|
|
107
|
+
*/
|
|
108
|
+
interval?: string;
|
|
109
|
+
/**
|
|
110
|
+
* 'change': fire when tool output differs; 'match': fire when output matches pattern
|
|
111
|
+
*/
|
|
112
|
+
trigger?: "change" | "match";
|
|
113
|
+
/**
|
|
114
|
+
* Regex pattern, required when trigger is 'match'
|
|
115
|
+
*/
|
|
116
|
+
match?: string;
|
|
93
117
|
};
|
|
94
118
|
};
|
|
95
119
|
export type AgendaTriggerWebhook = {
|
|
@@ -100,15 +124,6 @@ export type AgendaTriggerWebhook = {
|
|
|
100
124
|
token?: string;
|
|
101
125
|
};
|
|
102
126
|
export type AgendaTrigger = AgendaTriggerAt | AgendaTriggerCron | AgendaTriggerEvery | AgendaTriggerDelay | AgendaTriggerWatch | AgendaTriggerWebhook;
|
|
103
|
-
/**
|
|
104
|
-
* Scope where the item was created
|
|
105
|
-
*/
|
|
106
|
-
export type AgendaScope = {
|
|
107
|
-
id: string;
|
|
108
|
-
type?: string;
|
|
109
|
-
directory?: string;
|
|
110
|
-
worktree?: string;
|
|
111
|
-
};
|
|
112
127
|
export type AgendaSessionRef = {
|
|
113
128
|
sessionID: string;
|
|
114
129
|
/**
|
|
@@ -117,54 +132,13 @@ export type AgendaSessionRef = {
|
|
|
117
132
|
hint?: string;
|
|
118
133
|
};
|
|
119
134
|
/**
|
|
120
|
-
*
|
|
121
|
-
*/
|
|
122
|
-
export type AgendaTask = {
|
|
123
|
-
/**
|
|
124
|
-
* Instruction for the agent
|
|
125
|
-
*/
|
|
126
|
-
prompt: string;
|
|
127
|
-
/**
|
|
128
|
-
* Agent to use, defaults to the configured default
|
|
129
|
-
*/
|
|
130
|
-
agent?: string;
|
|
131
|
-
/**
|
|
132
|
-
* Model override
|
|
133
|
-
*/
|
|
134
|
-
model?: {
|
|
135
|
-
providerID: string;
|
|
136
|
-
modelID: string;
|
|
137
|
-
};
|
|
138
|
-
workScope?: AgendaScope;
|
|
139
|
-
/**
|
|
140
|
-
* Sessions whose content may be relevant — injected as context references
|
|
141
|
-
*/
|
|
142
|
-
sessionRefs?: Array<AgendaSessionRef>;
|
|
143
|
-
/**
|
|
144
|
-
* Execution timeout in milliseconds
|
|
145
|
-
*/
|
|
146
|
-
timeout?: number;
|
|
147
|
-
/**
|
|
148
|
-
* 'ephemeral' (default): create a new session per trigger. 'persistent': reuse the same session across triggers.
|
|
149
|
-
*/
|
|
150
|
-
sessionMode?: "ephemeral" | "persistent";
|
|
151
|
-
/**
|
|
152
|
-
* 'full' (default): inject complete agenda context XML. 'signal': inject only the signal payload. 'none': send only the task prompt.
|
|
153
|
-
*/
|
|
154
|
-
contextMode?: "full" | "signal" | "none";
|
|
155
|
-
};
|
|
156
|
-
/**
|
|
157
|
-
* Delivery configuration, defaults to { target: 'auto' }
|
|
135
|
+
* Scope where the item was created
|
|
158
136
|
*/
|
|
159
|
-
export type
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
target: "home";
|
|
165
|
-
} | {
|
|
166
|
-
target: "session";
|
|
167
|
-
sessionID: string;
|
|
137
|
+
export type AgendaScope = {
|
|
138
|
+
id: string;
|
|
139
|
+
type?: string;
|
|
140
|
+
directory?: string;
|
|
141
|
+
worktree?: string;
|
|
168
142
|
};
|
|
169
143
|
export type ChannelInfo = {
|
|
170
144
|
type: string;
|
|
@@ -242,11 +216,44 @@ export type AgendaItem = {
|
|
|
242
216
|
description?: string;
|
|
243
217
|
tags?: Array<string>;
|
|
244
218
|
/**
|
|
245
|
-
*
|
|
219
|
+
* If true, item is visible from all scopes
|
|
220
|
+
*/
|
|
221
|
+
global?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Activation conditions
|
|
246
224
|
*/
|
|
247
225
|
triggers?: Array<AgendaTrigger>;
|
|
248
|
-
|
|
249
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Instruction for the agent when triggered
|
|
228
|
+
*/
|
|
229
|
+
prompt: string;
|
|
230
|
+
/**
|
|
231
|
+
* Agent to use, defaults to configured default
|
|
232
|
+
*/
|
|
233
|
+
agent?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Model override
|
|
236
|
+
*/
|
|
237
|
+
model?: {
|
|
238
|
+
providerID: string;
|
|
239
|
+
modelID: string;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* Sessions whose content may be relevant — injected as context references
|
|
243
|
+
*/
|
|
244
|
+
sessionRefs?: Array<AgendaSessionRef>;
|
|
245
|
+
/**
|
|
246
|
+
* Execution timeout in milliseconds
|
|
247
|
+
*/
|
|
248
|
+
timeout?: number;
|
|
249
|
+
/**
|
|
250
|
+
* Whether to wake the origin session's agent on completion
|
|
251
|
+
*/
|
|
252
|
+
wake?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Whether to suppress result delivery entirely
|
|
255
|
+
*/
|
|
256
|
+
silent?: boolean;
|
|
250
257
|
origin: AgendaOrigin;
|
|
251
258
|
createdBy: "user" | "agent";
|
|
252
259
|
state?: AgendaItemState;
|
|
@@ -835,11 +842,11 @@ export type ProviderConfig = {
|
|
|
835
842
|
};
|
|
836
843
|
export type PassiveRetrievalConfig = {
|
|
837
844
|
/**
|
|
838
|
-
* Minimum cosine similarity for retrieval candidates (default: 0.
|
|
845
|
+
* Minimum cosine similarity for retrieval candidates (default: 0.7)
|
|
839
846
|
*/
|
|
840
847
|
simThreshold?: number;
|
|
841
848
|
/**
|
|
842
|
-
* Number of experiences to retrieve (default:
|
|
849
|
+
* Number of experiences to retrieve (default: 8)
|
|
843
850
|
*/
|
|
844
851
|
topK?: number;
|
|
845
852
|
/**
|
|
@@ -954,11 +961,11 @@ export type EvolutionActive = {
|
|
|
954
961
|
*/
|
|
955
962
|
retrieve?: boolean | {
|
|
956
963
|
/**
|
|
957
|
-
* Default minimum similarity for auto-injection (default: 0.
|
|
964
|
+
* Default minimum similarity for auto-injection (default: 0.7)
|
|
958
965
|
*/
|
|
959
966
|
simThreshold?: number;
|
|
960
967
|
/**
|
|
961
|
-
* Default maximum entries per category to contextually retrieve (default:
|
|
968
|
+
* Default maximum entries per category to contextually retrieve (default: 3)
|
|
962
969
|
*/
|
|
963
970
|
topK?: number;
|
|
964
971
|
/**
|
|
@@ -1233,16 +1240,42 @@ export type EmailSmtpConfig = {
|
|
|
1233
1240
|
*/
|
|
1234
1241
|
password?: string;
|
|
1235
1242
|
};
|
|
1243
|
+
/**
|
|
1244
|
+
* IMAP settings for reading emails
|
|
1245
|
+
*/
|
|
1246
|
+
export type EmailImapConfig = {
|
|
1247
|
+
/**
|
|
1248
|
+
* IMAP server hostname
|
|
1249
|
+
*/
|
|
1250
|
+
host?: string;
|
|
1251
|
+
/**
|
|
1252
|
+
* IMAP server port
|
|
1253
|
+
*/
|
|
1254
|
+
port?: number;
|
|
1255
|
+
/**
|
|
1256
|
+
* Use TLS/SSL for the IMAP connection
|
|
1257
|
+
*/
|
|
1258
|
+
secure?: boolean;
|
|
1259
|
+
/**
|
|
1260
|
+
* IMAP username
|
|
1261
|
+
*/
|
|
1262
|
+
username?: string;
|
|
1263
|
+
/**
|
|
1264
|
+
* IMAP password or app token
|
|
1265
|
+
*/
|
|
1266
|
+
password?: string;
|
|
1267
|
+
};
|
|
1236
1268
|
/**
|
|
1237
1269
|
* Outgoing email configuration
|
|
1238
1270
|
*/
|
|
1239
1271
|
export type EmailConfig = {
|
|
1240
1272
|
/**
|
|
1241
|
-
* Enable
|
|
1273
|
+
* Enable email features
|
|
1242
1274
|
*/
|
|
1243
1275
|
enabled?: boolean;
|
|
1244
1276
|
from?: EmailFromConfig;
|
|
1245
1277
|
smtp?: EmailSmtpConfig;
|
|
1278
|
+
imap?: EmailImapConfig;
|
|
1246
1279
|
};
|
|
1247
1280
|
/**
|
|
1248
1281
|
* @deprecated Always uses stretch layout.
|
|
@@ -1490,6 +1523,47 @@ export type Config = {
|
|
|
1490
1523
|
*/
|
|
1491
1524
|
mcp_timeout?: number;
|
|
1492
1525
|
};
|
|
1526
|
+
/**
|
|
1527
|
+
* SII 启智平台 integration configuration
|
|
1528
|
+
*/
|
|
1529
|
+
sii?: {
|
|
1530
|
+
/**
|
|
1531
|
+
* Enable SII Inspire Tools for 启智平台 integration
|
|
1532
|
+
*/
|
|
1533
|
+
enable?: boolean;
|
|
1534
|
+
/**
|
|
1535
|
+
* Default project name for task submission
|
|
1536
|
+
*/
|
|
1537
|
+
defaultProject?: string;
|
|
1538
|
+
/**
|
|
1539
|
+
* Default workspace name for task submission
|
|
1540
|
+
*/
|
|
1541
|
+
defaultWorkspace?: string;
|
|
1542
|
+
/**
|
|
1543
|
+
* Default compute group name
|
|
1544
|
+
*/
|
|
1545
|
+
defaultComputeGroup?: string;
|
|
1546
|
+
/**
|
|
1547
|
+
* Default Docker image for training tasks
|
|
1548
|
+
*/
|
|
1549
|
+
defaultImage?: string;
|
|
1550
|
+
/**
|
|
1551
|
+
* Default spec/quota ID for OpenAPI task submission (quota_id from a previous job detail)
|
|
1552
|
+
*/
|
|
1553
|
+
defaultSpecId?: string;
|
|
1554
|
+
/**
|
|
1555
|
+
* Default task priority (usually project max)
|
|
1556
|
+
*/
|
|
1557
|
+
defaultPriority?: number;
|
|
1558
|
+
/**
|
|
1559
|
+
* Default shared memory in MB (default: 1200)
|
|
1560
|
+
*/
|
|
1561
|
+
defaultShm?: number;
|
|
1562
|
+
/**
|
|
1563
|
+
* Command prefix prepended to every submit command. Typically conda init + cd to project code directory
|
|
1564
|
+
*/
|
|
1565
|
+
commandPrefix?: string;
|
|
1566
|
+
};
|
|
1493
1567
|
/**
|
|
1494
1568
|
* Custom category configurations for background tasks. Categories define model and prompt presets.
|
|
1495
1569
|
*/
|
|
@@ -2467,11 +2541,20 @@ export type AgendaTriggerResult = {
|
|
|
2467
2541
|
};
|
|
2468
2542
|
export type AgendaCreateInput = {
|
|
2469
2543
|
title: string;
|
|
2544
|
+
prompt: string;
|
|
2470
2545
|
description?: string;
|
|
2471
2546
|
tags?: Array<string>;
|
|
2472
2547
|
triggers?: Array<AgendaTrigger>;
|
|
2473
|
-
|
|
2474
|
-
|
|
2548
|
+
global?: boolean;
|
|
2549
|
+
wake?: boolean;
|
|
2550
|
+
silent?: boolean;
|
|
2551
|
+
agent?: string;
|
|
2552
|
+
model?: {
|
|
2553
|
+
providerID: string;
|
|
2554
|
+
modelID: string;
|
|
2555
|
+
};
|
|
2556
|
+
sessionRefs?: Array<AgendaSessionRef>;
|
|
2557
|
+
timeout?: number;
|
|
2475
2558
|
createdBy?: "user" | "agent";
|
|
2476
2559
|
/**
|
|
2477
2560
|
* Session where the item was created
|
|
@@ -2485,8 +2568,12 @@ export type AgendaPatchInput = {
|
|
|
2485
2568
|
status?: "pending" | "active" | "paused" | "done" | "cancelled";
|
|
2486
2569
|
tags?: Array<string>;
|
|
2487
2570
|
triggers?: Array<AgendaTrigger>;
|
|
2488
|
-
|
|
2489
|
-
|
|
2571
|
+
prompt?: string;
|
|
2572
|
+
global?: boolean;
|
|
2573
|
+
wake?: boolean;
|
|
2574
|
+
silent?: boolean;
|
|
2575
|
+
agent?: string;
|
|
2576
|
+
sessionRefs?: Array<AgendaSessionRef>;
|
|
2490
2577
|
};
|
|
2491
2578
|
export type NoteInfo = {
|
|
2492
2579
|
id: string;
|
|
@@ -6410,6 +6497,7 @@ export type AgendaListData = {
|
|
|
6410
6497
|
path?: never;
|
|
6411
6498
|
query?: {
|
|
6412
6499
|
directory?: string;
|
|
6500
|
+
scopeID?: string;
|
|
6413
6501
|
};
|
|
6414
6502
|
url: "/agenda";
|
|
6415
6503
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@ericsanchezok/synergy-sdk",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.17",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
],
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hey-api/openapi-ts": "0.88.1",
|
|
34
|
-
"@tsconfig/node22": "
|
|
35
|
-
"@types/node": "
|
|
36
|
-
"typescript": "
|
|
37
|
-
"@typescript/native-preview": "
|
|
34
|
+
"@tsconfig/node22": "22.0.2",
|
|
35
|
+
"@types/node": "22.13.9",
|
|
36
|
+
"typescript": "5.8.2",
|
|
37
|
+
"@typescript/native-preview": "7.0.0-dev.20251207.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {},
|
|
40
40
|
"publishConfig": {
|