@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.
@@ -0,0 +1,4 @@
1
+ export declare const CLINE_RPC_PORT = 25463;
2
+ export declare const CLINE_DEFAULT_RPC_PORT = 4317;
3
+ export declare const RPC_ADDRESS_BASE = "127.0.0.1";
4
+ export declare const CLINE_DEFAULT_RPC_ADDRESS = "127.0.0.1:4317";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clinebot/shared",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,152 @@
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
+
24
+ export type WhatsAppConnectorState = {
25
+ instanceKey: string;
26
+ userName: string;
27
+ phoneNumberId?: string;
28
+ pid: number;
29
+ rpcAddress: string;
30
+ port: number;
31
+ baseUrl: string;
32
+ startedAt: string;
33
+ };
34
+
35
+ export type ConnectTelegramOptions = {
36
+ botToken: string;
37
+ botUsername: string;
38
+ cwd: string;
39
+ model?: string;
40
+ provider?: string;
41
+ apiKey?: string;
42
+ systemPrompt?: string;
43
+ mode: "act" | "plan";
44
+ interactive: boolean;
45
+ maxIterations?: number;
46
+ enableTools: boolean;
47
+ rpcAddress: string;
48
+ hookCommand?: string;
49
+ };
50
+
51
+ export type TelegramConnectorState = {
52
+ botUsername: string;
53
+ pid: number;
54
+ rpcAddress: string;
55
+ startedAt: string;
56
+ };
57
+
58
+ export type ConnectSlackOptions = {
59
+ userName: string;
60
+ botToken?: string;
61
+ signingSecret?: string;
62
+ clientId?: string;
63
+ clientSecret?: string;
64
+ encryptionKey?: string;
65
+ installationKeyPrefix?: string;
66
+ cwd: string;
67
+ model?: string;
68
+ provider?: string;
69
+ apiKey?: string;
70
+ systemPrompt?: string;
71
+ mode: "act" | "plan";
72
+ interactive: boolean;
73
+ maxIterations?: number;
74
+ enableTools: boolean;
75
+ rpcAddress: string;
76
+ hookCommand?: string;
77
+ port: number;
78
+ host: string;
79
+ baseUrl: string;
80
+ };
81
+
82
+ export type SlackConnectorState = {
83
+ userName: string;
84
+ pid: number;
85
+ rpcAddress: string;
86
+ port: number;
87
+ baseUrl: string;
88
+ startedAt: string;
89
+ };
90
+
91
+ export type ConnectGoogleChatOptions = {
92
+ userName: string;
93
+ cwd: string;
94
+ model?: string;
95
+ provider?: string;
96
+ apiKey?: string;
97
+ systemPrompt?: string;
98
+ mode: "act" | "plan";
99
+ interactive: boolean;
100
+ maxIterations?: number;
101
+ enableTools: boolean;
102
+ rpcAddress: string;
103
+ hookCommand?: string;
104
+ port: number;
105
+ host: string;
106
+ baseUrl: string;
107
+ pubsubTopic?: string;
108
+ impersonateUser?: string;
109
+ useApplicationDefaultCredentials: boolean;
110
+ credentialsJson?: string;
111
+ };
112
+
113
+ export type GoogleChatConnectorState = {
114
+ userName: string;
115
+ pid: number;
116
+ rpcAddress: string;
117
+ port: number;
118
+ baseUrl: string;
119
+ startedAt: string;
120
+ };
121
+
122
+ export type ConnectLinearOptions = {
123
+ userName: string;
124
+ apiKey?: string;
125
+ clientId?: string;
126
+ clientSecret?: string;
127
+ accessToken?: string;
128
+ webhookSecret: string;
129
+ cwd: string;
130
+ model?: string;
131
+ provider?: string;
132
+ apiProviderKey?: string;
133
+ systemPrompt?: string;
134
+ mode: "act" | "plan";
135
+ interactive: boolean;
136
+ maxIterations?: number;
137
+ enableTools: boolean;
138
+ rpcAddress: string;
139
+ hookCommand?: string;
140
+ port: number;
141
+ host: string;
142
+ baseUrl: string;
143
+ };
144
+
145
+ export type LinearConnectorState = {
146
+ userName: string;
147
+ pid: number;
148
+ rpcAddress: string;
149
+ port: number;
150
+ baseUrl: string;
151
+ startedAt: string;
152
+ };
@@ -5,6 +5,7 @@ export {
5
5
  isOAuthProviderId,
6
6
  OAUTH_PROVIDER_IDS,
7
7
  } from "./auth/constants";
8
+ export type * from "./connectors/adapters";
8
9
  export type {
9
10
  ConnectorHookEvent,
10
11
  ConnectorHookEventName,
@@ -37,6 +38,7 @@ export {
37
38
  normalizeUserInput,
38
39
  xmlTagsRemoval,
39
40
  } from "./prompt/format";
41
+ export { CLINE_DEFAULT_RPC_ADDRESS, CLINE_DEFAULT_RPC_PORT } from "./rpc";
40
42
  export type {
41
43
  RpcAddProviderActionRequest,
42
44
  RpcAgentMode,
package/src/index.ts CHANGED
@@ -5,6 +5,7 @@ export {
5
5
  isOAuthProviderId,
6
6
  OAUTH_PROVIDER_IDS,
7
7
  } from "./auth/constants";
8
+ export type * from "./connectors/adapters";
8
9
  export type {
9
10
  ConnectorHookEvent,
10
11
  ConnectorHookEventName,
@@ -37,6 +38,7 @@ export {
37
38
  normalizeUserInput,
38
39
  xmlTagsRemoval,
39
40
  } from "./prompt/format";
41
+ export { CLINE_DEFAULT_RPC_ADDRESS, CLINE_DEFAULT_RPC_PORT } from "./rpc";
40
42
  export type {
41
43
  RpcAddProviderActionRequest,
42
44
  RpcAgentMode,
@@ -0,0 +1,4 @@
1
+ export const CLINE_RPC_PORT = 25463;
2
+ export const CLINE_DEFAULT_RPC_PORT = 4317;
3
+ export const RPC_ADDRESS_BASE = "127.0.0.1";
4
+ export const CLINE_DEFAULT_RPC_ADDRESS = `${RPC_ADDRESS_BASE}:${CLINE_DEFAULT_RPC_PORT}`;