@wirecat/cli-core 0.684.0 → 0.685.0

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 (43) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/cli/bot/api-http.d.ts +10 -2
  3. package/dist/cli/bot/api-http.js +50 -45
  4. package/dist/cli/context.d.ts +6 -1
  5. package/dist/cli/context.js +16 -2
  6. package/dist/cli/documents/testing/index.d.ts +1 -1
  7. package/dist/cli/documents/testing/index.js +1 -1
  8. package/dist/cli/documents/testing/source-contract.d.ts +34 -1
  9. package/dist/cli/documents/testing/source-contract.js +153 -1
  10. package/dist/cli/documents/testing/source.d.ts +2 -0
  11. package/dist/cli/documents/testing/source.js +8 -1
  12. package/dist/cli/index.d.ts +4 -2
  13. package/dist/cli/index.js +4 -2
  14. package/dist/cli/profile-token.js +13 -3
  15. package/dist/cli/program.js +6 -4
  16. package/dist/cli/service-api-manifest.d.ts +40 -0
  17. package/dist/cli/service-api-manifest.js +106 -0
  18. package/dist/cli/service-api.d.ts +29 -30
  19. package/dist/cli/service-api.js +133 -53
  20. package/dist/crm/digest.d.ts +1 -1
  21. package/dist/crm/digest.js +9 -1
  22. package/dist/crm/testing/index.d.ts +1 -1
  23. package/dist/crm/testing/source-contract.d.ts +26 -1
  24. package/dist/crm/testing/source-contract.js +102 -0
  25. package/dist/crm/testing/source.d.ts +2 -0
  26. package/dist/crm/testing/source.js +6 -0
  27. package/dist/http/link-fetch.d.ts +10 -0
  28. package/dist/http/link-fetch.js +28 -0
  29. package/dist/meetings/import.d.ts +1 -1
  30. package/dist/meetings/import.js +2 -0
  31. package/dist/meetings/index.d.ts +1 -0
  32. package/dist/meetings/index.js +1 -0
  33. package/dist/meetings/pull.d.ts +2 -0
  34. package/dist/meetings/pull.js +18 -0
  35. package/dist/meetings/search-store.d.ts +2 -0
  36. package/dist/meetings/search-store.js +16 -1
  37. package/dist/meetings/store.d.ts +3 -0
  38. package/dist/services/meeting-hit-search.d.ts +2 -3
  39. package/dist/services/meeting-hit-search.js +2 -17
  40. package/dist/services/search-all-meetings.d.ts +1 -1
  41. package/dist/store/sqlite/deals.d.ts +0 -2
  42. package/dist/store/sqlite/deals.js +0 -1
  43. package/package.json +3 -3
@@ -1,6 +1,10 @@
1
1
  import assert from "node:assert/strict";
2
+ import { CliError } from "@wirecat/cli-base";
2
3
  import { isItemKind } from "../../domain/crm.js";
3
4
  import { DEAL_KINDS, STAGE_OUTCOMES } from "../../domain/deals.js";
5
+ /** Within any change feed's overlap: a computer's clock that is off by more is broken, not skewed. */
6
+ const SKEW_MS = 10 * 60_000;
7
+ const idsOf = (items) => items.map((item) => item.externalId);
4
8
  const MAX_PAGES = 1_000;
5
9
  const DAY = /^\d{4}-\d{2}-\d{2}$/;
6
10
  const DECIMAL = /^\d{1,16}(\.\d{1,6})?$/;
@@ -205,6 +209,7 @@ export const crmSourceContract = (make) => {
205
209
  });
206
210
  return [
207
211
  ...cases,
212
+ ...faultCases(make),
208
213
  {
209
214
  name: "changes: a dead cursor answers reset",
210
215
  async run() {
@@ -216,3 +221,100 @@ export const crmSourceContract = (make) => {
216
221
  },
217
222
  ];
218
223
  };
224
+ const faultCases = (make) => [
225
+ ...[403, 404].map((status) => ({
226
+ name: `faults: a contact or company that answers ${status} is null from get, not a failure`,
227
+ async run() {
228
+ const { source, faults } = await make();
229
+ if (!faults?.deny || !source.get)
230
+ return;
231
+ const { kind, id } = await faults.deny(status);
232
+ assert.equal(await source.get(kind, id), null, `get(${kind}, ${id}) after a ${status}`);
233
+ },
234
+ })),
235
+ {
236
+ name: "faults: a clock off by ten minutes either way loses no change",
237
+ async run() {
238
+ const first = await make();
239
+ if (!first.faults?.skewed || !first.faults.change)
240
+ return;
241
+ for (const ms of [SKEW_MS, -SKEW_MS]) {
242
+ const { faults } = ms === SKEW_MS ? first : await make();
243
+ const source = (await faults?.skewed?.(ms));
244
+ const read = await Promise.all(source.traits.kinds.map(async (kind) => [kind, await listAll(source, kind, null)]));
245
+ const { kind, id } = await faults.change();
246
+ const cursor = read.find(([one]) => one === kind)?.[1].cursor ?? null;
247
+ assert.ok(cursor !== null, `${kind}: a full list gives a cursor for the change to be read after`);
248
+ const { items } = await listAll(source, kind, cursor);
249
+ assert.ok(idsOf(items).includes(id), `${kind} ${id} is in the changes with this computer's clock ${ms / 60_000} min off`);
250
+ }
251
+ },
252
+ },
253
+ {
254
+ name: "faults: a second profile on the same token is the same user and lists the same rows",
255
+ async run() {
256
+ const { source, faults } = await make();
257
+ const other = await faults?.sameToken?.();
258
+ if (!other)
259
+ return;
260
+ if (source.self)
261
+ assert.equal(await other.self?.(), await source.self(), "both profiles name one user");
262
+ for (const kind of source.traits.kinds)
263
+ assert.deepEqual(idsOf((await listAll(other, kind, null)).items).sort(), idsOf((await listAll(source, kind, null)).items).sort(), `${kind}: both profiles list the same rows`);
264
+ },
265
+ },
266
+ {
267
+ name: "faults: a full list cut after its first page goes on from that page in a new run, nothing lost or repeated",
268
+ async run() {
269
+ const { source, faults } = await make();
270
+ if (!faults)
271
+ return;
272
+ let cut = false;
273
+ for (const kind of source.traits.kinds) {
274
+ const whole = idsOf((await listAll(source, kind, null)).items);
275
+ const first = (await source.changes(kind, null));
276
+ if (!first.hasMore)
277
+ continue;
278
+ cut = true;
279
+ const { source: resumed } = await make();
280
+ const rest = [];
281
+ let page = first.nextCursor;
282
+ for (let read = 0; page !== undefined && read < MAX_PAGES; read += 1) {
283
+ const answer = (await resumed.changes(kind, null, page));
284
+ rest.push(...answer.items);
285
+ page = answer.nextCursor;
286
+ }
287
+ const joined = [...idsOf(first.items), ...idsOf(rest)];
288
+ assert.equal(new Set(joined).size, joined.length, `${kind}: no row twice across the cut`);
289
+ assert.deepEqual(joined.sort(), whole.sort(), `${kind}: the cut list adds up to the whole one`);
290
+ }
291
+ assert.ok(cut, "the fixture holds more than one page of some kind, so a list can be cut");
292
+ },
293
+ },
294
+ {
295
+ // A source that never pages inside one call never asks, and passes: the deadline itself is the engine's to keep.
296
+ name: "faults: a call that pages inside stops when the run's budget is spent, and says so",
297
+ async run() {
298
+ const { source, faults } = await make();
299
+ if (!faults)
300
+ return;
301
+ const spent = new CliError("provider_error", "the run's budget is spent", { reason: "sync.partial" });
302
+ let asked = false;
303
+ const context = {
304
+ spend: () => {
305
+ asked = true;
306
+ throw spent;
307
+ },
308
+ gap: () => { },
309
+ };
310
+ for (const kind of source.traits.kinds) {
311
+ asked = false;
312
+ const ended = await source.changes(kind, null, undefined, context).then(() => undefined, (error) => error);
313
+ if (asked)
314
+ assert.equal(ended, spent, `${kind}: a spent budget ends the call with its own error, not swallowed`);
315
+ else
316
+ assert.equal(ended, undefined, `${kind}: a call that asks for no more requests is not stopped`);
317
+ }
318
+ },
319
+ },
320
+ ];
@@ -43,6 +43,8 @@ export interface FakeCrmSource extends CrmSource, CrmWriter {
43
43
  expireCursors(kind: CrmKind): void;
44
44
  /** Lists no id at all, as a CRM does for a sign-in that lost its rights. */
45
45
  hideAll(hidden: boolean): void;
46
+ /** One record the sign-in may no longer read: `get` answers it as the CRM's 403 or 404, with nothing. */
47
+ deny(kind: CrmKind, externalId: string): void;
46
48
  /** The next write is carried out and its answer lost: it throws `outcome_unknown`. */
47
49
  loseNextAnswer(): void;
48
50
  /** The next write is carried out and its item cannot be read back: it throws with `sent: true`. */
@@ -49,6 +49,7 @@ export const fakeCrmSource = (options = {}) => {
49
49
  const fields = { deal: [SOURCE_FIELD], lead: [], person: [], organization: [] };
50
50
  let version = 0;
51
51
  const expired = new Map();
52
+ const denied = new Set();
52
53
  let hidden = false;
53
54
  const calls = { pipelines: 0, fields: 0, changes: 0, ids: 0, list: 0, get: 0 };
54
55
  const capabilities = {
@@ -287,6 +288,8 @@ export const fakeCrmSource = (options = {}) => {
287
288
  },
288
289
  async get(kind, externalId) {
289
290
  calls.get += 1;
291
+ if (denied.has(`${kind}:${externalId}`))
292
+ return null;
290
293
  const found = of(kind).get(externalId);
291
294
  return (found && !found.deleted ? found.record : null);
292
295
  },
@@ -348,6 +351,9 @@ export const fakeCrmSource = (options = {}) => {
348
351
  hideAll(value) {
349
352
  hidden = value;
350
353
  },
354
+ deny(kind, externalId) {
355
+ denied.add(`${kind}:${externalId}`);
356
+ },
351
357
  async pipelines(kind) {
352
358
  calls.pipelines += 1;
353
359
  return pipelines[kind];
@@ -0,0 +1,10 @@
1
+ import { type FetchLike, type HostFetchOptions } from "@wirecat/cli-base/http";
2
+ /**
3
+ * `fetch` for a URL the service handed back: a download or upload link, a signed file URL. Such a link lives on
4
+ * another host (Yandex Disk's `downloader.disk.yandex.ru`, Notion's file store) and carries its own grant, so it goes
5
+ * only to the hosts listed, over https, and never with the sign-in: a request carrying one is refused before it leaves.
6
+ * `signIn` names a service's own sign-in headers (an API key's `X-Api-Key`) to refuse beside the standard ones.
7
+ */
8
+ export declare const linkFetch: (options: HostFetchOptions & {
9
+ signIn?: readonly string[];
10
+ }) => FetchLike;
@@ -0,0 +1,28 @@
1
+ import { CliError } from "@wirecat/cli-base";
2
+ import { hostFetch } from "@wirecat/cli-base/http";
3
+ const CREDENTIALS = ["authorization", "cookie", "proxy-authorization"];
4
+ /**
5
+ * `fetch` for a URL the service handed back: a download or upload link, a signed file URL. Such a link lives on
6
+ * another host (Yandex Disk's `downloader.disk.yandex.ru`, Notion's file store) and carries its own grant, so it goes
7
+ * only to the hosts listed, over https, and never with the sign-in: a request carrying one is refused before it leaves.
8
+ * `signIn` names a service's own sign-in headers (an API key's `X-Api-Key`) to refuse beside the standard ones.
9
+ */
10
+ export const linkFetch = (options) => {
11
+ const { signIn = [], ...rest } = options;
12
+ const send = hostFetch(rest);
13
+ const refused = [...CREDENTIALS, ...signIn.map((name) => name.toLowerCase())];
14
+ return async (input, init = {}) => {
15
+ const url = new URL(input instanceof Request ? input.url : String(input));
16
+ if (url.protocol !== "https:")
17
+ throw new CliError("validation_error", `a link the service returned must be https, not ${url.protocol}`, {
18
+ sent: false,
19
+ });
20
+ const headers = new Headers(init.headers ?? (input instanceof Request ? input.headers : undefined));
21
+ const carried = refused.filter((name) => headers.has(name));
22
+ if (carried.length > 0)
23
+ throw new CliError("configuration_error", `a link the service returned is never sent ${carried.join(" or ")}`, {
24
+ sent: false,
25
+ });
26
+ return send(input, init);
27
+ };
28
+ };
@@ -1,4 +1,4 @@
1
- import type { RunReport } from "./pull.js";
1
+ import { type RunReport } from "./pull.js";
2
2
  import type { MeetingInput, MeetingStore, ParticipantInput } from "./store.js";
3
3
  export interface ImportFile {
4
4
  meeting: MeetingInput;
@@ -1,5 +1,6 @@
1
1
  import { linkEvent } from "./events.js";
2
2
  import { transcriptInput } from "./ingest.js";
3
+ import { indexSaved } from "./pull.js";
3
4
  import { parseTranscriptText } from "./transcript-text.js";
4
5
  import { parseVtt } from "./vtt.js";
5
6
  /** The caller reads files and supplies provider-neutral occurrence metadata. */
@@ -29,6 +30,7 @@ export const importFiles = async (files, store, now = Date.now()) => {
29
30
  });
30
31
  }
31
32
  }
33
+ await indexSaved(store, files.map((file) => file.meeting.accountId), report);
32
34
  const zones = new Set(files.map((file) => file.meeting.timezone).filter((zone) => zone !== null && zone !== undefined));
33
35
  const [zone] = zones;
34
36
  if (zones.size === 1 && zone)
@@ -51,6 +51,7 @@ export { MEETING_RESULT_ENTITIES } from "./result-items.js";
51
51
  export { type MeetingReview, type MeetingReviewInput, type MeetingReviewItem, type MeetingReviewSpeaker, type MeetingReviewStore, REVIEW_LIMIT, } from "./review.js";
52
52
  export { SAVE_HELP, SAVE_INSTRUCTION } from "./save-hints.js";
53
53
  export type { MeetingHitSearchRequest, MeetingSearchIndexInput, MeetingSearchIndexReceipt, MeetingSearchIndexStore, MeetingSearchOptions, MeetingSearchPage, MeetingSearchStore, } from "./search-store.js";
54
+ export { refreshMeetingIndex } from "./search-store.js";
54
55
  export { validateMeetingHitSearch } from "./search-validation.js";
55
56
  export { type MeetingHistoryEntry, type MeetingSeriesContext, type MeetingSeriesHistory, type MeetingSeriesHistoryRequest, type MeetingSeriesHistoryStore, validateMeetingSeriesHistory, } from "./series-history.js";
56
57
  export { createMeetingSeriesInventoryReader } from "./series-inventory.js";
@@ -40,6 +40,7 @@ export { validateMeetingRelatedHistory, } from "./related-history.js";
40
40
  export { MEETING_RESULT_ENTITIES } from "./result-items.js";
41
41
  export { REVIEW_LIMIT, } from "./review.js";
42
42
  export { SAVE_HELP, SAVE_INSTRUCTION } from "./save-hints.js";
43
+ export { refreshMeetingIndex } from "./search-store.js";
43
44
  export { validateMeetingHitSearch } from "./search-validation.js";
44
45
  export { validateMeetingSeriesHistory, } from "./series-history.js";
45
46
  export { createMeetingSeriesInventoryReader } from "./series-inventory.js";
@@ -56,4 +56,6 @@ export declare const saveSourceMeeting: (source: Pick<MeetingSource, "provider"
56
56
  now: number;
57
57
  kept?: Meeting;
58
58
  }) => Promise<MeetingDetails>;
59
+ /** Search reads only the index, so what a sync or an import saved is indexed before it answers. */
60
+ export declare const indexSaved: (store: MeetingStore, accountIds: Iterable<number>, report: RunReport) => Promise<void>;
59
61
  export declare const pull: (source: MeetingSource, store: MeetingStore, options: PullOptions) => Promise<RunReport>;
@@ -1,5 +1,6 @@
1
1
  import { linkEvent } from "./events.js";
2
2
  import { speakerPosition, timestamp, transcriptInput } from "./ingest.js";
3
+ import { refreshMeetingIndex } from "./search-store.js";
3
4
  const participantInput = (p, provider, occurrenceId, position, accountId) => {
4
5
  const { identityExternalId, phone, ...fields } = p;
5
6
  const externalId = identityExternalId ??
@@ -124,6 +125,22 @@ const startOf = (m) => {
124
125
  const at = Date.parse(m.occurrence.startedAt);
125
126
  return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
126
127
  };
128
+ /** Search reads only the index, so what a sync or an import saved is indexed before it answers. */
129
+ export const indexSaved = async (store, accountIds, report) => {
130
+ const indexSearch = store.indexSearch?.bind(store);
131
+ if (!indexSearch || report.meetings === 0)
132
+ return;
133
+ for (const accountId of new Set(accountIds))
134
+ try {
135
+ await refreshMeetingIndex({ indexSearch }, accountId);
136
+ }
137
+ catch (error) {
138
+ report.warnings.push({
139
+ externalId: String(accountId),
140
+ message: `search index not updated: ${error instanceof Error ? error.message : "failed"}`,
141
+ });
142
+ }
143
+ };
127
144
  export const pull = async (source, store, options) => {
128
145
  const now = options.now ?? Date.now();
129
146
  for (const [name, ms] of [
@@ -217,6 +234,7 @@ export const pull = async (source, store, options) => {
217
234
  }
218
235
  }
219
236
  await linkCallers();
237
+ await indexSaved(store, [options.accountId], report);
220
238
  // A failed occurrence must remain inside the next pull's retry window.
221
239
  if (!failed)
222
240
  await store.setCursor(options.accountId, new Date(now).toISOString(), now);
@@ -61,3 +61,5 @@ export interface MeetingHitSearchRequest extends MeetingSearchOptions {
61
61
  tag?: string;
62
62
  topic?: string;
63
63
  }
64
+ /** Each batch commits on its own, so a search or sync cut short by its deadline keeps the progress it made. */
65
+ export declare const refreshMeetingIndex: (meetings: MeetingSearchIndexStore, accountId: number, signal?: AbortSignal) => Promise<void>;
@@ -1 +1,16 @@
1
- export {};
1
+ /** Each batch commits on its own, so a search or sync cut short by its deadline keeps the progress it made. */
2
+ export const refreshMeetingIndex = async (meetings, accountId, signal) => {
3
+ let before = Number.POSITIVE_INFINITY;
4
+ for (;;) {
5
+ signal?.throwIfAborted();
6
+ const { indexed, remaining } = await meetings.indexSearch({
7
+ accountId,
8
+ limit: 1000,
9
+ maxReadBytes: 64 * 1024 ** 2,
10
+ signal,
11
+ });
12
+ if (remaining === 0 || indexed === 0 || remaining >= before)
13
+ return;
14
+ before = remaining;
15
+ }
16
+ };
@@ -2,6 +2,7 @@ import type { QueryAst } from "@wirecat/cli-base/query";
2
2
  import type { ListResult } from "@wirecat/cli-base/standards";
3
3
  import type { MeetingOwner } from "./item.js";
4
4
  import type { Attachment, ChatLine, Event, EventSeries, Meeting, MeetingSeries, Metadata, Participant, Summary, Transcript, TranscriptRow } from "./model.js";
5
+ import type { MeetingSearchIndexStore } from "./search-store.js";
5
6
  export type NewRecord<T> = Omit<T, "id" | "createdAt" | "updatedAt">;
6
7
  export interface IdentityInput {
7
8
  /** Explicit stable provider key; false or absent must not create a person association. */
@@ -189,6 +190,8 @@ export interface MeetingStore {
189
190
  setCursor(accountId: number, value: string, now: number): Promise<void>;
190
191
  /** Links the callers a sync saved, by `provider` and identity external id, to the people with their number. */
191
192
  linkCallers?(provider: string, externalIds: readonly string[]): Promise<void>;
193
+ /** Brings the account's search index up to what is saved; a sync and an import run it so search finds their text. */
194
+ indexSearch?: MeetingSearchIndexStore["indexSearch"];
192
195
  /** Detects the language of the account's transcripts that have none; stores it only with `apply`. */
193
196
  fillTranscriptLanguages?(input: {
194
197
  accountId: number;
@@ -1,9 +1,8 @@
1
- import { type MeetingHitSearchRequest } from "../meetings/index.js";
1
+ import { type MeetingHitSearchRequest, refreshMeetingIndex } from "../meetings/index.js";
2
2
  import type { VocabularyKind } from "../store/index.js";
3
3
  import type { MessageStore } from "../store/store.js";
4
4
  export type { MeetingHitSearchRequest } from "../meetings/index.js";
5
- /** Each batch commits on its own, so a search cut short by its deadline keeps the progress it made. */
6
- export declare const refreshMeetingIndex: (meetings: Pick<MessageStore["meetings"], "indexSearch">, accountId: number, signal?: AbortSignal) => Promise<void>;
5
+ export { refreshMeetingIndex };
7
6
  /** Name resolution changes selection only; it never assigns projects or labels from transcript words. */
8
7
  export declare const resolveMeetingSelection: (store: {
9
8
  knowledge?: MessageStore["knowledge"];
@@ -1,22 +1,7 @@
1
1
  import { CliError } from "@wirecat/cli-base";
2
- import { liftMeetingFields, MEETING_FIELD_NAMES } from "../meetings/index.js";
2
+ import { liftMeetingFields, MEETING_FIELD_NAMES, refreshMeetingIndex, } from "../meetings/index.js";
3
3
  import { plainQuery } from "../search/lucene/plain.js";
4
- /** Each batch commits on its own, so a search cut short by its deadline keeps the progress it made. */
5
- export const refreshMeetingIndex = async (meetings, accountId, signal) => {
6
- let before = Number.POSITIVE_INFINITY;
7
- for (;;) {
8
- signal?.throwIfAborted();
9
- const { indexed, remaining } = await meetings.indexSearch({
10
- accountId,
11
- limit: 1000,
12
- maxReadBytes: 64 * 1024 ** 2,
13
- signal,
14
- });
15
- if (remaining === 0 || indexed === 0 || remaining >= before)
16
- return;
17
- before = remaining;
18
- }
19
- };
4
+ export { refreshMeetingIndex };
20
5
  /** Name resolution changes selection only; it never assigns projects or labels from transcript words. */
21
6
  export const resolveMeetingSelection = async (store, request) => {
22
7
  const { project, tag, topic, ...input } = request;
@@ -35,7 +35,7 @@ export interface MeetingSearchItem {
35
35
  export interface MeetingAccountCoverage {
36
36
  provider: string;
37
37
  account: string;
38
- /** `pending`: passages saved since the index was last built are not found yet; `search meetings` builds it. */
38
+ /** `pending`: passages saved since the index was last built are not found yet; a sync builds it. */
39
39
  indexing: "ready" | "pending";
40
40
  hasMore: boolean;
41
41
  }
@@ -40,8 +40,6 @@ export interface PipelineReport extends Omit<Pipeline, "stages">, Omit<PipelineP
40
40
  since: string | null;
41
41
  until: string | null;
42
42
  };
43
- /** `YYYY-MM-DD`: the UTC day `window.since` falls on; `null` for all. */
44
- since: string | null;
45
43
  }
46
44
  /**
47
45
  * One stage a deal or a lead entered: from the CRM's own history (`exact`), else as the store saw it, a CRM copy's
@@ -247,7 +247,6 @@ export const dealOperationsOver = (context) => {
247
247
  ...period,
248
248
  stages: pipeline.stages.map((stage, index) => ({ ...stage, ...stages[index] })),
249
249
  window: { since: at(window.since), until: at(window.until) },
250
- since: at(window.since)?.slice(0, 10) ?? null,
251
250
  };
252
251
  };
253
252
  /** Sets the stage and, from its outcome, the status; a stage that ends the row closes it today. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-core",
3
- "version": "0.684.0",
3
+ "version": "0.685.0",
4
4
  "description": "The messenger-neutral half of a messaging CLI: domain model, message locators, rendering, name resolution, the SQLite seam, the command skeleton and shared read commands, the send guard, run records and the message store",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Viacheslav Ptsarev",
@@ -300,7 +300,7 @@
300
300
  "@types/pngjs": "6.0.5",
301
301
  "@types/ssh2": "1.15.5",
302
302
  "@vitest/coverage-v8": "^5.0.5",
303
- "@wirecat/cli-base": "0.106.0",
303
+ "@wirecat/cli-base": "0.108.0",
304
304
  "@wirecat/cli-core-legacy-tags": "npm:@wirecat/cli-core@0.414.0",
305
305
  "ajv": "8.17.1",
306
306
  "commander": "15.0.0",
@@ -324,7 +324,7 @@
324
324
  },
325
325
  "peerDependencies": {
326
326
  "@napi-rs/canvas": ">=0.1.69 <2",
327
- "@wirecat/cli-base": ">=0.106.0 <1.0.0",
327
+ "@wirecat/cli-base": ">=0.108.0 <1.0.0",
328
328
  "commander": ">=15",
329
329
  "mysql2": "^3.24.6",
330
330
  "pg": "^8.23.1",