@wirecat/cli-core 0.658.0 → 0.660.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.
- package/CHANGELOG.md +72 -0
- package/dist/cli/ask-before-write.d.ts +8 -0
- package/dist/cli/ask-before-write.js +28 -0
- package/dist/cli/config-command.js +2 -9
- package/dist/cli/config-issues.js +1 -1
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +1 -0
- package/dist/cli/messenger/messages-delete-command.d.ts +2 -1
- package/dist/cli/messenger/messages-delete-command.js +2 -1
- package/dist/{cli → domain}/config-repair.d.ts +7 -0
- package/dist/{cli → domain}/config-repair.js +53 -0
- package/dist/domain/providers.js +1 -1
- package/dist/entities/index.d.ts +33 -93
- package/dist/errors/reasons.js +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/kit/sync-after-install.js +5 -0
- package/dist/meetings/answers.d.ts +35 -27
- package/dist/meetings/answers.js +3 -2
- package/dist/meetings/cli/index.d.ts +13 -0
- package/dist/meetings/cli/index.js +61 -16
- package/dist/meetings/cli/management.d.ts +16 -0
- package/dist/meetings/cli/management.js +90 -0
- package/dist/meetings/index.d.ts +5 -3
- package/dist/meetings/index.js +4 -2
- package/dist/meetings/item.d.ts +33 -19
- package/dist/meetings/item.js +29 -4
- package/dist/meetings/pull.d.ts +27 -2
- package/dist/meetings/pull.js +103 -78
- package/dist/meetings/read-through.d.ts +74 -0
- package/dist/meetings/read-through.js +330 -0
- package/dist/meetings/reads.d.ts +1 -0
- package/dist/meetings/reads.js +4 -2
- package/dist/meetings/result-items.d.ts +31 -0
- package/dist/meetings/result-items.js +31 -0
- package/dist/meetings/source.d.ts +47 -0
- package/dist/meetings/store.d.ts +7 -0
- package/dist/meetings/testing/memory.js +8 -1
- package/dist/replies/rules.d.ts +1 -1
- package/dist/replies/rules.js +1 -1
- package/dist/search/service-query.d.ts +63 -0
- package/dist/search/service-query.js +57 -0
- package/dist/sends/permissions.js +9 -4
- package/dist/services/messages-search.js +3 -4
- package/dist/services/server-search.d.ts +2 -1
- package/dist/services/server-search.js +36 -32
- package/dist/store/shared-config.d.ts +2 -0
- package/dist/store/shared-config.js +38 -8
- package/dist/store/sqlite/meetings.js +15 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,78 @@ Notable changes to `@wirecat/cli-core` (`@wirecat/cli-messaging` up to 0.261.0,
|
|
|
5
5
|
minor version may break callers, and says how under "Changed — may break callers". `pnpm docs:check` checks the
|
|
6
6
|
shape of this file.
|
|
7
7
|
|
|
8
|
+
## 0.660.0 — 14.11.2026
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`meetings list` and `meetings show` read the service and the store at once.** With a source that has `find` and
|
|
13
|
+
`get`, they ask the service for what may match, keep it as `meetings sync` does, then answer the whole query from
|
|
14
|
+
the store: one list, the store's paging. `--backend archive|server|both`, the words messages search uses, default
|
|
15
|
+
`both`; `--offline` reads the store only. Each item says `found_in` (`archive`, `server`, `both`). A service that
|
|
16
|
+
cannot be asked leaves the store's answer, a `missing` line that says why and `meta.complete: false` with a
|
|
17
|
+
`meetings.server-*` issue; a typed `--backend server` refuses. The service gets only what it can filter:
|
|
18
|
+
`started_at` as a window and the fields its `finds` names. Both sides read the query's dates in the owner's zone.
|
|
19
|
+
- **A live read keeps what sync stored.** An empty field of the service's record keeps the stored value and the
|
|
20
|
+
metadata merges; a record that changes nothing is not written. A meeting that cannot be kept is counted in the
|
|
21
|
+
answer (`meetings.server-failed`), and the call or page cap says so (`meetings.server-capped`).
|
|
22
|
+
- **`MeetingSource.finds`, `find(window, terms, cursor)` and `get(id)`**, all optional, and
|
|
23
|
+
`MeetingStore.meetingByExternalId`. `saveSourceMeeting` is the one writer `sync` and these reads use; it takes the
|
|
24
|
+
stored row as `kept`. `MeetingFilter` takes `ids`, `timezone` and `now`.
|
|
25
|
+
- **`meeting.provider_id`**, the service's id of the occurrence. `meetings show` takes it besides the store number and
|
|
26
|
+
the `meeting:` ref, and `meetings list provider_id:<id>` filters by it.
|
|
27
|
+
- **`meetings create|update|cancel|invitation`** from `createMeetingManagement`, mounted when a host passes
|
|
28
|
+
`management` to `addMeetingCommands`, for the ports it has. The writes ask first by default (`meetings.create`,
|
|
29
|
+
`meetings.update`, `meetings.cancel`) through the host's `askFirst`, `askBeforeWrite` from `@wirecat/cli-core/cli`:
|
|
30
|
+
with nobody to answer they refuse with `confirmation_required`, and `--yes` goes ahead. `--dry-run` answers
|
|
31
|
+
`applied: false`.
|
|
32
|
+
- **`serviceCallsOf`** in `src/search/service-query.ts`, one query simplifier for a service's own search: it keeps the
|
|
33
|
+
fields and operators a service declares it reads, leaves out the rest, splits OR into calls up to a cap and sends a
|
|
34
|
+
NOT only where the service can negate it. A branch no call can match is never asked, and a query of more than 64
|
|
35
|
+
OR branches is not complete. Messages server search uses it.
|
|
36
|
+
|
|
37
|
+
### Changed — may break callers
|
|
38
|
+
|
|
39
|
+
- **`meetings list` and `meetings show` are remote reads** (`{ remote: read, local: read }`, `partial`), and `show`
|
|
40
|
+
takes a string: the store number, the `meeting:` ref or the service's id. A host whose source has no `find`/`get`
|
|
41
|
+
now gets a `missing` line naming that until it adds them; `--backend archive` keeps the old store-only answer. Under
|
|
42
|
+
`<PREFIX>_READ_ONLY` they still ask the service, as `meetings sync` does.
|
|
43
|
+
- **`meetings list` reads dates in the host's `timezone`** (the computer's without it), not in UTC.
|
|
44
|
+
- **`meeting` and `meeting_details` items carry `provider_id` and `untrusted`** (`title`, `description`,
|
|
45
|
+
`location`), and `meeting_invitation` carries `untrusted: ["invitation"]`. A check against an exact item shape adds
|
|
46
|
+
them.
|
|
47
|
+
- **Messages server search no longer sends a `to:`, `cc:` or `bcc:` person to the server as the sender.** Only
|
|
48
|
+
`from:` narrows the server's call; the store still filters the others.
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- **The `google-meet` provider names its tool `gmeet`.** The Google Meet CLI is published as `@wirecat/gmeet-cli`
|
|
53
|
+
with the command `gmeet`; 0.655.0 named it `meet`, so a hint that opens a Meet meeting pointed at a command that
|
|
54
|
+
does not exist.
|
|
55
|
+
- **`access.denied` and `item.not-found` are registered reasons.** `./google`'s `googleError` raises them for a 403
|
|
56
|
+
and a 404; they were missing from the reason registry, so a CLI that lists its reasons from cli-core did not
|
|
57
|
+
declare them.
|
|
58
|
+
|
|
59
|
+
## 0.659.0 — 14.11.2026
|
|
60
|
+
|
|
61
|
+
### Added
|
|
62
|
+
|
|
63
|
+
- **The shared config mends its own slips.** When `~/.config/WireCat/config.json` is not JSON only because of a
|
|
64
|
+
byte-order mark, a comment, a trailing comma or a missing comma between two lines, a reader mends it in place,
|
|
65
|
+
keeping every key, and keeps the old file beside it as `config.json.bak-<time>`. Any other damage is refused with
|
|
66
|
+
its line, column, the text around it (every value hidden) and the likely fix: "add a comma after `"tools": true`
|
|
67
|
+
on line 4". It still never makes a tool read-only.
|
|
68
|
+
|
|
69
|
+
### Changed — may break callers
|
|
70
|
+
|
|
71
|
+
- **Deleting messages and sending rule replies no longer wait for the owner** (owner, 2026-11-14). The built-in
|
|
72
|
+
levels of `messages.delete` and `bot.messages.delete` are now `allow`: `messages delete` deletes without a question
|
|
73
|
+
and without `--allow-dangerous`. `replies.send` is now `allow` (it was `deny`): `serve` sends the replies
|
|
74
|
+
of the rules the owner turned on, and a new rule still starts off. A profile that wants the old behaviour sets
|
|
75
|
+
`messages.delete: ask` or `replies.send: deny`. `mcp.authority` stays `deny`. Over MCP the same levels apply, and
|
|
76
|
+
a write at `ask` goes ahead, as before.
|
|
77
|
+
- **`syncAfterInstallCases` adds a shared config with a missing comma between two lines.** The reader mends it, so
|
|
78
|
+
a CLI's sync must exit 0 there; a CLI that reads the file with its own reader fails the new case.
|
|
79
|
+
|
|
8
80
|
## 0.658.0 — 13.11.2026
|
|
9
81
|
|
|
10
82
|
### Added
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
/**
|
|
3
|
+
* The `ask` step of a declared CLI's write that has no guard of its own (`meetings create`): `deny` and `readonly`
|
|
4
|
+
* already stopped it before it ran (`refuseByCommandPermissions`), and `ask` is left to the command. At `ask` the owner
|
|
5
|
+
* is asked, `--yes` answers, an agent goes ahead, and with nobody to answer it refuses. Outside the CLI's run, where
|
|
6
|
+
* the profile's levels are not known, it refuses too.
|
|
7
|
+
*/
|
|
8
|
+
export declare const askBeforeWrite: (command: Command) => Promise<void>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CliError } from "@wirecat/cli-base";
|
|
2
|
+
import { levelFor } from "../sends/permissions.js";
|
|
3
|
+
import { commandPathOf } from "./command-contract.js";
|
|
4
|
+
import { environmentOf, withAgentLevels } from "./context.js";
|
|
5
|
+
import { terminalAsker } from "./messenger/ask.js";
|
|
6
|
+
import { commandPathKey } from "./permission-keys.js";
|
|
7
|
+
/**
|
|
8
|
+
* The `ask` step of a declared CLI's write that has no guard of its own (`meetings create`): `deny` and `readonly`
|
|
9
|
+
* already stopped it before it ran (`refuseByCommandPermissions`), and `ask` is left to the command. At `ask` the owner
|
|
10
|
+
* is asked, `--yes` answers, an agent goes ahead, and with nobody to answer it refuses. Outside the CLI's run, where
|
|
11
|
+
* the profile's levels are not known, it refuses too.
|
|
12
|
+
*/
|
|
13
|
+
export const askBeforeWrite = async (command) => {
|
|
14
|
+
const key = commandPathKey(commandPathOf(command));
|
|
15
|
+
if (!key)
|
|
16
|
+
return;
|
|
17
|
+
const environment = environmentOf(command);
|
|
18
|
+
if (!environment.resolveSettings)
|
|
19
|
+
throw new CliError("configuration_error", `${key} reads its permission level inside the tool's run only`);
|
|
20
|
+
const settings = environment.resolveSettings(withAgentLevels(command, command.optsWithGlobals()), {
|
|
21
|
+
env: environment.env ?? process.env,
|
|
22
|
+
needsProfile: false,
|
|
23
|
+
readOnly: true,
|
|
24
|
+
});
|
|
25
|
+
const { level } = levelFor(settings.permissions, key, environment.permissionDefaults);
|
|
26
|
+
if (level === "ask")
|
|
27
|
+
await terminalAsker(command)(key, { chatId: null, kind: "edit", key });
|
|
28
|
+
};
|
|
@@ -2,11 +2,12 @@ import { existsSync, readFileSync, statSync } from "node:fs";
|
|
|
2
2
|
import { CliError, pathsAreOverridden, writeSecurely } from "@wirecat/cli-base";
|
|
3
3
|
import { annotate } from "@wirecat/cli-base/commands";
|
|
4
4
|
import { Command, Option } from "commander";
|
|
5
|
+
import { REPAIR_WORDS, repairConfigText } from "../domain/config-repair.js";
|
|
5
6
|
import { envName } from "../ports/app.js";
|
|
6
7
|
import { agentOf } from "../runs/run-context.js";
|
|
7
8
|
import { AUTHORITY_KEY, BOT_API_KEY, LEVELS, levelFor } from "../sends/permissions.js";
|
|
9
|
+
import { backupPathFor } from "../store/shared-config.js";
|
|
8
10
|
import { fixVerb } from "./config-issues.js";
|
|
9
|
-
import { REPAIR_WORDS, repairConfigText } from "./config-repair.js";
|
|
10
11
|
import { baseContext, environmentOf } from "./context.js";
|
|
11
12
|
import { grantsAuthority, LOCAL_READ, LOCAL_WRITE } from "./effects.js";
|
|
12
13
|
import { itemOf, renderAnswer } from "./envelope.js";
|
|
@@ -218,14 +219,6 @@ const repairCommand = (app, config) => profileFree(grantsAuthority(annotate(new
|
|
|
218
219
|
if (backup)
|
|
219
220
|
renderer.note(`the old file is kept as ${backup}`);
|
|
220
221
|
});
|
|
221
|
-
/** Beside the file, so the owner finds it; a second repair in the same millisecond never replaces the first. */
|
|
222
|
-
const backupPathFor = (file) => {
|
|
223
|
-
const stamp = new Date().toISOString().replace(/[:.]/g, "-");
|
|
224
|
-
let path = `${file}.bak-${stamp}`;
|
|
225
|
-
for (let n = 2; existsSync(path); n++)
|
|
226
|
-
path = `${file}.bak-${stamp}-${n}`;
|
|
227
|
-
return path;
|
|
228
|
-
};
|
|
229
222
|
/**
|
|
230
223
|
* A key no command or write is checked against would be saved and do nothing (BUG-137) — whether it
|
|
231
224
|
* comes as `permissions.<key>` or inside a whole `permissions` object.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
2
|
import * as v from "valibot";
|
|
3
|
-
import { repairConfigText } from "
|
|
3
|
+
import { repairConfigText } from "../domain/config-repair.js";
|
|
4
4
|
const isNode = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5
5
|
const SECTIONS = ["personal", "bot"];
|
|
6
6
|
const SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export { answerEntity } from "./answer-entity.js";
|
|
|
53
53
|
export { type AppDoctorOptions, appDoctorReport } from "./app-doctor-command.js";
|
|
54
54
|
export type { AppMcpOptions } from "./app-mcp-command.js";
|
|
55
55
|
export { openAppStore } from "./app-store.js";
|
|
56
|
+
export { askBeforeWrite } from "./ask-before-write.js";
|
|
56
57
|
export { actorOf } from "./author.js";
|
|
57
58
|
export { type BaseStagesCommandOptions, baseStagesCommand } from "./base-stages-command.js";
|
|
58
59
|
export type { ApiCommandInput, ApiCommands } from "./bot/api.js";
|
package/dist/cli/index.js
CHANGED
|
@@ -47,6 +47,7 @@ export { evaluateAgent, } from "./agent-evaluation.js";
|
|
|
47
47
|
export { answerEntity } from "./answer-entity.js";
|
|
48
48
|
export { appDoctorReport } from "./app-doctor-command.js";
|
|
49
49
|
export { openAppStore } from "./app-store.js";
|
|
50
|
+
export { askBeforeWrite } from "./ask-before-write.js";
|
|
50
51
|
export { actorOf } from "./author.js";
|
|
51
52
|
export { baseStagesCommand } from "./base-stages-command.js";
|
|
52
53
|
export { apiFlagOf, apiJson, apiOptionKey, apiPlainJson, checkApiBody, checkApiParameter, parseApiJson, readApiBody, } from "./bot/api-input.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
2
|
import { type Messenger } from "./context.js";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Deletes without a question at the default level, `allow` (owner, 2026-11-14); a profile at `ask` gets the
|
|
5
|
+
* question, and `--allow-dangerous` is the yes. For everyone only
|
|
5
6
|
* with `--for-everyone` (max-cli `NEED-239`), and never for an agent (NEED-1423).
|
|
6
7
|
*/
|
|
7
8
|
export declare const deleteCommand: (messenger: Messenger) => Command;
|
|
@@ -8,7 +8,8 @@ import { itemOf, renderAnswer, snakeKeys } from "../envelope.js";
|
|
|
8
8
|
import { lineOf } from "../steps.js";
|
|
9
9
|
import { messengerContext } from "./context.js";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Deletes without a question at the default level, `allow` (owner, 2026-11-14); a profile at `ask` gets the
|
|
12
|
+
* question, and `--allow-dangerous` is the yes. For everyone only
|
|
12
13
|
* with `--for-everyone` (max-cli `NEED-239`), and never for an agent (NEED-1423).
|
|
13
14
|
*/
|
|
14
15
|
export const deleteCommand = (messenger) => annotate(new Command("delete"), {
|
|
@@ -24,3 +24,10 @@ export type RepairResult = {
|
|
|
24
24
|
/** What each fix mends, as a person reads it. */
|
|
25
25
|
export declare const REPAIR_WORDS: Record<RepairKind, string>;
|
|
26
26
|
export declare const repairConfigText: (text: string) => RepairResult;
|
|
27
|
+
/** Fixes with one reading that a reader may make on its own; the rest change what the owner wrote, so they ask. */
|
|
28
|
+
export declare const SAFE_REPAIRS: ReadonlySet<RepairKind>;
|
|
29
|
+
/**
|
|
30
|
+
* Why `text` is not JSON, for a person: the line and column, the line around it, and the likely fix. Only what a
|
|
31
|
+
* reader may not mend on its own (`SAFE_REPAIRS`) reaches here.
|
|
32
|
+
*/
|
|
33
|
+
export declare const explainBrokenJson: (text: string, result: RepairResult) => string;
|
|
@@ -250,3 +250,56 @@ const serialise = (node, indent) => {
|
|
|
250
250
|
const [open, close] = "object" in node ? ["{", "}"] : ["[", "]"];
|
|
251
251
|
return parts.length === 0 ? `${open}${close}` : `${open}\n${parts.join(",\n")}\n${indent}${close}`;
|
|
252
252
|
};
|
|
253
|
+
/** Fixes with one reading that a reader may make on its own; the rest change what the owner wrote, so they ask. */
|
|
254
|
+
export const SAFE_REPAIRS = new Set([
|
|
255
|
+
"byte_order_mark",
|
|
256
|
+
"comment",
|
|
257
|
+
"trailing_comma",
|
|
258
|
+
"missing_comma",
|
|
259
|
+
]);
|
|
260
|
+
const FIX_FOR = {
|
|
261
|
+
unquoted_key: (line) => `put the key on line ${line} in double quotes`,
|
|
262
|
+
single_quotes: (line) => `use double quotes for the text on line ${line}`,
|
|
263
|
+
missing_closer: (line) => `add the closing } or ] the file lacks after line ${line}, and check that nothing after it was lost`,
|
|
264
|
+
};
|
|
265
|
+
const FIX_FOR_REFUSAL = [
|
|
266
|
+
[/no comma between/, (line, before) => `add a comma after ${before} on line ${line}`],
|
|
267
|
+
[/no colon after/, (line) => `add a colon after the key on line ${line}`],
|
|
268
|
+
[/comma with nothing before/, (line) => `remove the extra comma on line ${line}`],
|
|
269
|
+
[/inside a quoted text/, (line) => `close the quotes on line ${line}`],
|
|
270
|
+
[/value that is not JSON/, (line) => `put the value on line ${line} in double quotes`],
|
|
271
|
+
[/key appears twice/, (line) => `keep one of the two keys named on line ${line}; the file holds both`],
|
|
272
|
+
];
|
|
273
|
+
/** A line as an error may show it: keys, punctuation and true, false or null stay; any other value becomes "…". */
|
|
274
|
+
const shown = (line) => line
|
|
275
|
+
.trim()
|
|
276
|
+
.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|[^\s"',:{}[\]]+)(\s*:)?/g, (token, _value, key) => key || /^(true|false|null)$/.test(token) ? token : '"…"');
|
|
277
|
+
/**
|
|
278
|
+
* Why `text` is not JSON, for a person: the line and column, the line around it, and the likely fix. Only what a
|
|
279
|
+
* reader may not mend on its own (`SAFE_REPAIRS`) reaches here.
|
|
280
|
+
*/
|
|
281
|
+
export const explainBrokenJson = (text, result) => {
|
|
282
|
+
const lines = text.replace(/^\uFEFF/u, "").split(/\r?\n/);
|
|
283
|
+
const around = (line) => {
|
|
284
|
+
const near = lines[line - 1]?.trim() ? lines[line - 1] : lines[line - 2];
|
|
285
|
+
return near ? ` — near \`${shown(near)}\`` : "";
|
|
286
|
+
};
|
|
287
|
+
if (result.state === "repaired") {
|
|
288
|
+
const asked = result.fixes.find((one) => !SAFE_REPAIRS.has(one.kind)) ?? result.fixes[0];
|
|
289
|
+
if (!asked)
|
|
290
|
+
return "it is not valid JSON";
|
|
291
|
+
const fix = FIX_FOR[asked.kind]?.(asked.line);
|
|
292
|
+
return `line ${asked.line} has ${REPAIR_WORDS[asked.kind]}${around(asked.line)}${fix ? `; likely fix: ${fix}` : ""}`;
|
|
293
|
+
}
|
|
294
|
+
if (result.state === "valid")
|
|
295
|
+
return "it is valid JSON";
|
|
296
|
+
const { line, why } = result;
|
|
297
|
+
// The column counts a byte-order mark the shown line no longer has.
|
|
298
|
+
const column = line === 1 && text.charCodeAt(0) === 0xfeff ? result.column - 1 : result.column;
|
|
299
|
+
const head = (lines[line - 1] ?? "").slice(0, column - 1);
|
|
300
|
+
// The entry the column follows, not the whole line: `"tools": true`, without the `{"setup": {` before it.
|
|
301
|
+
const entry = head.slice(Math.max(head.lastIndexOf(","), head.lastIndexOf("{"), head.lastIndexOf("[")) + 1);
|
|
302
|
+
const before = shown(entry) || shown(lines[line - 2] ?? "");
|
|
303
|
+
const fix = FIX_FOR_REFUSAL.find(([pattern]) => pattern.test(why))?.[1](line, `\`${before}\``);
|
|
304
|
+
return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
|
|
305
|
+
};
|
package/dist/domain/providers.js
CHANGED
|
@@ -19,7 +19,7 @@ export const PROVIDERS = [
|
|
|
19
19
|
{ name: "obsidian", kind: "notes", aliases: [] },
|
|
20
20
|
{ name: "added", kind: "notes", aliases: [] },
|
|
21
21
|
{ name: "zoom", kind: "meetings", aliases: [] },
|
|
22
|
-
{ name: "google-meet", kind: "meetings", aliases: [], command: "
|
|
22
|
+
{ name: "google-meet", kind: "meetings", aliases: [], command: "gmeet" },
|
|
23
23
|
// Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
|
|
24
24
|
{ name: "telemost", kind: "meetings", aliases: [] },
|
|
25
25
|
// A phone export's records: its SMS and its calls in the one account the import names.
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -93,6 +93,37 @@ import { topic } from "./topic.js";
|
|
|
93
93
|
*/
|
|
94
94
|
export { account, accountChange, accountPrivacy, accountPrivacyChange, accountProfile, accountSession, adminReport, agenda, analysisConsent, analysisConsentRevocation, attachment, attachmentBytes, attachmentExtraction, attachmentTextChange, automaticTags, botAdmin, botMenuEntry, botProfile, botSeenChat, botTemplate, botWebhook, cachedChatMetadata, callRecord, chart, chat, chatAdminChange, chatArchive, chatCoverage, chatEvent, chatFolderChange, chatFolderOrder, chatFolderRemoval, chatGroupChange, chatInspection, chatInvite, chatInviteChange, chatMembersChange, chatMembersFetch, chatMetadata, chatMetadataRefresh, chatModeration, chatMuting, chatPin, chatRead, chatRemoval, chatRequestChange, chatRules, chatSender, chatStats, chatTracking, chatUnread, contact, contactActivity, contactAlias, contactCheck, contactContext, contactImport, contactLookup, contactNote, contactNoteRemoval, contactPreparation, contactStateChange, contactSync, contactUpdate, conversation, conversationBatch, conversationBatchStatus, conversationBuildResult, conversationChange, conversationDetails, conversationEmbedding, conversationEmbeddingStatus, conversationHit, conversationPreparation, conversationReadiness, counterRefresh, counters, document, documentLink, endedAccountSessions, evidence, evidencePacket, fact, folder, hit, identity, imageEmbedding, inviteLink, job, joinRequest, linkedPerson, mailCounts, mediaArchive, mediaArchiveCheck, mediaArchiveMove, mediaArchiveTimer, meeting, meetingProjectCandidates, meetingSeriesInventory, member, memory, mention, mentionDecision, mentionDetails, mentionDomain, mentionRebuild, message, messageContext, messageCounts, messageDeletion, messageDownload, messageEvent, messageLink, messageLinks, messagePin, messageStar, messageSync, messageTranscript, messageWrite, model, modelKey, note, officialStats, organization, person, place, poll, pollChange, pollVote, project, ranking, reaction, reactionChange, recipient, recipientAdded, recipientChange, recipientOff, recipientRemoved, recordedRun, reference, relationship, reminder, removedModelKey, responseTimes, retention, runDetails, runHit, runLocation, savedSearch, scheduledJob, scheduleHarness, searchHistoryClear, sendAttempt, serveSummary, stickerInventory, storeBackup, storeChatStatus, storeCheck, storeClear, storeCopyRemoval, storeDecrypt, storedModelKey, storeExport, storeGapPlan, storeGapRepair, storeImport, storeInfo, storeJobCancel, storeJobClear, storeJobDetails, storeJobRetry, storeMigration, storeReindex, storeRepair, storeReset, storeRestore, storeTable, tagChange, tagging, task, taskAnalysis, taskAnalysisMark, taskCard, taskCategories, taskClosed, taskCreated, taskLinks, taskMerge, taskPair, taskScan, taskSimilar, taskStats, taskUnmerge, template, topic, topicIcon, trackedChat, trackedChatHistory, waitingChats, watchedMessage, watchItem, };
|
|
95
95
|
export declare const ENTITIES: {
|
|
96
|
+
readonly meeting_change: v.StrictObjectSchema<{
|
|
97
|
+
readonly action: v.PicklistSchema<["create", "update", "cancel"], undefined>;
|
|
98
|
+
readonly provider: v.StringSchema<undefined>;
|
|
99
|
+
readonly account: v.StringSchema<undefined>;
|
|
100
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
101
|
+
readonly occurrence_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
102
|
+
readonly change: v.OptionalSchema<v.StrictObjectSchema<{
|
|
103
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
104
|
+
readonly kind: v.OptionalSchema<v.PicklistSchema<["instant", "scheduled"], undefined>, undefined>;
|
|
105
|
+
readonly start_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
106
|
+
readonly duration_minutes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
107
|
+
readonly timezone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly agenda: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
109
|
+
}, undefined>, undefined>;
|
|
110
|
+
readonly applied: v.BooleanSchema<undefined>;
|
|
111
|
+
readonly meeting: v.OptionalSchema<v.StrictObjectSchema<{
|
|
112
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
113
|
+
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
114
|
+
readonly kind: v.NullableSchema<v.PicklistSchema<["instant", "scheduled"], undefined>, undefined>;
|
|
115
|
+
readonly start_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly duration_minutes: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
117
|
+
readonly timezone: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly agenda: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
119
|
+
readonly join_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
120
|
+
}, undefined>, undefined>;
|
|
121
|
+
}, undefined>;
|
|
122
|
+
readonly meeting_invitation: v.StrictObjectSchema<{
|
|
123
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
124
|
+
readonly invitation: v.StringSchema<undefined>;
|
|
125
|
+
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
126
|
+
}, undefined>;
|
|
96
127
|
readonly meeting_ingestion: v.StrictObjectSchema<{
|
|
97
128
|
readonly meetings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
98
129
|
readonly participants: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -5413,99 +5444,8 @@ export declare const ENTITIES: {
|
|
|
5413
5444
|
readonly created_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
|
|
5414
5445
|
readonly updated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
|
|
5415
5446
|
}, undefined>;
|
|
5416
|
-
readonly meeting: v.StrictObjectSchema<
|
|
5417
|
-
|
|
5418
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
5419
|
-
readonly provider: v.StringSchema<undefined>;
|
|
5420
|
-
readonly account: v.StringSchema<undefined>;
|
|
5421
|
-
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5422
|
-
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5423
|
-
readonly location: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5424
|
-
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5425
|
-
readonly started_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
5426
|
-
readonly ended_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
5427
|
-
readonly duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5428
|
-
readonly timezone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5429
|
-
readonly participants_count: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5430
|
-
readonly issues: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["time_without_zone"], undefined>, undefined>, undefined>;
|
|
5431
|
-
readonly created_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
|
|
5432
|
-
readonly updated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
|
|
5433
|
-
}, undefined>;
|
|
5434
|
-
readonly meeting_details: v.StrictObjectSchema<{
|
|
5435
|
-
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
5436
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
5437
|
-
readonly provider: v.StringSchema<undefined>;
|
|
5438
|
-
readonly account: v.StringSchema<undefined>;
|
|
5439
|
-
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5440
|
-
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5441
|
-
readonly location: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5442
|
-
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5443
|
-
readonly started_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
5444
|
-
readonly ended_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
5445
|
-
readonly duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5446
|
-
readonly timezone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5447
|
-
readonly participants_count: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5448
|
-
readonly issues: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["time_without_zone"], undefined>, undefined>, undefined>;
|
|
5449
|
-
readonly created_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
|
|
5450
|
-
readonly updated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
|
|
5451
|
-
readonly event_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5452
|
-
readonly series_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5453
|
-
readonly series_title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5454
|
-
readonly participants: v.ArraySchema<v.StrictObjectSchema<{
|
|
5455
|
-
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5456
|
-
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5457
|
-
readonly role: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5458
|
-
readonly person: v.NullableSchema<v.StrictObjectSchema<{
|
|
5459
|
-
readonly ref: v.StringSchema<undefined>;
|
|
5460
|
-
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5461
|
-
}, undefined>, undefined>;
|
|
5462
|
-
readonly joined_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
5463
|
-
readonly left_at: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
5464
|
-
readonly duration_ms: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5465
|
-
}, undefined>, undefined>;
|
|
5466
|
-
readonly transcripts: v.ArraySchema<v.StrictObjectSchema<{
|
|
5467
|
-
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
5468
|
-
readonly source: v.StringSchema<undefined>;
|
|
5469
|
-
readonly language: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5470
|
-
readonly lines_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
5471
|
-
}, undefined>, undefined>;
|
|
5472
|
-
readonly chat: v.ArraySchema<v.StrictObjectSchema<{
|
|
5473
|
-
readonly sent_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
|
|
5474
|
-
readonly sender: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5475
|
-
readonly recipient: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5476
|
-
readonly text: v.StringSchema<undefined>;
|
|
5477
|
-
}, undefined>, undefined>;
|
|
5478
|
-
readonly summaries: v.ArraySchema<v.StrictObjectSchema<{
|
|
5479
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
5480
|
-
readonly meeting: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
5481
|
-
readonly source: v.StringSchema<undefined>;
|
|
5482
|
-
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5483
|
-
readonly overview: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5484
|
-
readonly sections: v.ArraySchema<v.StrictObjectSchema<{
|
|
5485
|
-
readonly label: v.StringSchema<undefined>;
|
|
5486
|
-
readonly text: v.StringSchema<undefined>;
|
|
5487
|
-
}, undefined>, undefined>;
|
|
5488
|
-
readonly next_steps: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
5489
|
-
readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5490
|
-
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5491
|
-
readonly created_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
|
|
5492
|
-
readonly updated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>;
|
|
5493
|
-
}, undefined>, undefined>;
|
|
5494
|
-
readonly attachments: v.ArraySchema<v.StrictObjectSchema<{
|
|
5495
|
-
readonly position: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
5496
|
-
readonly kind: v.StringSchema<undefined>;
|
|
5497
|
-
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5498
|
-
readonly mime: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5499
|
-
readonly size: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
5500
|
-
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5501
|
-
}, undefined>, undefined>;
|
|
5502
|
-
readonly documents: v.ArraySchema<v.StrictObjectSchema<{
|
|
5503
|
-
readonly file_id: v.StringSchema<undefined>;
|
|
5504
|
-
readonly role: v.PicklistSchema<readonly ["transcript", "recording", "notes"], undefined>;
|
|
5505
|
-
readonly title: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5506
|
-
readonly document: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
5507
|
-
}, undefined>, undefined>;
|
|
5508
|
-
}, undefined>;
|
|
5447
|
+
readonly meeting: v.StrictObjectSchema<import("../meetings/item.js").MeetingEntries, undefined>;
|
|
5448
|
+
readonly meeting_details: v.StrictObjectSchema<import("../meetings/answers.js").MeetingDetailsEntries, undefined>;
|
|
5509
5449
|
readonly meeting_hit: v.StrictObjectSchema<{
|
|
5510
5450
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
5511
5451
|
readonly meeting: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
package/dist/errors/reasons.js
CHANGED
|
@@ -56,6 +56,8 @@ const PROVIDER_API = [
|
|
|
56
56
|
validation("api.unknown-method", "the provider has no method by this name"),
|
|
57
57
|
["api.disabled", "configuration_error", "the provider's API is turned off for this OAuth project"],
|
|
58
58
|
["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
|
|
59
|
+
["access.denied", "permission_error", "the provider refused this account access to the item"],
|
|
60
|
+
["item.not-found", "not_found", "the provider has no item by this id, or this account cannot see it"],
|
|
59
61
|
["file.not-found", "not_found", "the file named, or its folder, does not exist"],
|
|
60
62
|
validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
|
|
61
63
|
["file.denied", "permission_error", "the file cannot be opened: permission denied"],
|
|
@@ -239,6 +241,16 @@ const OTHERS = [
|
|
|
239
241
|
["calendar.no-upcoming", "not_found", "no upcoming meeting with other attendees is stored for this account"],
|
|
240
242
|
["chat.not-read", "not_found", "a chat shared with this person is not held whole in the store"],
|
|
241
243
|
["meetings.index-pending", "not_found", "some stored meetings are not indexed by person yet"],
|
|
244
|
+
["meetings.server-offline", "permission_error", "meetings list and show ask the service; --offline was given"],
|
|
245
|
+
["meetings.server-unreachable", "network_error", "the meetings service could not be reached"],
|
|
246
|
+
["meetings.server-signed-out", "authentication_error", "the meetings service needs a sign-in"],
|
|
247
|
+
["meetings.server-refused", "permission_error", "the meetings service refused the request"],
|
|
248
|
+
["meetings.server-failed", "provider_error", "the meetings service could not be read, or what it returned kept"],
|
|
249
|
+
[
|
|
250
|
+
"meetings.server-capped",
|
|
251
|
+
"outcome_unknown",
|
|
252
|
+
"the meetings service may hold more matches than the calls and pages one list asks",
|
|
253
|
+
],
|
|
242
254
|
["profile.locked", "permission_error", "a profile lock pins this process to its own account"],
|
|
243
255
|
["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
|
|
244
256
|
["busy.unanswered", "provider_error", "the provider gave no busy times for a calendar or person that was asked"],
|
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export { byEngagement, CONTRACT_ROLES, ENGAGEMENT_LEVELS, type Engagement, engag
|
|
|
30
30
|
export { normalizeTag, TAG_TYPES, type TagType } from "./domain/tags.js";
|
|
31
31
|
export { envelopeOfVcard, isVcard, type VcardIssue, type VcardOptions } from "./domain/vcard.js";
|
|
32
32
|
export { type AppErrors, DETAILS as CORE_DETAILS, failureContext, REASONS as CORE_REASONS } from "./errors/reasons.js";
|
|
33
|
-
export { canonicalMeetingReference, formatMeetingReference, type MeetingReference, parseMeetingReference, } from "./meetings/index.js";
|
|
33
|
+
export { BACKENDS, type Backend, canonicalMeetingReference, formatMeetingReference, type MeetingReference, parseMeetingReference, type QueryTree, type ServiceCalls, type ServiceCapability, type ServiceOperator, serviceCallsOf, } from "./meetings/index.js";
|
|
34
34
|
export type { CheckRow, Finding, Moderator } from "./moderation/check.js";
|
|
35
35
|
export { act, judge } from "./moderation/check.js";
|
|
36
36
|
export type { GroupRules } from "./moderation/rules.js";
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ export { byEngagement, CONTRACT_ROLES, ENGAGEMENT_LEVELS, engagementRank, invers
|
|
|
25
25
|
export { normalizeTag, TAG_TYPES } from "./domain/tags.js";
|
|
26
26
|
export { envelopeOfVcard, isVcard } from "./domain/vcard.js";
|
|
27
27
|
export { DETAILS as CORE_DETAILS, failureContext, REASONS as CORE_REASONS } from "./errors/reasons.js";
|
|
28
|
-
export { canonicalMeetingReference, formatMeetingReference, parseMeetingReference, } from "./meetings/index.js";
|
|
28
|
+
export { BACKENDS, canonicalMeetingReference, formatMeetingReference, parseMeetingReference, serviceCallsOf, } from "./meetings/index.js";
|
|
29
29
|
export { act, judge } from "./moderation/check.js";
|
|
30
30
|
export { defaultRules, ModerationRules, moderationPathFor } from "./moderation/rules.js";
|
|
31
31
|
export { resolveOutput } from "./output.js";
|
|
@@ -5,6 +5,7 @@ import { join } from "node:path";
|
|
|
5
5
|
/**
|
|
6
6
|
* The shared config (`~/.config/WireCat/config.json`) as a fresh or damaged machine has it. Only an explicit
|
|
7
7
|
* "read only" answer limits a tool, and even then a sync runs: it only reads the service (owner ruling, 2026-11-13).
|
|
8
|
+
* A slip with one reading is mended in place (2026-11-14), so only `broken` states may fail a step.
|
|
8
9
|
*/
|
|
9
10
|
const SHARED_CONFIGS = [
|
|
10
11
|
{ state: "no shared config, as on a fresh install" },
|
|
@@ -17,6 +18,10 @@ const SHARED_CONFIGS = [
|
|
|
17
18
|
state: "a shared config with a byte-order mark",
|
|
18
19
|
write: (dir) => writeFileSync(join(dir, "config.json"), '{"setup":{"permissions":"allow"}}'),
|
|
19
20
|
},
|
|
21
|
+
{
|
|
22
|
+
state: "a shared config with a missing comma between two lines",
|
|
23
|
+
write: (dir) => writeFileSync(join(dir, "config.json"), '{\n "setup": {"permissions": "allow"}\n "theme": "dark"\n}\n'),
|
|
24
|
+
},
|
|
20
25
|
{
|
|
21
26
|
state: "a folder where the shared config should be",
|
|
22
27
|
write: (dir) => mkdirSync(join(dir, "config.json")),
|