@ericsanchezok/synergy-sdk 1.2.16 → 1.2.18

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.
@@ -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, task, and delivery configuration.
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;
@@ -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, task, and delivery configuration.
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], [
@@ -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
- * Execution configuration
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 AgendaDelivery = {
160
- target: "auto";
161
- } | {
162
- target: "silent";
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
- * Activation conditions. Schedule items have time triggers; todo items may have none (manual activation) or non-time triggers.
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
- task?: AgendaTask;
249
- delivery?: AgendaDelivery;
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.5)
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: 5)
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.5)
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: 5)
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 outgoing email features
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,14 @@ export type Config = {
1490
1523
  */
1491
1524
  mcp_timeout?: number;
1492
1525
  };
1526
+ /**
1527
+ * Per-plugin configuration namespaces. Keys are plugin IDs, values are plugin-specific config.
1528
+ */
1529
+ pluginConfig?: {
1530
+ [key: string]: {
1531
+ [key: string]: unknown;
1532
+ };
1533
+ };
1493
1534
  /**
1494
1535
  * Custom category configurations for background tasks. Categories define model and prompt presets.
1495
1536
  */
@@ -2467,11 +2508,20 @@ export type AgendaTriggerResult = {
2467
2508
  };
2468
2509
  export type AgendaCreateInput = {
2469
2510
  title: string;
2511
+ prompt: string;
2470
2512
  description?: string;
2471
2513
  tags?: Array<string>;
2472
2514
  triggers?: Array<AgendaTrigger>;
2473
- task?: AgendaTask;
2474
- delivery?: AgendaDelivery;
2515
+ global?: boolean;
2516
+ wake?: boolean;
2517
+ silent?: boolean;
2518
+ agent?: string;
2519
+ model?: {
2520
+ providerID: string;
2521
+ modelID: string;
2522
+ };
2523
+ sessionRefs?: Array<AgendaSessionRef>;
2524
+ timeout?: number;
2475
2525
  createdBy?: "user" | "agent";
2476
2526
  /**
2477
2527
  * Session where the item was created
@@ -2485,8 +2535,12 @@ export type AgendaPatchInput = {
2485
2535
  status?: "pending" | "active" | "paused" | "done" | "cancelled";
2486
2536
  tags?: Array<string>;
2487
2537
  triggers?: Array<AgendaTrigger>;
2488
- task?: AgendaTask;
2489
- delivery?: AgendaDelivery;
2538
+ prompt?: string;
2539
+ global?: boolean;
2540
+ wake?: boolean;
2541
+ silent?: boolean;
2542
+ agent?: string;
2543
+ sessionRefs?: Array<AgendaSessionRef>;
2490
2544
  };
2491
2545
  export type NoteInfo = {
2492
2546
  id: string;
@@ -6410,6 +6464,7 @@ export type AgendaListData = {
6410
6464
  path?: never;
6411
6465
  query?: {
6412
6466
  directory?: string;
6467
+ scopeID?: string;
6413
6468
  };
6414
6469
  url: "/agenda";
6415
6470
  };
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.16",
4
+ "version": "1.2.18",
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": "catalog:",
35
- "@types/node": "catalog:",
36
- "typescript": "catalog:",
37
- "@typescript/native-preview": "catalog:"
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": {