@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
|
|
@@ -280,6 +285,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
280
285
|
* `runSetupFlow` from `setup-flow.ts`.
|
|
281
286
|
*/
|
|
282
287
|
setup;
|
|
288
|
+
/**
|
|
289
|
+
* 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
|
|
290
|
+
* メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
|
|
291
|
+
* {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
|
|
292
|
+
* 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
|
|
293
|
+
* `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
|
|
294
|
+
* coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
|
|
295
|
+
*/
|
|
296
|
+
introspect;
|
|
283
297
|
/**
|
|
284
298
|
* Opt-out of the default "verify before save" behavior on connection
|
|
285
299
|
* creation. The backend invokes `checkConnection` synchronously while
|
|
@@ -294,6 +308,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
294
308
|
* the default verify-on-create behavior without opt-in.
|
|
295
309
|
*/
|
|
296
310
|
skipConnectionCheckOnCreate;
|
|
311
|
+
/**
|
|
312
|
+
* 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
|
|
313
|
+
* read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
|
|
314
|
+
* recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
|
|
315
|
+
* driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
|
|
316
|
+
* 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
|
|
317
|
+
*/
|
|
318
|
+
surveyProbes;
|
|
297
319
|
constructor(config) {
|
|
298
320
|
this.slug = config.slug;
|
|
299
321
|
this.authType = config.authType;
|
|
@@ -311,7 +333,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
311
333
|
this.query = config.query;
|
|
312
334
|
this.checkConnection = config.checkConnection;
|
|
313
335
|
this.setup = config.setup;
|
|
336
|
+
this.introspect = config.introspect;
|
|
314
337
|
this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
|
|
338
|
+
this.surveyProbes = config.surveyProbes;
|
|
315
339
|
}
|
|
316
340
|
get connectorKey() {
|
|
317
341
|
return _ConnectorPlugin.deriveKey(this.slug, this.authType);
|
|
@@ -349,25 +373,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
349
373
|
if (authType) return `${slug}-${authType}`;
|
|
350
374
|
const LEGACY_NULL_AUTH_TYPE_MAP = {
|
|
351
375
|
// user-password
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
376
|
+
postgresql: "user-password",
|
|
377
|
+
mysql: "user-password",
|
|
378
|
+
clickhouse: "user-password",
|
|
379
|
+
kintone: "user-password",
|
|
356
380
|
"squadbase-db": "user-password",
|
|
357
381
|
// service-account
|
|
358
|
-
|
|
359
|
-
|
|
382
|
+
snowflake: "service-account",
|
|
383
|
+
bigquery: "service-account",
|
|
360
384
|
"google-analytics": "service-account",
|
|
361
385
|
"google-calendar": "service-account",
|
|
362
386
|
"aws-athena": "service-account",
|
|
363
|
-
|
|
387
|
+
redshift: "service-account",
|
|
364
388
|
// api-key
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
389
|
+
databricks: "api-key",
|
|
390
|
+
dbt: "api-key",
|
|
391
|
+
airtable: "api-key",
|
|
392
|
+
openai: "api-key",
|
|
393
|
+
gemini: "api-key",
|
|
394
|
+
anthropic: "api-key",
|
|
371
395
|
"wix-store": "api-key"
|
|
372
396
|
};
|
|
373
397
|
const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
|