@wirecat/cli-core 0.423.0 → 0.425.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 +51 -0
- package/dist/cli/author.d.ts +5 -6
- package/dist/cli/author.js +9 -16
- package/dist/cli/config-issues.d.ts +20 -2
- package/dist/cli/config-issues.js +111 -17
- package/dist/cli/context.d.ts +3 -1
- package/dist/cli/context.js +20 -7
- package/dist/cli/dry-run-guard.d.ts +2 -0
- package/dist/cli/dry-run-guard.js +68 -0
- package/dist/cli/entry.js +14 -9
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +4 -3
- package/dist/cli/list-query.d.ts +2 -0
- package/dist/cli/list-query.js +5 -2
- package/dist/cli/messenger/store-maintenance-command.js +15 -5
- package/dist/cli/preview.d.ts +44 -5
- package/dist/cli/preview.js +26 -8
- package/dist/cli/program.d.ts +1 -1
- package/dist/cli/program.js +36 -23
- package/dist/cli/runs/search.d.ts +1 -1
- package/dist/cli/runs/search.js +2 -0
- package/dist/cli/settings.d.ts +13 -0
- package/dist/cli/settings.js +36 -16
- package/dist/cli/shared-command-exports.js +3 -1
- package/dist/entities/index.d.ts +151 -3
- package/dist/entities/recorded-run.d.ts +87 -3
- package/dist/entities/recorded-run.js +16 -1
- package/dist/entities/store-maintenance.d.ts +64 -0
- package/dist/entities/store-maintenance.js +24 -1
- package/dist/mcp/agent.js +3 -4
- package/dist/mcp/bot/server.js +1 -1
- package/dist/mcp/meeting-preparation.js +2 -2
- package/dist/mcp/meeting-project-candidates.js +2 -2
- package/dist/mcp/meeting-series-inventory.js +2 -2
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/surface.d.ts +3 -1
- package/dist/mcp/surface.js +20 -9
- package/dist/mcp/text.d.ts +1 -1
- package/dist/mcp/text.js +1 -1
- package/dist/mcp/tool.d.ts +1 -1
- package/dist/mcp/tool.js +6 -2
- package/dist/meetings/mcp/agent-text.d.ts +2 -0
- package/dist/meetings/mcp/agent-text.js +2 -0
- package/dist/meetings/mcp/index.d.ts +1 -1
- package/dist/meetings/mcp/index.js +3 -3
- package/dist/meetings/mcp/passage.js +2 -2
- package/dist/meetings/mcp/project-evidence.js +2 -2
- package/dist/meetings/mcp/search.js +2 -2
- package/dist/runs/error-detail.d.ts +42 -0
- package/dist/runs/error-detail.js +131 -0
- package/dist/runs/events.d.ts +4 -0
- package/dist/runs/events.js +2 -0
- package/dist/runs/log-attributes.js +2 -0
- package/dist/runs/recording.d.ts +7 -3
- package/dist/runs/recording.js +22 -21
- package/dist/runs/run-context.d.ts +37 -0
- package/dist/runs/run-context.js +148 -0
- package/dist/runs/run.d.ts +22 -5
- package/dist/runs/run.js +2 -1
- package/dist/store/exports.d.ts +2 -0
- package/dist/store/exports.js +2 -0
- package/dist/store/sqlite/store-contents.d.ts +47 -0
- package/dist/store/sqlite/store-contents.js +104 -0
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -6990,7 +6990,7 @@ export declare const ENTITIES: {
|
|
|
6990
6990
|
readonly run: v.StrictObjectSchema<{
|
|
6991
6991
|
readonly run_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
6992
6992
|
readonly command: v.StringSchema<undefined>;
|
|
6993
|
-
readonly profile: v.StringSchema<undefined>;
|
|
6993
|
+
readonly profile: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
6994
6994
|
readonly started_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`">]>;
|
|
6995
6995
|
readonly completed_at: v.OptionalSchema<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>;
|
|
6996
6996
|
readonly status: v.PicklistSchema<["success", "failed", "partial", "running"], undefined>;
|
|
@@ -7016,6 +7016,34 @@ export declare const ENTITIES: {
|
|
|
7016
7016
|
readonly operations: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7017
7017
|
readonly codes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7018
7018
|
readonly trace_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
7019
|
+
readonly cli_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7020
|
+
readonly argv: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7021
|
+
readonly unknown_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7022
|
+
readonly agent: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7023
|
+
readonly kind: v.StringSchema<undefined>;
|
|
7024
|
+
readonly session_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
7025
|
+
}, undefined>, undefined>;
|
|
7026
|
+
readonly error: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7027
|
+
readonly class: v.StringSchema<undefined>;
|
|
7028
|
+
readonly code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7029
|
+
readonly reason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7030
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7031
|
+
readonly operation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7032
|
+
readonly http: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7033
|
+
readonly method: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7034
|
+
readonly endpoint_template: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7035
|
+
readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
7036
|
+
}, undefined>, undefined>;
|
|
7037
|
+
readonly provider: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7038
|
+
readonly key: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7039
|
+
readonly code: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
7040
|
+
}, undefined>, undefined>;
|
|
7041
|
+
readonly causes: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
7042
|
+
readonly class: v.StringSchema<undefined>;
|
|
7043
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7044
|
+
}, undefined>, undefined>, undefined>;
|
|
7045
|
+
readonly stack: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7046
|
+
}, undefined>, undefined>;
|
|
7019
7047
|
readonly directory: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7020
7048
|
readonly event_count: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
7021
7049
|
readonly events: v.OptionalSchema<v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>, undefined>;
|
|
@@ -7024,7 +7052,7 @@ export declare const ENTITIES: {
|
|
|
7024
7052
|
readonly "run.details": v.StrictObjectSchema<{
|
|
7025
7053
|
readonly run_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
7026
7054
|
readonly command: v.StringSchema<undefined>;
|
|
7027
|
-
readonly profile: v.StringSchema<undefined>;
|
|
7055
|
+
readonly profile: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7028
7056
|
readonly started_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`">]>;
|
|
7029
7057
|
readonly completed_at: v.OptionalSchema<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>;
|
|
7030
7058
|
readonly status: v.PicklistSchema<["success", "failed", "partial", "running"], undefined>;
|
|
@@ -7050,6 +7078,34 @@ export declare const ENTITIES: {
|
|
|
7050
7078
|
readonly operations: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7051
7079
|
readonly codes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7052
7080
|
readonly trace_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
7081
|
+
readonly cli_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7082
|
+
readonly argv: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7083
|
+
readonly unknown_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7084
|
+
readonly agent: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7085
|
+
readonly kind: v.StringSchema<undefined>;
|
|
7086
|
+
readonly session_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
7087
|
+
}, undefined>, undefined>;
|
|
7088
|
+
readonly error: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7089
|
+
readonly class: v.StringSchema<undefined>;
|
|
7090
|
+
readonly code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7091
|
+
readonly reason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7092
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7093
|
+
readonly operation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7094
|
+
readonly http: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7095
|
+
readonly method: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7096
|
+
readonly endpoint_template: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7097
|
+
readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
7098
|
+
}, undefined>, undefined>;
|
|
7099
|
+
readonly provider: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7100
|
+
readonly key: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7101
|
+
readonly code: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
7102
|
+
}, undefined>, undefined>;
|
|
7103
|
+
readonly causes: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
7104
|
+
readonly class: v.StringSchema<undefined>;
|
|
7105
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7106
|
+
}, undefined>, undefined>, undefined>;
|
|
7107
|
+
readonly stack: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7108
|
+
}, undefined>, undefined>;
|
|
7053
7109
|
readonly directory: v.StringSchema<undefined>;
|
|
7054
7110
|
readonly event_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
7055
7111
|
readonly events: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -7057,7 +7113,7 @@ export declare const ENTITIES: {
|
|
|
7057
7113
|
readonly "run.hit": v.StrictObjectSchema<{
|
|
7058
7114
|
readonly run_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
7059
7115
|
readonly command: v.StringSchema<undefined>;
|
|
7060
|
-
readonly profile: v.StringSchema<undefined>;
|
|
7116
|
+
readonly profile: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7061
7117
|
readonly started_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`">]>;
|
|
7062
7118
|
readonly completed_at: v.OptionalSchema<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>;
|
|
7063
7119
|
readonly status: v.PicklistSchema<["success", "failed", "partial", "running"], undefined>;
|
|
@@ -7083,6 +7139,34 @@ export declare const ENTITIES: {
|
|
|
7083
7139
|
readonly operations: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7084
7140
|
readonly codes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7085
7141
|
readonly trace_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
7142
|
+
readonly cli_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7143
|
+
readonly argv: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7144
|
+
readonly unknown_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7145
|
+
readonly agent: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7146
|
+
readonly kind: v.StringSchema<undefined>;
|
|
7147
|
+
readonly session_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
7148
|
+
}, undefined>, undefined>;
|
|
7149
|
+
readonly error: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7150
|
+
readonly class: v.StringSchema<undefined>;
|
|
7151
|
+
readonly code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7152
|
+
readonly reason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7153
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7154
|
+
readonly operation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7155
|
+
readonly http: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7156
|
+
readonly method: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7157
|
+
readonly endpoint_template: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7158
|
+
readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
7159
|
+
}, undefined>, undefined>;
|
|
7160
|
+
readonly provider: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7161
|
+
readonly key: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7162
|
+
readonly code: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
7163
|
+
}, undefined>, undefined>;
|
|
7164
|
+
readonly causes: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
7165
|
+
readonly class: v.StringSchema<undefined>;
|
|
7166
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
7167
|
+
}, undefined>, undefined>, undefined>;
|
|
7168
|
+
readonly stack: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7169
|
+
}, undefined>, undefined>;
|
|
7086
7170
|
readonly events: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
7087
7171
|
readonly events_truncated: v.BooleanSchema<undefined>;
|
|
7088
7172
|
}, undefined>;
|
|
@@ -9352,6 +9436,42 @@ export declare const ENTITIES: {
|
|
|
9352
9436
|
opens: v.LiteralSchema<false, undefined>;
|
|
9353
9437
|
error: v.StringSchema<undefined>;
|
|
9354
9438
|
}, undefined>, v.StrictObjectSchema<{
|
|
9439
|
+
readonly by_provider: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
9440
|
+
readonly chats: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9441
|
+
readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9442
|
+
readonly emails: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9443
|
+
readonly documents: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9444
|
+
readonly meetings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9445
|
+
readonly provider: v.StringSchema<undefined>;
|
|
9446
|
+
readonly accounts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9447
|
+
}, undefined>, undefined>, undefined>;
|
|
9448
|
+
readonly by_chat_kind: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
9449
|
+
readonly provider: v.StringSchema<undefined>;
|
|
9450
|
+
readonly kind: v.StringSchema<undefined>;
|
|
9451
|
+
readonly chats: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9452
|
+
readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9453
|
+
}, undefined>, undefined>, undefined>;
|
|
9454
|
+
readonly by_account: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
9455
|
+
readonly chats: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9456
|
+
readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9457
|
+
readonly emails: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9458
|
+
readonly documents: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9459
|
+
readonly meetings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9460
|
+
readonly provider: v.StringSchema<undefined>;
|
|
9461
|
+
readonly account_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9462
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
9463
|
+
}, undefined>, undefined>, undefined>;
|
|
9464
|
+
readonly by_year: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
9465
|
+
readonly provider: v.StringSchema<undefined>;
|
|
9466
|
+
readonly year: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9467
|
+
readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9468
|
+
}, undefined>, undefined>, undefined>;
|
|
9469
|
+
readonly by_attachment_kind: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
9470
|
+
readonly type: v.StringSchema<undefined>;
|
|
9471
|
+
readonly kind: v.StringSchema<undefined>;
|
|
9472
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9473
|
+
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9474
|
+
}, undefined>, undefined>, undefined>;
|
|
9355
9475
|
readonly path: v.StringSchema<undefined>;
|
|
9356
9476
|
readonly exists: v.LiteralSchema<true, undefined>;
|
|
9357
9477
|
readonly bytes: v.StrictObjectSchema<{
|
|
@@ -9368,6 +9488,10 @@ export declare const ENTITIES: {
|
|
|
9368
9488
|
readonly accounts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9369
9489
|
readonly chats: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9370
9490
|
readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9491
|
+
readonly emails: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9492
|
+
readonly documents: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9493
|
+
readonly meetings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9494
|
+
readonly events: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9371
9495
|
readonly attachments: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9372
9496
|
readonly identities: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9373
9497
|
}, undefined>, "entries" | "~run" | "~standard" | "~types"> & {
|
|
@@ -9375,6 +9499,10 @@ export declare const ENTITIES: {
|
|
|
9375
9499
|
readonly accounts: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
9376
9500
|
readonly chats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
9377
9501
|
readonly messages: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
9502
|
+
readonly emails: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
9503
|
+
readonly documents: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
9504
|
+
readonly meetings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
9505
|
+
readonly events: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
9378
9506
|
readonly attachments: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
9379
9507
|
readonly identities: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
9380
9508
|
};
|
|
@@ -9382,12 +9510,20 @@ export declare const ENTITIES: {
|
|
|
9382
9510
|
accounts?: number | undefined;
|
|
9383
9511
|
chats?: number | undefined;
|
|
9384
9512
|
messages?: number | undefined;
|
|
9513
|
+
emails?: number | undefined;
|
|
9514
|
+
documents?: number | undefined;
|
|
9515
|
+
meetings?: number | undefined;
|
|
9516
|
+
events?: number | undefined;
|
|
9385
9517
|
attachments?: number | undefined;
|
|
9386
9518
|
identities?: number | undefined;
|
|
9387
9519
|
}, {
|
|
9388
9520
|
accounts?: number | undefined;
|
|
9389
9521
|
chats?: number | undefined;
|
|
9390
9522
|
messages?: number | undefined;
|
|
9523
|
+
emails?: number | undefined;
|
|
9524
|
+
documents?: number | undefined;
|
|
9525
|
+
meetings?: number | undefined;
|
|
9526
|
+
events?: number | undefined;
|
|
9391
9527
|
attachments?: number | undefined;
|
|
9392
9528
|
identities?: number | undefined;
|
|
9393
9529
|
}>;
|
|
@@ -9395,6 +9531,10 @@ export declare const ENTITIES: {
|
|
|
9395
9531
|
accounts?: number | undefined;
|
|
9396
9532
|
chats?: number | undefined;
|
|
9397
9533
|
messages?: number | undefined;
|
|
9534
|
+
emails?: number | undefined;
|
|
9535
|
+
documents?: number | undefined;
|
|
9536
|
+
meetings?: number | undefined;
|
|
9537
|
+
events?: number | undefined;
|
|
9398
9538
|
attachments?: number | undefined;
|
|
9399
9539
|
identities?: number | undefined;
|
|
9400
9540
|
}, v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.NumberIssue | v.StrictObjectIssue>;
|
|
@@ -9403,6 +9543,10 @@ export declare const ENTITIES: {
|
|
|
9403
9543
|
accounts?: number | undefined;
|
|
9404
9544
|
chats?: number | undefined;
|
|
9405
9545
|
messages?: number | undefined;
|
|
9546
|
+
emails?: number | undefined;
|
|
9547
|
+
documents?: number | undefined;
|
|
9548
|
+
meetings?: number | undefined;
|
|
9549
|
+
events?: number | undefined;
|
|
9406
9550
|
attachments?: number | undefined;
|
|
9407
9551
|
identities?: number | undefined;
|
|
9408
9552
|
};
|
|
@@ -9410,6 +9554,10 @@ export declare const ENTITIES: {
|
|
|
9410
9554
|
accounts?: number | undefined;
|
|
9411
9555
|
chats?: number | undefined;
|
|
9412
9556
|
messages?: number | undefined;
|
|
9557
|
+
emails?: number | undefined;
|
|
9558
|
+
documents?: number | undefined;
|
|
9559
|
+
meetings?: number | undefined;
|
|
9560
|
+
events?: number | undefined;
|
|
9413
9561
|
attachments?: number | undefined;
|
|
9414
9562
|
identities?: number | undefined;
|
|
9415
9563
|
};
|
|
@@ -2,7 +2,7 @@ import * as v from "valibot";
|
|
|
2
2
|
export declare const recordedRun: v.StrictObjectSchema<{
|
|
3
3
|
readonly run_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
4
4
|
readonly command: v.StringSchema<undefined>;
|
|
5
|
-
readonly profile: v.StringSchema<undefined>;
|
|
5
|
+
readonly profile: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
6
6
|
readonly started_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`">]>;
|
|
7
7
|
readonly completed_at: v.OptionalSchema<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>;
|
|
8
8
|
readonly status: v.PicklistSchema<["success", "failed", "partial", "running"], undefined>;
|
|
@@ -28,6 +28,34 @@ export declare const recordedRun: v.StrictObjectSchema<{
|
|
|
28
28
|
readonly operations: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
29
29
|
readonly codes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
30
30
|
readonly trace_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
31
|
+
readonly cli_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
32
|
+
readonly argv: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
33
|
+
readonly unknown_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly agent: v.OptionalSchema<v.StrictObjectSchema<{
|
|
35
|
+
readonly kind: v.StringSchema<undefined>;
|
|
36
|
+
readonly session_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
+
}, undefined>, undefined>;
|
|
38
|
+
readonly error: v.OptionalSchema<v.StrictObjectSchema<{
|
|
39
|
+
readonly class: v.StringSchema<undefined>;
|
|
40
|
+
readonly code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
41
|
+
readonly reason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
+
readonly operation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
+
readonly http: v.OptionalSchema<v.StrictObjectSchema<{
|
|
45
|
+
readonly method: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
46
|
+
readonly endpoint_template: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
47
|
+
readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
48
|
+
}, undefined>, undefined>;
|
|
49
|
+
readonly provider: v.OptionalSchema<v.StrictObjectSchema<{
|
|
50
|
+
readonly key: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
51
|
+
readonly code: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
52
|
+
}, undefined>, undefined>;
|
|
53
|
+
readonly causes: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
54
|
+
readonly class: v.StringSchema<undefined>;
|
|
55
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
56
|
+
}, undefined>, undefined>, undefined>;
|
|
57
|
+
readonly stack: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
58
|
+
}, undefined>, undefined>;
|
|
31
59
|
readonly directory: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
32
60
|
readonly event_count: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
33
61
|
readonly events: v.OptionalSchema<v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>, undefined>;
|
|
@@ -36,7 +64,7 @@ export declare const recordedRun: v.StrictObjectSchema<{
|
|
|
36
64
|
export declare const runDetails: v.StrictObjectSchema<{
|
|
37
65
|
readonly run_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
38
66
|
readonly command: v.StringSchema<undefined>;
|
|
39
|
-
readonly profile: v.StringSchema<undefined>;
|
|
67
|
+
readonly profile: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
40
68
|
readonly started_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`">]>;
|
|
41
69
|
readonly completed_at: v.OptionalSchema<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>;
|
|
42
70
|
readonly status: v.PicklistSchema<["success", "failed", "partial", "running"], undefined>;
|
|
@@ -62,6 +90,34 @@ export declare const runDetails: v.StrictObjectSchema<{
|
|
|
62
90
|
readonly operations: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
63
91
|
readonly codes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
64
92
|
readonly trace_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
93
|
+
readonly cli_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
94
|
+
readonly argv: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
95
|
+
readonly unknown_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
96
|
+
readonly agent: v.OptionalSchema<v.StrictObjectSchema<{
|
|
97
|
+
readonly kind: v.StringSchema<undefined>;
|
|
98
|
+
readonly session_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
99
|
+
}, undefined>, undefined>;
|
|
100
|
+
readonly error: v.OptionalSchema<v.StrictObjectSchema<{
|
|
101
|
+
readonly class: v.StringSchema<undefined>;
|
|
102
|
+
readonly code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
103
|
+
readonly reason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
104
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
105
|
+
readonly operation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
106
|
+
readonly http: v.OptionalSchema<v.StrictObjectSchema<{
|
|
107
|
+
readonly method: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly endpoint_template: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
109
|
+
readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
110
|
+
}, undefined>, undefined>;
|
|
111
|
+
readonly provider: v.OptionalSchema<v.StrictObjectSchema<{
|
|
112
|
+
readonly key: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
113
|
+
readonly code: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
114
|
+
}, undefined>, undefined>;
|
|
115
|
+
readonly causes: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
116
|
+
readonly class: v.StringSchema<undefined>;
|
|
117
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
118
|
+
}, undefined>, undefined>, undefined>;
|
|
119
|
+
readonly stack: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
120
|
+
}, undefined>, undefined>;
|
|
65
121
|
readonly directory: v.StringSchema<undefined>;
|
|
66
122
|
readonly event_count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
67
123
|
readonly events: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -69,7 +125,7 @@ export declare const runDetails: v.StrictObjectSchema<{
|
|
|
69
125
|
export declare const runHit: v.StrictObjectSchema<{
|
|
70
126
|
readonly run_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
71
127
|
readonly command: v.StringSchema<undefined>;
|
|
72
|
-
readonly profile: v.StringSchema<undefined>;
|
|
128
|
+
readonly profile: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
73
129
|
readonly started_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`">]>;
|
|
74
130
|
readonly completed_at: v.OptionalSchema<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>;
|
|
75
131
|
readonly status: v.PicklistSchema<["success", "failed", "partial", "running"], undefined>;
|
|
@@ -95,6 +151,34 @@ export declare const runHit: v.StrictObjectSchema<{
|
|
|
95
151
|
readonly operations: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
96
152
|
readonly codes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
97
153
|
readonly trace_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
154
|
+
readonly cli_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
155
|
+
readonly argv: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
156
|
+
readonly unknown_command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
157
|
+
readonly agent: v.OptionalSchema<v.StrictObjectSchema<{
|
|
158
|
+
readonly kind: v.StringSchema<undefined>;
|
|
159
|
+
readonly session_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
160
|
+
}, undefined>, undefined>;
|
|
161
|
+
readonly error: v.OptionalSchema<v.StrictObjectSchema<{
|
|
162
|
+
readonly class: v.StringSchema<undefined>;
|
|
163
|
+
readonly code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
164
|
+
readonly reason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
165
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
166
|
+
readonly operation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
167
|
+
readonly http: v.OptionalSchema<v.StrictObjectSchema<{
|
|
168
|
+
readonly method: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
169
|
+
readonly endpoint_template: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
170
|
+
readonly status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
171
|
+
}, undefined>, undefined>;
|
|
172
|
+
readonly provider: v.OptionalSchema<v.StrictObjectSchema<{
|
|
173
|
+
readonly key: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
174
|
+
readonly code: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
175
|
+
}, undefined>, undefined>;
|
|
176
|
+
readonly causes: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
177
|
+
readonly class: v.StringSchema<undefined>;
|
|
178
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
179
|
+
}, undefined>, undefined>, undefined>;
|
|
180
|
+
readonly stack: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
181
|
+
}, undefined>, undefined>;
|
|
98
182
|
readonly events: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
99
183
|
readonly events_truncated: v.BooleanSchema<undefined>;
|
|
100
184
|
}, undefined>;
|
|
@@ -4,7 +4,7 @@ const events = v.array(v.record(v.string(), v.unknown()));
|
|
|
4
4
|
export const recordedRun = v.strictObject({
|
|
5
5
|
run_id: id,
|
|
6
6
|
command: text,
|
|
7
|
-
profile: text,
|
|
7
|
+
profile: v.optional(text),
|
|
8
8
|
started_at: time,
|
|
9
9
|
completed_at: v.optional(time),
|
|
10
10
|
status: v.picklist(["success", "failed", "partial", "running"]),
|
|
@@ -25,6 +25,21 @@ export const recordedRun = v.strictObject({
|
|
|
25
25
|
operations: v.optional(v.array(text)),
|
|
26
26
|
codes: v.optional(v.array(text)),
|
|
27
27
|
trace_id: v.optional(id),
|
|
28
|
+
cli_command: v.optional(text),
|
|
29
|
+
argv: v.optional(v.array(text)),
|
|
30
|
+
unknown_command: v.optional(text),
|
|
31
|
+
agent: v.optional(v.strictObject({ kind: text, session_id: v.nullable(text) })),
|
|
32
|
+
error: v.optional(v.strictObject({
|
|
33
|
+
class: text,
|
|
34
|
+
code: v.optional(text),
|
|
35
|
+
reason: v.optional(text),
|
|
36
|
+
message: v.optional(text),
|
|
37
|
+
operation: v.optional(text),
|
|
38
|
+
http: v.optional(v.strictObject({ method: v.optional(text), endpoint_template: v.optional(text), status: v.optional(count) })),
|
|
39
|
+
provider: v.optional(v.strictObject({ key: v.optional(text), code: v.optional(v.number()) })),
|
|
40
|
+
causes: v.optional(v.array(v.strictObject({ class: text, message: v.optional(text) }))),
|
|
41
|
+
stack: v.optional(v.array(text)),
|
|
42
|
+
})),
|
|
28
43
|
directory: v.optional(text),
|
|
29
44
|
event_count: v.optional(count),
|
|
30
45
|
events: v.optional(events),
|
|
@@ -8,6 +8,42 @@ export declare const storeInfo: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
8
8
|
opens: v.LiteralSchema<false, undefined>;
|
|
9
9
|
error: v.StringSchema<undefined>;
|
|
10
10
|
}, undefined>, v.StrictObjectSchema<{
|
|
11
|
+
readonly by_provider: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
12
|
+
readonly chats: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
13
|
+
readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
14
|
+
readonly emails: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
15
|
+
readonly documents: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
16
|
+
readonly meetings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
17
|
+
readonly provider: v.StringSchema<undefined>;
|
|
18
|
+
readonly accounts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
19
|
+
}, undefined>, undefined>, undefined>;
|
|
20
|
+
readonly by_chat_kind: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
21
|
+
readonly provider: v.StringSchema<undefined>;
|
|
22
|
+
readonly kind: v.StringSchema<undefined>;
|
|
23
|
+
readonly chats: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
24
|
+
readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
25
|
+
}, undefined>, undefined>, undefined>;
|
|
26
|
+
readonly by_account: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
27
|
+
readonly chats: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
28
|
+
readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
29
|
+
readonly emails: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
30
|
+
readonly documents: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
31
|
+
readonly meetings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
32
|
+
readonly provider: v.StringSchema<undefined>;
|
|
33
|
+
readonly account_id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
34
|
+
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
+
}, undefined>, undefined>, undefined>;
|
|
36
|
+
readonly by_year: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
37
|
+
readonly provider: v.StringSchema<undefined>;
|
|
38
|
+
readonly year: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
39
|
+
readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
40
|
+
}, undefined>, undefined>, undefined>;
|
|
41
|
+
readonly by_attachment_kind: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
42
|
+
readonly type: v.StringSchema<undefined>;
|
|
43
|
+
readonly kind: v.StringSchema<undefined>;
|
|
44
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
45
|
+
readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
46
|
+
}, undefined>, undefined>, undefined>;
|
|
11
47
|
readonly path: v.StringSchema<undefined>;
|
|
12
48
|
readonly exists: v.LiteralSchema<true, undefined>;
|
|
13
49
|
readonly bytes: v.StrictObjectSchema<{
|
|
@@ -24,6 +60,10 @@ export declare const storeInfo: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
24
60
|
readonly accounts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
25
61
|
readonly chats: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
26
62
|
readonly messages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
63
|
+
readonly emails: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
64
|
+
readonly documents: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
65
|
+
readonly meetings: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
66
|
+
readonly events: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
27
67
|
readonly attachments: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
28
68
|
readonly identities: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
29
69
|
}, undefined>, "entries" | "~run" | "~standard" | "~types"> & {
|
|
@@ -31,6 +71,10 @@ export declare const storeInfo: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
31
71
|
readonly accounts: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
32
72
|
readonly chats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
33
73
|
readonly messages: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
74
|
+
readonly emails: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
75
|
+
readonly documents: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
76
|
+
readonly meetings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
77
|
+
readonly events: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
34
78
|
readonly attachments: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
35
79
|
readonly identities: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
36
80
|
};
|
|
@@ -38,12 +82,20 @@ export declare const storeInfo: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
38
82
|
accounts?: number | undefined;
|
|
39
83
|
chats?: number | undefined;
|
|
40
84
|
messages?: number | undefined;
|
|
85
|
+
emails?: number | undefined;
|
|
86
|
+
documents?: number | undefined;
|
|
87
|
+
meetings?: number | undefined;
|
|
88
|
+
events?: number | undefined;
|
|
41
89
|
attachments?: number | undefined;
|
|
42
90
|
identities?: number | undefined;
|
|
43
91
|
}, {
|
|
44
92
|
accounts?: number | undefined;
|
|
45
93
|
chats?: number | undefined;
|
|
46
94
|
messages?: number | undefined;
|
|
95
|
+
emails?: number | undefined;
|
|
96
|
+
documents?: number | undefined;
|
|
97
|
+
meetings?: number | undefined;
|
|
98
|
+
events?: number | undefined;
|
|
47
99
|
attachments?: number | undefined;
|
|
48
100
|
identities?: number | undefined;
|
|
49
101
|
}>;
|
|
@@ -51,6 +103,10 @@ export declare const storeInfo: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
51
103
|
accounts?: number | undefined;
|
|
52
104
|
chats?: number | undefined;
|
|
53
105
|
messages?: number | undefined;
|
|
106
|
+
emails?: number | undefined;
|
|
107
|
+
documents?: number | undefined;
|
|
108
|
+
meetings?: number | undefined;
|
|
109
|
+
events?: number | undefined;
|
|
54
110
|
attachments?: number | undefined;
|
|
55
111
|
identities?: number | undefined;
|
|
56
112
|
}, v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.NumberIssue | v.StrictObjectIssue>;
|
|
@@ -59,6 +115,10 @@ export declare const storeInfo: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
59
115
|
accounts?: number | undefined;
|
|
60
116
|
chats?: number | undefined;
|
|
61
117
|
messages?: number | undefined;
|
|
118
|
+
emails?: number | undefined;
|
|
119
|
+
documents?: number | undefined;
|
|
120
|
+
meetings?: number | undefined;
|
|
121
|
+
events?: number | undefined;
|
|
62
122
|
attachments?: number | undefined;
|
|
63
123
|
identities?: number | undefined;
|
|
64
124
|
};
|
|
@@ -66,6 +126,10 @@ export declare const storeInfo: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
66
126
|
accounts?: number | undefined;
|
|
67
127
|
chats?: number | undefined;
|
|
68
128
|
messages?: number | undefined;
|
|
129
|
+
emails?: number | undefined;
|
|
130
|
+
documents?: number | undefined;
|
|
131
|
+
meetings?: number | undefined;
|
|
132
|
+
events?: number | undefined;
|
|
69
133
|
attachments?: number | undefined;
|
|
70
134
|
identities?: number | undefined;
|
|
71
135
|
};
|
|
@@ -23,7 +23,29 @@ const stemIndex = v.strictObject({
|
|
|
23
23
|
built_at: v.nullable(time),
|
|
24
24
|
});
|
|
25
25
|
const readFailure = { path: text, exists: v.literal(true), opens: v.literal(false), error: text };
|
|
26
|
-
const rows = v.partial(v.strictObject({
|
|
26
|
+
const rows = v.partial(v.strictObject({
|
|
27
|
+
accounts: count,
|
|
28
|
+
chats: count,
|
|
29
|
+
messages: count,
|
|
30
|
+
emails: count,
|
|
31
|
+
documents: count,
|
|
32
|
+
meetings: count,
|
|
33
|
+
events: count,
|
|
34
|
+
attachments: count,
|
|
35
|
+
identities: count,
|
|
36
|
+
}));
|
|
37
|
+
const perAccount = { chats: count, messages: count, emails: count, documents: count, meetings: count };
|
|
38
|
+
/** Over every account in the store; absent for a file with no schema yet. */
|
|
39
|
+
const contents = {
|
|
40
|
+
by_provider: v.optional(v.array(v.strictObject({ provider: text, accounts: count, ...perAccount }))),
|
|
41
|
+
by_chat_kind: v.optional(v.array(v.strictObject({ provider: text, kind: text, chats: count, messages: count }))),
|
|
42
|
+
/** `name` is the one `account list` shows; the messenger's own id for the account is left out. */
|
|
43
|
+
by_account: v.optional(v.array(v.strictObject({ provider: text, account_id: count, name: v.nullable(text), ...perAccount }))),
|
|
44
|
+
/** Calendar years in UTC. */
|
|
45
|
+
by_year: v.optional(v.array(v.strictObject({ provider: text, year: count, messages: count }))),
|
|
46
|
+
/** `type` is what the file is attached to: a message, an email, a document… `bytes` counts the sizes known. */
|
|
47
|
+
by_attachment_kind: v.optional(v.array(v.strictObject({ type: text, kind: text, count, bytes: count }))),
|
|
48
|
+
};
|
|
27
49
|
export const storeInfo = v.union([
|
|
28
50
|
absent,
|
|
29
51
|
v.strictObject(readFailure),
|
|
@@ -36,6 +58,7 @@ export const storeInfo = v.union([
|
|
|
36
58
|
pending_normalization: v.nullable(count),
|
|
37
59
|
word_index: v.nullable(wordIndex),
|
|
38
60
|
stem_index: v.nullable(stemIndex),
|
|
61
|
+
...contents,
|
|
39
62
|
}),
|
|
40
63
|
]);
|
|
41
64
|
export const storeCheck = v.union([
|
package/dist/mcp/agent.js
CHANGED
|
@@ -127,8 +127,8 @@ export const toolsFromCommands = (commands, options = {}) => {
|
|
|
127
127
|
const { root = [], exclude = [], levels, keyOf, authority, readOnly = false } = options;
|
|
128
128
|
return flatten(commands)
|
|
129
129
|
.filter((info) =>
|
|
130
|
-
//
|
|
131
|
-
(info.commands.length === 0 || info.
|
|
130
|
+
// A group is offered only when it runs on its own; without an action it only prints its help.
|
|
131
|
+
(info.commands.length === 0 || info.runnable === true) &&
|
|
132
132
|
info.path.length > root.length &&
|
|
133
133
|
startsWith(info.path, root) &&
|
|
134
134
|
!exclude.some((skipped) => startsWith(info.path.slice(root.length), skipped)) &&
|
|
@@ -184,8 +184,7 @@ const argvOf = (info, input, profile, stdin) => {
|
|
|
184
184
|
export const runCommandForAgent = async (program, path, input, ctx) => {
|
|
185
185
|
try {
|
|
186
186
|
const info = flatten(program.commands).find((one) => one.path.length === path.length && startsWith(one.path, path));
|
|
187
|
-
|
|
188
|
-
if (!info || (info.commands.length > 0 && info.effects === undefined))
|
|
187
|
+
if (!info || (info.commands.length > 0 && info.runnable !== true))
|
|
189
188
|
throw new CliError("validation_error", `no command "${path.join(" ")}" to run`);
|
|
190
189
|
if (info.lifetime)
|
|
191
190
|
throw new CliError("validation_error", `"${path.join(" ")}" runs until it is stopped; an agent call must return`);
|
package/dist/mcp/bot/server.js
CHANGED
|
@@ -115,7 +115,7 @@ export const createBotServer = (options) => {
|
|
|
115
115
|
const one = flatten(program.commands).find((info) => info.path[0] === "bot" && normal(info.path.slice(1).join(" ")) === asked);
|
|
116
116
|
if (lock && one && changesMessenger(one))
|
|
117
117
|
throw readOnlyRefusal(lock, MESSENGER_CHANGE_REFUSAL);
|
|
118
|
-
});
|
|
118
|
+
}, bot.app.messenger);
|
|
119
119
|
return server;
|
|
120
120
|
};
|
|
121
121
|
return { build, tools, offered: tools.map((tool) => tool.command) };
|