@sctg/cline-shared 3.84.0-beta.20260524130712
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/README.md +47 -0
- package/dist/agent.d.ts +388 -0
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/types.d.ts +967 -0
- package/dist/automation/index.d.ts +3 -0
- package/dist/automation/index.js +65 -0
- package/dist/automation/schemas.d.ts +89 -0
- package/dist/automation/types.d.ts +151 -0
- package/dist/connectors/events.d.ts +93 -0
- package/dist/connectors/options.d.ts +174 -0
- package/dist/cron/cron-spec-types.d.ts +94 -0
- package/dist/cron/index.d.ts +1 -0
- package/dist/db/index.d.ts +2 -0
- package/dist/db/index.js +80 -0
- package/dist/db/sqlite-db.d.ts +24 -0
- package/dist/dispose.d.ts +13 -0
- package/dist/extensions/context.d.ts +76 -0
- package/dist/extensions/contribution-registry.d.ts +195 -0
- package/dist/extensions/plugin.d.ts +1 -0
- package/dist/hooks/contracts.d.ts +9 -0
- package/dist/hooks/events.d.ts +194 -0
- package/dist/hub.d.ts +470 -0
- package/dist/index.browser.d.ts +61 -0
- package/dist/index.browser.js +76 -0
- package/dist/index.d.ts +69 -0
- package/dist/index.js +163 -0
- package/dist/llms/ai-sdk-format.d.ts +55 -0
- package/dist/llms/gateway.d.ts +145 -0
- package/dist/llms/messages.d.ts +149 -0
- package/dist/llms/model-info.d.ts +120 -0
- package/dist/llms/reasoning-effort.d.ts +21 -0
- package/dist/llms/requests.d.ts +2 -0
- package/dist/llms/tokens.d.ts +7 -0
- package/dist/llms/tools.d.ts +86 -0
- package/dist/logging/logger.d.ts +37 -0
- package/dist/parse/error.d.ts +2 -0
- package/dist/parse/headers/utils.d.ts +1 -0
- package/dist/parse/json.d.ts +3 -0
- package/dist/parse/shell.d.ts +2 -0
- package/dist/parse/string.d.ts +4 -0
- package/dist/parse/time.d.ts +9 -0
- package/dist/parse/zod.d.ts +12 -0
- package/dist/prompt/cline.d.ts +24 -0
- package/dist/prompt/format.d.ts +11 -0
- package/dist/prompt/system.d.ts +2 -0
- package/dist/remote-config/artifact-store.d.ts +13 -0
- package/dist/remote-config/blob-storage.d.ts +47 -0
- package/dist/remote-config/bundle.d.ts +136 -0
- package/dist/remote-config/constants.d.ts +5 -0
- package/dist/remote-config/index.d.ts +9 -0
- package/dist/remote-config/index.js +76 -0
- package/dist/remote-config/materializer.d.ts +4 -0
- package/dist/remote-config/paths.d.ts +10 -0
- package/dist/remote-config/runtime.d.ts +20 -0
- package/dist/remote-config/schema.d.ts +408 -0
- package/dist/remote-config/telemetry.d.ts +9 -0
- package/dist/rpc/index.d.ts +5 -0
- package/dist/rpc/runtime.d.ts +322 -0
- package/dist/rpc/team-progress.d.ts +53 -0
- package/dist/runtime/build-env.d.ts +13 -0
- package/dist/runtime/cline-environment.d.ts +17 -0
- package/dist/runtime/hub-daemon-env.d.ts +2 -0
- package/dist/services/telemetry-config.d.ts +6 -0
- package/dist/services/telemetry.d.ts +133 -0
- package/dist/session/hook-context.d.ts +12 -0
- package/dist/session/index.d.ts +1 -0
- package/dist/session/records.d.ts +31 -0
- package/dist/session/runtime-config.d.ts +26 -0
- package/dist/session/runtime-env.d.ts +8 -0
- package/dist/session/workspace.d.ts +28 -0
- package/dist/storage/index.d.ts +2 -0
- package/dist/storage/index.js +1 -0
- package/dist/storage/path-resolution.d.ts +11 -0
- package/dist/storage/paths.d.ts +86 -0
- package/dist/team/index.d.ts +2 -0
- package/dist/team/schema.d.ts +411 -0
- package/dist/team/types.d.ts +196 -0
- package/dist/tools/create.d.ts +22 -0
- package/dist/types/auth.d.ts +20 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/vcr.d.ts +14 -0
- package/dist/vcr.d.ts +41 -0
- package/package.json +63 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var GC=Object.defineProperty;var MC=(C)=>C;function OC(C,S){this[C]=MC.bind(null,S)}var lC=(C,S)=>{for(var M in S)GC(C,M,{get:S[M],enumerable:!0,configurable:!0,set:OC.bind(S,M)})};import{existsSync as L,readdirSync as FC}from"node:fs";import{basename as y,dirname as k,join as m}from"node:path";var KC=/[\u00A0\u2000-\u200A\u202F\u205F\u3000]/g,IC=" ";function u(C){return C.normalize("NFC").replace(KC," ")}function TC(C){let S=y(C),M=S.replace(/ (AM|PM)\./gi,`${IC}$1.`);return M===S?C:m(k(C),M)}function WC(C){return C.normalize("NFD")}function w(C){return C.replace(/'/g,"’")}function gC(C){let S=k(C),M=u(y(C));try{for(let O of FC(S))if(u(O)===M)return m(S,O)}catch{}return}function qC(C){if(L(C))return C;let S=TC(C);if(S!==C&&L(S))return S;let M=WC(C);if(M!==C&&L(M))return M;let O=w(C);if(O!==C&&L(O))return O;let F=w(M);if(F!==M&&F!==O&&L(F))return F;return gC(C)}import{appendFileSync as vC,existsSync as I,mkdirSync as R,readdirSync as DC,readFileSync as LC,statSync as Q}from"node:fs";import{homedir as QC}from"node:os";import{dirname as U,join as G,resolve as Y}from"node:path";var H=".clinerules",X=".cline",l=".agents",J="agents",B="hooks",j="skills",E="rules",_="workflows",f="plugins",s="cline_mcp_settings.json";function YC(){let C=process?.env?.HOME?.trim();if(C&&C!=="~")return C;let S=process?.env?.USERPROFILE?.trim();if(S)return S;let M=process?.env?.HOMEDRIVE?.trim(),O=process?.env?.HOMEPATH?.trim();if(M&&O)return`${M}${O}`;let F=QC().trim();if(F&&F!=="~")return F;return"~"}var $=YC(),d=!1;function ZC(C){let S=C.trim();if(!S)return;$=S,d=!0}function $C(C){if(d)return;let S=C.trim();if(!S)return;$=S}var N,o=!1;function zC(C){let S=C.trim();if(!S)return;N=S,o=!0}function BC(C){if(o)return;let S=C.trim();if(!S)return;N=S}function T(){if(N)return N;let C=process.env.CLINE_DIR?.trim();if(C)return C;return G($,".cline")}function p(){return G($,"Documents","Cline")}function z(C){return G(p(),C)}function g(){let C=process.env.CLINE_DATA_DIR?.trim();if(C)return C;return G(T(),"data")}function _C(){let C=process.env.CLINE_SESSION_DATA_DIR?.trim();if(C)return C;return G(g(),"sessions")}function jC(){let C=process.env.CLINE_TEAM_DATA_DIR?.trim();if(C)return C;return G(g(),"teams")}function c(){let C=process.env.CLINE_DB_DATA_DIR?.trim();if(C)return C;return G(g(),"db")}function NC(){let C=process.env.CLINE_CRON_DB_PATH?.trim();if(C)return C;return G(c(),"cron.db")}function P(){return G(T(),"cron")}function A(C){return G(C,".cline","cron")}function b(C){if(typeof C==="string")return A(C);if(C?.cronSpecsDir?.trim())return C.cronSpecsDir.trim();if(C?.scope==="workspace"){let S=C.workspaceRoot?.trim();if(!S)throw Error("workspaceRoot is required for workspace cron scope");return A(S)}return P()}function XC(C){return G(b(C),"reports")}function EC(C){return G(b(C),"events")}function AC(){let C=process.env.CLINE_PROVIDER_SETTINGS_PATH?.trim();if(C)return C;return G(g(),"settings","providers.json")}function RC(){let C=process.env.CLINE_GLOBAL_SETTINGS_PATH?.trim();if(C)return C;return G(g(),"settings","global-settings.json")}function UC(){let C=process.env.CLINE_MCP_SETTINGS_PATH?.trim();if(C)return C;return G(g(),"settings",s)}function q(C){let S=new Set,M=[];for(let O of C){if(!O||S.has(O))continue;S.add(O),M.push(O)}return M}function HC(C){if(!C)return[];return[H,X,l].map((S)=>G(C,S,j))}function h(){return G(T(),J)}function JC(C){return q([C?G(C,X,J):"",h()])}function bC(C){let S=[z("Hooks"),G(T(),B)];if(C)S.push(G(C,H,B),G(C,X,B));return q(S)}function VC(C){return q([...HC(C),G(T(),j),G($,l,j)])}function xC(C){let S=C?[G(C,H),G(C,X,E)]:[],M=C?[G(C,"AGENTS.md")]:[];return q([...M,...S,G(T(),E),z("Rules")])}function uC(C){return q([C?G(C,".clinerules",_):"",z("Workflows"),G(T(),_),C?G(C,".cline",_):""])}function wC(C){return q([C?G(C,".cline",f):"",G(T(),f),z("Plugins")])}var n=new Set([".js",".ts"]),r="package.json",yC=["index.ts","index.js"];function Z(C){let S=C.lastIndexOf(".");if(S===-1)return!1;return n.has(C.slice(S))}function i(C){try{let S=JSON.parse(LC(C,"utf8"));if(!S.cline||typeof S.cline!=="object")return null;return S.cline}catch{return null}}function e(C){let S=C?.plugins;if(!Array.isArray(S))return[];return S.flatMap((M)=>M.paths??[])}function t(C){let S=Y(C);if(!I(S)||!Q(S).isDirectory())return null;let M=G(S,r);if(I(M)){let O=i(M),F=e(O).map((K)=>Y(S,K)).filter((K)=>I(K)&&Q(K).isFile()&&Z(K));if(F.length>0)return F}for(let O of yC){let F=G(S,O);if(I(F)&&Q(F).isFile())return[F]}return null}function a(C){let S=Y(C);if(!I(S))return[];let M=[],O=[S];while(O.length>0){let F=O.pop();if(!F)continue;let K;try{K=DC(F,{withFileTypes:!0})}catch{continue}for(let v of K){let W=G(F,v.name);if(v.isDirectory()){let V=G(W,r);if(I(V)){let SC=i(V),x=e(SC).map((D)=>Y(W,D)).filter((D)=>I(D)&&Q(D).isFile()&&Z(D));if(x.length>0){M.push(...x);continue}}O.push(W);continue}if(v.name.startsWith("."))continue;if(v.isFile()&&Z(W))M.push(W)}}return M.sort((F,K)=>F.localeCompare(K))}function kC(C,S){let M=[];for(let O of C){let F=O.trim();if(!F)continue;let K=Y(S,F);if(!I(K))throw Error(`Plugin path does not exist: ${K}`);if(Q(K).isDirectory()){let W=t(K);if(W){M.push(...W);continue}M.push(...a(K));continue}if(!Z(K))throw Error(`Plugin file must use a supported extension (${[...n].join(", ")}): ${K}`);M.push(K)}return M}function CC(C){let S=U(C);if(!I(S))R(S,{recursive:!0})}function mC(C){R(U(C),{recursive:!0}),vC(C,"")}function fC(C){if(C?.trim())return CC(C),U(C);let S=G(g(),"logs");if(!I(S))R(S,{recursive:!0});return S}export{$C as setHomeDirIfUnset,ZC as setHomeDir,BC as setClineDirIfUnset,zC as setClineDir,A as resolveWorkspaceCronSpecsDir,uC as resolveWorkflowsConfigSearchPaths,jC as resolveTeamDataDir,VC as resolveSkillsConfigSearchPaths,_C as resolveSessionDataDir,xC as resolveRulesConfigSearchPaths,AC as resolveProviderSettingsPath,t as resolvePluginModuleEntries,wC as resolvePluginConfigSearchPaths,UC as resolveMcpSettingsPath,bC as resolveHooksConfigSearchPaths,RC as resolveGlobalSettingsPath,P as resolveGlobalCronSpecsDir,qC as resolveExistingFilePath,z as resolveDocumentsExtensionPath,p as resolveDocumentsClineDirectoryPath,c as resolveDbDataDir,b as resolveCronSpecsDir,XC as resolveCronReportsDir,EC as resolveCronEventsDir,NC as resolveCronDbPath,kC as resolveConfiguredPluginModulePaths,T as resolveClineDir,g as resolveClineDataDir,h as resolveAgentsConfigDirPath,JC as resolveAgentConfigSearchPaths,Z as isPluginModulePath,CC as ensureParentDir,fC as ensureHookLogDir,mC as ensureFileExists,a as discoverPluginModulePaths,_ as WORKFLOWS_CONFIG_DIRECTORY_NAME,j as SKILLS_CONFIG_DIRECTORY_NAME,E as RULES_CONFIG_DIRECTORY_NAME,B as HOOKS_CONFIG_DIRECTORY_NAME,s as CLINE_MCP_SETTINGS_FILE_NAME,J as AGENT_CONFIG_DIRECTORY_NAME};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve a possibly-mangled file path to an actual on-disk entry.
|
|
3
|
+
*
|
|
4
|
+
* Returns the literal path when it already exists; otherwise tries a small
|
|
5
|
+
* set of macOS-specific variants (narrow no-break space before AM/PM, NFD
|
|
6
|
+
* normalization, curly apostrophe) before falling back to a parent-directory
|
|
7
|
+
* scan that compares filenames after collapsing exotic Unicode whitespace.
|
|
8
|
+
*
|
|
9
|
+
* Returns `undefined` when no matching file can be located.
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveExistingFilePath(filePath: string): string | undefined;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export declare const AGENT_CONFIG_DIRECTORY_NAME = "agents";
|
|
2
|
+
export declare const HOOKS_CONFIG_DIRECTORY_NAME = "hooks";
|
|
3
|
+
export declare const SKILLS_CONFIG_DIRECTORY_NAME = "skills";
|
|
4
|
+
export declare const RULES_CONFIG_DIRECTORY_NAME = "rules";
|
|
5
|
+
export declare const WORKFLOWS_CONFIG_DIRECTORY_NAME = "workflows";
|
|
6
|
+
export declare const PLUGINS_DIRECTORY_NAME = "plugins";
|
|
7
|
+
export declare const CLINE_MCP_SETTINGS_FILE_NAME = "cline_mcp_settings.json";
|
|
8
|
+
export declare function setHomeDir(dir: string): void;
|
|
9
|
+
export declare function setHomeDirIfUnset(dir: string): void;
|
|
10
|
+
export declare function setClineDir(dir: string): void;
|
|
11
|
+
export declare function setClineDirIfUnset(dir: string): void;
|
|
12
|
+
export declare function resolveClineDir(): string;
|
|
13
|
+
export declare function resolveDocumentsClineDirectoryPath(): string;
|
|
14
|
+
type DocumentsExtensionName = "Agents" | "Hooks" | "Rules" | "Workflows" | "Plugins";
|
|
15
|
+
export declare function resolveDocumentsExtensionPath(name: DocumentsExtensionName): string;
|
|
16
|
+
export declare function resolveClineDataDir(): string;
|
|
17
|
+
export declare function resolveSessionDataDir(): string;
|
|
18
|
+
export declare function resolveTeamDataDir(): string;
|
|
19
|
+
export declare function resolveDbDataDir(): string;
|
|
20
|
+
/**
|
|
21
|
+
* Path to the dedicated cron/automation database.
|
|
22
|
+
* Lives alongside `sessions.db` but is a separate file so cron lifecycle,
|
|
23
|
+
* retention, and query patterns stay decoupled from session storage.
|
|
24
|
+
*/
|
|
25
|
+
export declare function resolveCronDbPath(): string;
|
|
26
|
+
export type CronSpecsScope = "global" | "workspace";
|
|
27
|
+
export interface ResolveCronSpecsDirOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Explicit specs directory. Useful for tests and for future hosts that want
|
|
30
|
+
* to provide their own merged/global/workspace cron source root.
|
|
31
|
+
*/
|
|
32
|
+
cronSpecsDir?: string;
|
|
33
|
+
/** Defaults to `global`, i.e. `~/.cline/cron`. */
|
|
34
|
+
scope?: CronSpecsScope;
|
|
35
|
+
/** Required when `scope` is `workspace`. */
|
|
36
|
+
workspaceRoot?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Global file-based cron spec authoring directory:
|
|
40
|
+
* `~/.cline/cron/`
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveGlobalCronSpecsDir(): string;
|
|
43
|
+
/**
|
|
44
|
+
* Workspace file-based cron spec authoring directory reserved for future
|
|
45
|
+
* workspace-scoped automation support:
|
|
46
|
+
* `${workspaceRoot}/.cline/cron/`
|
|
47
|
+
*/
|
|
48
|
+
export declare function resolveWorkspaceCronSpecsDir(workspaceRoot: string): string;
|
|
49
|
+
/**
|
|
50
|
+
* Directory containing file-based cron spec authoring.
|
|
51
|
+
*
|
|
52
|
+
* Default: global `~/.cline/cron/`.
|
|
53
|
+
* One-off: `*.md`
|
|
54
|
+
* Recurring: `*.cron.md`
|
|
55
|
+
* Event-driven: `events/*.event.md`
|
|
56
|
+
*
|
|
57
|
+
* A string argument is retained as a deprecated compatibility shorthand for
|
|
58
|
+
* workspace scope. New code should pass `{ scope: "workspace", workspaceRoot }`
|
|
59
|
+
* or use `resolveWorkspaceCronSpecsDir(workspaceRoot)` directly.
|
|
60
|
+
*/
|
|
61
|
+
export declare function resolveCronSpecsDir(workspaceRoot: string): string;
|
|
62
|
+
export declare function resolveCronSpecsDir(options?: ResolveCronSpecsDirOptions): string;
|
|
63
|
+
/** Directory where per-run markdown reports are written. */
|
|
64
|
+
export declare function resolveCronReportsDir(workspaceRoot: string): string;
|
|
65
|
+
export declare function resolveCronReportsDir(options?: ResolveCronSpecsDirOptions): string;
|
|
66
|
+
/** Directory where event-spec files live inside the cron specs dir. */
|
|
67
|
+
export declare function resolveCronEventsDir(workspaceRoot: string): string;
|
|
68
|
+
export declare function resolveCronEventsDir(options?: ResolveCronSpecsDirOptions): string;
|
|
69
|
+
export declare function resolveProviderSettingsPath(): string;
|
|
70
|
+
export declare function resolveGlobalSettingsPath(): string;
|
|
71
|
+
export declare function resolveMcpSettingsPath(): string;
|
|
72
|
+
export declare function resolveAgentsConfigDirPath(): string;
|
|
73
|
+
export declare function resolveAgentConfigSearchPaths(workspacePath?: string): string[];
|
|
74
|
+
export declare function resolveHooksConfigSearchPaths(workspacePath?: string): string[];
|
|
75
|
+
export declare function resolveSkillsConfigSearchPaths(workspacePath?: string): string[];
|
|
76
|
+
export declare function resolveRulesConfigSearchPaths(workspacePath?: string): string[];
|
|
77
|
+
export declare function resolveWorkflowsConfigSearchPaths(workspacePath?: string): string[];
|
|
78
|
+
export declare function resolvePluginConfigSearchPaths(workspacePath?: string): string[];
|
|
79
|
+
export declare function isPluginModulePath(path: string): boolean;
|
|
80
|
+
export declare function resolvePluginModuleEntries(directoryPath: string): string[] | null;
|
|
81
|
+
export declare function discoverPluginModulePaths(directoryPath: string): string[];
|
|
82
|
+
export declare function resolveConfiguredPluginModulePaths(pluginPaths: ReadonlyArray<string>, cwd: string): string[];
|
|
83
|
+
export declare function ensureParentDir(filePath: string): void;
|
|
84
|
+
export declare function ensureFileExists(filePath: string): void;
|
|
85
|
+
export declare function ensureHookLogDir(filePath?: string): string;
|
|
86
|
+
export {};
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team tool schemas.
|
|
3
|
+
*
|
|
4
|
+
* Zod schemas, constants, and schema-derived types for the team tool surface.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
export declare const DEFAULT_OUTCOME_REQUIRED_SECTIONS: string[];
|
|
8
|
+
export declare const TEAM_AWAIT_TIMEOUT_MS: number;
|
|
9
|
+
export declare const TEAM_RUN_MESSAGE_PREVIEW_LIMIT = 240;
|
|
10
|
+
export declare const TEAM_RUN_TEXT_PREVIEW_LIMIT = 400;
|
|
11
|
+
export declare const TeamTeammateSpecSchema: z.ZodObject<{
|
|
12
|
+
agentId: z.ZodString;
|
|
13
|
+
rolePrompt: z.ZodString;
|
|
14
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const TeamSpawnTeammateInputSchema: z.ZodObject<{
|
|
18
|
+
agentId: z.ZodString;
|
|
19
|
+
rolePrompt: z.ZodString;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
export declare const TeamShutdownTeammateInputSchema: z.ZodObject<{
|
|
22
|
+
agentId: z.ZodString;
|
|
23
|
+
reason: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const TeamStatusInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
26
|
+
type TeamTaskAction = "create" | "list" | "claim" | "complete" | "block";
|
|
27
|
+
export declare const TEAM_TASK_IGNORED_FIELDS_BY_ACTION: Partial<Record<TeamTaskAction, readonly string[]>>;
|
|
28
|
+
export declare const TeamTaskInputSchema: z.ZodObject<{
|
|
29
|
+
action: z.ZodEnum<{
|
|
30
|
+
create: "create";
|
|
31
|
+
list: "list";
|
|
32
|
+
claim: "claim";
|
|
33
|
+
complete: "complete";
|
|
34
|
+
block: "block";
|
|
35
|
+
}>;
|
|
36
|
+
title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
38
|
+
dependsOn: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
39
|
+
assignee: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
40
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
completed: "completed";
|
|
42
|
+
pending: "pending";
|
|
43
|
+
in_progress: "in_progress";
|
|
44
|
+
blocked: "blocked";
|
|
45
|
+
}>>>;
|
|
46
|
+
taskId: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
47
|
+
summary: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
48
|
+
reason: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export declare const TeamRunTaskInputSchema: z.ZodObject<{
|
|
51
|
+
agentId: z.ZodString;
|
|
52
|
+
task: z.ZodString;
|
|
53
|
+
taskId: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
54
|
+
runMode: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
sync: "sync";
|
|
56
|
+
async: "async";
|
|
57
|
+
}>>>;
|
|
58
|
+
continueConversation: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export declare const TeamListRunsInputSchema: z.ZodObject<{
|
|
61
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
running: "running";
|
|
63
|
+
completed: "completed";
|
|
64
|
+
failed: "failed";
|
|
65
|
+
cancelled: "cancelled";
|
|
66
|
+
queued: "queued";
|
|
67
|
+
interrupted: "interrupted";
|
|
68
|
+
}>>>;
|
|
69
|
+
agentId: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
includeCompleted: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export declare const TeamCancelRunInputSchema: z.ZodObject<{
|
|
73
|
+
runId: z.ZodString;
|
|
74
|
+
reason: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export declare const TeamAwaitRunsInputSchema: z.ZodObject<{
|
|
77
|
+
runId: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
export declare const TeamSendMessageInputSchema: z.ZodObject<{
|
|
80
|
+
toAgentId: z.ZodString;
|
|
81
|
+
subject: z.ZodString;
|
|
82
|
+
body: z.ZodString;
|
|
83
|
+
taskId: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export declare const TeamBroadcastInputSchema: z.ZodObject<{
|
|
86
|
+
subject: z.ZodString;
|
|
87
|
+
body: z.ZodString;
|
|
88
|
+
taskId: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export declare const TeamReadMailboxInputSchema: z.ZodObject<{
|
|
91
|
+
unreadOnly: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export declare const TeamMissionLogInputSchema: z.ZodObject<{
|
|
94
|
+
kind: z.ZodEnum<{
|
|
95
|
+
error: "error";
|
|
96
|
+
done: "done";
|
|
97
|
+
blocked: "blocked";
|
|
98
|
+
progress: "progress";
|
|
99
|
+
handoff: "handoff";
|
|
100
|
+
decision: "decision";
|
|
101
|
+
}>;
|
|
102
|
+
summary: z.ZodString;
|
|
103
|
+
taskId: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
104
|
+
evidence: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
105
|
+
nextAction: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export declare const TeamCleanupInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
108
|
+
export declare const TeamCreateOutcomeInputSchema: z.ZodObject<{
|
|
109
|
+
title: z.ZodString;
|
|
110
|
+
requiredSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
export declare const TeamAttachOutcomeFragmentInputSchema: z.ZodObject<{
|
|
113
|
+
outcomeId: z.ZodString;
|
|
114
|
+
section: z.ZodString;
|
|
115
|
+
sourceRunId: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
116
|
+
content: z.ZodString;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export declare const TeamReviewOutcomeFragmentInputSchema: z.ZodObject<{
|
|
119
|
+
fragmentId: z.ZodString;
|
|
120
|
+
approved: z.ZodBoolean;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
export declare const TeamFinalizeOutcomeInputSchema: z.ZodObject<{
|
|
123
|
+
outcomeId: z.ZodString;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export declare const TeamListOutcomesInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
126
|
+
export type TeamSpawnTeammateInput = z.infer<typeof TeamSpawnTeammateInputSchema>;
|
|
127
|
+
export type TeamShutdownTeammateInput = z.infer<typeof TeamShutdownTeammateInputSchema>;
|
|
128
|
+
export type TeamStatusInput = z.infer<typeof TeamStatusInputSchema>;
|
|
129
|
+
export type TeamTaskInput = z.infer<typeof TeamTaskInputSchema>;
|
|
130
|
+
export type TeamRunTaskInput = z.infer<typeof TeamRunTaskInputSchema>;
|
|
131
|
+
export type TeamListRunsInput = z.infer<typeof TeamListRunsInputSchema>;
|
|
132
|
+
export type TeamCancelRunInput = z.infer<typeof TeamCancelRunInputSchema>;
|
|
133
|
+
export type TeamAwaitRunsInput = z.infer<typeof TeamAwaitRunsInputSchema>;
|
|
134
|
+
export type TeamSendMessageInput = z.infer<typeof TeamSendMessageInputSchema>;
|
|
135
|
+
export type TeamBroadcastInput = z.infer<typeof TeamBroadcastInputSchema>;
|
|
136
|
+
export type TeamReadMailboxInput = z.infer<typeof TeamReadMailboxInputSchema>;
|
|
137
|
+
export type TeamMissionLogInput = z.infer<typeof TeamMissionLogInputSchema>;
|
|
138
|
+
export type TeamCleanupInput = z.infer<typeof TeamCleanupInputSchema>;
|
|
139
|
+
export type TeamCreateOutcomeInput = z.infer<typeof TeamCreateOutcomeInputSchema>;
|
|
140
|
+
export type TeamAttachOutcomeFragmentInput = z.infer<typeof TeamAttachOutcomeFragmentInputSchema>;
|
|
141
|
+
export type TeamReviewOutcomeFragmentInput = z.infer<typeof TeamReviewOutcomeFragmentInputSchema>;
|
|
142
|
+
export type TeamFinalizeOutcomeInput = z.infer<typeof TeamFinalizeOutcomeInputSchema>;
|
|
143
|
+
export type TeamListOutcomesInput = z.infer<typeof TeamListOutcomesInputSchema>;
|
|
144
|
+
export type TeamTeammateSpec = z.infer<typeof TeamTeammateSpecSchema>;
|
|
145
|
+
export declare const TeamStatusToolResultSchema: z.ZodObject<{
|
|
146
|
+
teamId: z.ZodString;
|
|
147
|
+
teamName: z.ZodString;
|
|
148
|
+
members: z.ZodArray<z.ZodObject<{
|
|
149
|
+
agentId: z.ZodString;
|
|
150
|
+
role: z.ZodEnum<{
|
|
151
|
+
lead: "lead";
|
|
152
|
+
teammate: "teammate";
|
|
153
|
+
}>;
|
|
154
|
+
description: z.ZodOptional<z.ZodString>;
|
|
155
|
+
status: z.ZodEnum<{
|
|
156
|
+
idle: "idle";
|
|
157
|
+
running: "running";
|
|
158
|
+
stopped: "stopped";
|
|
159
|
+
}>;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
taskCounts: z.ZodRecord<z.ZodEnum<{
|
|
162
|
+
completed: "completed";
|
|
163
|
+
pending: "pending";
|
|
164
|
+
in_progress: "in_progress";
|
|
165
|
+
blocked: "blocked";
|
|
166
|
+
}>, z.ZodNumber>;
|
|
167
|
+
unreadMessages: z.ZodNumber;
|
|
168
|
+
missionLogEntries: z.ZodNumber;
|
|
169
|
+
activeRuns: z.ZodNumber;
|
|
170
|
+
queuedRuns: z.ZodNumber;
|
|
171
|
+
outcomeCounts: z.ZodRecord<z.ZodEnum<{
|
|
172
|
+
draft: "draft";
|
|
173
|
+
in_review: "in_review";
|
|
174
|
+
finalized: "finalized";
|
|
175
|
+
}>, z.ZodNumber>;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
export declare const TeamTaskListItemToolResultSchema: z.ZodObject<{
|
|
178
|
+
id: z.ZodString;
|
|
179
|
+
title: z.ZodString;
|
|
180
|
+
description: z.ZodString;
|
|
181
|
+
status: z.ZodEnum<{
|
|
182
|
+
completed: "completed";
|
|
183
|
+
pending: "pending";
|
|
184
|
+
in_progress: "in_progress";
|
|
185
|
+
blocked: "blocked";
|
|
186
|
+
}>;
|
|
187
|
+
createdAt: z.ZodPreprocess<z.ZodString>;
|
|
188
|
+
updatedAt: z.ZodPreprocess<z.ZodString>;
|
|
189
|
+
createdBy: z.ZodString;
|
|
190
|
+
assignee: z.ZodOptional<z.ZodString>;
|
|
191
|
+
dependsOn: z.ZodArray<z.ZodString>;
|
|
192
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
193
|
+
isReady: z.ZodBoolean;
|
|
194
|
+
blockedBy: z.ZodArray<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export declare const TeamTaskToolResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
197
|
+
action: z.ZodLiteral<"create">;
|
|
198
|
+
taskId: z.ZodString;
|
|
199
|
+
status: z.ZodEnum<{
|
|
200
|
+
completed: "completed";
|
|
201
|
+
pending: "pending";
|
|
202
|
+
in_progress: "in_progress";
|
|
203
|
+
blocked: "blocked";
|
|
204
|
+
}>;
|
|
205
|
+
ignoredFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
206
|
+
note: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
208
|
+
action: z.ZodLiteral<"list">;
|
|
209
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
210
|
+
id: z.ZodString;
|
|
211
|
+
title: z.ZodString;
|
|
212
|
+
description: z.ZodString;
|
|
213
|
+
status: z.ZodEnum<{
|
|
214
|
+
completed: "completed";
|
|
215
|
+
pending: "pending";
|
|
216
|
+
in_progress: "in_progress";
|
|
217
|
+
blocked: "blocked";
|
|
218
|
+
}>;
|
|
219
|
+
createdAt: z.ZodPreprocess<z.ZodString>;
|
|
220
|
+
updatedAt: z.ZodPreprocess<z.ZodString>;
|
|
221
|
+
createdBy: z.ZodString;
|
|
222
|
+
assignee: z.ZodOptional<z.ZodString>;
|
|
223
|
+
dependsOn: z.ZodArray<z.ZodString>;
|
|
224
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
225
|
+
isReady: z.ZodBoolean;
|
|
226
|
+
blockedBy: z.ZodArray<z.ZodString>;
|
|
227
|
+
}, z.core.$strip>>;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
action: z.ZodLiteral<"claim">;
|
|
230
|
+
taskId: z.ZodString;
|
|
231
|
+
status: z.ZodEnum<{
|
|
232
|
+
completed: "completed";
|
|
233
|
+
pending: "pending";
|
|
234
|
+
in_progress: "in_progress";
|
|
235
|
+
blocked: "blocked";
|
|
236
|
+
}>;
|
|
237
|
+
nextStep: z.ZodString;
|
|
238
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
239
|
+
action: z.ZodLiteral<"complete">;
|
|
240
|
+
taskId: z.ZodString;
|
|
241
|
+
status: z.ZodEnum<{
|
|
242
|
+
completed: "completed";
|
|
243
|
+
pending: "pending";
|
|
244
|
+
in_progress: "in_progress";
|
|
245
|
+
blocked: "blocked";
|
|
246
|
+
}>;
|
|
247
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
248
|
+
action: z.ZodLiteral<"block">;
|
|
249
|
+
taskId: z.ZodString;
|
|
250
|
+
status: z.ZodEnum<{
|
|
251
|
+
completed: "completed";
|
|
252
|
+
pending: "pending";
|
|
253
|
+
in_progress: "in_progress";
|
|
254
|
+
blocked: "blocked";
|
|
255
|
+
}>;
|
|
256
|
+
}, z.core.$strip>], "action">;
|
|
257
|
+
export declare const TeamRunTaskToolResultSchema: z.ZodObject<{
|
|
258
|
+
agentId: z.ZodString;
|
|
259
|
+
mode: z.ZodEnum<{
|
|
260
|
+
sync: "sync";
|
|
261
|
+
async: "async";
|
|
262
|
+
}>;
|
|
263
|
+
status: z.ZodEnum<{
|
|
264
|
+
running: "running";
|
|
265
|
+
queued: "queued";
|
|
266
|
+
dispatched: "dispatched";
|
|
267
|
+
joined: "joined";
|
|
268
|
+
}>;
|
|
269
|
+
dispatched: z.ZodBoolean;
|
|
270
|
+
message: z.ZodString;
|
|
271
|
+
deduped: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
273
|
+
text: z.ZodOptional<z.ZodString>;
|
|
274
|
+
iterations: z.ZodOptional<z.ZodNumber>;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
export declare const TeamRunResultSummarySchema: z.ZodObject<{
|
|
277
|
+
textPreview: z.ZodString;
|
|
278
|
+
iterations: z.ZodNumber;
|
|
279
|
+
finishReason: z.ZodString;
|
|
280
|
+
durationMs: z.ZodNumber;
|
|
281
|
+
usage: z.ZodObject<{
|
|
282
|
+
inputTokens: z.ZodNumber;
|
|
283
|
+
outputTokens: z.ZodNumber;
|
|
284
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
}, z.core.$strip>;
|
|
288
|
+
}, z.core.$strip>;
|
|
289
|
+
export declare const TeamRunToolSummarySchema: z.ZodObject<{
|
|
290
|
+
id: z.ZodString;
|
|
291
|
+
agentId: z.ZodString;
|
|
292
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
293
|
+
status: z.ZodEnum<{
|
|
294
|
+
running: "running";
|
|
295
|
+
completed: "completed";
|
|
296
|
+
failed: "failed";
|
|
297
|
+
cancelled: "cancelled";
|
|
298
|
+
queued: "queued";
|
|
299
|
+
interrupted: "interrupted";
|
|
300
|
+
}>;
|
|
301
|
+
messagePreview: z.ZodString;
|
|
302
|
+
priority: z.ZodNumber;
|
|
303
|
+
retryCount: z.ZodNumber;
|
|
304
|
+
maxRetries: z.ZodNumber;
|
|
305
|
+
nextAttemptAt: z.ZodOptional<z.ZodPreprocess<z.ZodString>>;
|
|
306
|
+
continueConversation: z.ZodOptional<z.ZodBoolean>;
|
|
307
|
+
startedAt: z.ZodPreprocess<z.ZodString>;
|
|
308
|
+
endedAt: z.ZodOptional<z.ZodPreprocess<z.ZodString>>;
|
|
309
|
+
leaseOwner: z.ZodOptional<z.ZodString>;
|
|
310
|
+
heartbeatAt: z.ZodOptional<z.ZodPreprocess<z.ZodString>>;
|
|
311
|
+
lastProgressAt: z.ZodOptional<z.ZodPreprocess<z.ZodString>>;
|
|
312
|
+
lastProgressMessage: z.ZodOptional<z.ZodString>;
|
|
313
|
+
currentActivity: z.ZodOptional<z.ZodString>;
|
|
314
|
+
error: z.ZodOptional<z.ZodString>;
|
|
315
|
+
resultSummary: z.ZodOptional<z.ZodObject<{
|
|
316
|
+
textPreview: z.ZodString;
|
|
317
|
+
iterations: z.ZodNumber;
|
|
318
|
+
finishReason: z.ZodString;
|
|
319
|
+
durationMs: z.ZodNumber;
|
|
320
|
+
usage: z.ZodObject<{
|
|
321
|
+
inputTokens: z.ZodNumber;
|
|
322
|
+
outputTokens: z.ZodNumber;
|
|
323
|
+
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
324
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
325
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
}, z.core.$strip>;
|
|
327
|
+
}, z.core.$strip>>;
|
|
328
|
+
}, z.core.$strip>;
|
|
329
|
+
export declare const TeamMailboxMessageToolResultSchema: z.ZodObject<{
|
|
330
|
+
id: z.ZodString;
|
|
331
|
+
teamId: z.ZodString;
|
|
332
|
+
fromAgentId: z.ZodString;
|
|
333
|
+
toAgentId: z.ZodString;
|
|
334
|
+
subject: z.ZodString;
|
|
335
|
+
body: z.ZodString;
|
|
336
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
337
|
+
sentAt: z.ZodPreprocess<z.ZodString>;
|
|
338
|
+
readAt: z.ZodOptional<z.ZodPreprocess<z.ZodString>>;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
export declare const TeamOutcomeToolResultSchema: z.ZodObject<{
|
|
341
|
+
id: z.ZodString;
|
|
342
|
+
teamId: z.ZodString;
|
|
343
|
+
title: z.ZodString;
|
|
344
|
+
status: z.ZodEnum<{
|
|
345
|
+
draft: "draft";
|
|
346
|
+
in_review: "in_review";
|
|
347
|
+
finalized: "finalized";
|
|
348
|
+
}>;
|
|
349
|
+
requiredSections: z.ZodArray<z.ZodString>;
|
|
350
|
+
createdBy: z.ZodString;
|
|
351
|
+
createdAt: z.ZodPreprocess<z.ZodString>;
|
|
352
|
+
finalizedAt: z.ZodOptional<z.ZodPreprocess<z.ZodString>>;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
export declare const TeamCreateOutcomeToolResultSchema: z.ZodObject<{
|
|
355
|
+
outcomeId: z.ZodString;
|
|
356
|
+
status: z.ZodEnum<{
|
|
357
|
+
draft: "draft";
|
|
358
|
+
in_review: "in_review";
|
|
359
|
+
finalized: "finalized";
|
|
360
|
+
}>;
|
|
361
|
+
requiredSections: z.ZodArray<z.ZodString>;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
export declare const TeamSimpleAgentStatusToolResultSchema: z.ZodObject<{
|
|
364
|
+
agentId: z.ZodString;
|
|
365
|
+
status: z.ZodString;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
export declare const TeamCancelRunToolResultSchema: z.ZodObject<{
|
|
368
|
+
runId: z.ZodString;
|
|
369
|
+
status: z.ZodEnum<{
|
|
370
|
+
running: "running";
|
|
371
|
+
completed: "completed";
|
|
372
|
+
failed: "failed";
|
|
373
|
+
cancelled: "cancelled";
|
|
374
|
+
queued: "queued";
|
|
375
|
+
interrupted: "interrupted";
|
|
376
|
+
}>;
|
|
377
|
+
}, z.core.$strip>;
|
|
378
|
+
export declare const TeamSendMessageToolResultSchema: z.ZodObject<{
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
toAgentId: z.ZodString;
|
|
381
|
+
}, z.core.$strip>;
|
|
382
|
+
export declare const TeamBroadcastToolResultSchema: z.ZodObject<{
|
|
383
|
+
delivered: z.ZodNumber;
|
|
384
|
+
}, z.core.$strip>;
|
|
385
|
+
export declare const TeamMissionLogToolResultSchema: z.ZodObject<{
|
|
386
|
+
id: z.ZodString;
|
|
387
|
+
}, z.core.$strip>;
|
|
388
|
+
export declare const TeamCleanupToolResultSchema: z.ZodObject<{
|
|
389
|
+
status: z.ZodString;
|
|
390
|
+
}, z.core.$strip>;
|
|
391
|
+
export declare const TeamOutcomeFragmentToolResultSchema: z.ZodObject<{
|
|
392
|
+
fragmentId: z.ZodString;
|
|
393
|
+
status: z.ZodString;
|
|
394
|
+
}, z.core.$strip>;
|
|
395
|
+
export declare const TeamFinalizeOutcomeToolResultSchema: z.ZodObject<{
|
|
396
|
+
outcomeId: z.ZodString;
|
|
397
|
+
status: z.ZodEnum<{
|
|
398
|
+
draft: "draft";
|
|
399
|
+
in_review: "in_review";
|
|
400
|
+
finalized: "finalized";
|
|
401
|
+
}>;
|
|
402
|
+
}, z.core.$strip>;
|
|
403
|
+
export type TeamRunResultSummary = z.infer<typeof TeamRunResultSummarySchema>;
|
|
404
|
+
export type TeamRunToolSummary = z.infer<typeof TeamRunToolSummarySchema>;
|
|
405
|
+
export type TeamTaskToolResult = z.infer<typeof TeamTaskToolResultSchema>;
|
|
406
|
+
export type TeamRunTaskToolResult = z.infer<typeof TeamRunTaskToolResultSchema>;
|
|
407
|
+
export type TeamStatusToolResult = z.infer<typeof TeamStatusToolResultSchema>;
|
|
408
|
+
export type TeamMailboxMessageToolResult = z.infer<typeof TeamMailboxMessageToolResultSchema>;
|
|
409
|
+
export type TeamOutcomeToolResult = z.infer<typeof TeamOutcomeToolResultSchema>;
|
|
410
|
+
export type TeamCreateOutcomeToolResult = z.infer<typeof TeamCreateOutcomeToolResultSchema>;
|
|
411
|
+
export {};
|