@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
|
|
@@ -105,6 +110,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
105
110
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
106
111
|
*/
|
|
107
112
|
setup;
|
|
113
|
+
/**
|
|
114
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
115
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
116
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
117
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
118
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
119
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
120
|
+
*/
|
|
121
|
+
introspect;
|
|
108
122
|
/**
|
|
109
123
|
* Opt-out of the default "verify before save" behavior on connection
|
|
110
124
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -119,6 +133,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
119
133
|
* the default verify-on-create behavior without opt-in.
|
|
120
134
|
*/
|
|
121
135
|
skipConnectionCheckOnCreate;
|
|
136
|
+
/**
|
|
137
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
138
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
139
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
140
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
141
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
142
|
+
*/
|
|
143
|
+
surveyProbes;
|
|
122
144
|
constructor(config) {
|
|
123
145
|
this.slug = config.slug;
|
|
124
146
|
this.authType = config.authType;
|
|
@@ -136,7 +158,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
136
158
|
this.query = config.query;
|
|
137
159
|
this.checkConnection = config.checkConnection;
|
|
138
160
|
this.setup = config.setup;
|
|
161
|
+
this.introspect = config.introspect;
|
|
139
162
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
163
|
+
this.surveyProbes = config.surveyProbes;
|
|
140
164
|
}
|
|
141
165
|
get connectorKey() {
|
|
142
166
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -174,25 +198,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
174
198
|
if (authType) return `${slug}-${authType}`;
|
|
175
199
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
176
200
|
// user-password
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
201
|
+
postgresql: "user-password",
|
|
202
|
+
mysql: "user-password",
|
|
203
|
+
clickhouse: "user-password",
|
|
204
|
+
kintone: "user-password",
|
|
181
205
|
"squadbase-db": "user-password",
|
|
182
206
|
// service-account
|
|
183
|
-
|
|
184
|
-
|
|
207
|
+
snowflake: "service-account",
|
|
208
|
+
bigquery: "service-account",
|
|
185
209
|
"google-analytics": "service-account",
|
|
186
210
|
"google-calendar": "service-account",
|
|
187
211
|
"aws-athena": "service-account",
|
|
188
|
-
|
|
212
|
+
redshift: "service-account",
|
|
189
213
|
// api-key
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
214
|
+
databricks: "api-key",
|
|
215
|
+
dbt: "api-key",
|
|
216
|
+
airtable: "api-key",
|
|
217
|
+
openai: "api-key",
|
|
218
|
+
gemini: "api-key",
|
|
219
|
+
anthropic: "api-key",
|
|
196
220
|
"wix-store": "api-key"
|
|
197
221
|
};
|
|
198
222
|
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
|
|
@@ -365,6 +370,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
365
370
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
366
371
|
*/
|
|
367
372
|
setup;
|
|
373
|
+
/**
|
|
374
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
375
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
376
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
377
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
378
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
379
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
380
|
+
*/
|
|
381
|
+
introspect;
|
|
368
382
|
/**
|
|
369
383
|
* Opt-out of the default "verify before save" behavior on connection
|
|
370
384
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -379,6 +393,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
379
393
|
* the default verify-on-create behavior without opt-in.
|
|
380
394
|
*/
|
|
381
395
|
skipConnectionCheckOnCreate;
|
|
396
|
+
/**
|
|
397
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
398
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
399
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
400
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
401
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
402
|
+
*/
|
|
403
|
+
surveyProbes;
|
|
382
404
|
constructor(config) {
|
|
383
405
|
this.slug = config.slug;
|
|
384
406
|
this.authType = config.authType;
|
|
@@ -396,7 +418,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
396
418
|
this.query = config.query;
|
|
397
419
|
this.checkConnection = config.checkConnection;
|
|
398
420
|
this.setup = config.setup;
|
|
421
|
+
this.introspect = config.introspect;
|
|
399
422
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
423
|
+
this.surveyProbes = config.surveyProbes;
|
|
400
424
|
}
|
|
401
425
|
get connectorKey() {
|
|
402
426
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -434,25 +458,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
434
458
|
if (authType) return `${slug}-${authType}`;
|
|
435
459
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
436
460
|
// user-password
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
461
|
+
postgresql: "user-password",
|
|
462
|
+
mysql: "user-password",
|
|
463
|
+
clickhouse: "user-password",
|
|
464
|
+
kintone: "user-password",
|
|
441
465
|
"squadbase-db": "user-password",
|
|
442
466
|
// service-account
|
|
443
|
-
|
|
444
|
-
|
|
467
|
+
snowflake: "service-account",
|
|
468
|
+
bigquery: "service-account",
|
|
445
469
|
"google-analytics": "service-account",
|
|
446
470
|
"google-calendar": "service-account",
|
|
447
471
|
"aws-athena": "service-account",
|
|
448
|
-
|
|
472
|
+
redshift: "service-account",
|
|
449
473
|
// api-key
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
474
|
+
databricks: "api-key",
|
|
475
|
+
dbt: "api-key",
|
|
476
|
+
airtable: "api-key",
|
|
477
|
+
openai: "api-key",
|
|
478
|
+
gemini: "api-key",
|
|
479
|
+
anthropic: "api-key",
|
|
456
480
|
"wix-store": "api-key"
|
|
457
481
|
};
|
|
458
482
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|
|
@@ -173,6 +173,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
173
173
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
174
174
|
*/
|
|
175
175
|
setup;
|
|
176
|
+
/**
|
|
177
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
178
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
179
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
180
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
181
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
182
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
183
|
+
*/
|
|
184
|
+
introspect;
|
|
176
185
|
/**
|
|
177
186
|
* Opt-out of the default "verify before save" behavior on connection
|
|
178
187
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -187,6 +196,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
187
196
|
* the default verify-on-create behavior without opt-in.
|
|
188
197
|
*/
|
|
189
198
|
skipConnectionCheckOnCreate;
|
|
199
|
+
/**
|
|
200
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
201
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
202
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
203
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
204
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
205
|
+
*/
|
|
206
|
+
surveyProbes;
|
|
190
207
|
constructor(config) {
|
|
191
208
|
this.slug = config.slug;
|
|
192
209
|
this.authType = config.authType;
|
|
@@ -204,7 +221,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
204
221
|
this.query = config.query;
|
|
205
222
|
this.checkConnection = config.checkConnection;
|
|
206
223
|
this.setup = config.setup;
|
|
224
|
+
this.introspect = config.introspect;
|
|
207
225
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
226
|
+
this.surveyProbes = config.surveyProbes;
|
|
208
227
|
}
|
|
209
228
|
get connectorKey() {
|
|
210
229
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -242,25 +261,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
242
261
|
if (authType) return `${slug}-${authType}`;
|
|
243
262
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
244
263
|
// user-password
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
264
|
+
postgresql: "user-password",
|
|
265
|
+
mysql: "user-password",
|
|
266
|
+
clickhouse: "user-password",
|
|
267
|
+
kintone: "user-password",
|
|
249
268
|
"squadbase-db": "user-password",
|
|
250
269
|
// service-account
|
|
251
|
-
|
|
252
|
-
|
|
270
|
+
snowflake: "service-account",
|
|
271
|
+
bigquery: "service-account",
|
|
253
272
|
"google-analytics": "service-account",
|
|
254
273
|
"google-calendar": "service-account",
|
|
255
274
|
"aws-athena": "service-account",
|
|
256
|
-
|
|
275
|
+
redshift: "service-account",
|
|
257
276
|
// api-key
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
277
|
+
databricks: "api-key",
|
|
278
|
+
dbt: "api-key",
|
|
279
|
+
airtable: "api-key",
|
|
280
|
+
openai: "api-key",
|
|
281
|
+
gemini: "api-key",
|
|
282
|
+
anthropic: "api-key",
|
|
264
283
|
"wix-store": "api-key"
|
|
265
284
|
};
|
|
266
285
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|
package/dist/connectors/gmail.js
CHANGED
|
@@ -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
|
|
@@ -187,6 +192,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
187
192
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
188
193
|
*/
|
|
189
194
|
setup;
|
|
195
|
+
/**
|
|
196
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
197
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
198
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
199
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
200
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
201
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
202
|
+
*/
|
|
203
|
+
introspect;
|
|
190
204
|
/**
|
|
191
205
|
* Opt-out of the default "verify before save" behavior on connection
|
|
192
206
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -201,6 +215,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
201
215
|
* the default verify-on-create behavior without opt-in.
|
|
202
216
|
*/
|
|
203
217
|
skipConnectionCheckOnCreate;
|
|
218
|
+
/**
|
|
219
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
220
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
221
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
222
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
223
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
224
|
+
*/
|
|
225
|
+
surveyProbes;
|
|
204
226
|
constructor(config) {
|
|
205
227
|
this.slug = config.slug;
|
|
206
228
|
this.authType = config.authType;
|
|
@@ -218,7 +240,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
218
240
|
this.query = config.query;
|
|
219
241
|
this.checkConnection = config.checkConnection;
|
|
220
242
|
this.setup = config.setup;
|
|
243
|
+
this.introspect = config.introspect;
|
|
221
244
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
245
|
+
this.surveyProbes = config.surveyProbes;
|
|
222
246
|
}
|
|
223
247
|
get connectorKey() {
|
|
224
248
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -256,25 +280,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
256
280
|
if (authType) return `${slug}-${authType}`;
|
|
257
281
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
258
282
|
// user-password
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
283
|
+
postgresql: "user-password",
|
|
284
|
+
mysql: "user-password",
|
|
285
|
+
clickhouse: "user-password",
|
|
286
|
+
kintone: "user-password",
|
|
263
287
|
"squadbase-db": "user-password",
|
|
264
288
|
// service-account
|
|
265
|
-
|
|
266
|
-
|
|
289
|
+
snowflake: "service-account",
|
|
290
|
+
bigquery: "service-account",
|
|
267
291
|
"google-analytics": "service-account",
|
|
268
292
|
"google-calendar": "service-account",
|
|
269
293
|
"aws-athena": "service-account",
|
|
270
|
-
|
|
294
|
+
redshift: "service-account",
|
|
271
295
|
// api-key
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
296
|
+
databricks: "api-key",
|
|
297
|
+
dbt: "api-key",
|
|
298
|
+
airtable: "api-key",
|
|
299
|
+
openai: "api-key",
|
|
300
|
+
gemini: "api-key",
|
|
301
|
+
anthropic: "api-key",
|
|
278
302
|
"wix-store": "api-key"
|
|
279
303
|
};
|
|
280
304
|
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
|
|
@@ -235,6 +240,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
235
240
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
236
241
|
*/
|
|
237
242
|
setup;
|
|
243
|
+
/**
|
|
244
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
245
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
246
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
247
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
248
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
249
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
250
|
+
*/
|
|
251
|
+
introspect;
|
|
238
252
|
/**
|
|
239
253
|
* Opt-out of the default "verify before save" behavior on connection
|
|
240
254
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -249,6 +263,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
249
263
|
* the default verify-on-create behavior without opt-in.
|
|
250
264
|
*/
|
|
251
265
|
skipConnectionCheckOnCreate;
|
|
266
|
+
/**
|
|
267
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
268
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
269
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
270
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
271
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
272
|
+
*/
|
|
273
|
+
surveyProbes;
|
|
252
274
|
constructor(config) {
|
|
253
275
|
this.slug = config.slug;
|
|
254
276
|
this.authType = config.authType;
|
|
@@ -266,7 +288,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
266
288
|
this.query = config.query;
|
|
267
289
|
this.checkConnection = config.checkConnection;
|
|
268
290
|
this.setup = config.setup;
|
|
291
|
+
this.introspect = config.introspect;
|
|
269
292
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
293
|
+
this.surveyProbes = config.surveyProbes;
|
|
270
294
|
}
|
|
271
295
|
get connectorKey() {
|
|
272
296
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -304,25 +328,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
304
328
|
if (authType) return `${slug}-${authType}`;
|
|
305
329
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
306
330
|
// user-password
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
331
|
+
postgresql: "user-password",
|
|
332
|
+
mysql: "user-password",
|
|
333
|
+
clickhouse: "user-password",
|
|
334
|
+
kintone: "user-password",
|
|
311
335
|
"squadbase-db": "user-password",
|
|
312
336
|
// service-account
|
|
313
|
-
|
|
314
|
-
|
|
337
|
+
snowflake: "service-account",
|
|
338
|
+
bigquery: "service-account",
|
|
315
339
|
"google-analytics": "service-account",
|
|
316
340
|
"google-calendar": "service-account",
|
|
317
341
|
"aws-athena": "service-account",
|
|
318
|
-
|
|
342
|
+
redshift: "service-account",
|
|
319
343
|
// api-key
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
344
|
+
databricks: "api-key",
|
|
345
|
+
dbt: "api-key",
|
|
346
|
+
airtable: "api-key",
|
|
347
|
+
openai: "api-key",
|
|
348
|
+
gemini: "api-key",
|
|
349
|
+
anthropic: "api-key",
|
|
326
350
|
"wix-store": "api-key"
|
|
327
351
|
};
|
|
328
352
|
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
|
|
@@ -216,6 +221,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
216
221
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
217
222
|
*/
|
|
218
223
|
setup;
|
|
224
|
+
/**
|
|
225
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
226
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
227
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
228
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
229
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
230
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
231
|
+
*/
|
|
232
|
+
introspect;
|
|
219
233
|
/**
|
|
220
234
|
* Opt-out of the default "verify before save" behavior on connection
|
|
221
235
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -230,6 +244,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
230
244
|
* the default verify-on-create behavior without opt-in.
|
|
231
245
|
*/
|
|
232
246
|
skipConnectionCheckOnCreate;
|
|
247
|
+
/**
|
|
248
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
249
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
250
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
251
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
252
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
253
|
+
*/
|
|
254
|
+
surveyProbes;
|
|
233
255
|
constructor(config) {
|
|
234
256
|
this.slug = config.slug;
|
|
235
257
|
this.authType = config.authType;
|
|
@@ -247,7 +269,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
247
269
|
this.query = config.query;
|
|
248
270
|
this.checkConnection = config.checkConnection;
|
|
249
271
|
this.setup = config.setup;
|
|
272
|
+
this.introspect = config.introspect;
|
|
250
273
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
274
|
+
this.surveyProbes = config.surveyProbes;
|
|
251
275
|
}
|
|
252
276
|
get connectorKey() {
|
|
253
277
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -285,25 +309,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
285
309
|
if (authType) return `${slug}-${authType}`;
|
|
286
310
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
287
311
|
// user-password
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
312
|
+
postgresql: "user-password",
|
|
313
|
+
mysql: "user-password",
|
|
314
|
+
clickhouse: "user-password",
|
|
315
|
+
kintone: "user-password",
|
|
292
316
|
"squadbase-db": "user-password",
|
|
293
317
|
// service-account
|
|
294
|
-
|
|
295
|
-
|
|
318
|
+
snowflake: "service-account",
|
|
319
|
+
bigquery: "service-account",
|
|
296
320
|
"google-analytics": "service-account",
|
|
297
321
|
"google-calendar": "service-account",
|
|
298
322
|
"aws-athena": "service-account",
|
|
299
|
-
|
|
323
|
+
redshift: "service-account",
|
|
300
324
|
// api-key
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
325
|
+
databricks: "api-key",
|
|
326
|
+
dbt: "api-key",
|
|
327
|
+
airtable: "api-key",
|
|
328
|
+
openai: "api-key",
|
|
329
|
+
gemini: "api-key",
|
|
330
|
+
anthropic: "api-key",
|
|
307
331
|
"wix-store": "api-key"
|
|
308
332
|
};
|
|
309
333
|
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
|
|
@@ -311,6 +316,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
311
316
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
312
317
|
*/
|
|
313
318
|
setup;
|
|
319
|
+
/**
|
|
320
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
321
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
322
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
323
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
324
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
325
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
326
|
+
*/
|
|
327
|
+
introspect;
|
|
314
328
|
/**
|
|
315
329
|
* Opt-out of the default "verify before save" behavior on connection
|
|
316
330
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -325,6 +339,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
325
339
|
* the default verify-on-create behavior without opt-in.
|
|
326
340
|
*/
|
|
327
341
|
skipConnectionCheckOnCreate;
|
|
342
|
+
/**
|
|
343
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
344
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
345
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
346
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
347
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
348
|
+
*/
|
|
349
|
+
surveyProbes;
|
|
328
350
|
constructor(config) {
|
|
329
351
|
this.slug = config.slug;
|
|
330
352
|
this.authType = config.authType;
|
|
@@ -342,7 +364,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
342
364
|
this.query = config.query;
|
|
343
365
|
this.checkConnection = config.checkConnection;
|
|
344
366
|
this.setup = config.setup;
|
|
367
|
+
this.introspect = config.introspect;
|
|
345
368
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
369
|
+
this.surveyProbes = config.surveyProbes;
|
|
346
370
|
}
|
|
347
371
|
get connectorKey() {
|
|
348
372
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -380,25 +404,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
380
404
|
if (authType) return `${slug}-${authType}`;
|
|
381
405
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
382
406
|
// user-password
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
407
|
+
postgresql: "user-password",
|
|
408
|
+
mysql: "user-password",
|
|
409
|
+
clickhouse: "user-password",
|
|
410
|
+
kintone: "user-password",
|
|
387
411
|
"squadbase-db": "user-password",
|
|
388
412
|
// service-account
|
|
389
|
-
|
|
390
|
-
|
|
413
|
+
snowflake: "service-account",
|
|
414
|
+
bigquery: "service-account",
|
|
391
415
|
"google-analytics": "service-account",
|
|
392
416
|
"google-calendar": "service-account",
|
|
393
417
|
"aws-athena": "service-account",
|
|
394
|
-
|
|
418
|
+
redshift: "service-account",
|
|
395
419
|
// api-key
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
420
|
+
databricks: "api-key",
|
|
421
|
+
dbt: "api-key",
|
|
422
|
+
airtable: "api-key",
|
|
423
|
+
openai: "api-key",
|
|
424
|
+
gemini: "api-key",
|
|
425
|
+
anthropic: "api-key",
|
|
402
426
|
"wix-store": "api-key"
|
|
403
427
|
};
|
|
404
428
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|