@vellumai/plugin-api 0.10.7-dev.202607100914.e0ad8c9 → 0.10.7-dev.202607101252.74ea83d
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/index.d.ts +44 -2
- package/index.js +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1016,16 +1016,18 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1016
1016
|
outputPer1M: z.ZodNumber;
|
|
1017
1017
|
}, z.core.$strip>>>;
|
|
1018
1018
|
}, z.core.$strip>>;
|
|
1019
|
-
llmRequestLogs: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1019
|
+
llmRequestLogs: z.ZodDefault<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1020
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1020
1021
|
readSource: z.ZodLiteral<"local">;
|
|
1021
1022
|
}, z.core.$strip>, z.ZodObject<{
|
|
1023
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1022
1024
|
readSource: z.ZodLiteral<"clickhouse">;
|
|
1023
1025
|
clickhouse: z.ZodDefault<z.ZodObject<{
|
|
1024
1026
|
database: z.ZodDefault<z.ZodString>;
|
|
1025
1027
|
table: z.ZodDefault<z.ZodString>;
|
|
1026
1028
|
user: z.ZodDefault<z.ZodString>;
|
|
1027
1029
|
}, z.core.$strip>>;
|
|
1028
|
-
}, z.core.$strip>], "readSource"
|
|
1030
|
+
}, z.core.$strip>], "readSource">>>;
|
|
1029
1031
|
filing: z.ZodDefault<z.ZodObject<{
|
|
1030
1032
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1031
1033
|
intervalMs: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1907,6 +1909,25 @@ declare interface ClawhubSlimSkill extends SlimSkillBase {
|
|
|
1907
1909
|
version: string;
|
|
1908
1910
|
}
|
|
1909
1911
|
|
|
1912
|
+
export declare const CLI_COMMAND_HELP: readonly CliCommandHelp[];
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* Fully declarative description of a top-level `assistant` CLI command and its
|
|
1916
|
+
* subcommands. Plain data by design — no action handlers — so plugins (e.g. the
|
|
1917
|
+
* memory capability indexer) can import a command's help and iterate over it
|
|
1918
|
+
* without dragging in the CLI's daemon/IPC action graph. Command modules apply
|
|
1919
|
+
* the same data via {@link applyCommandHelp}, then attach their handlers.
|
|
1920
|
+
*/
|
|
1921
|
+
declare interface CliCommandHelp {
|
|
1922
|
+
name: string;
|
|
1923
|
+
description: string;
|
|
1924
|
+
/** Options declared directly on the top-level command. */
|
|
1925
|
+
options?: CliOptionHelp[];
|
|
1926
|
+
/** Extra help appended after the option list (`addHelpText("after", …)`). */
|
|
1927
|
+
helpText?: string;
|
|
1928
|
+
subcommands?: CliSubcommandHelp[];
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1910
1931
|
declare interface ClientEntry extends BaseSubscriberEntry {
|
|
1911
1932
|
type: "client";
|
|
1912
1933
|
clientId: string;
|
|
@@ -1934,6 +1955,24 @@ declare interface ClientSettingsUpdate {
|
|
|
1934
1955
|
value: string;
|
|
1935
1956
|
}
|
|
1936
1957
|
|
|
1958
|
+
declare interface CliOptionHelp {
|
|
1959
|
+
/** Commander flag spec, e.g. `"--path <file>"` or `"-l, --limit <n>"`. */
|
|
1960
|
+
flags: string;
|
|
1961
|
+
description: string;
|
|
1962
|
+
/** When true, applied via `requiredOption` (missing → error) rather than `option`. */
|
|
1963
|
+
required?: boolean;
|
|
1964
|
+
/** Default value passed to `option(flags, description, defaultValue)`. */
|
|
1965
|
+
defaultValue?: string;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
declare interface CliSubcommandHelp {
|
|
1969
|
+
name: string;
|
|
1970
|
+
description: string;
|
|
1971
|
+
options?: CliOptionHelp[];
|
|
1972
|
+
/** Extra help appended after the option list (`addHelpText("after", …)`). */
|
|
1973
|
+
helpText?: string;
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1937
1976
|
declare type CompactionCircuitClosedEvent = z.infer<typeof CompactionCircuitClosedEventSchema>;
|
|
1938
1977
|
|
|
1939
1978
|
declare const CompactionCircuitClosedEventSchema: z.ZodObject<{
|
|
@@ -3921,10 +3960,13 @@ declare interface MessageRow {
|
|
|
3921
3960
|
id: string;
|
|
3922
3961
|
conversationId: string;
|
|
3923
3962
|
role: string;
|
|
3963
|
+
/** Resolved content — always inline JSON, never a raw `{ ref }`. */
|
|
3924
3964
|
content: string;
|
|
3925
3965
|
createdAt: number;
|
|
3926
3966
|
metadata: string | null;
|
|
3927
3967
|
clientMessageId: string | null;
|
|
3968
|
+
/** 1 = content is complete; 0 = message is still streaming. */
|
|
3969
|
+
finalized: number;
|
|
3928
3970
|
}
|
|
3929
3971
|
|
|
3930
3972
|
declare type _MessagesServerMessages = UserMessageEchoEvent | AssistantTurnStartEvent | AssistantTextDeltaEvent | AssistantThinkingDeltaEvent | ToolUseStartEvent | ToolUsePreviewStartEvent | ToolOutputChunkEvent | ToolInputDelta | ToolResultEvent | ConfirmationRequestEvent | SecretRequestEvent | QuestionRequestEvent | MessageCompleteEvent | ErrorEvent_2 | MessageQueuedEvent | MessageDequeuedEvent | MessageRequestCompleteEvent | MessageQueuedDeletedEvent | MessageSteered | SuggestionResponse | ConfirmationStateChanged | AssistantActivityStateEvent | ConversationInferenceProfileUpdated | InteractionResolvedEvent;
|
package/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/build-plugin-api.ts — do not edit by hand.
|
|
2
2
|
const api = globalThis[Symbol.for("vellum.plugin-api")] ?? {};
|
|
3
|
+
export const CLI_COMMAND_HELP = api.CLI_COMMAND_HELP;
|
|
3
4
|
export const HOOKS = api.HOOKS;
|
|
4
5
|
export const RiskLevel = api.RiskLevel;
|
|
5
6
|
export const addMessage = api.addMessage;
|
package/package.json
CHANGED