@squadbase/vite-server 0.1.17-dev.d4fff69 → 0.1.17-dev.e4768d1
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/dist/cli/index.js +4786 -3023
- package/dist/connectors/airtable-oauth.js +39 -15
- package/dist/connectors/airtable.js +86 -15
- package/dist/connectors/amplitude.js +39 -15
- package/dist/connectors/anthropic.js +39 -15
- package/dist/connectors/asana.js +39 -15
- package/dist/connectors/attio.js +39 -15
- package/dist/connectors/aws-billing.js +39 -15
- package/dist/connectors/azure-sql.js +275 -15
- package/dist/connectors/backlog-api-key.js +39 -15
- package/dist/connectors/clickup.js +39 -15
- package/dist/connectors/cosmosdb.js +39 -15
- package/dist/connectors/customerio.js +39 -15
- package/dist/connectors/dbt.js +39 -15
- package/dist/connectors/freshdesk.js +39 -15
- package/dist/connectors/freshsales.js +39 -15
- package/dist/connectors/freshservice.js +39 -15
- package/dist/connectors/gamma.js +39 -15
- package/dist/connectors/gemini.js +39 -15
- package/dist/connectors/github.js +39 -15
- package/dist/connectors/gmail-oauth.js +32 -13
- package/dist/connectors/gmail.js +39 -15
- package/dist/connectors/google-ads.js +39 -15
- package/dist/connectors/google-analytics-oauth.js +39 -15
- package/dist/connectors/google-analytics.js +39 -15
- package/dist/connectors/google-audit-log.js +39 -15
- package/dist/connectors/google-calendar-oauth.js +39 -15
- package/dist/connectors/google-calendar.js +39 -15
- package/dist/connectors/google-docs.js +32 -13
- package/dist/connectors/google-drive.js +32 -13
- package/dist/connectors/google-search-console-oauth.js +39 -15
- package/dist/connectors/google-sheets.js +138 -195
- package/dist/connectors/google-slides.js +32 -13
- package/dist/connectors/grafana.js +39 -15
- package/dist/connectors/hackernews.js +32 -13
- package/dist/connectors/hubspot-oauth.js +32 -13
- package/dist/connectors/hubspot.js +39 -15
- package/dist/connectors/influxdb.js +39 -15
- package/dist/connectors/intercom-oauth.js +32 -13
- package/dist/connectors/intercom.js +39 -15
- package/dist/connectors/jdbc.js +39 -15
- package/dist/connectors/jira-api-key.js +39 -15
- package/dist/connectors/kintone-api-token.js +39 -15
- package/dist/connectors/kintone.js +128 -15
- package/dist/connectors/linear.js +39 -15
- package/dist/connectors/linkedin-ads.js +39 -15
- package/dist/connectors/mailchimp-oauth.js +39 -15
- package/dist/connectors/mailchimp.js +39 -15
- package/dist/connectors/meta-ads-oauth.js +39 -15
- package/dist/connectors/meta-ads.js +39 -15
- package/dist/connectors/mixpanel.js +39 -15
- package/dist/connectors/monday.js +39 -15
- package/dist/connectors/mongodb.js +39 -15
- package/dist/connectors/notion-oauth.js +32 -13
- package/dist/connectors/notion.js +84 -15
- package/dist/connectors/openai.js +39 -15
- package/dist/connectors/oracle.js +277 -15
- package/dist/connectors/outlook-oauth.js +32 -13
- package/dist/connectors/powerbi-oauth.js +32 -13
- package/dist/connectors/salesforce.js +108 -15
- package/dist/connectors/semrush.js +39 -15
- package/dist/connectors/sentry.js +39 -15
- package/dist/connectors/shopify-oauth.js +32 -13
- package/dist/connectors/shopify.js +39 -15
- package/dist/connectors/sqlserver.js +275 -15
- package/dist/connectors/stripe-api-key.js +39 -15
- package/dist/connectors/stripe-oauth.js +32 -13
- package/dist/connectors/supabase.js +284 -15
- package/dist/connectors/tableau.js +39 -15
- package/dist/connectors/tiktok-ads.js +39 -15
- package/dist/connectors/wix-store.js +39 -15
- package/dist/connectors/x.js +39 -15
- package/dist/connectors/zendesk-oauth.js +32 -13
- package/dist/connectors/zendesk.js +39 -15
- package/dist/index.js +4832 -3034
- package/dist/main.js +4832 -3034
- package/dist/vite-plugin.js +4786 -3023
- package/package.json +4 -4
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __esm = (fn, res) => function __init() {
|
|
3
|
-
|
|
2
|
+
var __esm = (fn, res, err) => function __init() {
|
|
3
|
+
if (err) throw err[0];
|
|
4
|
+
try {
|
|
5
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
throw err = [e], e;
|
|
8
|
+
}
|
|
4
9
|
};
|
|
5
10
|
|
|
6
11
|
// ../connectors/src/parameter-definition.ts
|
|
@@ -132,6 +137,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
132
137
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
133
138
|
*/
|
|
134
139
|
setup;
|
|
140
|
+
/**
|
|
141
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
142
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
143
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
144
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
145
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
146
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
147
|
+
*/
|
|
148
|
+
introspect;
|
|
135
149
|
/**
|
|
136
150
|
* Opt-out of the default "verify before save" behavior on connection
|
|
137
151
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -146,6 +160,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
146
160
|
* the default verify-on-create behavior without opt-in.
|
|
147
161
|
*/
|
|
148
162
|
skipConnectionCheckOnCreate;
|
|
163
|
+
/**
|
|
164
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
165
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
166
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
167
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
168
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
169
|
+
*/
|
|
170
|
+
surveyProbes;
|
|
149
171
|
constructor(config) {
|
|
150
172
|
this.slug = config.slug;
|
|
151
173
|
this.authType = config.authType;
|
|
@@ -163,7 +185,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
163
185
|
this.query = config.query;
|
|
164
186
|
this.checkConnection = config.checkConnection;
|
|
165
187
|
this.setup = config.setup;
|
|
188
|
+
this.introspect = config.introspect;
|
|
166
189
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
190
|
+
this.surveyProbes = config.surveyProbes;
|
|
167
191
|
}
|
|
168
192
|
get connectorKey() {
|
|
169
193
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -201,25 +225,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
201
225
|
if (authType) return `${slug}-${authType}`;
|
|
202
226
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
203
227
|
// user-password
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
228
|
+
postgresql: "user-password",
|
|
229
|
+
mysql: "user-password",
|
|
230
|
+
clickhouse: "user-password",
|
|
231
|
+
kintone: "user-password",
|
|
208
232
|
"squadbase-db": "user-password",
|
|
209
233
|
// service-account
|
|
210
|
-
|
|
211
|
-
|
|
234
|
+
snowflake: "service-account",
|
|
235
|
+
bigquery: "service-account",
|
|
212
236
|
"google-analytics": "service-account",
|
|
213
237
|
"google-calendar": "service-account",
|
|
214
238
|
"aws-athena": "service-account",
|
|
215
|
-
|
|
239
|
+
redshift: "service-account",
|
|
216
240
|
// api-key
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
241
|
+
databricks: "api-key",
|
|
242
|
+
dbt: "api-key",
|
|
243
|
+
airtable: "api-key",
|
|
244
|
+
openai: "api-key",
|
|
245
|
+
gemini: "api-key",
|
|
246
|
+
anthropic: "api-key",
|
|
223
247
|
"wix-store": "api-key"
|
|
224
248
|
};
|
|
225
249
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __esm = (fn, res) => function __init() {
|
|
3
|
-
|
|
2
|
+
var __esm = (fn, res, err) => function __init() {
|
|
3
|
+
if (err) throw err[0];
|
|
4
|
+
try {
|
|
5
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
throw err = [e], e;
|
|
8
|
+
}
|
|
4
9
|
};
|
|
5
10
|
|
|
6
11
|
// ../connectors/src/parameter-definition.ts
|
|
@@ -138,6 +143,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
138
143
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
139
144
|
*/
|
|
140
145
|
setup;
|
|
146
|
+
/**
|
|
147
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
148
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
149
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
150
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
151
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
152
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
153
|
+
*/
|
|
154
|
+
introspect;
|
|
141
155
|
/**
|
|
142
156
|
* Opt-out of the default "verify before save" behavior on connection
|
|
143
157
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -152,6 +166,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
152
166
|
* the default verify-on-create behavior without opt-in.
|
|
153
167
|
*/
|
|
154
168
|
skipConnectionCheckOnCreate;
|
|
169
|
+
/**
|
|
170
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
171
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
172
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
173
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
174
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
175
|
+
*/
|
|
176
|
+
surveyProbes;
|
|
155
177
|
constructor(config) {
|
|
156
178
|
this.slug = config.slug;
|
|
157
179
|
this.authType = config.authType;
|
|
@@ -169,7 +191,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
169
191
|
this.query = config.query;
|
|
170
192
|
this.checkConnection = config.checkConnection;
|
|
171
193
|
this.setup = config.setup;
|
|
194
|
+
this.introspect = config.introspect;
|
|
172
195
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
196
|
+
this.surveyProbes = config.surveyProbes;
|
|
173
197
|
}
|
|
174
198
|
get connectorKey() {
|
|
175
199
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -207,25 +231,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
207
231
|
if (authType) return `${slug}-${authType}`;
|
|
208
232
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
209
233
|
// user-password
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
234
|
+
postgresql: "user-password",
|
|
235
|
+
mysql: "user-password",
|
|
236
|
+
clickhouse: "user-password",
|
|
237
|
+
kintone: "user-password",
|
|
214
238
|
"squadbase-db": "user-password",
|
|
215
239
|
// service-account
|
|
216
|
-
|
|
217
|
-
|
|
240
|
+
snowflake: "service-account",
|
|
241
|
+
bigquery: "service-account",
|
|
218
242
|
"google-analytics": "service-account",
|
|
219
243
|
"google-calendar": "service-account",
|
|
220
244
|
"aws-athena": "service-account",
|
|
221
|
-
|
|
245
|
+
redshift: "service-account",
|
|
222
246
|
// api-key
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
247
|
+
databricks: "api-key",
|
|
248
|
+
dbt: "api-key",
|
|
249
|
+
airtable: "api-key",
|
|
250
|
+
openai: "api-key",
|
|
251
|
+
gemini: "api-key",
|
|
252
|
+
anthropic: "api-key",
|
|
229
253
|
"wix-store": "api-key"
|
|
230
254
|
};
|
|
231
255
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __esm = (fn, res) => function __init() {
|
|
3
|
-
|
|
2
|
+
var __esm = (fn, res, err) => function __init() {
|
|
3
|
+
if (err) throw err[0];
|
|
4
|
+
try {
|
|
5
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
throw err = [e], e;
|
|
8
|
+
}
|
|
4
9
|
};
|
|
5
10
|
|
|
6
11
|
// ../connectors/src/parameter-definition.ts
|
|
@@ -243,6 +248,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
243
248
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
244
249
|
*/
|
|
245
250
|
setup;
|
|
251
|
+
/**
|
|
252
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
253
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
254
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
255
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
256
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
257
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
258
|
+
*/
|
|
259
|
+
introspect;
|
|
246
260
|
/**
|
|
247
261
|
* Opt-out of the default "verify before save" behavior on connection
|
|
248
262
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -257,6 +271,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
257
271
|
* the default verify-on-create behavior without opt-in.
|
|
258
272
|
*/
|
|
259
273
|
skipConnectionCheckOnCreate;
|
|
274
|
+
/**
|
|
275
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
276
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
277
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
278
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
279
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
280
|
+
*/
|
|
281
|
+
surveyProbes;
|
|
260
282
|
constructor(config) {
|
|
261
283
|
this.slug = config.slug;
|
|
262
284
|
this.authType = config.authType;
|
|
@@ -274,7 +296,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
274
296
|
this.query = config.query;
|
|
275
297
|
this.checkConnection = config.checkConnection;
|
|
276
298
|
this.setup = config.setup;
|
|
299
|
+
this.introspect = config.introspect;
|
|
277
300
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
301
|
+
this.surveyProbes = config.surveyProbes;
|
|
278
302
|
}
|
|
279
303
|
get connectorKey() {
|
|
280
304
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -312,25 +336,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
312
336
|
if (authType) return `${slug}-${authType}`;
|
|
313
337
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
314
338
|
// user-password
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
339
|
+
postgresql: "user-password",
|
|
340
|
+
mysql: "user-password",
|
|
341
|
+
clickhouse: "user-password",
|
|
342
|
+
kintone: "user-password",
|
|
319
343
|
"squadbase-db": "user-password",
|
|
320
344
|
// service-account
|
|
321
|
-
|
|
322
|
-
|
|
345
|
+
snowflake: "service-account",
|
|
346
|
+
bigquery: "service-account",
|
|
323
347
|
"google-analytics": "service-account",
|
|
324
348
|
"google-calendar": "service-account",
|
|
325
349
|
"aws-athena": "service-account",
|
|
326
|
-
|
|
350
|
+
redshift: "service-account",
|
|
327
351
|
// api-key
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
352
|
+
databricks: "api-key",
|
|
353
|
+
dbt: "api-key",
|
|
354
|
+
airtable: "api-key",
|
|
355
|
+
openai: "api-key",
|
|
356
|
+
gemini: "api-key",
|
|
357
|
+
anthropic: "api-key",
|
|
334
358
|
"wix-store": "api-key"
|
|
335
359
|
};
|
|
336
360
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __esm = (fn, res) => function __init() {
|
|
3
|
-
|
|
2
|
+
var __esm = (fn, res, err) => function __init() {
|
|
3
|
+
if (err) throw err[0];
|
|
4
|
+
try {
|
|
5
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
throw err = [e], e;
|
|
8
|
+
}
|
|
4
9
|
};
|
|
5
10
|
|
|
6
11
|
// ../connectors/src/parameter-definition.ts
|
|
@@ -132,6 +137,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
132
137
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
133
138
|
*/
|
|
134
139
|
setup;
|
|
140
|
+
/**
|
|
141
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
142
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
143
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
144
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
145
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
146
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
147
|
+
*/
|
|
148
|
+
introspect;
|
|
135
149
|
/**
|
|
136
150
|
* Opt-out of the default "verify before save" behavior on connection
|
|
137
151
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -146,6 +160,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
146
160
|
* the default verify-on-create behavior without opt-in.
|
|
147
161
|
*/
|
|
148
162
|
skipConnectionCheckOnCreate;
|
|
163
|
+
/**
|
|
164
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
165
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
166
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
167
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
168
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
169
|
+
*/
|
|
170
|
+
surveyProbes;
|
|
149
171
|
constructor(config) {
|
|
150
172
|
this.slug = config.slug;
|
|
151
173
|
this.authType = config.authType;
|
|
@@ -163,7 +185,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
163
185
|
this.query = config.query;
|
|
164
186
|
this.checkConnection = config.checkConnection;
|
|
165
187
|
this.setup = config.setup;
|
|
188
|
+
this.introspect = config.introspect;
|
|
166
189
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
190
|
+
this.surveyProbes = config.surveyProbes;
|
|
167
191
|
}
|
|
168
192
|
get connectorKey() {
|
|
169
193
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -201,25 +225,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
201
225
|
if (authType) return `${slug}-${authType}`;
|
|
202
226
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
203
227
|
// user-password
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
228
|
+
postgresql: "user-password",
|
|
229
|
+
mysql: "user-password",
|
|
230
|
+
clickhouse: "user-password",
|
|
231
|
+
kintone: "user-password",
|
|
208
232
|
"squadbase-db": "user-password",
|
|
209
233
|
// service-account
|
|
210
|
-
|
|
211
|
-
|
|
234
|
+
snowflake: "service-account",
|
|
235
|
+
bigquery: "service-account",
|
|
212
236
|
"google-analytics": "service-account",
|
|
213
237
|
"google-calendar": "service-account",
|
|
214
238
|
"aws-athena": "service-account",
|
|
215
|
-
|
|
239
|
+
redshift: "service-account",
|
|
216
240
|
// api-key
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
241
|
+
databricks: "api-key",
|
|
242
|
+
dbt: "api-key",
|
|
243
|
+
airtable: "api-key",
|
|
244
|
+
openai: "api-key",
|
|
245
|
+
gemini: "api-key",
|
|
246
|
+
anthropic: "api-key",
|
|
223
247
|
"wix-store": "api-key"
|
|
224
248
|
};
|
|
225
249
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __esm = (fn, res) => function __init() {
|
|
3
|
-
|
|
2
|
+
var __esm = (fn, res, err) => function __init() {
|
|
3
|
+
if (err) throw err[0];
|
|
4
|
+
try {
|
|
5
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
throw err = [e], e;
|
|
8
|
+
}
|
|
4
9
|
};
|
|
5
10
|
|
|
6
11
|
// ../connectors/src/parameter-definition.ts
|
|
@@ -203,6 +208,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
203
208
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
204
209
|
*/
|
|
205
210
|
setup;
|
|
211
|
+
/**
|
|
212
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
213
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
214
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
215
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
216
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
217
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
218
|
+
*/
|
|
219
|
+
introspect;
|
|
206
220
|
/**
|
|
207
221
|
* Opt-out of the default "verify before save" behavior on connection
|
|
208
222
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -217,6 +231,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
217
231
|
* the default verify-on-create behavior without opt-in.
|
|
218
232
|
*/
|
|
219
233
|
skipConnectionCheckOnCreate;
|
|
234
|
+
/**
|
|
235
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
236
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
237
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
238
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
239
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
240
|
+
*/
|
|
241
|
+
surveyProbes;
|
|
220
242
|
constructor(config) {
|
|
221
243
|
this.slug = config.slug;
|
|
222
244
|
this.authType = config.authType;
|
|
@@ -234,7 +256,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
234
256
|
this.query = config.query;
|
|
235
257
|
this.checkConnection = config.checkConnection;
|
|
236
258
|
this.setup = config.setup;
|
|
259
|
+
this.introspect = config.introspect;
|
|
237
260
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
261
|
+
this.surveyProbes = config.surveyProbes;
|
|
238
262
|
}
|
|
239
263
|
get connectorKey() {
|
|
240
264
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -272,25 +296,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
272
296
|
if (authType) return `${slug}-${authType}`;
|
|
273
297
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
274
298
|
// user-password
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
299
|
+
postgresql: "user-password",
|
|
300
|
+
mysql: "user-password",
|
|
301
|
+
clickhouse: "user-password",
|
|
302
|
+
kintone: "user-password",
|
|
279
303
|
"squadbase-db": "user-password",
|
|
280
304
|
// service-account
|
|
281
|
-
|
|
282
|
-
|
|
305
|
+
snowflake: "service-account",
|
|
306
|
+
bigquery: "service-account",
|
|
283
307
|
"google-analytics": "service-account",
|
|
284
308
|
"google-calendar": "service-account",
|
|
285
309
|
"aws-athena": "service-account",
|
|
286
|
-
|
|
310
|
+
redshift: "service-account",
|
|
287
311
|
// api-key
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
312
|
+
databricks: "api-key",
|
|
313
|
+
dbt: "api-key",
|
|
314
|
+
airtable: "api-key",
|
|
315
|
+
openai: "api-key",
|
|
316
|
+
gemini: "api-key",
|
|
317
|
+
anthropic: "api-key",
|
|
294
318
|
"wix-store": "api-key"
|
|
295
319
|
};
|
|
296
320
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __esm = (fn, res) => function __init() {
|
|
3
|
-
|
|
2
|
+
var __esm = (fn, res, err) => function __init() {
|
|
3
|
+
if (err) throw err[0];
|
|
4
|
+
try {
|
|
5
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
throw err = [e], e;
|
|
8
|
+
}
|
|
4
9
|
};
|
|
5
10
|
|
|
6
11
|
// ../connectors/src/parameter-definition.ts
|
|
@@ -295,6 +300,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
295
300
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
296
301
|
*/
|
|
297
302
|
setup;
|
|
303
|
+
/**
|
|
304
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
305
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
306
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
307
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
308
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
309
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
310
|
+
*/
|
|
311
|
+
introspect;
|
|
298
312
|
/**
|
|
299
313
|
* Opt-out of the default "verify before save" behavior on connection
|
|
300
314
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -309,6 +323,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
309
323
|
* the default verify-on-create behavior without opt-in.
|
|
310
324
|
*/
|
|
311
325
|
skipConnectionCheckOnCreate;
|
|
326
|
+
/**
|
|
327
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
328
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
329
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
330
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
331
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
332
|
+
*/
|
|
333
|
+
surveyProbes;
|
|
312
334
|
constructor(config) {
|
|
313
335
|
this.slug = config.slug;
|
|
314
336
|
this.authType = config.authType;
|
|
@@ -326,7 +348,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
326
348
|
this.query = config.query;
|
|
327
349
|
this.checkConnection = config.checkConnection;
|
|
328
350
|
this.setup = config.setup;
|
|
351
|
+
this.introspect = config.introspect;
|
|
329
352
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
353
|
+
this.surveyProbes = config.surveyProbes;
|
|
330
354
|
}
|
|
331
355
|
get connectorKey() {
|
|
332
356
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -364,25 +388,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
364
388
|
if (authType) return `${slug}-${authType}`;
|
|
365
389
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
366
390
|
// user-password
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
391
|
+
postgresql: "user-password",
|
|
392
|
+
mysql: "user-password",
|
|
393
|
+
clickhouse: "user-password",
|
|
394
|
+
kintone: "user-password",
|
|
371
395
|
"squadbase-db": "user-password",
|
|
372
396
|
// service-account
|
|
373
|
-
|
|
374
|
-
|
|
397
|
+
snowflake: "service-account",
|
|
398
|
+
bigquery: "service-account",
|
|
375
399
|
"google-analytics": "service-account",
|
|
376
400
|
"google-calendar": "service-account",
|
|
377
401
|
"aws-athena": "service-account",
|
|
378
|
-
|
|
402
|
+
redshift: "service-account",
|
|
379
403
|
// api-key
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
404
|
+
databricks: "api-key",
|
|
405
|
+
dbt: "api-key",
|
|
406
|
+
airtable: "api-key",
|
|
407
|
+
openai: "api-key",
|
|
408
|
+
gemini: "api-key",
|
|
409
|
+
anthropic: "api-key",
|
|
386
410
|
"wix-store": "api-key"
|
|
387
411
|
};
|
|
388
412
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __esm = (fn, res) => function __init() {
|
|
3
|
-
|
|
2
|
+
var __esm = (fn, res, err) => function __init() {
|
|
3
|
+
if (err) throw err[0];
|
|
4
|
+
try {
|
|
5
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
6
|
+
} catch (e) {
|
|
7
|
+
throw err = [e], e;
|
|
8
|
+
}
|
|
4
9
|
};
|
|
5
10
|
|
|
6
11
|
// ../connectors/src/parameter-definition.ts
|
|
@@ -325,6 +330,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
325
330
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
326
331
|
*/
|
|
327
332
|
setup;
|
|
333
|
+
/**
|
|
334
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
335
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
336
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
337
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
338
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
339
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
340
|
+
*/
|
|
341
|
+
introspect;
|
|
328
342
|
/**
|
|
329
343
|
* Opt-out of the default "verify before save" behavior on connection
|
|
330
344
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -339,6 +353,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
339
353
|
* the default verify-on-create behavior without opt-in.
|
|
340
354
|
*/
|
|
341
355
|
skipConnectionCheckOnCreate;
|
|
356
|
+
/**
|
|
357
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
358
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
359
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
360
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
361
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
362
|
+
*/
|
|
363
|
+
surveyProbes;
|
|
342
364
|
constructor(config) {
|
|
343
365
|
this.slug = config.slug;
|
|
344
366
|
this.authType = config.authType;
|
|
@@ -356,7 +378,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
356
378
|
this.query = config.query;
|
|
357
379
|
this.checkConnection = config.checkConnection;
|
|
358
380
|
this.setup = config.setup;
|
|
381
|
+
this.introspect = config.introspect;
|
|
359
382
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
383
|
+
this.surveyProbes = config.surveyProbes;
|
|
360
384
|
}
|
|
361
385
|
get connectorKey() {
|
|
362
386
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -394,25 +418,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
394
418
|
if (authType) return `${slug}-${authType}`;
|
|
395
419
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
396
420
|
// user-password
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
421
|
+
postgresql: "user-password",
|
|
422
|
+
mysql: "user-password",
|
|
423
|
+
clickhouse: "user-password",
|
|
424
|
+
kintone: "user-password",
|
|
401
425
|
"squadbase-db": "user-password",
|
|
402
426
|
// service-account
|
|
403
|
-
|
|
404
|
-
|
|
427
|
+
snowflake: "service-account",
|
|
428
|
+
bigquery: "service-account",
|
|
405
429
|
"google-analytics": "service-account",
|
|
406
430
|
"google-calendar": "service-account",
|
|
407
431
|
"aws-athena": "service-account",
|
|
408
|
-
|
|
432
|
+
redshift: "service-account",
|
|
409
433
|
// api-key
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
434
|
+
databricks: "api-key",
|
|
435
|
+
dbt: "api-key",
|
|
436
|
+
airtable: "api-key",
|
|
437
|
+
openai: "api-key",
|
|
438
|
+
gemini: "api-key",
|
|
439
|
+
anthropic: "api-key",
|
|
416
440
|
"wix-store": "api-key"
|
|
417
441
|
};
|
|
418
442
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|