@clinebot/shared 0.0.12 → 0.0.13
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 +1 -1
- package/dist/connectors/adapters.d.ts +143 -0
- package/dist/index.browser.d.ts +2 -0
- package/dist/index.browser.js +18 -18
- package/dist/index.d.ts +2 -0
- package/dist/index.js +18 -18
- package/dist/rpc/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/connectors/adapters.ts +152 -0
- package/src/index.browser.ts +2 -0
- package/src/index.ts +2 -0
- package/src/rpc/index.ts +4 -0
package/README.md
CHANGED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export type ConnectWhatsAppOptions = {
|
|
2
|
+
userName: string;
|
|
3
|
+
phoneNumberId?: string;
|
|
4
|
+
accessToken?: string;
|
|
5
|
+
appSecret?: string;
|
|
6
|
+
verifyToken?: string;
|
|
7
|
+
apiVersion?: string;
|
|
8
|
+
cwd: string;
|
|
9
|
+
model?: string;
|
|
10
|
+
provider?: string;
|
|
11
|
+
apiKey?: string;
|
|
12
|
+
systemPrompt?: string;
|
|
13
|
+
mode: "act" | "plan";
|
|
14
|
+
interactive: boolean;
|
|
15
|
+
maxIterations?: number;
|
|
16
|
+
enableTools: boolean;
|
|
17
|
+
rpcAddress: string;
|
|
18
|
+
hookCommand?: string;
|
|
19
|
+
port: number;
|
|
20
|
+
host: string;
|
|
21
|
+
baseUrl: string;
|
|
22
|
+
};
|
|
23
|
+
export type WhatsAppConnectorState = {
|
|
24
|
+
instanceKey: string;
|
|
25
|
+
userName: string;
|
|
26
|
+
phoneNumberId?: string;
|
|
27
|
+
pid: number;
|
|
28
|
+
rpcAddress: string;
|
|
29
|
+
port: number;
|
|
30
|
+
baseUrl: string;
|
|
31
|
+
startedAt: string;
|
|
32
|
+
};
|
|
33
|
+
export type ConnectTelegramOptions = {
|
|
34
|
+
botToken: string;
|
|
35
|
+
botUsername: string;
|
|
36
|
+
cwd: string;
|
|
37
|
+
model?: string;
|
|
38
|
+
provider?: string;
|
|
39
|
+
apiKey?: string;
|
|
40
|
+
systemPrompt?: string;
|
|
41
|
+
mode: "act" | "plan";
|
|
42
|
+
interactive: boolean;
|
|
43
|
+
maxIterations?: number;
|
|
44
|
+
enableTools: boolean;
|
|
45
|
+
rpcAddress: string;
|
|
46
|
+
hookCommand?: string;
|
|
47
|
+
};
|
|
48
|
+
export type TelegramConnectorState = {
|
|
49
|
+
botUsername: string;
|
|
50
|
+
pid: number;
|
|
51
|
+
rpcAddress: string;
|
|
52
|
+
startedAt: string;
|
|
53
|
+
};
|
|
54
|
+
export type ConnectSlackOptions = {
|
|
55
|
+
userName: string;
|
|
56
|
+
botToken?: string;
|
|
57
|
+
signingSecret?: string;
|
|
58
|
+
clientId?: string;
|
|
59
|
+
clientSecret?: string;
|
|
60
|
+
encryptionKey?: string;
|
|
61
|
+
installationKeyPrefix?: string;
|
|
62
|
+
cwd: string;
|
|
63
|
+
model?: string;
|
|
64
|
+
provider?: string;
|
|
65
|
+
apiKey?: string;
|
|
66
|
+
systemPrompt?: string;
|
|
67
|
+
mode: "act" | "plan";
|
|
68
|
+
interactive: boolean;
|
|
69
|
+
maxIterations?: number;
|
|
70
|
+
enableTools: boolean;
|
|
71
|
+
rpcAddress: string;
|
|
72
|
+
hookCommand?: string;
|
|
73
|
+
port: number;
|
|
74
|
+
host: string;
|
|
75
|
+
baseUrl: string;
|
|
76
|
+
};
|
|
77
|
+
export type SlackConnectorState = {
|
|
78
|
+
userName: string;
|
|
79
|
+
pid: number;
|
|
80
|
+
rpcAddress: string;
|
|
81
|
+
port: number;
|
|
82
|
+
baseUrl: string;
|
|
83
|
+
startedAt: string;
|
|
84
|
+
};
|
|
85
|
+
export type ConnectGoogleChatOptions = {
|
|
86
|
+
userName: string;
|
|
87
|
+
cwd: string;
|
|
88
|
+
model?: string;
|
|
89
|
+
provider?: string;
|
|
90
|
+
apiKey?: string;
|
|
91
|
+
systemPrompt?: string;
|
|
92
|
+
mode: "act" | "plan";
|
|
93
|
+
interactive: boolean;
|
|
94
|
+
maxIterations?: number;
|
|
95
|
+
enableTools: boolean;
|
|
96
|
+
rpcAddress: string;
|
|
97
|
+
hookCommand?: string;
|
|
98
|
+
port: number;
|
|
99
|
+
host: string;
|
|
100
|
+
baseUrl: string;
|
|
101
|
+
pubsubTopic?: string;
|
|
102
|
+
impersonateUser?: string;
|
|
103
|
+
useApplicationDefaultCredentials: boolean;
|
|
104
|
+
credentialsJson?: string;
|
|
105
|
+
};
|
|
106
|
+
export type GoogleChatConnectorState = {
|
|
107
|
+
userName: string;
|
|
108
|
+
pid: number;
|
|
109
|
+
rpcAddress: string;
|
|
110
|
+
port: number;
|
|
111
|
+
baseUrl: string;
|
|
112
|
+
startedAt: string;
|
|
113
|
+
};
|
|
114
|
+
export type ConnectLinearOptions = {
|
|
115
|
+
userName: string;
|
|
116
|
+
apiKey?: string;
|
|
117
|
+
clientId?: string;
|
|
118
|
+
clientSecret?: string;
|
|
119
|
+
accessToken?: string;
|
|
120
|
+
webhookSecret: string;
|
|
121
|
+
cwd: string;
|
|
122
|
+
model?: string;
|
|
123
|
+
provider?: string;
|
|
124
|
+
apiProviderKey?: string;
|
|
125
|
+
systemPrompt?: string;
|
|
126
|
+
mode: "act" | "plan";
|
|
127
|
+
interactive: boolean;
|
|
128
|
+
maxIterations?: number;
|
|
129
|
+
enableTools: boolean;
|
|
130
|
+
rpcAddress: string;
|
|
131
|
+
hookCommand?: string;
|
|
132
|
+
port: number;
|
|
133
|
+
host: string;
|
|
134
|
+
baseUrl: string;
|
|
135
|
+
};
|
|
136
|
+
export type LinearConnectorState = {
|
|
137
|
+
userName: string;
|
|
138
|
+
pid: number;
|
|
139
|
+
rpcAddress: string;
|
|
140
|
+
port: number;
|
|
141
|
+
baseUrl: string;
|
|
142
|
+
startedAt: string;
|
|
143
|
+
};
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { OAuthProviderId } from "./auth/constants";
|
|
2
2
|
export { AUTH_ERROR_PATTERNS, isLikelyAuthError, isOAuthProviderId, OAUTH_PROVIDER_IDS, } from "./auth/constants";
|
|
3
|
+
export type * from "./connectors/adapters";
|
|
3
4
|
export type { ConnectorHookEvent, ConnectorHookEventName, } from "./connectors/events";
|
|
4
5
|
export { ConnectorHookEventNameSchema, ConnectorHookEventSchema, } from "./connectors/events";
|
|
5
6
|
export { MODELS_DEV_PROVIDER_KEY_ENTRIES, MODELS_DEV_PROVIDER_KEY_MAP, resolveProviderModelCatalogKeys, } from "./llms/model-id";
|
|
@@ -10,6 +11,7 @@ export { parseJsonStream, safeJsonStringify } from "./parse/json";
|
|
|
10
11
|
export { formatHumanReadableDate } from "./parse/time";
|
|
11
12
|
export { validateWithZod, zodToJsonSchema } from "./parse/zod";
|
|
12
13
|
export { formatFileContentBlock, formatUserInputBlock, normalizeUserInput, xmlTagsRemoval, } from "./prompt/format";
|
|
14
|
+
export { CLINE_DEFAULT_RPC_ADDRESS, CLINE_DEFAULT_RPC_PORT } from "./rpc";
|
|
13
15
|
export type { RpcAddProviderActionRequest, RpcAgentMode, RpcChatAttachmentFile, RpcChatAttachments, RpcChatMessage, RpcChatRunTurnRequest, RpcChatRuntimeConfigBase, RpcChatRuntimeLoggerConfig, RpcChatStartSessionArtifacts, RpcChatStartSessionRequest, RpcChatStartSessionResponse, RpcChatToolCallResult, RpcChatTurnResult, RpcClineAccountActionRequest, RpcClineAccountBalance, RpcClineAccountOrganization, RpcClineAccountOrganizationBalance, RpcClineAccountOrganizationUsageTransaction, RpcClineAccountPaymentTransaction, RpcClineAccountUsageTransaction, RpcClineAccountUser, RpcGetProviderModelsActionRequest, RpcListProvidersActionRequest, RpcOAuthProviderId, RpcProviderActionRequest, RpcProviderCapability, RpcProviderCatalogResponse, RpcProviderListItem, RpcProviderModel, RpcProviderModelsResponse, RpcProviderOAuthLoginResponse, RpcProviderSettingsActionRequest, RpcSaveProviderSettingsActionRequest, RpcSessionStorageOptions, } from "./rpc/runtime";
|
|
14
16
|
export type { TeamProgressCounts, TeamProgressLifecycleEvent, TeamProgressMemberRole, TeamProgressMemberStatus, TeamProgressOutcomeFragmentStatus, TeamProgressOutcomeStatus, TeamProgressProjectionEvent, TeamProgressRunStatus, TeamProgressSummary, TeamProgressTaskStatus, } from "./rpc/team-progress";
|
|
15
17
|
export { RPC_TEAM_LIFECYCLE_EVENT_TYPE, RPC_TEAM_PROGRESS_EVENT_TYPE, } from "./rpc/team-progress";
|