@mycadet/plugin-api 0.0.1 → 0.12.6-dev.202610080043.b727a33
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/app.d.ts +84 -0
- package/index.d.ts +26300 -0
- package/index.js +73 -0
- package/package.json +32 -7
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Generated by scripts/build-plugin-api.ts — do not edit by hand.
|
|
2
|
+
const api = globalThis[Symbol.for("cadet.plugin-api")] ?? {};
|
|
3
|
+
export const CLI_COMMAND_HELP = api.CLI_COMMAND_HELP;
|
|
4
|
+
export const CredentialResolutionError = api.CredentialResolutionError;
|
|
5
|
+
export const CredentialStoreError = api.CredentialStoreError;
|
|
6
|
+
export const HOOKS = api.HOOKS;
|
|
7
|
+
export const INTERNAL_NUDGE_OUTPUT_SUPPRESSION = api.INTERNAL_NUDGE_OUTPUT_SUPPRESSION;
|
|
8
|
+
export const PluginTurnNotAdmittedError = api.PluginTurnNotAdmittedError;
|
|
9
|
+
export const REFUSAL_FALLBACK_TEXT = api.REFUSAL_FALLBACK_TEXT;
|
|
10
|
+
export const RiskLevel = api.RiskLevel;
|
|
11
|
+
export const TtsSynthesisError = api.TtsSynthesisError;
|
|
12
|
+
export const VOICE_ESCALATION_CONTINUATION_MESSAGE_KIND = api.VOICE_ESCALATION_CONTINUATION_MESSAGE_KIND;
|
|
13
|
+
export const addMessage = api.addMessage;
|
|
14
|
+
export const assistantEventHub = api.assistantEventHub;
|
|
15
|
+
export const attachmentIdFragment = api.attachmentIdFragment;
|
|
16
|
+
export const buildMessageExcerpt = api.buildMessageExcerpt;
|
|
17
|
+
export const createLiveVoiceConnection = api.createLiveVoiceConnection;
|
|
18
|
+
export const deleteConversation = api.deleteConversation;
|
|
19
|
+
export const doesSupportVision = api.doesSupportVision;
|
|
20
|
+
export const embed = api.embed;
|
|
21
|
+
export const embedAndUpsert = api.embedAndUpsert;
|
|
22
|
+
export const extractTextFromStoredMessageContent = api.extractTextFromStoredMessageContent;
|
|
23
|
+
export const generateSparseEmbedding = api.generateSparseEmbedding;
|
|
24
|
+
export const getAssistantName = api.getAssistantName;
|
|
25
|
+
export const getConfiguredProvider = api.getConfiguredProvider;
|
|
26
|
+
export const getConversation = api.getConversation;
|
|
27
|
+
export const getConversationDirPath = api.getConversationDirPath;
|
|
28
|
+
export const getConversationProcessingStartedAt = api.getConversationProcessingStartedAt;
|
|
29
|
+
export const getConversationToolSurface = api.getConversationToolSurface;
|
|
30
|
+
export const getDocument = api.getDocument;
|
|
31
|
+
export const getEffectiveContextWindow = api.getEffectiveContextWindow;
|
|
32
|
+
export const getMessages = api.getMessages;
|
|
33
|
+
export const getModelProfiles = api.getModelProfiles;
|
|
34
|
+
export const getRecordedConversationToolSurface = api.getRecordedConversationToolSurface;
|
|
35
|
+
export const getWorkspaceDir = api.getWorkspaceDir;
|
|
36
|
+
export const hasLexicalTokens = api.hasLexicalTokens;
|
|
37
|
+
export const indexDocument = api.indexDocument;
|
|
38
|
+
export const invalidToolInputResult = api.invalidToolInputResult;
|
|
39
|
+
export const isConversationProcessing = api.isConversationProcessing;
|
|
40
|
+
export const isMaxTokensStopReason = api.isMaxTokensStopReason;
|
|
41
|
+
export const isToolResultMessage = api.isToolResultMessage;
|
|
42
|
+
export const isVisionNotSupportedError = api.isVisionNotSupportedError;
|
|
43
|
+
export const lastToolResultUserMessageIndex = api.lastToolResultUserMessageIndex;
|
|
44
|
+
export const listCatalogSkills = api.listCatalogSkills;
|
|
45
|
+
export const listConversations = api.listConversations;
|
|
46
|
+
export const listInstalledSkills = api.listInstalledSkills;
|
|
47
|
+
export const mediaBlockAttachmentId = api.mediaBlockAttachmentId;
|
|
48
|
+
export const nullAsOmitted = api.nullAsOmitted;
|
|
49
|
+
export const openTranscriptionSession = api.openTranscriptionSession;
|
|
50
|
+
export const parseMessageMetadata = api.parseMessageMetadata;
|
|
51
|
+
export const parseSurfaceShowResultId = api.parseSurfaceShowResultId;
|
|
52
|
+
export const persistSystemCard = api.persistSystemCard;
|
|
53
|
+
export const publishEvent = api.publishEvent;
|
|
54
|
+
export const quarantineRefusedExchanges = api.quarantineRefusedExchanges;
|
|
55
|
+
export const queryIndex = api.queryIndex;
|
|
56
|
+
export const removeDocument = api.removeDocument;
|
|
57
|
+
export const resolveCredential = api.resolveCredential;
|
|
58
|
+
export const resolveMediaSourceData = api.resolveMediaSourceData;
|
|
59
|
+
export const resolveOauthCallbackUrl = api.resolveOauthCallbackUrl;
|
|
60
|
+
export const resolveUserName = api.resolveUserName;
|
|
61
|
+
export const resolveWebhookUrl = api.resolveWebhookUrl;
|
|
62
|
+
export const runConversationTurn = api.runConversationTurn;
|
|
63
|
+
export const safeStringSlice = api.safeStringSlice;
|
|
64
|
+
export const searchMessageIdsLexical = api.searchMessageIdsLexical;
|
|
65
|
+
export const selectedBackendSupportsMultimodal = api.selectedBackendSupportsMultimodal;
|
|
66
|
+
export const storeCredential = api.storeCredential;
|
|
67
|
+
export const stringifyMessageContent = api.stringifyMessageContent;
|
|
68
|
+
export const sweepOrphanedGraphNodePoints = api.sweepOrphanedGraphNodePoints;
|
|
69
|
+
export const syncMessageToDisk = api.syncMessageToDisk;
|
|
70
|
+
export const synthesizeText = api.synthesizeText;
|
|
71
|
+
export const throwIfCancelled = api.throwIfCancelled;
|
|
72
|
+
export const toToolInputSchema = api.toToolInputSchema;
|
|
73
|
+
export const updateMessageMetadata = api.updateMessageMetadata;
|
package/package.json
CHANGED
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mycadet/plugin-api",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
3
|
+
"version": "0.12.6-dev.202610080043.b727a33",
|
|
4
|
+
"description": "Public TypeScript authoring contract for Cadet assistant plugins.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"types": "./index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./index.d.ts",
|
|
12
|
+
"import": "./index.js",
|
|
13
|
+
"default": "./index.js"
|
|
14
|
+
},
|
|
15
|
+
"./app": {
|
|
16
|
+
"types": "./app.d.ts"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"index.js",
|
|
21
|
+
"index.d.ts",
|
|
22
|
+
"app.d.ts"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"zod": "4.3.6"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/vargasjr-dev/mycadet.git",
|
|
33
|
+
"directory": "assistant/src/plugin-api"
|
|
34
|
+
}
|
|
9
35
|
}
|
|
10
|
-
|