@keemakr/agent-sdk 0.19.0-dev-20261014074621 → 0.19.0-dev-20261014094355
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/canvases.d.ts +24 -0
- package/dist/canvases.js +20 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/canvases.d.ts
CHANGED
|
@@ -47,3 +47,27 @@ export declare function imageCanvas(input: {
|
|
|
47
47
|
width?: number;
|
|
48
48
|
height?: number;
|
|
49
49
|
}): ImageCanvas;
|
|
50
|
+
/**
|
|
51
|
+
* An audio clip, shown inline in the chat as a player: speech you made, a recording you fetched.
|
|
52
|
+
*
|
|
53
|
+
* Core keeps its own copy of the file when it writes the card, so the clip still plays after your
|
|
54
|
+
* URL expires, and the URL must be reachable from the public internet for that copy. The file
|
|
55
|
+
* must be mp3, wav, ogg, flac, m4a or webm audio, up to 25 MB; a card whose file core cannot copy
|
|
56
|
+
* keeps your URL.
|
|
57
|
+
*/
|
|
58
|
+
export interface AudioCanvas {
|
|
59
|
+
type: 'audio';
|
|
60
|
+
url: string;
|
|
61
|
+
/** A short name for the clip, shown on the card. */
|
|
62
|
+
title?: string;
|
|
63
|
+
/** What the clip says. Shown to a person who would rather read, and by a client that cannot play it. */
|
|
64
|
+
transcript?: string;
|
|
65
|
+
duration_seconds?: number;
|
|
66
|
+
}
|
|
67
|
+
/** Build an audio card, refusing a URL that would not reach a reader (see `imageCanvas`). */
|
|
68
|
+
export declare function audioCanvas(input: {
|
|
69
|
+
url: string;
|
|
70
|
+
title?: string;
|
|
71
|
+
transcript?: string;
|
|
72
|
+
duration_seconds?: number;
|
|
73
|
+
}): AudioCanvas;
|
package/dist/canvases.js
CHANGED
|
@@ -45,3 +45,23 @@ export function imageCanvas(input) {
|
|
|
45
45
|
...(input.height === undefined ? {} : { height: input.height }),
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
+
/** Build an audio card, refusing a URL that would not reach a reader (see `imageCanvas`). */
|
|
49
|
+
export function audioCanvas(input) {
|
|
50
|
+
let parsed;
|
|
51
|
+
try {
|
|
52
|
+
parsed = new URL(input.url);
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
throw new TypeError(`audioCanvas: not a URL: ${input.url}`);
|
|
56
|
+
}
|
|
57
|
+
if (parsed.protocol !== 'https:') {
|
|
58
|
+
throw new TypeError(`audioCanvas: audio must be https, not "${parsed.protocol}"`);
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
type: 'audio',
|
|
62
|
+
url: input.url,
|
|
63
|
+
...(input.title === undefined ? {} : { title: input.title }),
|
|
64
|
+
...(input.transcript === undefined ? {} : { transcript: input.transcript }),
|
|
65
|
+
...(input.duration_seconds === undefined ? {} : { duration_seconds: input.duration_seconds }),
|
|
66
|
+
};
|
|
67
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export { verifyConnectorCall, verifyConnectorRequest, verifyMcpToolCall, memoryR
|
|
|
5
5
|
export { useKee, MemoryConflictError, RecordConflictError, RecordValidationError, type Kee, type KeeConnection, type KeeContext, type KeeError, type KeeMemory, type KeeRecords, type KeeKb, type KBHit, type KeeTools, type KeeConfig, type KeeProgress, type ProgressFields, type ProgressUpdate, type ProgressReportResult, type KeeState, type StatePublish, type StatePublishResult, type StatePublishReason, type StateEvent, type StateNextAction, type StatePublishField, type MemoryEntry, type MemorySearchHit, type RecordEntry, type KeeRate, type RateDecision, type KeeWriteOptions, } from './client.js';
|
|
6
6
|
export { keemakrToolDirectory } from './tool-directory.js';
|
|
7
7
|
export { refreshGrant, REFRESH_THRESHOLD_SECONDS } from './refresh.js';
|
|
8
|
-
export { imageCanvas, type Canvas, type ImageCanvas, type ReportCanvas } from './canvases.js';
|
|
8
|
+
export { audioCanvas, imageCanvas, type AudioCanvas, type Canvas, type ImageCanvas, type ReportCanvas, } from './canvases.js';
|
|
9
9
|
export { createChannelAgent, assertTrustworthyCore, ChannelReachError, ChannelReplyNotDeliverable, isApprovalRequired, isHoldSettled, isOutcomeUnknown, isWriteDone, type ChannelWriteDone, type ChannelWriteResult, type ChannelWriteOptions, type ChannelApprovalRequired, type ChannelHoldSettled, type ChannelOutcomeUnknown, type HeldActionStatus, type ChannelReach, type ChannelRecord, type ChannelAction, type ChannelAgent, type ChannelAgentOptions, type ChannelContext, type ChannelDelivery, type ChannelEmail, type ChannelMessage, type HandoffReason, type Usage, } from './channel.js';
|
package/dist/index.js
CHANGED
|
@@ -15,5 +15,5 @@ export { verifyConnectorCall, verifyConnectorRequest, verifyMcpToolCall, memoryR
|
|
|
15
15
|
export { useKee, MemoryConflictError, RecordConflictError, RecordValidationError, } from './client.js';
|
|
16
16
|
export { keemakrToolDirectory } from './tool-directory.js';
|
|
17
17
|
export { refreshGrant, REFRESH_THRESHOLD_SECONDS } from './refresh.js';
|
|
18
|
-
export { imageCanvas } from './canvases.js';
|
|
18
|
+
export { audioCanvas, imageCanvas, } from './canvases.js';
|
|
19
19
|
export { createChannelAgent, assertTrustworthyCore, ChannelReachError, ChannelReplyNotDeliverable, isApprovalRequired, isHoldSettled, isOutcomeUnknown, isWriteDone, } from './channel.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keemakr/agent-sdk",
|
|
3
|
-
"version": "0.19.0-dev-
|
|
3
|
+
"version": "0.19.0-dev-20261014094355",
|
|
4
4
|
"description": "The floor for keemakr marketplace agents: verify the capability grant and reach tenant connections, memory, and shared platform tools through keemakr-core — without holding raw secrets or resolving the tenant yourself.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|