@squadbase/vite-server 0.1.17 → 0.1.19-dev.a00d9c3
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 +5961 -2986
- 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 +291 -18
- 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 +40 -16
- package/dist/connectors/google-analytics.js +39 -15
- package/dist/connectors/google-audit-log.js +39 -15
- package/dist/connectors/google-calendar-oauth.js +40 -16
- 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.d.ts +5 -0
- package/dist/connectors/hackernews.js +909 -0
- 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 +70 -19
- 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 +293 -19
- package/dist/connectors/outlook-oauth.js +33 -14
- package/dist/connectors/powerbi-oauth.js +33 -14
- 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/slack.d.ts +5 -0
- package/dist/connectors/slack.js +656 -0
- package/dist/connectors/sqlserver.js +291 -18
- package/dist/connectors/stripe-api-key.js +39 -15
- package/dist/connectors/stripe-oauth.js +32 -13
- package/dist/connectors/supabase.js +293 -16
- package/dist/connectors/tableau.js +40 -16
- package/dist/connectors/tiktok-ads.js +39 -15
- package/dist/connectors/wix-store.js +39 -15
- package/dist/connectors/x.d.ts +5 -0
- package/dist/connectors/x.js +951 -0
- package/dist/connectors/zendesk-oauth.js +32 -13
- package/dist/connectors/zendesk.js +39 -15
- package/dist/index.js +6425 -3397
- package/dist/main.js +6425 -3397
- package/dist/vite-plugin.js +5965 -2987
- package/package.json +13 -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
|
|
@@ -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];
|
|
@@ -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
|
|
@@ -230,6 +235,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
230
235
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
231
236
|
*/
|
|
232
237
|
setup;
|
|
238
|
+
/**
|
|
239
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
240
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
241
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
242
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
243
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
244
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
245
|
+
*/
|
|
246
|
+
introspect;
|
|
233
247
|
/**
|
|
234
248
|
* Opt-out of the default "verify before save" behavior on connection
|
|
235
249
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -244,6 +258,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
244
258
|
* the default verify-on-create behavior without opt-in.
|
|
245
259
|
*/
|
|
246
260
|
skipConnectionCheckOnCreate;
|
|
261
|
+
/**
|
|
262
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
263
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
264
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
265
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
266
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
267
|
+
*/
|
|
268
|
+
surveyProbes;
|
|
247
269
|
constructor(config) {
|
|
248
270
|
this.slug = config.slug;
|
|
249
271
|
this.authType = config.authType;
|
|
@@ -261,7 +283,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
261
283
|
this.query = config.query;
|
|
262
284
|
this.checkConnection = config.checkConnection;
|
|
263
285
|
this.setup = config.setup;
|
|
286
|
+
this.introspect = config.introspect;
|
|
264
287
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
288
|
+
this.surveyProbes = config.surveyProbes;
|
|
265
289
|
}
|
|
266
290
|
get connectorKey() {
|
|
267
291
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -299,25 +323,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
299
323
|
if (authType) return `${slug}-${authType}`;
|
|
300
324
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
301
325
|
// user-password
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
326
|
+
postgresql: "user-password",
|
|
327
|
+
mysql: "user-password",
|
|
328
|
+
clickhouse: "user-password",
|
|
329
|
+
kintone: "user-password",
|
|
306
330
|
"squadbase-db": "user-password",
|
|
307
331
|
// service-account
|
|
308
|
-
|
|
309
|
-
|
|
332
|
+
snowflake: "service-account",
|
|
333
|
+
bigquery: "service-account",
|
|
310
334
|
"google-analytics": "service-account",
|
|
311
335
|
"google-calendar": "service-account",
|
|
312
336
|
"aws-athena": "service-account",
|
|
313
|
-
|
|
337
|
+
redshift: "service-account",
|
|
314
338
|
// api-key
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
339
|
+
databricks: "api-key",
|
|
340
|
+
dbt: "api-key",
|
|
341
|
+
airtable: "api-key",
|
|
342
|
+
openai: "api-key",
|
|
343
|
+
gemini: "api-key",
|
|
344
|
+
anthropic: "api-key",
|
|
321
345
|
"wix-store": "api-key"
|
|
322
346
|
};
|
|
323
347
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|
|
@@ -79,6 +79,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
79
79
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
80
80
|
*/
|
|
81
81
|
setup;
|
|
82
|
+
/**
|
|
83
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
84
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
85
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
86
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
87
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
88
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
89
|
+
*/
|
|
90
|
+
introspect;
|
|
82
91
|
/**
|
|
83
92
|
* Opt-out of the default "verify before save" behavior on connection
|
|
84
93
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -93,6 +102,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
93
102
|
* the default verify-on-create behavior without opt-in.
|
|
94
103
|
*/
|
|
95
104
|
skipConnectionCheckOnCreate;
|
|
105
|
+
/**
|
|
106
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
107
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
108
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
109
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
110
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
111
|
+
*/
|
|
112
|
+
surveyProbes;
|
|
96
113
|
constructor(config) {
|
|
97
114
|
this.slug = config.slug;
|
|
98
115
|
this.authType = config.authType;
|
|
@@ -110,7 +127,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
110
127
|
this.query = config.query;
|
|
111
128
|
this.checkConnection = config.checkConnection;
|
|
112
129
|
this.setup = config.setup;
|
|
130
|
+
this.introspect = config.introspect;
|
|
113
131
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
132
|
+
this.surveyProbes = config.surveyProbes;
|
|
114
133
|
}
|
|
115
134
|
get connectorKey() {
|
|
116
135
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -148,25 +167,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
148
167
|
if (authType) return `${slug}-${authType}`;
|
|
149
168
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
150
169
|
// user-password
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
170
|
+
postgresql: "user-password",
|
|
171
|
+
mysql: "user-password",
|
|
172
|
+
clickhouse: "user-password",
|
|
173
|
+
kintone: "user-password",
|
|
155
174
|
"squadbase-db": "user-password",
|
|
156
175
|
// service-account
|
|
157
|
-
|
|
158
|
-
|
|
176
|
+
snowflake: "service-account",
|
|
177
|
+
bigquery: "service-account",
|
|
159
178
|
"google-analytics": "service-account",
|
|
160
179
|
"google-calendar": "service-account",
|
|
161
180
|
"aws-athena": "service-account",
|
|
162
|
-
|
|
181
|
+
redshift: "service-account",
|
|
163
182
|
// api-key
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
183
|
+
databricks: "api-key",
|
|
184
|
+
dbt: "api-key",
|
|
185
|
+
airtable: "api-key",
|
|
186
|
+
openai: "api-key",
|
|
187
|
+
gemini: "api-key",
|
|
188
|
+
anthropic: "api-key",
|
|
170
189
|
"wix-store": "api-key"
|
|
171
190
|
};
|
|
172
191
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|