@vellumai/plugin-api 0.10.8-dev.202607111430.dcd3b7b → 0.10.8-dev.202607111622.3c66378
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 +23 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1912,6 +1912,12 @@ declare interface ClawhubSlimSkill extends SlimSkillBase {
|
|
|
1912
1912
|
|
|
1913
1913
|
export declare const CLI_COMMAND_HELP: readonly CliCommandHelp[];
|
|
1914
1914
|
|
|
1915
|
+
declare interface CliArgumentHelp {
|
|
1916
|
+
/** Commander argument spec, e.g. `"<channel>"` or `"[value]"`. */
|
|
1917
|
+
name: string;
|
|
1918
|
+
description: string;
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1915
1921
|
/**
|
|
1916
1922
|
* Fully declarative description of a top-level `assistant` CLI command and its
|
|
1917
1923
|
* subcommands. Plain data by design — no action handlers — so plugins (e.g. the
|
|
@@ -1929,6 +1935,13 @@ declare interface CliCommandHelp {
|
|
|
1929
1935
|
*/
|
|
1930
1936
|
args?: string;
|
|
1931
1937
|
description: string;
|
|
1938
|
+
/**
|
|
1939
|
+
* Positional arguments that carry their own description, applied via
|
|
1940
|
+
* Commander's `argument(name, description)` (rendered in the generated
|
|
1941
|
+
* `Arguments:` help section). Use `args` instead when the positional needs
|
|
1942
|
+
* no description.
|
|
1943
|
+
*/
|
|
1944
|
+
arguments?: CliArgumentHelp[];
|
|
1932
1945
|
/** Options declared directly on the top-level command. */
|
|
1933
1946
|
options?: CliOptionHelp[];
|
|
1934
1947
|
/** Extra help appended after the option list (`addHelpText("after", …)`). */
|
|
@@ -1970,7 +1983,7 @@ declare interface CliOptionHelp {
|
|
|
1970
1983
|
/** When true, applied via `requiredOption` (missing → error) rather than `option`. */
|
|
1971
1984
|
required?: boolean;
|
|
1972
1985
|
/** Default value passed to `option(flags, description, defaultValue)`. */
|
|
1973
|
-
defaultValue?: string;
|
|
1986
|
+
defaultValue?: string | number | boolean;
|
|
1974
1987
|
/** Allowed values, applied via Commander's `Option.choices()` (invalid → error). */
|
|
1975
1988
|
choices?: readonly string[];
|
|
1976
1989
|
}
|
|
@@ -1980,9 +1993,18 @@ declare interface CliSubcommandHelp {
|
|
|
1980
1993
|
/** Positional-argument spec, e.g. `"<path>"` — see {@link CliCommandHelp.args}. */
|
|
1981
1994
|
args?: string;
|
|
1982
1995
|
description: string;
|
|
1996
|
+
/**
|
|
1997
|
+
* Positional arguments that carry their own description, applied via
|
|
1998
|
+
* Commander's `argument(name, description)` (rendered in the generated
|
|
1999
|
+
* `Arguments:` help section). Use `args` instead when the positional needs
|
|
2000
|
+
* no description.
|
|
2001
|
+
*/
|
|
2002
|
+
arguments?: CliArgumentHelp[];
|
|
1983
2003
|
options?: CliOptionHelp[];
|
|
1984
2004
|
/** Extra help appended after the option list (`addHelpText("after", …)`). */
|
|
1985
2005
|
helpText?: string;
|
|
2006
|
+
/** When true, this subcommand runs when the parent is invoked without one. */
|
|
2007
|
+
isDefault?: boolean;
|
|
1986
2008
|
/** Nested subcommand groups (e.g. `avatar character update`). */
|
|
1987
2009
|
subcommands?: CliSubcommandHelp[];
|
|
1988
2010
|
}
|
package/package.json
CHANGED