@adep/runtime 0.3.9 → 0.3.10

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/index.js CHANGED
@@ -1314,9 +1314,20 @@ var StorageError = class extends Error {
1314
1314
  var STORAGE_CODES = {
1315
1315
  invalidPath: "STORAGE_INVALID_PATH",
1316
1316
  invalidData: "STORAGE_INVALID_DATA",
1317
+ invalidVisibility: "STORAGE_INVALID_VISIBILITY",
1318
+ invalidSignedUrlTtl: "STORAGE_SIGNED_URL_TTL_INVALID",
1319
+ signedUrlTtlExceeded: "STORAGE_SIGNED_URL_TTL_EXCEEDED",
1317
1320
  notFound: "STORAGE_NOT_FOUND",
1318
1321
  quotaExceeded: "STORAGE_QUOTA_EXCEEDED"
1319
1322
  };
1323
+ function assertFileVisibility(value) {
1324
+ if (value === "public" || value === "private") return value;
1325
+ throw new StorageError(
1326
+ 400,
1327
+ STORAGE_CODES.invalidVisibility,
1328
+ `\u975E\u6CD5\u7684\u6587\u4EF6\u53EF\u89C1\u6027 ${JSON.stringify(value)}\uFF08\u53EA\u652F\u6301 'public' / 'private'\uFF09`
1329
+ );
1330
+ }
1320
1331
  function assertSafeStoragePath(path) {
1321
1332
  if (typeof path !== "string" || path.length === 0) {
1322
1333
  throw new StorageError(400, STORAGE_CODES.invalidPath, "\u5B58\u50A8\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A");
@@ -1532,17 +1543,46 @@ function constantTimeEqual(a, b) {
1532
1543
 
1533
1544
  // packages/runtime/src/storage/signature.ts
1534
1545
  var DEFAULT_SIGN_TTL_SECONDS = 15 * 60;
1546
+ var MAX_SIGNED_URL_TTL_SECONDS = 7 * 24 * 60 * 60;
1535
1547
  var SIGN_EXPIRES_KEY = "x-expires";
1536
1548
  var SIGN_SIGNATURE_KEY = "x-signature";
1549
+ function resolveSignedUrlTtl(ttlSeconds, options) {
1550
+ if (ttlSeconds === void 0) return DEFAULT_SIGN_TTL_SECONDS;
1551
+ if (!Number.isInteger(ttlSeconds) || ttlSeconds <= 0) {
1552
+ throw new StorageError(
1553
+ 400,
1554
+ STORAGE_CODES.invalidSignedUrlTtl,
1555
+ `\u7B7E\u540D\u6709\u6548\u671F\u5FC5\u987B\u662F\u6B63\u6574\u6570\u79D2\uFF08\u6536\u5230 ${ttlSeconds}\uFF09`
1556
+ );
1557
+ }
1558
+ if (ttlSeconds > MAX_SIGNED_URL_TTL_SECONDS && options?.force !== true) {
1559
+ throw new StorageError(
1560
+ 400,
1561
+ STORAGE_CODES.signedUrlTtlExceeded,
1562
+ `\u7B7E\u540D URL \u6709\u6548\u671F\u6700\u957F ${MAX_SIGNED_URL_TTL_SECONDS / 86400} \u5929\uFF08\u6536\u5230 ${ttlSeconds} \u79D2\uFF09\u3002\u9700\u8981\u957F\u671F\u7A33\u5B9A\u7684\u94FE\u63A5\u8BF7\u628A\u6587\u4EF6\u4E0A\u4F20\u4E3A visibility: 'public' \u5E76\u7528 getUrl() \u53D6\u76F4\u94FE\uFF1B\u786E\u9700\u8D85\u957F\u79C1\u6709\u94FE\u63A5\u8BF7\u663E\u5F0F\u4F20 { force: true }\uFF08\u8FC7\u671F\u524D\u94FE\u63A5\u6CC4\u6F0F\u5373\u957F\u671F\u53EF\u8BFB\uFF09\u3002`
1563
+ );
1564
+ }
1565
+ return ttlSeconds;
1566
+ }
1537
1567
  function sign(secret, projectId, path, expires) {
1538
1568
  const payload = `${projectId}|${path}|${expires}`;
1539
1569
  return hmacSha256Hex(secret, payload);
1540
1570
  }
1541
- function signDownloadUrl(config, projectId, path, ttlSeconds = DEFAULT_SIGN_TTL_SECONDS) {
1542
- const expires = Math.floor(Date.now() / 1e3) + ttlSeconds;
1543
- const base = `${config.baseUrl}/api/v1/projects/${encodeURIComponent(projectId)}/files/${encodeURIComponent(path)}`;
1571
+ function publicDownloadUrl(config, projectId, path) {
1572
+ return `${config.baseUrl}/api/v1/projects/${encodeURIComponent(projectId)}/files/${encodeURIComponent(path)}`;
1573
+ }
1574
+ function signDownloadUrlWithExpiry(config, projectId, path, ttlSeconds = DEFAULT_SIGN_TTL_SECONDS, options) {
1575
+ const ttl = resolveSignedUrlTtl(ttlSeconds, options);
1576
+ const expires = Math.floor(Date.now() / 1e3) + ttl;
1577
+ const base = publicDownloadUrl(config, projectId, path);
1544
1578
  const signature = sign(config.secret, projectId, path, expires);
1545
- return `${base}?${SIGN_EXPIRES_KEY}=${expires}&${SIGN_SIGNATURE_KEY}=${signature}`;
1579
+ return {
1580
+ url: `${base}?${SIGN_EXPIRES_KEY}=${expires}&${SIGN_SIGNATURE_KEY}=${signature}`,
1581
+ expires
1582
+ };
1583
+ }
1584
+ function signDownloadUrl(config, projectId, path, ttlSeconds = DEFAULT_SIGN_TTL_SECONDS, options) {
1585
+ return signDownloadUrlWithExpiry(config, projectId, path, ttlSeconds, options).url;
1546
1586
  }
1547
1587
  function verifyDownloadSignature(config, projectId, path, query, nowSeconds2 = Math.floor(Date.now() / 1e3)) {
1548
1588
  const expiresRaw = query.expires;
@@ -1607,9 +1647,10 @@ function createStorageCapability(driver, signer, projectId) {
1607
1647
  switch (method) {
1608
1648
  case "upload": {
1609
1649
  const [path, data, options] = args;
1650
+ const visibility = assertFileVisibility(options?.visibility ?? DEFAULT_VISIBILITY);
1610
1651
  return toStoredFile(
1611
1652
  await driver.put(projectId, path, asBytes(data), {
1612
- visibility: DEFAULT_VISIBILITY,
1653
+ visibility,
1613
1654
  ...options?.contentType === void 0 ? {} : { contentType: options.contentType }
1614
1655
  })
1615
1656
  );
@@ -1627,9 +1668,26 @@ function createStorageCapability(driver, signer, projectId) {
1627
1668
  const [prefix] = args;
1628
1669
  return (await driver.list(projectId, prefix)).map(toStoredFile);
1629
1670
  }
1671
+ case "getUrl": {
1672
+ const [path] = args;
1673
+ const meta = await driver.getMeta(projectId, path);
1674
+ if (meta.visibility === "public") {
1675
+ const result2 = {
1676
+ url: publicDownloadUrl(signer, projectId, path),
1677
+ expiresAt: null
1678
+ };
1679
+ return result2;
1680
+ }
1681
+ const signed = signDownloadUrlWithExpiry(signer, projectId, path);
1682
+ const result = {
1683
+ url: signed.url,
1684
+ expiresAt: new Date(signed.expires * 1e3).toISOString()
1685
+ };
1686
+ return result;
1687
+ }
1630
1688
  case "getSignedUrl": {
1631
- const [path, ttlSeconds] = args;
1632
- return signDownloadUrl(signer, projectId, path, ttlSeconds);
1689
+ const [path, ttlSeconds, options] = args;
1690
+ return signDownloadUrl(signer, projectId, path, ttlSeconds, options);
1633
1691
  }
1634
1692
  default:
1635
1693
  throw new StorageError(
@@ -4,17 +4,38 @@ export interface SchemaColumn {
4
4
  /** 规范化的类型文本(可能为空:SQLite 允许无类型列)。 */
5
5
  type: string;
6
6
  notNull: boolean;
7
+ /**
8
+ * 显式声明了 `NULL`(且不是 `NOT NULL`)。
9
+ *
10
+ * 与 `notNull === false` 不同:没写可空性只是「schema 不完整」,不能据此断言线上更严格
11
+ * (DB-025 的反向可空性只对显式 `NULL` 报 warn)。
12
+ */
13
+ explicitNullable: boolean;
7
14
  /** DEFAULT 后的原始表达式;无默认值为 null。 */
8
15
  defaultValue: string | null;
9
16
  primaryKey: boolean;
17
+ /** 列级 `UNIQUE`(表级 `UNIQUE(...)` 见 `SchemaTable.uniqueConstraints`)。 */
18
+ unique: boolean;
10
19
  }
11
20
  /** schema.sql 解析出的单表定义。 */
12
21
  export interface SchemaTable {
13
22
  name: string;
14
23
  columns: SchemaColumn[];
24
+ /** 表级 `UNIQUE(...)` 约束的列组(列级 UNIQUE 在 `columns[].unique`)。 */
25
+ uniqueConstraints: string[][];
15
26
  /** 原始 `CREATE TABLE` 语句(缺失表时整条执行,保留索引/约束)。 */
16
27
  statement: string;
17
28
  }
29
+ /** schema.sql 里的 `CREATE [UNIQUE] INDEX` 声明(DB-025)。 */
30
+ export interface SchemaIndex {
31
+ name: string;
32
+ table: string;
33
+ /** 索引列(按声明顺序;表达式索引解析不出普通列时为空数组)。 */
34
+ columns: string[];
35
+ unique: boolean;
36
+ /** 原始语句(计划展示与 `dataStatements` 去重)。 */
37
+ statement: string;
38
+ }
18
39
  /** 缺列执行计划。 */
19
40
  export interface MissingColumnPlan {
20
41
  table: string;
@@ -28,5 +49,13 @@ export interface MissingColumnPlan {
28
49
  export declare function quoteIdent(name: string): string;
29
50
  /** 解析 schema.sql 里的所有 `CREATE TABLE`(其它语句忽略,仍由 apply 阶段原样执行)。 */
30
51
  export declare function parseSchemaTables(sql: string): SchemaTable[];
52
+ /** 解析 schema.sql 里的 `CREATE [UNIQUE] INDEX`(表达式索引返回空 columns,由消费方跳过)。 */
53
+ export declare function parseSchemaIndexes(sql: string): SchemaIndex[];
54
+ /**
55
+ * 从一段索引 DDL(PG `pg_indexes.indexdef` / `pg_get_indexdef`)提取列名。
56
+ *
57
+ * 与 schema.sql 共用同一套列条目解析;表达式索引返回 null(调用方按「列未知」处理)。
58
+ */
59
+ export declare function parseIndexDdlColumns(ddl: string): string[] | null;
31
60
  /** 生成缺列计划;不可自动执行的列标 `blocked`。 */
32
61
  export declare function planMissingColumn(table: string, column: SchemaColumn): MissingColumnPlan;
@@ -67,6 +67,16 @@ function unquoteIdent(raw) {
67
67
  }
68
68
  return text;
69
69
  }
70
+ function parsePlainIdent(raw) {
71
+ const text = raw.trim();
72
+ if (text.length === 0) return null;
73
+ const first = text[0];
74
+ if (first === '"' || first === "`" || first === "[" || first === "'") {
75
+ const unquoted = unquoteIdent(text);
76
+ return unquoted === text.trim() ? null : unquoted;
77
+ }
78
+ return /^[A-Za-z_][A-Za-z0-9_$]*$/.test(text) ? text : null;
79
+ }
70
80
  function splitTopLevel(body) {
71
81
  const parts = [];
72
82
  let depth = 0;
@@ -160,19 +170,47 @@ function parseColumn(part) {
160
170
  }
161
171
  const type = rest.slice(0, typeEnd).trim();
162
172
  rest = rest.slice(typeEnd).trim();
163
- const notNull = /\bNOT\s+NULL\b/i.test(rest);
164
- const primaryKey = /\bPRIMARY\s+KEY\b/i.test(rest);
165
173
  const defaultMatch = /\bDEFAULT\s+(.+?)(?=\s+(?:NOT|PRIMARY|UNIQUE|CHECK|REFERENCES|COLLATE|GENERATED|AS|AUTOINCREMENT|CONSTRAINT)\b|$)/i.exec(
166
174
  rest
167
175
  );
176
+ const constraintText = defaultMatch === null ? rest : rest.replace(defaultMatch[0], " ");
177
+ const declarationText = stripNonNullabilityClauses(constraintText);
178
+ const notNull = /\bNOT\s+NULL\b/i.test(declarationText);
179
+ const explicitNullable = !notNull && /\bNULL\b/i.test(declarationText);
180
+ const primaryKey = /\bPRIMARY\s+KEY\b/i.test(declarationText);
181
+ const unique = /\bUNIQUE\b/i.test(declarationText);
168
182
  return {
169
183
  name,
170
184
  type,
171
185
  notNull,
186
+ explicitNullable,
172
187
  primaryKey,
188
+ unique,
173
189
  defaultValue: defaultMatch === null ? null : defaultMatch[1].trim()
174
190
  };
175
191
  }
192
+ function stripNonNullabilityClauses(text) {
193
+ return text.replace(
194
+ /\bREFERENCES\s+\S+(?:\s*\([^)]*\))?(?:\s+ON\s+(?:DELETE|UPDATE)\s+(?:CASCADE|RESTRICT|SET\s+NULL|SET\s+DEFAULT|NO\s+ACTION))*/gi,
195
+ " "
196
+ ).replace(/\bCHECK\s*\([^)]*\)/gi, " ").replace(/\bGENERATED\s+ALWAYS\s+AS\s*\([^)]*\)(?:\s+STORED|\s+VIRTUAL)?/gi, " ");
197
+ }
198
+ function parseTableUnique(part) {
199
+ const trimmed = part.trim();
200
+ const match = /^(?:CONSTRAINT\s+(?:"(?:[^"]|"")*"|`(?:[^`]|``)*`|\[[^\]]*\]|[A-Za-z_][A-Za-z0-9_$]*)\s+)?UNIQUE\s*\(/i.exec(
201
+ trimmed
202
+ );
203
+ if (match === null) return null;
204
+ const body = findTableBody(trimmed, match[0].lastIndexOf("("));
205
+ if (body === null) return null;
206
+ const columns = [];
207
+ for (const entry of splitTopLevel(body)) {
208
+ const column = parsePlainIdent(entry);
209
+ if (column === null) return null;
210
+ columns.push(column);
211
+ }
212
+ return columns.length === 0 ? null : columns;
213
+ }
176
214
  function parseSchemaTables(sql) {
177
215
  const tables = [];
178
216
  const pattern = /CREATE\s+(?:TEMP|TEMPORARY\s+)?TABLE\s+(?:IF\s+NOT\s+EXISTS\s+)?("(?:[^"]|"")*"|`(?:[^`]|``)*`|\[[^\]]*\]|'[^']*'|[A-Za-z_][A-Za-z0-9_$.]*)\s*\(/gi;
@@ -186,14 +224,71 @@ function parseSchemaTables(sql) {
186
224
  const rawName = match[1];
187
225
  const name = unquoteIdent(rawName.split(".").pop() ?? rawName);
188
226
  const columns = [];
227
+ const uniqueConstraints = [];
189
228
  for (const part of splitTopLevel(body)) {
229
+ const unique = parseTableUnique(part);
230
+ if (unique !== null) uniqueConstraints.push(unique);
190
231
  const column = parseColumn(part);
191
232
  if (column !== null) columns.push(column);
192
233
  }
193
- tables.push({ name, columns, statement: statement.trim() });
234
+ tables.push({ name, columns, uniqueConstraints, statement: statement.trim() });
194
235
  }
195
236
  return tables;
196
237
  }
238
+ var CREATE_INDEX_PATTERN = /^\s*CREATE\s+(UNIQUE\s+)?INDEX\s+(?:IF\s+NOT\s+EXISTS\s+)?(?:(?:"(?:[^"]|"")*"|`(?:[^`]|``)*`|\[[^\]]*\]|[A-Za-z_][A-Za-z0-9_$]*)\s*\.\s*)?("(?:[^"]|"")*"|`(?:[^`]|``)*`|\[[^\]]*\]|[A-Za-z_][A-Za-z0-9_$]*)\s+ON\s+(?:(?:"(?:[^"]|"")*"|`(?:[^`]|``)*`|\[[^\]]*\]|[A-Za-z_][A-Za-z0-9_$]*)\s*\.\s*)?("(?:[^"]|"")*"|`(?:[^`]|``)*`|\[[^\]]*\]|[A-Za-z_][A-Za-z0-9_$]*)\s*(?:USING\s+[A-Za-z_][A-Za-z0-9_]*\s*)?\(/i;
239
+ function parseIndexColumn(raw) {
240
+ let text = raw.trim();
241
+ text = text.replace(/\s+NULLS\s+(?:FIRST|LAST)\s*$/i, "");
242
+ text = text.replace(/\s+(?:ASC|DESC)\s*$/i, "");
243
+ text = text.replace(
244
+ /\s+COLLATE\s+(?:"(?:[^"]|"")*"|`(?:[^`]|``)*`|\[[^\]]*\]|[A-Za-z_][A-Za-z0-9_$]*)\s*$/i,
245
+ ""
246
+ );
247
+ return parsePlainIdent(text);
248
+ }
249
+ function parseSchemaIndexes(sql) {
250
+ const indexes = [];
251
+ for (const statement of splitSqlStatements(sql)) {
252
+ const match = CREATE_INDEX_PATTERN.exec(statement);
253
+ if (match === null) continue;
254
+ const openIndex = match.index + match[0].length - 1;
255
+ const body = findTableBody(statement, openIndex);
256
+ if (body === null) continue;
257
+ const columns = [];
258
+ let expression = false;
259
+ for (const part of splitTopLevel(body)) {
260
+ const column = parseIndexColumn(part);
261
+ if (column === null) {
262
+ expression = true;
263
+ break;
264
+ }
265
+ columns.push(column);
266
+ }
267
+ indexes.push({
268
+ name: unquoteIdent(match[2]),
269
+ table: unquoteIdent(match[3].split(".").pop() ?? match[3]),
270
+ columns: expression ? [] : columns,
271
+ unique: match[1] !== void 0,
272
+ statement: statement.trim()
273
+ });
274
+ }
275
+ return indexes;
276
+ }
277
+ function parseIndexDdlColumns(ddl) {
278
+ const onMatch = /\s+ON\s+/i.exec(ddl);
279
+ if (onMatch === null) return null;
280
+ const openIndex = ddl.indexOf("(", onMatch.index + onMatch[0].length);
281
+ if (openIndex < 0) return null;
282
+ const body = findTableBody(ddl, openIndex);
283
+ if (body === null) return null;
284
+ const columns = [];
285
+ for (const part of splitTopLevel(body)) {
286
+ const column = parseIndexColumn(part);
287
+ if (column === null) return null;
288
+ columns.push(column);
289
+ }
290
+ return columns.length === 0 ? null : columns;
291
+ }
197
292
  function planMissingColumn(table, column) {
198
293
  const base = `ALTER TABLE ${quoteIdent(table)} ADD COLUMN ${quoteIdent(column.name)}`;
199
294
  let blocked = null;
@@ -213,6 +308,8 @@ function planMissingColumn(table, column) {
213
308
  };
214
309
  }
215
310
  export {
311
+ parseIndexDdlColumns,
312
+ parseSchemaIndexes,
216
313
  parseSchemaTables,
217
314
  planMissingColumn,
218
315
  quoteIdent
@@ -57,9 +57,21 @@ export declare class StorageError extends Error {
57
57
  export declare const STORAGE_CODES: {
58
58
  readonly invalidPath: "STORAGE_INVALID_PATH";
59
59
  readonly invalidData: "STORAGE_INVALID_DATA";
60
+ readonly invalidVisibility: "STORAGE_INVALID_VISIBILITY";
61
+ readonly invalidSignedUrlTtl: "STORAGE_SIGNED_URL_TTL_INVALID";
62
+ readonly signedUrlTtlExceeded: "STORAGE_SIGNED_URL_TTL_EXCEEDED";
60
63
  readonly notFound: "STORAGE_NOT_FOUND";
61
64
  readonly quotaExceeded: "STORAGE_QUOTA_EXCEEDED";
62
65
  };
66
+ /**
67
+ * 运行期可见性校验(ST-005)。
68
+ *
69
+ * 用户函数是 JS,TS 的 `FileVisibility` 在运行期被擦除;而项目文件路由把
70
+ * 「不等于 `private`」一律当 public 直连(`routes.ts` 的 `meta.visibility === 'private'` 分支)。
71
+ * 放过一个 `'PUBLIC'` / `'privte'` 拼写就等于**把私有文件变成公开**——必须在写入前拒绝,
72
+ * 不能靠下游「看起来像 public 就直连」的兜底。
73
+ */
74
+ export declare function assertFileVisibility(value: unknown): FileVisibility;
63
75
  /**
64
76
  * 路径穿越防护(验收 Scenario 4):拒绝绝对路径、`..` 段、空路径、Windows 盘符、控制字符。
65
77
  * 合法路径为单层或多层相对段(如 `a`、`a/b.png`),每段不能是 `.`/`..`、空或含路径分隔符。
@@ -6,10 +6,49 @@ export interface DownloadSignerConfig {
6
6
  }
7
7
  /** M1 签名有效期(PRD §2.4 / ST-001 任务单:15 分钟)。 */
8
8
  export declare const DEFAULT_SIGN_TTL_SECONDS: number;
9
+ /**
10
+ * 私有签名 URL 的最长有效期(ST-005):7 天。
11
+ *
12
+ * 签名 URL 的语义是「临时访问」,不设上限时调用方传 1 年就得到 1 年有效的外链——
13
+ * 链接一旦进聊天记录 / 剪贴板 / 日志就是长期可读。长期展示应把文件设为 `public`
14
+ * 并走无签名直链(`getUrl`);确需超长私有链接必须显式 `force`。
15
+ */
16
+ export declare const MAX_SIGNED_URL_TTL_SECONDS: number;
9
17
  export declare const SIGN_EXPIRES_KEY = "x-expires";
10
18
  export declare const SIGN_SIGNATURE_KEY = "x-signature";
19
+ /**
20
+ * 校验并归一私有签名 TTL。
21
+ *
22
+ * 非正整数一律拒绝(`0` / 负数此前会生成「一出生就过期」的链接,静默无效);
23
+ * 超过上限且未显式 `force` 拒绝,文案给出 public + getUrl 的替代路径。
24
+ */
25
+ export declare function resolveSignedUrlTtl(ttlSeconds: number | undefined, options?: {
26
+ force?: boolean;
27
+ }): number;
28
+ /**
29
+ * 公共文件直链(无签名;下载端不校验)。路径整段编码(`/` → `%2F`),对齐 `:path` 单段路由。
30
+ *
31
+ * 这是**项目桶命名空间**的外壳;云应用桶的外壳是
32
+ * `/api/v1/cloud/storage/raw/:key`(`server/domains/cloud/storage.ts`),
33
+ * 两者签名各自绑定 `(bucket, path)`、不可互换——见 ADR-0034。
34
+ */
35
+ export declare function publicDownloadUrl(config: DownloadSignerConfig, projectId: string, path: string): string;
36
+ /**
37
+ * 生成私有文件的外链(含签名查询参数),并返回签名内的过期时刻(unix 秒)。
38
+ *
39
+ * 与 `signDownloadUrl` 同一份计算:`getUrl` 需要把「URL 会何时失效」显式告诉调用方
40
+ * (`expiresAt`),不能另算一遍时间(两次 `Date.now()` 可能跨秒)。
41
+ */
42
+ export declare function signDownloadUrlWithExpiry(config: DownloadSignerConfig, projectId: string, path: string, ttlSeconds?: number, options?: {
43
+ force?: boolean;
44
+ }): {
45
+ url: string;
46
+ expires: number;
47
+ };
11
48
  /** 生成私有文件的外链(含签名查询参数)。 */
12
- export declare function signDownloadUrl(config: DownloadSignerConfig, projectId: string, path: string, ttlSeconds?: number): string;
49
+ export declare function signDownloadUrl(config: DownloadSignerConfig, projectId: string, path: string, ttlSeconds?: number, options?: {
50
+ force?: boolean;
51
+ }): string;
13
52
  export type SignatureVerification = {
14
53
  ok: true;
15
54
  } | {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "homepage": "https://adep.top",
9
9
  "bugs": "https://gitcode.com/yunqiang_wu/ai-yunke/issues",
10
- "version": "0.3.9",
10
+ "version": "0.3.10",
11
11
  "private": false,
12
12
  "type": "module",
13
13
  "sideEffects": false,
@@ -32,7 +32,7 @@
32
32
  "dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@adep/types": "0.4.2"
35
+ "@adep/types": "0.4.3"
36
36
  },
37
37
  "scripts": {
38
38
  "test": "vitest run",