@wirecat/cli-core 0.496.0 → 0.497.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 +58 -1
- package/dist/calendar/cli/answers.d.ts +277 -0
- package/dist/calendar/cli/answers.js +257 -0
- package/dist/calendar/cli/index.d.ts +10 -1
- package/dist/calendar/cli/index.js +78 -47
- package/dist/calendar/index.d.ts +1 -1
- package/dist/calendar/reads.d.ts +7 -0
- package/dist/calendar/server-search.d.ts +31 -0
- package/dist/calendar/server-search.js +41 -0
- package/dist/calendar/source.d.ts +14 -0
- package/dist/calendar/testing/answers.d.ts +6 -0
- package/dist/calendar/testing/answers.js +37 -0
- package/dist/calendar/testing/source.d.ts +2 -0
- package/dist/calendar/testing/source.js +9 -0
- package/dist/cli/commands-command.js +10 -2
- package/dist/cli/config-command.js +18 -8
- package/dist/cli/messenger/store-maintenance-command.d.ts +1 -1
- package/dist/cli/program.js +2 -1
- package/dist/entities/index.d.ts +7 -0
- package/dist/errors/reasons.js +4 -0
- package/dist/meetings/read-answers.d.ts +10 -0
- package/dist/meetings/read-answers.js +7 -0
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -6278,6 +6278,13 @@ export declare const ENTITIES: {
|
|
|
6278
6278
|
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`">]>;
|
|
6279
6279
|
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`">]>;
|
|
6280
6280
|
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
6281
|
+
readonly change: v.OptionalSchema<v.PicklistSchema<["new", "moved", "cancelled"], undefined>, undefined>;
|
|
6282
|
+
readonly changed_at: v.OptionalSchema<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>, undefined>;
|
|
6283
|
+
readonly was: v.OptionalSchema<v.StrictObjectSchema<{
|
|
6284
|
+
readonly starts_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>;
|
|
6285
|
+
readonly ends_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>;
|
|
6286
|
+
}, undefined>, undefined>;
|
|
6287
|
+
readonly overlaps: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
6281
6288
|
}, undefined>;
|
|
6282
6289
|
readonly meeting_review: v.StrictObjectSchema<{
|
|
6283
6290
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
package/dist/errors/reasons.js
CHANGED
|
@@ -65,6 +65,10 @@ const OTHERS = [
|
|
|
65
65
|
["calendar.read-only", "permission_error", "the calendar takes no new events from this account"],
|
|
66
66
|
["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
|
|
67
67
|
validation("busy.no-calendars", "no calendar syncs and no person was named, so there is nobody to ask"),
|
|
68
|
+
["search.offline", "permission_error", "search --backend server asks the provider; --offline was given"],
|
|
69
|
+
validation("search.no-calendars", "no calendar of this profile syncs yet, so the provider has nothing to search"),
|
|
70
|
+
validation("search.server-options", "search --backend server takes neither --exact, --cursor nor --newest"),
|
|
71
|
+
validation("search.one-backend", "search answers from one backend at a time: archive or server"),
|
|
68
72
|
validation("store.refused", "the local store refused the document text"),
|
|
69
73
|
["store.not-writable", "permission_error", "the message store cannot be written from this process"],
|
|
70
74
|
[
|
|
@@ -187,5 +187,15 @@ export declare const event: v.StrictObjectSchema<{
|
|
|
187
187
|
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`">]>;
|
|
188
188
|
/** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
|
|
189
189
|
readonly untrusted: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
190
|
+
/** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
|
|
191
|
+
readonly change: v.OptionalSchema<v.PicklistSchema<["new", "moved", "cancelled"], undefined>, undefined>;
|
|
192
|
+
readonly changed_at: v.OptionalSchema<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>, undefined>;
|
|
193
|
+
/** The times a moved event had at that date. */
|
|
194
|
+
readonly was: v.OptionalSchema<v.StrictObjectSchema<{
|
|
195
|
+
readonly starts_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>;
|
|
196
|
+
readonly ends_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>;
|
|
197
|
+
}, undefined>, undefined>;
|
|
198
|
+
/** On a calendar CLI's `events list overlapping`: the events it clashes with, as `event:<id>`. */
|
|
199
|
+
readonly overlaps: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
190
200
|
}, undefined>;
|
|
191
201
|
export declare const eventItem: (one: Event) => v.InferOutput<typeof event>;
|
|
@@ -202,6 +202,13 @@ export const event = v.strictObject({
|
|
|
202
202
|
updated_at: isoTime,
|
|
203
203
|
/** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
|
|
204
204
|
untrusted: v.optional(v.array(text)),
|
|
205
|
+
/** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
|
|
206
|
+
change: v.optional(v.picklist(["new", "moved", "cancelled"])),
|
|
207
|
+
changed_at: v.optional(v.nullable(isoTime)),
|
|
208
|
+
/** The times a moved event had at that date. */
|
|
209
|
+
was: v.optional(v.strictObject({ starts_at: v.nullable(isoTime), ends_at: v.nullable(isoTime) })),
|
|
210
|
+
/** On a calendar CLI's `events list overlapping`: the events it clashes with, as `event:<id>`. */
|
|
211
|
+
overlaps: v.optional(v.array(text)),
|
|
205
212
|
});
|
|
206
213
|
export const eventItem = (one) => ({
|
|
207
214
|
id: String(one.id),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.497.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",
|