@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.
Files changed (78) hide show
  1. package/dist/cli/index.js +4786 -3023
  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 +275 -15
  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 +39 -15
  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 +39 -15
  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.js +32 -13
  36. package/dist/connectors/hubspot-oauth.js +32 -13
  37. package/dist/connectors/hubspot.js +39 -15
  38. package/dist/connectors/influxdb.js +39 -15
  39. package/dist/connectors/intercom-oauth.js +32 -13
  40. package/dist/connectors/intercom.js +39 -15
  41. package/dist/connectors/jdbc.js +39 -15
  42. package/dist/connectors/jira-api-key.js +39 -15
  43. package/dist/connectors/kintone-api-token.js +39 -15
  44. package/dist/connectors/kintone.js +128 -15
  45. package/dist/connectors/linear.js +39 -15
  46. package/dist/connectors/linkedin-ads.js +39 -15
  47. package/dist/connectors/mailchimp-oauth.js +39 -15
  48. package/dist/connectors/mailchimp.js +39 -15
  49. package/dist/connectors/meta-ads-oauth.js +39 -15
  50. package/dist/connectors/meta-ads.js +39 -15
  51. package/dist/connectors/mixpanel.js +39 -15
  52. package/dist/connectors/monday.js +39 -15
  53. package/dist/connectors/mongodb.js +39 -15
  54. package/dist/connectors/notion-oauth.js +32 -13
  55. package/dist/connectors/notion.js +84 -15
  56. package/dist/connectors/openai.js +39 -15
  57. package/dist/connectors/oracle.js +277 -15
  58. package/dist/connectors/outlook-oauth.js +32 -13
  59. package/dist/connectors/powerbi-oauth.js +32 -13
  60. package/dist/connectors/salesforce.js +108 -15
  61. package/dist/connectors/semrush.js +39 -15
  62. package/dist/connectors/sentry.js +39 -15
  63. package/dist/connectors/shopify-oauth.js +32 -13
  64. package/dist/connectors/shopify.js +39 -15
  65. package/dist/connectors/sqlserver.js +275 -15
  66. package/dist/connectors/stripe-api-key.js +39 -15
  67. package/dist/connectors/stripe-oauth.js +32 -13
  68. package/dist/connectors/supabase.js +284 -15
  69. package/dist/connectors/tableau.js +39 -15
  70. package/dist/connectors/tiktok-ads.js +39 -15
  71. package/dist/connectors/wix-store.js +39 -15
  72. package/dist/connectors/x.js +39 -15
  73. package/dist/connectors/zendesk-oauth.js +32 -13
  74. package/dist/connectors/zendesk.js +39 -15
  75. package/dist/index.js +4832 -3034
  76. package/dist/main.js +4832 -3034
  77. package/dist/vite-plugin.js +4786 -3023
  78. package/package.json +4 -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
@@ -211,6 +216,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
211
216
  * `runSetupFlow` from `setup-flow.ts`.
212
217
  */
213
218
  setup;
219
+ /**
220
+ * 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
221
+ * メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
222
+ * {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
223
+ * 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
224
+ * `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
225
+ * coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
226
+ */
227
+ introspect;
214
228
  /**
215
229
  * Opt-out of the default "verify before save" behavior on connection
216
230
  * creation. The backend invokes `checkConnection` synchronously while
@@ -225,6 +239,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
225
239
  * the default verify-on-create behavior without opt-in.
226
240
  */
227
241
  skipConnectionCheckOnCreate;
242
+ /**
243
+ * 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
244
+ * read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
245
+ * recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
246
+ * driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
247
+ * 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
248
+ */
249
+ surveyProbes;
228
250
  constructor(config) {
229
251
  this.slug = config.slug;
230
252
  this.authType = config.authType;
@@ -242,7 +264,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
242
264
  this.query = config.query;
243
265
  this.checkConnection = config.checkConnection;
244
266
  this.setup = config.setup;
267
+ this.introspect = config.introspect;
245
268
  this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
269
+ this.surveyProbes = config.surveyProbes;
246
270
  }
247
271
  get connectorKey() {
248
272
  return _ConnectorPlugin.deriveKey(this.slug, this.authType);
@@ -280,25 +304,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
280
304
  if (authType) return `${slug}-${authType}`;
281
305
  const LEGACY_NULL_AUTH_TYPE_MAP = {
282
306
  // user-password
283
- "postgresql": "user-password",
284
- "mysql": "user-password",
285
- "clickhouse": "user-password",
286
- "kintone": "user-password",
307
+ postgresql: "user-password",
308
+ mysql: "user-password",
309
+ clickhouse: "user-password",
310
+ kintone: "user-password",
287
311
  "squadbase-db": "user-password",
288
312
  // service-account
289
- "snowflake": "service-account",
290
- "bigquery": "service-account",
313
+ snowflake: "service-account",
314
+ bigquery: "service-account",
291
315
  "google-analytics": "service-account",
292
316
  "google-calendar": "service-account",
293
317
  "aws-athena": "service-account",
294
- "redshift": "service-account",
318
+ redshift: "service-account",
295
319
  // 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",
320
+ databricks: "api-key",
321
+ dbt: "api-key",
322
+ airtable: "api-key",
323
+ openai: "api-key",
324
+ gemini: "api-key",
325
+ anthropic: "api-key",
302
326
  "wix-store": "api-key"
303
327
  };
304
328
  const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];
@@ -73,6 +73,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
73
73
  * `runSetupFlow` from `setup-flow.ts`.
74
74
  */
75
75
  setup;
76
+ /**
77
+ * 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
78
+ * メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
79
+ * {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
80
+ * 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
81
+ * `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
82
+ * coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
83
+ */
84
+ introspect;
76
85
  /**
77
86
  * Opt-out of the default "verify before save" behavior on connection
78
87
  * creation. The backend invokes `checkConnection` synchronously while
@@ -87,6 +96,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
87
96
  * the default verify-on-create behavior without opt-in.
88
97
  */
89
98
  skipConnectionCheckOnCreate;
99
+ /**
100
+ * 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
101
+ * read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
102
+ * recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
103
+ * driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
104
+ * 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
105
+ */
106
+ surveyProbes;
90
107
  constructor(config) {
91
108
  this.slug = config.slug;
92
109
  this.authType = config.authType;
@@ -104,7 +121,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
104
121
  this.query = config.query;
105
122
  this.checkConnection = config.checkConnection;
106
123
  this.setup = config.setup;
124
+ this.introspect = config.introspect;
107
125
  this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
126
+ this.surveyProbes = config.surveyProbes;
108
127
  }
109
128
  get connectorKey() {
110
129
  return _ConnectorPlugin.deriveKey(this.slug, this.authType);
@@ -142,25 +161,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
142
161
  if (authType) return `${slug}-${authType}`;
143
162
  const LEGACY_NULL_AUTH_TYPE_MAP = {
144
163
  // user-password
145
- "postgresql": "user-password",
146
- "mysql": "user-password",
147
- "clickhouse": "user-password",
148
- "kintone": "user-password",
164
+ postgresql: "user-password",
165
+ mysql: "user-password",
166
+ clickhouse: "user-password",
167
+ kintone: "user-password",
149
168
  "squadbase-db": "user-password",
150
169
  // service-account
151
- "snowflake": "service-account",
152
- "bigquery": "service-account",
170
+ snowflake: "service-account",
171
+ bigquery: "service-account",
153
172
  "google-analytics": "service-account",
154
173
  "google-calendar": "service-account",
155
174
  "aws-athena": "service-account",
156
- "redshift": "service-account",
175
+ redshift: "service-account",
157
176
  // api-key
158
- "databricks": "api-key",
159
- "dbt": "api-key",
160
- "airtable": "api-key",
161
- "openai": "api-key",
162
- "gemini": "api-key",
163
- "anthropic": "api-key",
177
+ databricks: "api-key",
178
+ dbt: "api-key",
179
+ airtable: "api-key",
180
+ openai: "api-key",
181
+ gemini: "api-key",
182
+ anthropic: "api-key",
164
183
  "wix-store": "api-key"
165
184
  };
166
185
  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
@@ -262,6 +267,15 @@ var ConnectorPlugin = class _ConnectorPlugin {
262
267
  * `runSetupFlow` from `setup-flow.ts`.
263
268
  */
264
269
  setup;
270
+ /**
271
+ * 統一 introspection。SQL DB の `information_schema` / `SHOW` / `DESCRIBE` や SaaS の
272
+ * メタデータ API といった取得経路の差を吸収し、tables / columns / PK / FK を共通型
273
+ * {@link IntrospectedSchema} へ正規化して返す。取得経路は {@link IntrospectContext} で
274
+ * 抽象化され、SQL DB は `ctx.query`、SaaS は `ctx.proxyFetch` + `ctx.params` を使う。
275
+ * `ctx.profile === true` のときは L2 プロファイル(行数・NULL 率等)も best-effort で埋める。
276
+ * coding-agent の `DataContextIndex` がデータ地図を構築する際に使う。
277
+ */
278
+ introspect;
265
279
  /**
266
280
  * Opt-out of the default "verify before save" behavior on connection
267
281
  * creation. The backend invokes `checkConnection` synchronously while
@@ -276,6 +290,14 @@ var ConnectorPlugin = class _ConnectorPlugin {
276
290
  * the default verify-on-create behavior without opt-in.
277
291
  */
278
292
  skipConnectionCheckOnCreate;
293
+ /**
294
+ * 決定論的な「立ち上げ survey」レシピ(ルールベース prewarm 基盤)。実装した connector は、LLM を使わずに
295
+ * read-only で自分を survey する probe 列(テーブル/列メタデータ → 小サンプル)を宣言する。coding-agent の
296
+ * recon driver がこれを読み、connector ツールの `execute` を直接呼んで結果を seed にする。未実装の connector は
297
+ * driver 側で safely skip される(その connection は listConnections のみ seed)。標準 `information_schema` を
298
+ * 持つ SQL connector は `makeStandardSqlSurveyProbes` を使える。**probe は必ず read-only**。
299
+ */
300
+ surveyProbes;
279
301
  constructor(config) {
280
302
  this.slug = config.slug;
281
303
  this.authType = config.authType;
@@ -293,7 +315,9 @@ var ConnectorPlugin = class _ConnectorPlugin {
293
315
  this.query = config.query;
294
316
  this.checkConnection = config.checkConnection;
295
317
  this.setup = config.setup;
318
+ this.introspect = config.introspect;
296
319
  this.skipConnectionCheckOnCreate = config.skipConnectionCheckOnCreate;
320
+ this.surveyProbes = config.surveyProbes;
297
321
  }
298
322
  get connectorKey() {
299
323
  return _ConnectorPlugin.deriveKey(this.slug, this.authType);
@@ -331,25 +355,25 @@ var ConnectorPlugin = class _ConnectorPlugin {
331
355
  if (authType) return `${slug}-${authType}`;
332
356
  const LEGACY_NULL_AUTH_TYPE_MAP = {
333
357
  // user-password
334
- "postgresql": "user-password",
335
- "mysql": "user-password",
336
- "clickhouse": "user-password",
337
- "kintone": "user-password",
358
+ postgresql: "user-password",
359
+ mysql: "user-password",
360
+ clickhouse: "user-password",
361
+ kintone: "user-password",
338
362
  "squadbase-db": "user-password",
339
363
  // service-account
340
- "snowflake": "service-account",
341
- "bigquery": "service-account",
364
+ snowflake: "service-account",
365
+ bigquery: "service-account",
342
366
  "google-analytics": "service-account",
343
367
  "google-calendar": "service-account",
344
368
  "aws-athena": "service-account",
345
- "redshift": "service-account",
369
+ redshift: "service-account",
346
370
  // api-key
347
- "databricks": "api-key",
348
- "dbt": "api-key",
349
- "airtable": "api-key",
350
- "openai": "api-key",
351
- "gemini": "api-key",
352
- "anthropic": "api-key",
371
+ databricks: "api-key",
372
+ dbt: "api-key",
373
+ airtable: "api-key",
374
+ openai: "api-key",
375
+ gemini: "api-key",
376
+ anthropic: "api-key",
353
377
  "wix-store": "api-key"
354
378
  };
355
379
  const fallbackAuthType = LEGACY_NULL_AUTH_TYPE_MAP[slug];