@stacklink/sdk 0.6.2 → 0.6.4

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.
@@ -1,7 +1,7 @@
1
1
  import { botApiSignaturePayload } from '../domain/bot-contract.js';
2
2
  import { materializeStacklinkWorkbenchExecutionResponse, } from '../domain/stacklink-meta-tools.js';
3
3
  export { StacklinkMemoryLifecycle, StacklinkMemoryLifecycleError, createStacklinkMemoryLifecycle, serializeCompletedConversationTurn, } from './memory-lifecycle.js';
4
- export const stacklinkTypeScriptSdkVersion = '0.6.2';
4
+ export const stacklinkTypeScriptSdkVersion = '0.6.4';
5
5
  const workbenchReusableRunComparisonWaitMs = 120_000;
6
6
  const workbenchReusableRunComparisonPollMs = 1_000;
7
7
  export class StacklinkApiError extends Error {
@@ -2476,8 +2476,8 @@ export class StacklinkSessionMemoryClient {
2476
2476
  history(memoryId) {
2477
2477
  return this.memoryClient.history(memoryId, { sessionId: this.sessionId });
2478
2478
  }
2479
- update(memoryId, patch) {
2480
- return this.memoryClient.update(memoryId, { sessionId: this.sessionId, patch });
2479
+ update(memoryId, patch, options = {}) {
2480
+ return this.memoryClient.update(memoryId, { ...options, sessionId: this.sessionId, patch });
2481
2481
  }
2482
2482
  forget(memoryId, reason) {
2483
2483
  return this.memoryClient.forget(memoryId, {
@@ -3354,7 +3354,9 @@ export class StacklinkWorkflowsClient {
3354
3354
  deleteTrigger(id, triggerId, expectedRevision) { return this.request(`${this.path(id)}/triggers/${encodeURIComponent(triggerId)}`, { method: 'DELETE', query: { expectedRevision } }); }
3355
3355
  invokeTrigger(id, triggerId, requestId, input) { return this.request(`${this.path(id)}/triggers/${encodeURIComponent(triggerId)}/invoke`, { method: 'POST', body: { requestId, input }, idempotencyKey: requestId }); }
3356
3356
  previewSchedule(cron, timezone) { return this.request(`${this.path()}/schedule/preview`, { method: 'POST', body: { cron, timezone } }); }
3357
- suggest(id, description, revision, sessionId) { return this.request(`${this.path(id)}/suggest`, { method: 'POST', body: { description, revision, sessionId }, timeoutMs: 60_000 }); }
3357
+ searchMentions(query = {}) { return this.request(`${this.path()}/mentions`, { query }); }
3358
+ resolveMentions(references, workflowId) { return this.request(`${this.path()}/mentions/resolve`, { method: 'POST', body: { references, workflowId } }); }
3359
+ suggest(id, description, revision, sessionId, mentions) { return this.request(`${this.path(id)}/suggest`, { method: 'POST', body: { description, revision, sessionId, mentions }, timeoutMs: 60_000 }); }
3358
3360
  issueEmbeddedAccess(input) { return this.client.request('/v1/workflows/embed/access', { method: 'POST', body: input }); }
3359
3361
  exchangeEmbeddedAccess(bootstrapToken, origin) { return this.client.request('/v1/workflows/embed/exchange', { method: 'POST', body: { bootstrapToken, origin } }); }
3360
3362
  embedSettings() { return this.request(`${this.path()}/embed`); }