@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
@@ -232,6 +237,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
232
237
  * `runSetupFlow` from `setup-flow.ts`.
233
238
  */
234
239
  setup;
240
+ /**
241
+ * 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
242
+ * メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
243
+ * {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
244
+ * 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
245
+ * `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
246
+ * coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
247
+ */
248
+ introspect;
235
249
  /**
236
250
  * Opt-out of the default "verify before save" behavior on connection
237
251
  * creation. The backend invokes `checkConnection` synchronously while
@@ -246,6 +260,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
246
260
  * the default verify-on-create behavior without opt-in.
247
261
  */
248
262
  skipConnectionCheckOnCreate;
263
+ /**
264
+ * 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
265
+ * read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
266
+ * recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
267
+ * driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
268
+ * 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
269
+ */
270
+ surveyProbes;
249
271
  constructor(config) {
250
272
  this.slug = config.slug;
251
273
  this.authType = config.authType;
@@ -263,7 +285,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
263
285
  this.query = config.query;
264
286
  this.checkConnection = config.checkConnection;
265
287
  this.setup = config.setup;
288
+ this.introspect = config.introspect;
266
289
  this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
290
+ this.surveyProbes = config.surveyProbes;
267
291
  }
268
292
  get connectorKey() {
269
293
  return _ConnectorPlugin.deriveKey(this.slug, this.authType);
@@ -301,25 +325,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
301
325
  if (authType) return `${slug}-${authType}`;
302
326
  const LEGACY_NULL_AUTH_TYPE_MAP = {
303
327
  // user-password
304
- "postgresql": "user-password",
305
- "mysql": "user-password",
306
- "clickhouse": "user-password",
307
- "kintone": "user-password",
328
+ postgresql: "user-password",
329
+ mysql: "user-password",
330
+ clickhouse: "user-password",
331
+ kintone: "user-password",
308
332
  "squadbase-db": "user-password",
309
333
  // service-account
310
- "snowflake": "service-account",
311
- "bigquery": "service-account",
334
+ snowflake: "service-account",
335
+ bigquery: "service-account",
312
336
  "google-analytics": "service-account",
313
337
  "google-calendar": "service-account",
314
338
  "aws-athena": "service-account",
315
- "redshift": "service-account",
339
+ redshift: "service-account",
316
340
  // api-key
317
- "databricks": "api-key",
318
- "dbt": "api-key",
319
- "airtable": "api-key",
320
- "openai": "api-key",
321
- "gemini": "api-key",
322
- "anthropic": "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",
323
347
  "wix-store": "api-key"
324
348
  };
325
349
  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
@@ -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
- "postgresql": "user-password",
178
- "mysql": "user-password",
179
- "clickhouse": "user-password",
180
- "kintone": "user-password",
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
- "snowflake": "service-account",
184
- "bigquery": "service-account",
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
- "redshift": "service-account",
212
+ redshift: "service-account",
189
213
  // api-key
190
- "databricks": "api-key",
191
- "dbt": "api-key",
192
- "airtable": "api-key",
193
- "openai": "api-key",
194
- "gemini": "api-key",
195
- "anthropic": "api-key",
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
- 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
@@ -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
- "postgresql": "user-password",
438
- "mysql": "user-password",
439
- "clickhouse": "user-password",
440
- "kintone": "user-password",
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
- "snowflake": "service-account",
444
- "bigquery": "service-account",
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
- "redshift": "service-account",
472
+ redshift: "service-account",
449
473
  // api-key
450
- "databricks": "api-key",
451
- "dbt": "api-key",
452
- "airtable": "api-key",
453
- "openai": "api-key",
454
- "gemini": "api-key",
455
- "anthropic": "api-key",
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
- "postgresql": "user-password",
246
- "mysql": "user-password",
247
- "clickhouse": "user-password",
248
- "kintone": "user-password",
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
- "snowflake": "service-account",
252
- "bigquery": "service-account",
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
- "redshift": "service-account",
275
+ redshift: "service-account",
257
276
  // api-key
258
- "databricks": "api-key",
259
- "dbt": "api-key",
260
- "airtable": "api-key",
261
- "openai": "api-key",
262
- "gemini": "api-key",
263
- "anthropic": "api-key",
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];
@@ -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
@@ -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
- "postgresql": "user-password",
260
- "mysql": "user-password",
261
- "clickhouse": "user-password",
262
- "kintone": "user-password",
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
- "snowflake": "service-account",
266
- "bigquery": "service-account",
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
- "redshift": "service-account",
294
+ redshift: "service-account",
271
295
  // api-key
272
- "databricks": "api-key",
273
- "dbt": "api-key",
274
- "airtable": "api-key",
275
- "openai": "api-key",
276
- "gemini": "api-key",
277
- "anthropic": "api-key",
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
- 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
@@ -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
- "postgresql": "user-password",
308
- "mysql": "user-password",
309
- "clickhouse": "user-password",
310
- "kintone": "user-password",
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
- "snowflake": "service-account",
314
- "bigquery": "service-account",
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
- "redshift": "service-account",
342
+ redshift: "service-account",
319
343
  // api-key
320
- "databricks": "api-key",
321
- "dbt": "api-key",
322
- "airtable": "api-key",
323
- "openai": "api-key",
324
- "gemini": "api-key",
325
- "anthropic": "api-key",
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
- 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
@@ -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
- "postgresql": "user-password",
289
- "mysql": "user-password",
290
- "clickhouse": "user-password",
291
- "kintone": "user-password",
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
- "snowflake": "service-account",
295
- "bigquery": "service-account",
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
- "redshift": "service-account",
323
+ redshift: "service-account",
300
324
  // api-key
301
- "databricks": "api-key",
302
- "dbt": "api-key",
303
- "airtable": "api-key",
304
- "openai": "api-key",
305
- "gemini": "api-key",
306
- "anthropic": "api-key",
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];
@@ -1065,7 +1089,7 @@ var googleAnalyticsOauthConnector = new ConnectorPlugin({
1065
1089
  description: "Connect to Google Analytics for web analytics and reporting using OAuth.",
1066
1090
  iconUrl: "https://images.ctfassets.net/9ncizv60xc5y/7fs0ipzxuD9mACDzBATtxX/3c53ed90d15c96483e4f78cb29dab5e9/google-analytics.svg",
1067
1091
  parameters,
1068
- releaseFlag: { dev1: true, dev2: false, prod: false },
1092
+ releaseFlag: { dev1: true, dev2: true, prod: true },
1069
1093
  categories: ["marketing"],
1070
1094
  onboarding: googleAnalyticsOauthOnboarding,
1071
1095
  proxyPolicy: {