@overdeck/contracts 0.82.1 → 0.83.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/dist/index.cjs +370 -3
- package/dist/index.d.ts +589 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +318 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3356,6 +3356,197 @@ function compareEffort(a, b) {
|
|
|
3356
3356
|
return EFFORT_LEVELS.indexOf(a) - EFFORT_LEVELS.indexOf(b);
|
|
3357
3357
|
}
|
|
3358
3358
|
//#endregion
|
|
3359
|
+
//#region src/explorer.ts
|
|
3360
|
+
/** "project:<key>", "issue:<id>" or "workspace:<id>". */
|
|
3361
|
+
const ExplorerRootId = effect.Schema.String;
|
|
3362
|
+
const ExplorerEntryKind = effect.Schema.Literals([
|
|
3363
|
+
"file",
|
|
3364
|
+
"dir",
|
|
3365
|
+
"symlink"
|
|
3366
|
+
]);
|
|
3367
|
+
const ExplorerEntry = effect.Schema.Struct({
|
|
3368
|
+
name: effect.Schema.String,
|
|
3369
|
+
path: effect.Schema.String,
|
|
3370
|
+
kind: ExplorerEntryKind,
|
|
3371
|
+
size: effect.Schema.optional(effect.Schema.Number),
|
|
3372
|
+
mtimeMs: effect.Schema.Number,
|
|
3373
|
+
ignored: effect.Schema.Boolean
|
|
3374
|
+
});
|
|
3375
|
+
/** Result shared by create, rename and copy. */
|
|
3376
|
+
const ExplorerEntryResult = effect.Schema.Struct({ entry: ExplorerEntry });
|
|
3377
|
+
const ExplorerListDirInput = effect.Schema.Struct({
|
|
3378
|
+
rootId: ExplorerRootId,
|
|
3379
|
+
path: effect.Schema.String
|
|
3380
|
+
});
|
|
3381
|
+
const ExplorerListDirResult = effect.Schema.Struct({
|
|
3382
|
+
entries: effect.Schema.Array(ExplorerEntry),
|
|
3383
|
+
truncated: effect.Schema.Boolean,
|
|
3384
|
+
absPath: effect.Schema.String
|
|
3385
|
+
});
|
|
3386
|
+
const ExplorerReadFileInput = effect.Schema.Struct({
|
|
3387
|
+
rootId: ExplorerRootId,
|
|
3388
|
+
path: effect.Schema.String,
|
|
3389
|
+
ref: effect.Schema.optional(effect.Schema.Literals(["HEAD"]))
|
|
3390
|
+
});
|
|
3391
|
+
const ExplorerReadFileResult = effect.Schema.Struct({
|
|
3392
|
+
kind: effect.Schema.Literals([
|
|
3393
|
+
"text",
|
|
3394
|
+
"binary",
|
|
3395
|
+
"large-text"
|
|
3396
|
+
]),
|
|
3397
|
+
text: effect.Schema.optional(effect.Schema.String),
|
|
3398
|
+
size: effect.Schema.Number,
|
|
3399
|
+
mtimeMs: effect.Schema.Number,
|
|
3400
|
+
signature: effect.Schema.String,
|
|
3401
|
+
lang: effect.Schema.String,
|
|
3402
|
+
writable: effect.Schema.Boolean
|
|
3403
|
+
});
|
|
3404
|
+
const ExplorerWriteFileInput = effect.Schema.Struct({
|
|
3405
|
+
rootId: ExplorerRootId,
|
|
3406
|
+
path: effect.Schema.String,
|
|
3407
|
+
text: effect.Schema.String,
|
|
3408
|
+
expectedSignature: effect.Schema.NullOr(effect.Schema.String),
|
|
3409
|
+
allowMissing: effect.Schema.Boolean
|
|
3410
|
+
});
|
|
3411
|
+
const ExplorerWriteFileResult = effect.Schema.Struct({
|
|
3412
|
+
signature: effect.Schema.String,
|
|
3413
|
+
mtimeMs: effect.Schema.Number
|
|
3414
|
+
});
|
|
3415
|
+
const ExplorerCreateInput = effect.Schema.Struct({
|
|
3416
|
+
rootId: ExplorerRootId,
|
|
3417
|
+
path: effect.Schema.String,
|
|
3418
|
+
kind: effect.Schema.Literals(["file", "dir"])
|
|
3419
|
+
});
|
|
3420
|
+
const ExplorerRenameInput = effect.Schema.Struct({
|
|
3421
|
+
rootId: ExplorerRootId,
|
|
3422
|
+
from: effect.Schema.String,
|
|
3423
|
+
to: effect.Schema.String
|
|
3424
|
+
});
|
|
3425
|
+
const ExplorerCopyInput = effect.Schema.Struct({
|
|
3426
|
+
rootId: ExplorerRootId,
|
|
3427
|
+
from: effect.Schema.String,
|
|
3428
|
+
to: effect.Schema.String
|
|
3429
|
+
});
|
|
3430
|
+
const ExplorerDeleteInput = effect.Schema.Struct({
|
|
3431
|
+
rootId: ExplorerRootId,
|
|
3432
|
+
paths: effect.Schema.Array(effect.Schema.String)
|
|
3433
|
+
});
|
|
3434
|
+
const ExplorerDeleteResult = effect.Schema.Struct({ trashIds: effect.Schema.Array(effect.Schema.String) });
|
|
3435
|
+
const ExplorerRestoreInput = effect.Schema.Struct({
|
|
3436
|
+
rootId: ExplorerRootId,
|
|
3437
|
+
trashId: effect.Schema.String
|
|
3438
|
+
});
|
|
3439
|
+
const ExplorerRestoreResult = effect.Schema.Struct({ path: effect.Schema.String });
|
|
3440
|
+
const ExplorerGitFileStatus = effect.Schema.Literals([
|
|
3441
|
+
"untracked",
|
|
3442
|
+
"added",
|
|
3443
|
+
"modified",
|
|
3444
|
+
"deleted",
|
|
3445
|
+
"renamed",
|
|
3446
|
+
"conflicted"
|
|
3447
|
+
]);
|
|
3448
|
+
const ExplorerGitCommittedStatus = effect.Schema.Literals([
|
|
3449
|
+
"added",
|
|
3450
|
+
"modified",
|
|
3451
|
+
"deleted",
|
|
3452
|
+
"renamed"
|
|
3453
|
+
]);
|
|
3454
|
+
const ExplorerGitStatusInput = effect.Schema.Struct({ rootId: ExplorerRootId });
|
|
3455
|
+
const ExplorerGitStatusEntry = effect.Schema.Struct({
|
|
3456
|
+
path: effect.Schema.String,
|
|
3457
|
+
status: ExplorerGitFileStatus,
|
|
3458
|
+
staged: effect.Schema.Boolean
|
|
3459
|
+
});
|
|
3460
|
+
const ExplorerGitCommittedEntry = effect.Schema.Struct({
|
|
3461
|
+
path: effect.Schema.String,
|
|
3462
|
+
status: ExplorerGitCommittedStatus
|
|
3463
|
+
});
|
|
3464
|
+
const ExplorerGitStatusResult = effect.Schema.Struct({
|
|
3465
|
+
entries: effect.Schema.Array(ExplorerGitStatusEntry),
|
|
3466
|
+
committed: effect.Schema.Array(ExplorerGitCommittedEntry),
|
|
3467
|
+
branch: effect.Schema.NullOr(effect.Schema.String),
|
|
3468
|
+
truncated: effect.Schema.Boolean
|
|
3469
|
+
});
|
|
3470
|
+
const ExplorerGitStageInput = effect.Schema.Struct({
|
|
3471
|
+
rootId: ExplorerRootId,
|
|
3472
|
+
paths: effect.Schema.Array(effect.Schema.String),
|
|
3473
|
+
action: effect.Schema.Literals([
|
|
3474
|
+
"stage",
|
|
3475
|
+
"unstage",
|
|
3476
|
+
"discard"
|
|
3477
|
+
])
|
|
3478
|
+
});
|
|
3479
|
+
const ExplorerGitStageResult = effect.Schema.Struct({});
|
|
3480
|
+
const ExplorerSearchFilesInput = effect.Schema.Struct({
|
|
3481
|
+
rootId: ExplorerRootId,
|
|
3482
|
+
query: effect.Schema.String,
|
|
3483
|
+
limit: effect.Schema.Number
|
|
3484
|
+
});
|
|
3485
|
+
const ExplorerSearchFilesResult = effect.Schema.Struct({ paths: effect.Schema.Array(effect.Schema.String) });
|
|
3486
|
+
const ExplorerSearchContentInput = effect.Schema.Struct({
|
|
3487
|
+
rootId: ExplorerRootId,
|
|
3488
|
+
query: effect.Schema.String,
|
|
3489
|
+
scopePath: effect.Schema.optional(effect.Schema.String),
|
|
3490
|
+
regex: effect.Schema.Boolean,
|
|
3491
|
+
caseSensitive: effect.Schema.Boolean,
|
|
3492
|
+
limit: effect.Schema.Number
|
|
3493
|
+
});
|
|
3494
|
+
const ExplorerSearchContentMatch = effect.Schema.Struct({
|
|
3495
|
+
path: effect.Schema.String,
|
|
3496
|
+
line: effect.Schema.Number,
|
|
3497
|
+
column: effect.Schema.Number,
|
|
3498
|
+
preview: effect.Schema.String
|
|
3499
|
+
});
|
|
3500
|
+
const ExplorerSearchContentResult = effect.Schema.Struct({
|
|
3501
|
+
matches: effect.Schema.Array(ExplorerSearchContentMatch),
|
|
3502
|
+
truncated: effect.Schema.Boolean
|
|
3503
|
+
});
|
|
3504
|
+
/** An `overflow` event has `path: ""`: the client re-lists everything it shows. */
|
|
3505
|
+
const ExplorerWatchEvent = effect.Schema.Struct({
|
|
3506
|
+
kind: effect.Schema.Literals([
|
|
3507
|
+
"create",
|
|
3508
|
+
"update",
|
|
3509
|
+
"delete",
|
|
3510
|
+
"rename",
|
|
3511
|
+
"overflow"
|
|
3512
|
+
]),
|
|
3513
|
+
path: effect.Schema.String,
|
|
3514
|
+
oldPath: effect.Schema.optional(effect.Schema.String),
|
|
3515
|
+
isDirectory: effect.Schema.optional(effect.Schema.Boolean)
|
|
3516
|
+
});
|
|
3517
|
+
const ExplorerWatchInput = effect.Schema.Struct({ rootId: ExplorerRootId });
|
|
3518
|
+
/** One element of the pan.explorerWatch stream. */
|
|
3519
|
+
const ExplorerWatchBatch = effect.Schema.Struct({ events: effect.Schema.Array(ExplorerWatchEvent) });
|
|
3520
|
+
const ExplorerBeginEditInput = effect.Schema.Struct({
|
|
3521
|
+
projectKey: effect.Schema.String,
|
|
3522
|
+
forceNew: effect.Schema.Boolean
|
|
3523
|
+
});
|
|
3524
|
+
const ExplorerBeginEditResult = effect.Schema.Struct({
|
|
3525
|
+
rootId: ExplorerRootId,
|
|
3526
|
+
workspaceId: effect.Schema.String,
|
|
3527
|
+
name: effect.Schema.String,
|
|
3528
|
+
branch: effect.Schema.String,
|
|
3529
|
+
path: effect.Schema.String,
|
|
3530
|
+
created: effect.Schema.Boolean
|
|
3531
|
+
});
|
|
3532
|
+
/** Values of PanRpcError.code that explorer methods return. */
|
|
3533
|
+
const EXPLORER_ERROR_CODES = [
|
|
3534
|
+
"ROOT_NOT_FOUND",
|
|
3535
|
+
"PATH_OUTSIDE_ROOT",
|
|
3536
|
+
"PATH_IN_GIT_DIR",
|
|
3537
|
+
"NOT_FOUND",
|
|
3538
|
+
"ALREADY_EXISTS",
|
|
3539
|
+
"DISK_CONFLICT",
|
|
3540
|
+
"EDIT_WORKSPACE_REQUIRED",
|
|
3541
|
+
"FILE_TOO_LARGE",
|
|
3542
|
+
"NOT_A_GIT_REPO",
|
|
3543
|
+
"NOTHING_TO_COMMIT",
|
|
3544
|
+
"NOT_IMPLEMENTED",
|
|
3545
|
+
"INVALID_QUERY",
|
|
3546
|
+
"INVALID_TARGET",
|
|
3547
|
+
"EXPLORER_FAILED"
|
|
3548
|
+
];
|
|
3549
|
+
//#endregion
|
|
3359
3550
|
//#region src/rpc.ts
|
|
3360
3551
|
const WS_METHODS = {
|
|
3361
3552
|
scanConversations: "pan.scanConversations",
|
|
@@ -3381,6 +3572,20 @@ const WS_METHODS = {
|
|
|
3381
3572
|
readFileAtPath: "pan.readFileAtPath",
|
|
3382
3573
|
writeFileAtPath: "pan.writeFileAtPath",
|
|
3383
3574
|
resolveFilePathExists: "pan.resolveFilePathExists",
|
|
3575
|
+
explorerListDir: "pan.explorerListDir",
|
|
3576
|
+
explorerReadFile: "pan.explorerReadFile",
|
|
3577
|
+
explorerWriteFile: "pan.explorerWriteFile",
|
|
3578
|
+
explorerCreate: "pan.explorerCreate",
|
|
3579
|
+
explorerRename: "pan.explorerRename",
|
|
3580
|
+
explorerCopy: "pan.explorerCopy",
|
|
3581
|
+
explorerDelete: "pan.explorerDelete",
|
|
3582
|
+
explorerRestore: "pan.explorerRestore",
|
|
3583
|
+
explorerGitStatus: "pan.explorerGitStatus",
|
|
3584
|
+
explorerGitStage: "pan.explorerGitStage",
|
|
3585
|
+
explorerSearchFiles: "pan.explorerSearchFiles",
|
|
3586
|
+
explorerSearchContent: "pan.explorerSearchContent",
|
|
3587
|
+
explorerWatch: "pan.explorerWatch",
|
|
3588
|
+
explorerBeginEdit: "pan.explorerBeginEdit",
|
|
3384
3589
|
terminalOpen: "pan.terminalOpen",
|
|
3385
3590
|
terminalWrite: "pan.terminalWrite",
|
|
3386
3591
|
terminalResize: "pan.terminalResize",
|
|
@@ -3510,7 +3715,9 @@ const ConversationWindow = effect.Schema.Struct({
|
|
|
3510
3715
|
cursor: effect.Schema.NullOr(effect.Schema.String),
|
|
3511
3716
|
hasOlder: effect.Schema.Boolean,
|
|
3512
3717
|
/** `"<dev>:<ino>"` of the transcript file the window was read from. */
|
|
3513
|
-
transcript: effect.Schema.optional(effect.Schema.String)
|
|
3718
|
+
transcript: effect.Schema.optional(effect.Schema.String),
|
|
3719
|
+
/** PAN-5211: the server holds only this transcript's newest records; older pages load from disk. */
|
|
3720
|
+
bounded: effect.Schema.optional(effect.Schema.Boolean)
|
|
3514
3721
|
});
|
|
3515
3722
|
/** PAN-4558: what a resubscribing client already holds. */
|
|
3516
3723
|
const ConversationResume = effect.Schema.Struct({
|
|
@@ -3730,6 +3937,77 @@ const WriteFileAtPathRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.writeFileAtPa
|
|
|
3730
3937
|
success: WriteFileAtPathResult,
|
|
3731
3938
|
error: PanRpcError
|
|
3732
3939
|
});
|
|
3940
|
+
const ExplorerListDirRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerListDir, {
|
|
3941
|
+
payload: ExplorerListDirInput,
|
|
3942
|
+
success: ExplorerListDirResult,
|
|
3943
|
+
error: PanRpcError
|
|
3944
|
+
});
|
|
3945
|
+
const ExplorerReadFileRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerReadFile, {
|
|
3946
|
+
payload: ExplorerReadFileInput,
|
|
3947
|
+
success: ExplorerReadFileResult,
|
|
3948
|
+
error: PanRpcError
|
|
3949
|
+
});
|
|
3950
|
+
const ExplorerWriteFileRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerWriteFile, {
|
|
3951
|
+
payload: ExplorerWriteFileInput,
|
|
3952
|
+
success: ExplorerWriteFileResult,
|
|
3953
|
+
error: PanRpcError
|
|
3954
|
+
});
|
|
3955
|
+
const ExplorerCreateRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerCreate, {
|
|
3956
|
+
payload: ExplorerCreateInput,
|
|
3957
|
+
success: ExplorerEntryResult,
|
|
3958
|
+
error: PanRpcError
|
|
3959
|
+
});
|
|
3960
|
+
const ExplorerRenameRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerRename, {
|
|
3961
|
+
payload: ExplorerRenameInput,
|
|
3962
|
+
success: ExplorerEntryResult,
|
|
3963
|
+
error: PanRpcError
|
|
3964
|
+
});
|
|
3965
|
+
const ExplorerCopyRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerCopy, {
|
|
3966
|
+
payload: ExplorerCopyInput,
|
|
3967
|
+
success: ExplorerEntryResult,
|
|
3968
|
+
error: PanRpcError
|
|
3969
|
+
});
|
|
3970
|
+
const ExplorerDeleteRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerDelete, {
|
|
3971
|
+
payload: ExplorerDeleteInput,
|
|
3972
|
+
success: ExplorerDeleteResult,
|
|
3973
|
+
error: PanRpcError
|
|
3974
|
+
});
|
|
3975
|
+
const ExplorerRestoreRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerRestore, {
|
|
3976
|
+
payload: ExplorerRestoreInput,
|
|
3977
|
+
success: ExplorerRestoreResult,
|
|
3978
|
+
error: PanRpcError
|
|
3979
|
+
});
|
|
3980
|
+
const ExplorerGitStatusRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerGitStatus, {
|
|
3981
|
+
payload: ExplorerGitStatusInput,
|
|
3982
|
+
success: ExplorerGitStatusResult,
|
|
3983
|
+
error: PanRpcError
|
|
3984
|
+
});
|
|
3985
|
+
const ExplorerGitStageRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerGitStage, {
|
|
3986
|
+
payload: ExplorerGitStageInput,
|
|
3987
|
+
success: ExplorerGitStageResult,
|
|
3988
|
+
error: PanRpcError
|
|
3989
|
+
});
|
|
3990
|
+
const ExplorerSearchFilesRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerSearchFiles, {
|
|
3991
|
+
payload: ExplorerSearchFilesInput,
|
|
3992
|
+
success: ExplorerSearchFilesResult,
|
|
3993
|
+
error: PanRpcError
|
|
3994
|
+
});
|
|
3995
|
+
const ExplorerSearchContentRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerSearchContent, {
|
|
3996
|
+
payload: ExplorerSearchContentInput,
|
|
3997
|
+
success: ExplorerSearchContentResult,
|
|
3998
|
+
error: PanRpcError
|
|
3999
|
+
});
|
|
4000
|
+
const ExplorerWatchRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerWatch, {
|
|
4001
|
+
payload: ExplorerWatchInput,
|
|
4002
|
+
success: ExplorerWatchBatch,
|
|
4003
|
+
error: PanRpcError,
|
|
4004
|
+
stream: true
|
|
4005
|
+
});
|
|
4006
|
+
const ExplorerBeginEditRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.explorerBeginEdit, {
|
|
4007
|
+
payload: ExplorerBeginEditInput,
|
|
4008
|
+
success: ExplorerBeginEditResult,
|
|
4009
|
+
error: PanRpcError
|
|
4010
|
+
});
|
|
3733
4011
|
/**
|
|
3734
4012
|
* 10c. Resolve whether a file path candidate exists on disk (PAN-1457).
|
|
3735
4013
|
*
|
|
@@ -4009,7 +4287,7 @@ const GetConversationStatsRpc = effect_unstable_rpc_Rpc.make(WS_METHODS.getConve
|
|
|
4009
4287
|
error: PanRpcError
|
|
4010
4288
|
});
|
|
4011
4289
|
/** All Overdeck WebSocket RPC methods */
|
|
4012
|
-
const PanRpcGroup = effect_unstable_rpc_RpcGroup.make(SubscribeDomainEventsRpc, SubscribeIssueEventsRpc, SubscribeTerminalRpc, SubscribeAgentOutputRpc, GetSnapshotRpc, ReplayEventsRpc, ReadWorkspaceFileRpc, ReadFileAtPathRpc, WriteFileAtPathRpc, ResolveFilePathExistsRpc, TerminalOpenRpc, TerminalWriteRpc, TerminalResizeRpc, TerminalCloseRpc, StartPlanningRpc, StartAgentRpc, DeepWipeRpc, SendTerminalInputRpc, ResizeTerminalRpc, SubscribeConversationMessagesRpc, SubscribeProjectSessionTreeRpc, ShellOpenInEditorRpc, GetAvailableEditorsRpc, ShellOpenInBrowserRpc, GetAvailableBrowsersRpc, ScanConversationsRpc, SearchConversationsRpc, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, GetSessionsFeedFacetsRpc, GetDiscoveredSessionRpc, EnrichSessionsRpc, EmbedSessionsRpc, GetConversationCostRpc, GetConversationCostByWorkspaceRpc, GetConversationStatsRpc);
|
|
4290
|
+
const PanRpcGroup = effect_unstable_rpc_RpcGroup.make(SubscribeDomainEventsRpc, SubscribeIssueEventsRpc, SubscribeTerminalRpc, SubscribeAgentOutputRpc, GetSnapshotRpc, ReplayEventsRpc, ReadWorkspaceFileRpc, ReadFileAtPathRpc, WriteFileAtPathRpc, ResolveFilePathExistsRpc, ExplorerListDirRpc, ExplorerReadFileRpc, ExplorerWriteFileRpc, ExplorerCreateRpc, ExplorerRenameRpc, ExplorerCopyRpc, ExplorerDeleteRpc, ExplorerRestoreRpc, ExplorerGitStatusRpc, ExplorerGitStageRpc, ExplorerSearchFilesRpc, ExplorerSearchContentRpc, ExplorerWatchRpc, ExplorerBeginEditRpc, TerminalOpenRpc, TerminalWriteRpc, TerminalResizeRpc, TerminalCloseRpc, StartPlanningRpc, StartAgentRpc, DeepWipeRpc, SendTerminalInputRpc, ResizeTerminalRpc, SubscribeConversationMessagesRpc, SubscribeProjectSessionTreeRpc, ShellOpenInEditorRpc, GetAvailableEditorsRpc, ShellOpenInBrowserRpc, GetAvailableBrowsersRpc, ScanConversationsRpc, SearchConversationsRpc, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, GetSessionsFeedFacetsRpc, GetDiscoveredSessionRpc, EnrichSessionsRpc, EmbedSessionsRpc, GetConversationCostRpc, GetConversationCostByWorkspaceRpc, GetConversationStatsRpc);
|
|
4013
4291
|
//#endregion
|
|
4014
4292
|
//#region src/agent-runtime-merge.ts
|
|
4015
4293
|
function defaultRuntimeSnapshot(agentId, timestamp, sequence) {
|
|
@@ -5791,6 +6069,37 @@ const FlywheelConversationSummary = effect.Schema.Struct({
|
|
|
5791
6069
|
createdAt: effect.Schema.String,
|
|
5792
6070
|
sessionAlive: effect.Schema.Boolean
|
|
5793
6071
|
});
|
|
6072
|
+
/**
|
|
6073
|
+
* One `;`-separated item of the newest tick's needs-you line (PAN-5198), with
|
|
6074
|
+
* the oldest tick of the item's current unbroken run: the message that raised
|
|
6075
|
+
* it, which is where the loop explained it.
|
|
6076
|
+
*/
|
|
6077
|
+
const FlywheelNeedsYouItem = effect.Schema.Struct({
|
|
6078
|
+
text: effect.Schema.String,
|
|
6079
|
+
firstRaisedTick: effect.Schema.Number,
|
|
6080
|
+
/** The first-raised tick message's `createdAt`. */
|
|
6081
|
+
firstRaisedAt: effect.Schema.String,
|
|
6082
|
+
/** The first-raised tick message's id, when the harness records one. */
|
|
6083
|
+
firstRaisedMessageId: effect.Schema.optional(effect.Schema.String)
|
|
6084
|
+
});
|
|
6085
|
+
/** Two items are the same item when their keys match. */
|
|
6086
|
+
function needsYouItemKey(text) {
|
|
6087
|
+
return text.trim().toLowerCase();
|
|
6088
|
+
}
|
|
6089
|
+
/** Split a needs-you line on `;`: trimmed, empty pieces dropped, one per key. */
|
|
6090
|
+
function splitNeedsYouItems(needsYou) {
|
|
6091
|
+
if (!needsYou) return [];
|
|
6092
|
+
const seen = /* @__PURE__ */ new Set();
|
|
6093
|
+
const items = [];
|
|
6094
|
+
for (const piece of needsYou.split(";")) {
|
|
6095
|
+
const text = piece.trim();
|
|
6096
|
+
const key = needsYouItemKey(text);
|
|
6097
|
+
if (!text || seen.has(key)) continue;
|
|
6098
|
+
seen.add(key);
|
|
6099
|
+
items.push(text);
|
|
6100
|
+
}
|
|
6101
|
+
return items;
|
|
6102
|
+
}
|
|
5794
6103
|
const FlywheelLastTick = effect.Schema.Struct({
|
|
5795
6104
|
tick: effect.Schema.Number,
|
|
5796
6105
|
pick: effect.Schema.NullOr(effect.Schema.String),
|
|
@@ -5800,7 +6109,9 @@ const FlywheelLastTick = effect.Schema.Struct({
|
|
|
5800
6109
|
/** The assistant message's `createdAt`. */
|
|
5801
6110
|
at: effect.Schema.String,
|
|
5802
6111
|
/** The assistant message's id, when the harness records one. */
|
|
5803
|
-
messageId: effect.Schema.optional(effect.Schema.String)
|
|
6112
|
+
messageId: effect.Schema.optional(effect.Schema.String),
|
|
6113
|
+
/** The needs-you line split into items, each with its first-raised tick (PAN-5198). */
|
|
6114
|
+
needsYouItems: effect.Schema.optional(effect.Schema.Array(FlywheelNeedsYouItem))
|
|
5804
6115
|
});
|
|
5805
6116
|
const FlywheelPolicies = effect.Schema.Struct({
|
|
5806
6117
|
auto_pickup_backlog: effect.Schema.Boolean,
|
|
@@ -7060,6 +7371,8 @@ const TELEMETRY_CLIENT_ROUTES = [
|
|
|
7060
7371
|
"/api/costs/request-digest",
|
|
7061
7372
|
"/api/costs/summary",
|
|
7062
7373
|
"/api/disk-alert",
|
|
7374
|
+
"/api/explorer/download",
|
|
7375
|
+
"/api/explorer/upload",
|
|
7063
7376
|
"/api/fleet/conversations",
|
|
7064
7377
|
"/api/fleet/issues/:id/activity",
|
|
7065
7378
|
"/api/fleet/issues/:id/start",
|
|
@@ -7183,6 +7496,7 @@ const TELEMETRY_CLIENT_ROUTE_AREAS = [
|
|
|
7183
7496
|
"effort",
|
|
7184
7497
|
"environment",
|
|
7185
7498
|
"events",
|
|
7499
|
+
"explorer",
|
|
7186
7500
|
"fleet",
|
|
7187
7501
|
"flywheel",
|
|
7188
7502
|
"fs",
|
|
@@ -20436,6 +20750,7 @@ exports.DomainEvent = DomainEvent;
|
|
|
20436
20750
|
exports.EDITORS = EDITORS;
|
|
20437
20751
|
exports.EFFORT_LEVELS = EFFORT_LEVELS;
|
|
20438
20752
|
exports.ENVIRONMENT_PROTOCOL_VERSION = ENVIRONMENT_PROTOCOL_VERSION;
|
|
20753
|
+
exports.EXPLORER_ERROR_CODES = EXPLORER_ERROR_CODES;
|
|
20439
20754
|
exports.EditorIdSchema = EditorIdSchema;
|
|
20440
20755
|
exports.EffortLevelSchema = EffortLevelSchema;
|
|
20441
20756
|
exports.EmbedProgressEvent = EmbedProgressEvent;
|
|
@@ -20449,6 +20764,55 @@ exports.EnrichStatsSnapshot = EnrichStatsSnapshot;
|
|
|
20449
20764
|
exports.EnvironmentCapabilities = EnvironmentCapabilities;
|
|
20450
20765
|
exports.EnvironmentDescriptor = EnvironmentDescriptor;
|
|
20451
20766
|
exports.EnvironmentId = EnvironmentId;
|
|
20767
|
+
exports.ExplorerBeginEditInput = ExplorerBeginEditInput;
|
|
20768
|
+
exports.ExplorerBeginEditResult = ExplorerBeginEditResult;
|
|
20769
|
+
exports.ExplorerBeginEditRpc = ExplorerBeginEditRpc;
|
|
20770
|
+
exports.ExplorerCopyInput = ExplorerCopyInput;
|
|
20771
|
+
exports.ExplorerCopyRpc = ExplorerCopyRpc;
|
|
20772
|
+
exports.ExplorerCreateInput = ExplorerCreateInput;
|
|
20773
|
+
exports.ExplorerCreateRpc = ExplorerCreateRpc;
|
|
20774
|
+
exports.ExplorerDeleteInput = ExplorerDeleteInput;
|
|
20775
|
+
exports.ExplorerDeleteResult = ExplorerDeleteResult;
|
|
20776
|
+
exports.ExplorerDeleteRpc = ExplorerDeleteRpc;
|
|
20777
|
+
exports.ExplorerEntry = ExplorerEntry;
|
|
20778
|
+
exports.ExplorerEntryKind = ExplorerEntryKind;
|
|
20779
|
+
exports.ExplorerEntryResult = ExplorerEntryResult;
|
|
20780
|
+
exports.ExplorerGitCommittedEntry = ExplorerGitCommittedEntry;
|
|
20781
|
+
exports.ExplorerGitCommittedStatus = ExplorerGitCommittedStatus;
|
|
20782
|
+
exports.ExplorerGitFileStatus = ExplorerGitFileStatus;
|
|
20783
|
+
exports.ExplorerGitStageInput = ExplorerGitStageInput;
|
|
20784
|
+
exports.ExplorerGitStageResult = ExplorerGitStageResult;
|
|
20785
|
+
exports.ExplorerGitStageRpc = ExplorerGitStageRpc;
|
|
20786
|
+
exports.ExplorerGitStatusEntry = ExplorerGitStatusEntry;
|
|
20787
|
+
exports.ExplorerGitStatusInput = ExplorerGitStatusInput;
|
|
20788
|
+
exports.ExplorerGitStatusResult = ExplorerGitStatusResult;
|
|
20789
|
+
exports.ExplorerGitStatusRpc = ExplorerGitStatusRpc;
|
|
20790
|
+
exports.ExplorerListDirInput = ExplorerListDirInput;
|
|
20791
|
+
exports.ExplorerListDirResult = ExplorerListDirResult;
|
|
20792
|
+
exports.ExplorerListDirRpc = ExplorerListDirRpc;
|
|
20793
|
+
exports.ExplorerReadFileInput = ExplorerReadFileInput;
|
|
20794
|
+
exports.ExplorerReadFileResult = ExplorerReadFileResult;
|
|
20795
|
+
exports.ExplorerReadFileRpc = ExplorerReadFileRpc;
|
|
20796
|
+
exports.ExplorerRenameInput = ExplorerRenameInput;
|
|
20797
|
+
exports.ExplorerRenameRpc = ExplorerRenameRpc;
|
|
20798
|
+
exports.ExplorerRestoreInput = ExplorerRestoreInput;
|
|
20799
|
+
exports.ExplorerRestoreResult = ExplorerRestoreResult;
|
|
20800
|
+
exports.ExplorerRestoreRpc = ExplorerRestoreRpc;
|
|
20801
|
+
exports.ExplorerRootId = ExplorerRootId;
|
|
20802
|
+
exports.ExplorerSearchContentInput = ExplorerSearchContentInput;
|
|
20803
|
+
exports.ExplorerSearchContentMatch = ExplorerSearchContentMatch;
|
|
20804
|
+
exports.ExplorerSearchContentResult = ExplorerSearchContentResult;
|
|
20805
|
+
exports.ExplorerSearchContentRpc = ExplorerSearchContentRpc;
|
|
20806
|
+
exports.ExplorerSearchFilesInput = ExplorerSearchFilesInput;
|
|
20807
|
+
exports.ExplorerSearchFilesResult = ExplorerSearchFilesResult;
|
|
20808
|
+
exports.ExplorerSearchFilesRpc = ExplorerSearchFilesRpc;
|
|
20809
|
+
exports.ExplorerWatchBatch = ExplorerWatchBatch;
|
|
20810
|
+
exports.ExplorerWatchEvent = ExplorerWatchEvent;
|
|
20811
|
+
exports.ExplorerWatchInput = ExplorerWatchInput;
|
|
20812
|
+
exports.ExplorerWatchRpc = ExplorerWatchRpc;
|
|
20813
|
+
exports.ExplorerWriteFileInput = ExplorerWriteFileInput;
|
|
20814
|
+
exports.ExplorerWriteFileResult = ExplorerWriteFileResult;
|
|
20815
|
+
exports.ExplorerWriteFileRpc = ExplorerWriteFileRpc;
|
|
20452
20816
|
exports.ExtractionProviderConfig = ExtractionProviderConfig;
|
|
20453
20817
|
exports.ExtractionProviderTarget = ExtractionProviderTarget;
|
|
20454
20818
|
exports.FLEET_BINARY_ORDER = FLEET_BINARY_ORDER;
|
|
@@ -20478,6 +20842,7 @@ exports.FlywheelHttpUrl = FlywheelHttpUrl;
|
|
|
20478
20842
|
exports.FlywheelInFlightRow = FlywheelInFlightRow;
|
|
20479
20843
|
exports.FlywheelJournalSummary = FlywheelJournalSummary;
|
|
20480
20844
|
exports.FlywheelLastTick = FlywheelLastTick;
|
|
20845
|
+
exports.FlywheelNeedsYouItem = FlywheelNeedsYouItem;
|
|
20481
20846
|
exports.FlywheelOrchestrator = FlywheelOrchestrator;
|
|
20482
20847
|
exports.FlywheelOrderBookSummary = FlywheelOrderBookSummary;
|
|
20483
20848
|
exports.FlywheelOrders = FlywheelOrders;
|
|
@@ -20868,6 +21233,7 @@ exports.isTerminalBackendName = isTerminalBackendName;
|
|
|
20868
21233
|
exports.isTerminalTurnDiffSummaryStatus = isTerminalTurnDiffSummaryStatus;
|
|
20869
21234
|
exports.laneActivityOf = laneActivityOf;
|
|
20870
21235
|
exports.linkedConversationName = linkedConversationName;
|
|
21236
|
+
exports.needsYouItemKey = needsYouItemKey;
|
|
20871
21237
|
exports.negotiateHello = negotiateHello;
|
|
20872
21238
|
exports.normalizeChannelReplyPayload = normalizeChannelReplyPayload;
|
|
20873
21239
|
exports.normalizeColorTheme = normalizeColorTheme;
|
|
@@ -20892,6 +21258,7 @@ exports.resolveEffectivePullRequest = resolveEffectivePullRequest;
|
|
|
20892
21258
|
exports.resolveTrackerIssueId = resolveTrackerIssueId;
|
|
20893
21259
|
exports.sharedPromptRefusal = sharedPromptRefusal;
|
|
20894
21260
|
exports.slugifyThemeId = slugifyThemeId;
|
|
21261
|
+
exports.splitNeedsYouItems = splitNeedsYouItems;
|
|
20895
21262
|
exports.syncSnapshot = syncSnapshot;
|
|
20896
21263
|
exports.timelineKeyOfMessage = timelineKeyOfMessage;
|
|
20897
21264
|
exports.timelineKeyOfWork = timelineKeyOfWork;
|