@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.
Files changed (82) hide show
  1. package/dist/cli/index.js +5961 -2986
  2. package/dist/connectors/airtable-oauth.js +39 -15
  3. package/dist/connectors/airtable.js +86 -15
  4. package/dist/connectors/amplitude.js +39 -15
  5. package/dist/connectors/anthropic.js +39 -15
  6. package/dist/connectors/asana.js +39 -15
  7. package/dist/connectors/attio.js +39 -15
  8. package/dist/connectors/aws-billing.js +39 -15
  9. package/dist/connectors/azure-sql.js +291 -18
  10. package/dist/connectors/backlog-api-key.js +39 -15
  11. package/dist/connectors/clickup.js +39 -15
  12. package/dist/connectors/cosmosdb.js +39 -15
  13. package/dist/connectors/customerio.js +39 -15
  14. package/dist/connectors/dbt.js +39 -15
  15. package/dist/connectors/freshdesk.js +39 -15
  16. package/dist/connectors/freshsales.js +39 -15
  17. package/dist/connectors/freshservice.js +39 -15
  18. package/dist/connectors/gamma.js +39 -15
  19. package/dist/connectors/gemini.js +39 -15
  20. package/dist/connectors/github.js +39 -15
  21. package/dist/connectors/gmail-oauth.js +32 -13
  22. package/dist/connectors/gmail.js +39 -15
  23. package/dist/connectors/google-ads.js +39 -15
  24. package/dist/connectors/google-analytics-oauth.js +40 -16
  25. package/dist/connectors/google-analytics.js +39 -15
  26. package/dist/connectors/google-audit-log.js +39 -15
  27. package/dist/connectors/google-calendar-oauth.js +40 -16
  28. package/dist/connectors/google-calendar.js +39 -15
  29. package/dist/connectors/google-docs.js +32 -13
  30. package/dist/connectors/google-drive.js +32 -13
  31. package/dist/connectors/google-search-console-oauth.js +39 -15
  32. package/dist/connectors/google-sheets.js +138 -195
  33. package/dist/connectors/google-slides.js +32 -13
  34. package/dist/connectors/grafana.js +39 -15
  35. package/dist/connectors/hackernews.d.ts +5 -0
  36. package/dist/connectors/hackernews.js +909 -0
  37. package/dist/connectors/hubspot-oauth.js +32 -13
  38. package/dist/connectors/hubspot.js +39 -15
  39. package/dist/connectors/influxdb.js +39 -15
  40. package/dist/connectors/intercom-oauth.js +32 -13
  41. package/dist/connectors/intercom.js +39 -15
  42. package/dist/connectors/jdbc.js +70 -19
  43. package/dist/connectors/jira-api-key.js +39 -15
  44. package/dist/connectors/kintone-api-token.js +39 -15
  45. package/dist/connectors/kintone.js +128 -15
  46. package/dist/connectors/linear.js +39 -15
  47. package/dist/connectors/linkedin-ads.js +39 -15
  48. package/dist/connectors/mailchimp-oauth.js +39 -15
  49. package/dist/connectors/mailchimp.js +39 -15
  50. package/dist/connectors/meta-ads-oauth.js +39 -15
  51. package/dist/connectors/meta-ads.js +39 -15
  52. package/dist/connectors/mixpanel.js +39 -15
  53. package/dist/connectors/monday.js +39 -15
  54. package/dist/connectors/mongodb.js +39 -15
  55. package/dist/connectors/notion-oauth.js +32 -13
  56. package/dist/connectors/notion.js +84 -15
  57. package/dist/connectors/openai.js +39 -15
  58. package/dist/connectors/oracle.js +293 -19
  59. package/dist/connectors/outlook-oauth.js +33 -14
  60. package/dist/connectors/powerbi-oauth.js +33 -14
  61. package/dist/connectors/salesforce.js +108 -15
  62. package/dist/connectors/semrush.js +39 -15
  63. package/dist/connectors/sentry.js +39 -15
  64. package/dist/connectors/shopify-oauth.js +32 -13
  65. package/dist/connectors/shopify.js +39 -15
  66. package/dist/connectors/slack.d.ts +5 -0
  67. package/dist/connectors/slack.js +656 -0
  68. package/dist/connectors/sqlserver.js +291 -18
  69. package/dist/connectors/stripe-api-key.js +39 -15
  70. package/dist/connectors/stripe-oauth.js +32 -13
  71. package/dist/connectors/supabase.js +293 -16
  72. package/dist/connectors/tableau.js +40 -16
  73. package/dist/connectors/tiktok-ads.js +39 -15
  74. package/dist/connectors/wix-store.js +39 -15
  75. package/dist/connectors/x.d.ts +5 -0
  76. package/dist/connectors/x.js +951 -0
  77. package/dist/connectors/zendesk-oauth.js +32 -13
  78. package/dist/connectors/zendesk.js +39 -15
  79. package/dist/index.js +6425 -3397
  80. package/dist/main.js +6425 -3397
  81. package/dist/vite-plugin.js +5965 -2987
  82. package/package.json +13 -4
@@ -1,6 +1,11 @@
1
1
  var __getOwnPropNames = Object.getOwnPropertyNames;
2
- var __esm = (fn, res) => function __init() {
3
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
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
@@ -309,6 +314,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
309
314
  * `runSetupFlow` from `setup-flow.ts`.
310
315
  */
311
316
  setup;
317
+ /**
318
+ * 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
319
+ * メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
320
+ * {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
321
+ * 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
322
+ * `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
323
+ * coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
324
+ */
325
+ introspect;
312
326
  /**
313
327
  * Opt-out of the default "verify before save" behavior on connection
314
328
  * creation. The backend invokes `checkConnection` synchronously while
@@ -323,6 +337,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
323
337
  * the default verify-on-create behavior without opt-in.
324
338
  */
325
339
  skipConnectionCheckOnCreate;
340
+ /**
341
+ * 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
342
+ * read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
343
+ * recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
344
+ * driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
345
+ * 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
346
+ */
347
+ surveyProbes;
326
348
  constructor(config) {
327
349
  this.slug = config.slug;
328
350
  this.authType = config.authType;
@@ -340,7 +362,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
340
362
  this.query = config.query;
341
363
  this.checkConnection = config.checkConnection;
342
364
  this.setup = config.setup;
365
+ this.introspect = config.introspect;
343
366
  this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
367
+ this.surveyProbes = config.surveyProbes;
344
368
  }
345
369
  get connectorKey() {
346
370
  return _ConnectorPlugin.deriveKey(this.slug, this.authType);
@@ -378,25 +402,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
378
402
  if (authType) return `${slug}-${authType}`;
379
403
  const LEGACY_NULL_AUTH_TYPE_MAP = {
380
404
  // user-password
381
- "postgresql": "user-password",
382
- "mysql": "user-password",
383
- "clickhouse": "user-password",
384
- "kintone": "user-password",
405
+ postgresql: "user-password",
406
+ mysql: "user-password",
407
+ clickhouse: "user-password",
408
+ kintone: "user-password",
385
409
  "squadbase-db": "user-password",
386
410
  // service-account
387
- "snowflake": "service-account",
388
- "bigquery": "service-account",
411
+ snowflake: "service-account",
412
+ bigquery: "service-account",
389
413
  "google-analytics": "service-account",
390
414
  "google-calendar": "service-account",
391
415
  "aws-athena": "service-account",
392
- "redshift": "service-account",
416
+ redshift: "service-account",
393
417
  // api-key
394
- "databricks": "api-key",
395
- "dbt": "api-key",
396
- "airtable": "api-key",
397
- "openai": "api-key",
398
- "gemini": "api-key",
399
- "anthropic": "api-key",
418
+ databricks: "api-key",
419
+ dbt: "api-key",
420
+ airtable: "api-key",
421
+ openai: "api-key",
422
+ gemini: "api-key",
423
+ anthropic: "api-key",
400
424
  "wix-store": "api-key"
401
425
  };
402
426
  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
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
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
@@ -219,6 +224,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
219
224
  * `runSetupFlow` from `setup-flow.ts`.
220
225
  */
221
226
  setup;
227
+ /**
228
+ * 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
229
+ * メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
230
+ * {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
231
+ * 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
232
+ * `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
233
+ * coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
234
+ */
235
+ introspect;
222
236
  /**
223
237
  * Opt-out of the default "verify before save" behavior on connection
224
238
  * creation. The backend invokes `checkConnection` synchronously while
@@ -233,6 +247,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
233
247
  * the default verify-on-create behavior without opt-in.
234
248
  */
235
249
  skipConnectionCheckOnCreate;
250
+ /**
251
+ * 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
252
+ * read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
253
+ * recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
254
+ * driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
255
+ * 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
256
+ */
257
+ surveyProbes;
236
258
  constructor(config) {
237
259
  this.slug = config.slug;
238
260
  this.authType = config.authType;
@@ -250,7 +272,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
250
272
  this.query = config.query;
251
273
  this.checkConnection = config.checkConnection;
252
274
  this.setup = config.setup;
275
+ this.introspect = config.introspect;
253
276
  this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
277
+ this.surveyProbes = config.surveyProbes;
254
278
  }
255
279
  get connectorKey() {
256
280
  return _ConnectorPlugin.deriveKey(this.slug, this.authType);
@@ -288,25 +312,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
288
312
  if (authType) return `${slug}-${authType}`;
289
313
  const LEGACY_NULL_AUTH_TYPE_MAP = {
290
314
  // user-password
291
- "postgresql": "user-password",
292
- "mysql": "user-password",
293
- "clickhouse": "user-password",
294
- "kintone": "user-password",
315
+ postgresql: "user-password",
316
+ mysql: "user-password",
317
+ clickhouse: "user-password",
318
+ kintone: "user-password",
295
319
  "squadbase-db": "user-password",
296
320
  // service-account
297
- "snowflake": "service-account",
298
- "bigquery": "service-account",
321
+ snowflake: "service-account",
322
+ bigquery: "service-account",
299
323
  "google-analytics": "service-account",
300
324
  "google-calendar": "service-account",
301
325
  "aws-athena": "service-account",
302
- "redshift": "service-account",
326
+ redshift: "service-account",
303
327
  // api-key
304
- "databricks": "api-key",
305
- "dbt": "api-key",
306
- "airtable": "api-key",
307
- "openai": "api-key",
308
- "gemini": "api-key",
309
- "anthropic": "api-key",
328
+ databricks: "api-key",
329
+ dbt: "api-key",
330
+ airtable: "api-key",
331
+ openai: "api-key",
332
+ gemini: "api-key",
333
+ anthropic: "api-key",
310
334
  "wix-store": "api-key"
311
335
  };
312
336
  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
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
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
@@ -256,6 +261,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
256
261
  * `runSetupFlow` from `setup-flow.ts`.
257
262
  */
258
263
  setup;
264
+ /**
265
+ * 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
266
+ * メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
267
+ * {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
268
+ * 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
269
+ * `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
270
+ * coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
271
+ */
272
+ introspect;
259
273
  /**
260
274
  * Opt-out of the default "verify before save" behavior on connection
261
275
  * creation. The backend invokes `checkConnection` synchronously while
@@ -270,6 +284,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
270
284
  * the default verify-on-create behavior without opt-in.
271
285
  */
272
286
  skipConnectionCheckOnCreate;
287
+ /**
288
+ * 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
289
+ * read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
290
+ * recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
291
+ * driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
292
+ * 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
293
+ */
294
+ surveyProbes;
273
295
  constructor(config) {
274
296
  this.slug = config.slug;
275
297
  this.authType = config.authType;
@@ -287,7 +309,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
287
309
  this.query = config.query;
288
310
  this.checkConnection = config.checkConnection;
289
311
  this.setup = config.setup;
312
+ this.introspect = config.introspect;
290
313
  this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
314
+ this.surveyProbes = config.surveyProbes;
291
315
  }
292
316
  get connectorKey() {
293
317
  return _ConnectorPlugin.deriveKey(this.slug, this.authType);
@@ -325,25 +349,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
325
349
  if (authType) return `${slug}-${authType}`;
326
350
  const LEGACY_NULL_AUTH_TYPE_MAP = {
327
351
  // user-password
328
- "postgresql": "user-password",
329
- "mysql": "user-password",
330
- "clickhouse": "user-password",
331
- "kintone": "user-password",
352
+ postgresql: "user-password",
353
+ mysql: "user-password",
354
+ clickhouse: "user-password",
355
+ kintone: "user-password",
332
356
  "squadbase-db": "user-password",
333
357
  // service-account
334
- "snowflake": "service-account",
335
- "bigquery": "service-account",
358
+ snowflake: "service-account",
359
+ bigquery: "service-account",
336
360
  "google-analytics": "service-account",
337
361
  "google-calendar": "service-account",
338
362
  "aws-athena": "service-account",
339
- "redshift": "service-account",
363
+ redshift: "service-account",
340
364
  // api-key
341
- "databricks": "api-key",
342
- "dbt": "api-key",
343
- "airtable": "api-key",
344
- "openai": "api-key",
345
- "gemini": "api-key",
346
- "anthropic": "api-key",
365
+ databricks: "api-key",
366
+ dbt: "api-key",
367
+ airtable: "api-key",
368
+ openai: "api-key",
369
+ gemini: "api-key",
370
+ anthropic: "api-key",
347
371
  "wix-store": "api-key"
348
372
  };
349
373
  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
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
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
@@ -398,6 +403,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
398
403
  * `runSetupFlow` from `setup-flow.ts`.
399
404
  */
400
405
  setup;
406
+ /**
407
+ * 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
408
+ * メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
409
+ * {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
410
+ * 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
411
+ * `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
412
+ * coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
413
+ */
414
+ introspect;
401
415
  /**
402
416
  * Opt-out of the default "verify before save" behavior on connection
403
417
  * creation. The backend invokes `checkConnection` synchronously while
@@ -412,6 +426,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
412
426
  * the default verify-on-create behavior without opt-in.
413
427
  */
414
428
  skipConnectionCheckOnCreate;
429
+ /**
430
+ * 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
431
+ * read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
432
+ * recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
433
+ * driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
434
+ * 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
435
+ */
436
+ surveyProbes;
415
437
  constructor(config) {
416
438
  this.slug = config.slug;
417
439
  this.authType = config.authType;
@@ -429,7 +451,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
429
451
  this.query = config.query;
430
452
  this.checkConnection = config.checkConnection;
431
453
  this.setup = config.setup;
454
+ this.introspect = config.introspect;
432
455
  this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
456
+ this.surveyProbes = config.surveyProbes;
433
457
  }
434
458
  get connectorKey() {
435
459
  return _ConnectorPlugin.deriveKey(this.slug, this.authType);
@@ -467,25 +491,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
467
491
  if (authType) return `${slug}-${authType}`;
468
492
  const LEGACY_NULL_AUTH_TYPE_MAP = {
469
493
  // user-password
470
- "postgresql": "user-password",
471
- "mysql": "user-password",
472
- "clickhouse": "user-password",
473
- "kintone": "user-password",
494
+ postgresql: "user-password",
495
+ mysql: "user-password",
496
+ clickhouse: "user-password",
497
+ kintone: "user-password",
474
498
  "squadbase-db": "user-password",
475
499
  // service-account
476
- "snowflake": "service-account",
477
- "bigquery": "service-account",
500
+ snowflake: "service-account",
501
+ bigquery: "service-account",
478
502
  "google-analytics": "service-account",
479
503
  "google-calendar": "service-account",
480
504
  "aws-athena": "service-account",
481
- "redshift": "service-account",
505
+ redshift: "service-account",
482
506
  // api-key
483
- "databricks": "api-key",
484
- "dbt": "api-key",
485
- "airtable": "api-key",
486
- "openai": "api-key",
487
- "gemini": "api-key",
488
- "anthropic": "api-key",
507
+ databricks: "api-key",
508
+ dbt: "api-key",
509
+ airtable: "api-key",
510
+ openai: "api-key",
511
+ gemini: "api-key",
512
+ anthropic: "api-key",
489
513
  "wix-store": "api-key"
490
514
  };
491
515
  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
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
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
@@ -306,6 +311,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
306
311
  * `runSetupFlow` from `setup-flow.ts`.
307
312
  */
308
313
  setup;
314
+ /**
315
+ * 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
316
+ * メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
317
+ * {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
318
+ * 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
319
+ * `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
320
+ * coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
321
+ */
322
+ introspect;
309
323
  /**
310
324
  * Opt-out of the default "verify before save" behavior on connection
311
325
  * creation. The backend invokes `checkConnection` synchronously while
@@ -320,6 +334,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
320
334
  * the default verify-on-create behavior without opt-in.
321
335
  */
322
336
  skipConnectionCheckOnCreate;
337
+ /**
338
+ * 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
339
+ * read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
340
+ * recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
341
+ * driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
342
+ * 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
343
+ */
344
+ surveyProbes;
323
345
  constructor(config) {
324
346
  this.slug = config.slug;
325
347
  this.authType = config.authType;
@@ -337,7 +359,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
337
359
  this.query = config.query;
338
360
  this.checkConnection = config.checkConnection;
339
361
  this.setup = config.setup;
362
+ this.introspect = config.introspect;
340
363
  this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
364
+ this.surveyProbes = config.surveyProbes;
341
365
  }
342
366
  get connectorKey() {
343
367
  return _ConnectorPlugin.deriveKey(this.slug, this.authType);
@@ -375,25 +399,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
375
399
  if (authType) return `${slug}-${authType}`;
376
400
  const LEGACY_NULL_AUTH_TYPE_MAP = {
377
401
  // user-password
378
- "postgresql": "user-password",
379
- "mysql": "user-password",
380
- "clickhouse": "user-password",
381
- "kintone": "user-password",
402
+ postgresql: "user-password",
403
+ mysql: "user-password",
404
+ clickhouse: "user-password",
405
+ kintone: "user-password",
382
406
  "squadbase-db": "user-password",
383
407
  // service-account
384
- "snowflake": "service-account",
385
- "bigquery": "service-account",
408
+ snowflake: "service-account",
409
+ bigquery: "service-account",
386
410
  "google-analytics": "service-account",
387
411
  "google-calendar": "service-account",
388
412
  "aws-athena": "service-account",
389
- "redshift": "service-account",
413
+ redshift: "service-account",
390
414
  // api-key
391
- "databricks": "api-key",
392
- "dbt": "api-key",
393
- "airtable": "api-key",
394
- "openai": "api-key",
395
- "gemini": "api-key",
396
- "anthropic": "api-key",
415
+ databricks: "api-key",
416
+ dbt: "api-key",
417
+ airtable: "api-key",
418
+ openai: "api-key",
419
+ gemini: "api-key",
420
+ anthropic: "api-key",
397
421
  "wix-store": "api-key"
398
422
  };
399
423
  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
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
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
@@ -321,6 +326,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
321
326
  * `runSetupFlow` from `setup-flow.ts`.
322
327
  */
323
328
  setup;
329
+ /**
330
+ * 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
331
+ * メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
332
+ * {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
333
+ * 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
334
+ * `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
335
+ * coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
336
+ */
337
+ introspect;
324
338
  /**
325
339
  * Opt-out of the default "verify before save" behavior on connection
326
340
  * creation. The backend invokes `checkConnection` synchronously while
@@ -335,6 +349,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
335
349
  * the default verify-on-create behavior without opt-in.
336
350
  */
337
351
  skipConnectionCheckOnCreate;
352
+ /**
353
+ * 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
354
+ * read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
355
+ * recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
356
+ * driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
357
+ * 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
358
+ */
359
+ surveyProbes;
338
360
  constructor(config) {
339
361
  this.slug = config.slug;
340
362
  this.authType = config.authType;
@@ -352,7 +374,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
352
374
  this.query = config.query;
353
375
  this.checkConnection = config.checkConnection;
354
376
  this.setup = config.setup;
377
+ this.introspect = config.introspect;
355
378
  this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
379
+ this.surveyProbes = config.surveyProbes;
356
380
  }
357
381
  get connectorKey() {
358
382
  return _ConnectorPlugin.deriveKey(this.slug, this.authType);
@@ -390,25 +414,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
390
414
  if (authType) return `${slug}-${authType}`;
391
415
  const LEGACY_NULL_AUTH_TYPE_MAP = {
392
416
  // user-password
393
- "postgresql": "user-password",
394
- "mysql": "user-password",
395
- "clickhouse": "user-password",
396
- "kintone": "user-password",
417
+ postgresql: "user-password",
418
+ mysql: "user-password",
419
+ clickhouse: "user-password",
420
+ kintone: "user-password",
397
421
  "squadbase-db": "user-password",
398
422
  // service-account
399
- "snowflake": "service-account",
400
- "bigquery": "service-account",
423
+ snowflake: "service-account",
424
+ bigquery: "service-account",
401
425
  "google-analytics": "service-account",
402
426
  "google-calendar": "service-account",
403
427
  "aws-athena": "service-account",
404
- "redshift": "service-account",
428
+ redshift: "service-account",
405
429
  // api-key
406
- "databricks": "api-key",
407
- "dbt": "api-key",
408
- "airtable": "api-key",
409
- "openai": "api-key",
410
- "gemini": "api-key",
411
- "anthropic": "api-key",
430
+ databricks: "api-key",
431
+ dbt: "api-key",
432
+ airtable: "api-key",
433
+ openai: "api-key",
434
+ gemini: "api-key",
435
+ anthropic: "api-key",
412
436
  "wix-store": "api-key"
413
437
  };
414
438
  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
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
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
@@ -276,6 +281,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
276
281
  * `runSetupFlow` from `setup-flow.ts`.
277
282
  */
278
283
  setup;
284
+ /**
285
+ * 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
286
+ * メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
287
+ * {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
288
+ * 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
289
+ * `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
290
+ * coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
291
+ */
292
+ introspect;
279
293
  /**
280
294
  * Opt-out of the default "verify before save" behavior on connection
281
295
  * creation. The backend invokes `checkConnection` synchronously while
@@ -290,6 +304,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
290
304
  * the default verify-on-create behavior without opt-in.
291
305
  */
292
306
  skipConnectionCheckOnCreate;
307
+ /**
308
+ * 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
309
+ * read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
310
+ * recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
311
+ * driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
312
+ * 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
313
+ */
314
+ surveyProbes;
293
315
  constructor(config) {
294
316
  this.slug = config.slug;
295
317
  this.authType = config.authType;
@@ -307,7 +329,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
307
329
  this.query = config.query;
308
330
  this.checkConnection = config.checkConnection;
309
331
  this.setup = config.setup;
332
+ this.introspect = config.introspect;
310
333
  this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
334
+ this.surveyProbes = config.surveyProbes;
311
335
  }
312
336
  get connectorKey() {
313
337
  return _ConnectorPlugin.deriveKey(this.slug, this.authType);
@@ -345,25 +369,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
345
369
  if (authType) return `${slug}-${authType}`;
346
370
  const LEGACY_NULL_AUTH_TYPE_MAP = {
347
371
  // user-password
348
- "postgresql": "user-password",
349
- "mysql": "user-password",
350
- "clickhouse": "user-password",
351
- "kintone": "user-password",
372
+ postgresql: "user-password",
373
+ mysql: "user-password",
374
+ clickhouse: "user-password",
375
+ kintone: "user-password",
352
376
  "squadbase-db": "user-password",
353
377
  // service-account
354
- "snowflake": "service-account",
355
- "bigquery": "service-account",
378
+ snowflake: "service-account",
379
+ bigquery: "service-account",
356
380
  "google-analytics": "service-account",
357
381
  "google-calendar": "service-account",
358
382
  "aws-athena": "service-account",
359
- "redshift": "service-account",
383
+ redshift: "service-account",
360
384
  // api-key
361
- "databricks": "api-key",
362
- "dbt": "api-key",
363
- "airtable": "api-key",
364
- "openai": "api-key",
365
- "gemini": "api-key",
366
- "anthropic": "api-key",
385
+ databricks: "api-key",
386
+ dbt: "api-key",
387
+ airtable: "api-key",
388
+ openai: "api-key",
389
+ gemini: "api-key",
390
+ anthropic: "api-key",
367
391
  "wix-store": "api-key"
368
392
  };
369
393
  const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];