@ericsanchezok/synergy-sdk 1.2.15 → 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.
@@ -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;
@@ -782,6 +789,7 @@ export type ProviderConfig = {
782
789
  };
783
790
  limit?: {
784
791
  context: number;
792
+ input?: number;
785
793
  output: number;
786
794
  };
787
795
  modalities?: {
@@ -834,11 +842,11 @@ export type ProviderConfig = {
834
842
  };
835
843
  export type PassiveRetrievalConfig = {
836
844
  /**
837
- * Minimum cosine similarity for retrieval candidates (default: 0.5)
845
+ * Minimum cosine similarity for retrieval candidates (default: 0.7)
838
846
  */
839
847
  simThreshold?: number;
840
848
  /**
841
- * Number of experiences to retrieve (default: 5)
849
+ * Number of experiences to retrieve (default: 8)
842
850
  */
843
851
  topK?: number;
844
852
  /**
@@ -953,11 +961,11 @@ export type EvolutionActive = {
953
961
  */
954
962
  retrieve?: boolean | {
955
963
  /**
956
- * Default minimum similarity for auto-injection (default: 0.5)
964
+ * Default minimum similarity for auto-injection (default: 0.7)
957
965
  */
958
966
  simThreshold?: number;
959
967
  /**
960
- * Default maximum entries per category to contextually retrieve (default: 5)
968
+ * Default maximum entries per category to contextually retrieve (default: 3)
961
969
  */
962
970
  topK?: number;
963
971
  /**
@@ -1232,16 +1240,42 @@ export type EmailSmtpConfig = {
1232
1240
  */
1233
1241
  password?: string;
1234
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
+ };
1235
1268
  /**
1236
1269
  * Outgoing email configuration
1237
1270
  */
1238
1271
  export type EmailConfig = {
1239
1272
  /**
1240
- * Enable outgoing email features
1273
+ * Enable email features
1241
1274
  */
1242
1275
  enabled?: boolean;
1243
1276
  from?: EmailFromConfig;
1244
1277
  smtp?: EmailSmtpConfig;
1278
+ imap?: EmailImapConfig;
1245
1279
  };
1246
1280
  /**
1247
1281
  * @deprecated Always uses stretch layout.
@@ -1447,6 +1481,12 @@ export type Config = {
1447
1481
  */
1448
1482
  giteaSSHHost?: string;
1449
1483
  };
1484
+ question?: {
1485
+ /**
1486
+ * Seconds before unanswered questions auto-expire (0 = no timeout, default 1800 = 30min)
1487
+ */
1488
+ timeout?: number;
1489
+ };
1450
1490
  compaction?: {
1451
1491
  /**
1452
1492
  * Enable automatic compaction when context is full (default: true)
@@ -1456,6 +1496,10 @@ export type Config = {
1456
1496
  * Enable pruning of old tool outputs (default: true)
1457
1497
  */
1458
1498
  prune?: boolean;
1499
+ /**
1500
+ * Fraction of usable context that triggers auto-compaction (default: 0.85)
1501
+ */
1502
+ overflowThreshold?: number;
1459
1503
  };
1460
1504
  experimental?: {
1461
1505
  /**
@@ -1479,6 +1523,47 @@ export type Config = {
1479
1523
  */
1480
1524
  mcp_timeout?: number;
1481
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
+ };
1482
1567
  /**
1483
1568
  * Custom category configurations for background tasks. Categories define model and prompt presets.
1484
1569
  */
@@ -1599,6 +1684,7 @@ export type Model = {
1599
1684
  };
1600
1685
  limit: {
1601
1686
  context: number;
1687
+ input?: number;
1602
1688
  output: number;
1603
1689
  };
1604
1690
  status: "alpha" | "beta" | "deprecated" | "active";
@@ -2161,6 +2247,14 @@ export type QuestionRequest = {
2161
2247
  messageID: string;
2162
2248
  callID: string;
2163
2249
  };
2250
+ /**
2251
+ * Seconds before this question auto-expires
2252
+ */
2253
+ timeout?: number;
2254
+ /**
2255
+ * Unix timestamp (ms) when this question was asked
2256
+ */
2257
+ createdAt?: number;
2164
2258
  };
2165
2259
  export type QuestionAnswer = Array<string>;
2166
2260
  export type SessionExportSizeEstimate = {
@@ -2447,11 +2541,20 @@ export type AgendaTriggerResult = {
2447
2541
  };
2448
2542
  export type AgendaCreateInput = {
2449
2543
  title: string;
2544
+ prompt: string;
2450
2545
  description?: string;
2451
2546
  tags?: Array<string>;
2452
2547
  triggers?: Array<AgendaTrigger>;
2453
- task?: AgendaTask;
2454
- delivery?: AgendaDelivery;
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;
2455
2558
  createdBy?: "user" | "agent";
2456
2559
  /**
2457
2560
  * Session where the item was created
@@ -2465,8 +2568,12 @@ export type AgendaPatchInput = {
2465
2568
  status?: "pending" | "active" | "paused" | "done" | "cancelled";
2466
2569
  tags?: Array<string>;
2467
2570
  triggers?: Array<AgendaTrigger>;
2468
- task?: AgendaTask;
2469
- delivery?: AgendaDelivery;
2571
+ prompt?: string;
2572
+ global?: boolean;
2573
+ wake?: boolean;
2574
+ silent?: boolean;
2575
+ agent?: string;
2576
+ sessionRefs?: Array<AgendaSessionRef>;
2470
2577
  };
2471
2578
  export type NoteInfo = {
2472
2579
  id: string;
@@ -3000,6 +3107,13 @@ export type EventQuestionRejected = {
3000
3107
  requestID: string;
3001
3108
  };
3002
3109
  };
3110
+ export type EventQuestionTimedOut = {
3111
+ type: "question.timed_out";
3112
+ properties: {
3113
+ sessionID: string;
3114
+ requestID: string;
3115
+ };
3116
+ };
3003
3117
  export type EventRuntimeReloaded = {
3004
3118
  type: "runtime.reloaded";
3005
3119
  properties: {
@@ -3272,7 +3386,7 @@ export type EventGlobalDisposed = {
3272
3386
  [key: string]: unknown;
3273
3387
  };
3274
3388
  };
3275
- export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventScopeUpdated | EventScopeRemoved | EventConfigUpdated | EventConfigSetActivated | EventServerInstanceDisposed | EventFileEdited | EventLspClientDiagnostics | EventLspUpdated | EventFileWatcherUpdated | EventMcpToolsChanged | EventMcpPromptsChanged | EventMcpResourcesChanged | EventMcpReady | EventCommandExecuted | EventVcsBranchUpdated | EventPermissionAsked | EventPermissionReplied | EventPermissionAllowAllChanged | EventNoteCreated | EventNoteUpdated | EventNoteDeleted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventRuntimeReloaded | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventTodoUpdated | EventDagUpdated | EventHolosProfileUpdated | EventAppPush | EventHolosContactAdded | EventHolosContactRemoved | EventHolosContactUpdated | EventHolosContactConfigUpdated | EventHolosFriendRequestCreated | EventHolosFriendRequestUpdated | EventHolosFriendRequestRemoved | EventHolosQueueEnqueued | EventHolosQueueDelivered | EventHolosQueueExpired | EventHolosConnected | EventHolosConnectionStatusChanged | EventHolosPresence | EventSessionCompacted | EventAgendaItemCreated | EventAgendaItemUpdated | EventAgendaItemDeleted | EventCortexTaskCreated | EventCortexTaskCompleted | EventCortexTasksUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventChannelCommandExecuted | EventChannelConnected | EventChannelDisconnected | EventChannelMessageReceived | EventServerConnected | EventGlobalDisposed;
3389
+ export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventScopeUpdated | EventScopeRemoved | EventConfigUpdated | EventConfigSetActivated | EventServerInstanceDisposed | EventFileEdited | EventLspClientDiagnostics | EventLspUpdated | EventFileWatcherUpdated | EventMcpToolsChanged | EventMcpPromptsChanged | EventMcpResourcesChanged | EventMcpReady | EventCommandExecuted | EventVcsBranchUpdated | EventPermissionAsked | EventPermissionReplied | EventPermissionAllowAllChanged | EventNoteCreated | EventNoteUpdated | EventNoteDeleted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventQuestionTimedOut | EventRuntimeReloaded | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventTodoUpdated | EventDagUpdated | EventHolosProfileUpdated | EventAppPush | EventHolosContactAdded | EventHolosContactRemoved | EventHolosContactUpdated | EventHolosContactConfigUpdated | EventHolosFriendRequestCreated | EventHolosFriendRequestUpdated | EventHolosFriendRequestRemoved | EventHolosQueueEnqueued | EventHolosQueueDelivered | EventHolosQueueExpired | EventHolosConnected | EventHolosConnectionStatusChanged | EventHolosPresence | EventSessionCompacted | EventAgendaItemCreated | EventAgendaItemUpdated | EventAgendaItemDeleted | EventCortexTaskCreated | EventCortexTaskCompleted | EventCortexTasksUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventChannelCommandExecuted | EventChannelConnected | EventChannelDisconnected | EventChannelMessageReceived | EventServerConnected | EventGlobalDisposed;
3276
3390
  export type GlobalHealthData = {
3277
3391
  body?: never;
3278
3392
  path?: never;
@@ -5382,6 +5496,7 @@ export type ProviderListResponses = {
5382
5496
  };
5383
5497
  limit: {
5384
5498
  context: number;
5499
+ input?: number;
5385
5500
  output: number;
5386
5501
  };
5387
5502
  modalities?: {
@@ -6382,6 +6497,7 @@ export type AgendaListData = {
6382
6497
  path?: never;
6383
6498
  query?: {
6384
6499
  directory?: string;
6500
+ scopeID?: string;
6385
6501
  };
6386
6502
  url: "/agenda";
6387
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.15",
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": "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": {