@anhlp/alp-protocol 0.0.1-beta.4 → 0.0.1-beta.6

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.
@@ -1014,6 +1014,38 @@
1014
1014
  }
1015
1015
  }
1016
1016
  },
1017
+ {
1018
+ "name": "event question mirroring a human gate",
1019
+ "check": "envelope",
1020
+ "valid": true,
1021
+ "value": {
1022
+ "sessionId": "ses_fixture",
1023
+ "epoch": "epoch-1",
1024
+ "seq": 3,
1025
+ "cursor": 12,
1026
+ "ts": "2026-10-15T00:00:00.000Z",
1027
+ "event": {
1028
+ "type": "question",
1029
+ "question": {
1030
+ "id": "gate-t-a3f8-g1",
1031
+ "sessionId": "ses_fixture",
1032
+ "rootId": "ses_fixture",
1033
+ "agent": "ALP",
1034
+ "body": "Cổng phê duyệt g1 của t-a3f8 (Phát hành):\nPhát hành bản beta?",
1035
+ "options": [
1036
+ "Phát hành",
1037
+ "Đợi"
1038
+ ],
1039
+ "askedAt": "2026-10-15T00:00:00.000Z",
1040
+ "gate": {
1041
+ "projectRoot": "/work/project",
1042
+ "taskId": "t-a3f8",
1043
+ "gateId": "g1"
1044
+ }
1045
+ }
1046
+ }
1047
+ }
1048
+ },
1017
1049
  {
1018
1050
  "name": "announcement without a cursor",
1019
1051
  "check": "envelope",
@@ -1715,6 +1747,40 @@
1715
1747
  "defaultModel": "codex:gpt-6.1-sol"
1716
1748
  }
1717
1749
  },
1750
+ {
1751
+ "name": "catalog.refresh params",
1752
+ "check": "params",
1753
+ "method": "catalog.refresh",
1754
+ "valid": true,
1755
+ "value": {}
1756
+ },
1757
+ {
1758
+ "name": "catalog.refresh result",
1759
+ "check": "result",
1760
+ "method": "catalog.refresh",
1761
+ "valid": true,
1762
+ "value": {
1763
+ "models": [
1764
+ {
1765
+ "id": "codex:gpt-6.1-sol",
1766
+ "label": "Codex · GPT-6.1-Sol"
1767
+ }
1768
+ ],
1769
+ "modes": [
1770
+ {
1771
+ "id": "read-only",
1772
+ "label": "Read only"
1773
+ }
1774
+ ],
1775
+ "thinkingOptions": [
1776
+ {
1777
+ "id": "low",
1778
+ "label": "low"
1779
+ }
1780
+ ],
1781
+ "defaultModel": "codex:gpt-6.1-sol"
1782
+ }
1783
+ },
1718
1784
  {
1719
1785
  "name": "assignment.recall params",
1720
1786
  "check": "params",
@@ -2113,6 +2179,345 @@
2113
2179
  "size": 1048577
2114
2180
  }
2115
2181
  },
2182
+ {
2183
+ "name": "workspace.files.list a later page, with internal links",
2184
+ "check": "params",
2185
+ "method": "workspace.files.list",
2186
+ "valid": true,
2187
+ "value": {
2188
+ "projectRoot": "/work/project",
2189
+ "path": "docs",
2190
+ "cursor": "WzEsImIubWQiXQ",
2191
+ "internalLinks": true
2192
+ }
2193
+ },
2194
+ {
2195
+ "name": "workspace.files.list with an empty cursor",
2196
+ "check": "params",
2197
+ "method": "workspace.files.list",
2198
+ "valid": false,
2199
+ "value": {
2200
+ "projectRoot": "/work/project",
2201
+ "cursor": ""
2202
+ }
2203
+ },
2204
+ {
2205
+ "name": "workspace.files.list result with a link and a next page",
2206
+ "check": "result",
2207
+ "method": "workspace.files.list",
2208
+ "valid": true,
2209
+ "value": {
2210
+ "entries": [
2211
+ {
2212
+ "name": "guide",
2213
+ "path": "docs/guide",
2214
+ "kind": "directory",
2215
+ "modifiedAt": "2026-10-15T00:00:00.000Z",
2216
+ "target": "src/guide"
2217
+ }
2218
+ ],
2219
+ "truncated": true,
2220
+ "nextCursor": "WzAsImd1aWRlIl0",
2221
+ "target": "docs"
2222
+ }
2223
+ },
2224
+ {
2225
+ "name": "workspace.files.find params",
2226
+ "check": "params",
2227
+ "method": "workspace.files.find",
2228
+ "valid": true,
2229
+ "value": {
2230
+ "projectRoot": "/work/project",
2231
+ "query": "srv",
2232
+ "kinds": [
2233
+ "file",
2234
+ "directory"
2235
+ ],
2236
+ "matchMode": "subsequence",
2237
+ "limit": 1000
2238
+ }
2239
+ },
2240
+ {
2241
+ "name": "workspace.files.find a later page of a suffix search",
2242
+ "check": "params",
2243
+ "method": "workspace.files.find",
2244
+ "valid": true,
2245
+ "value": {
2246
+ "projectRoot": "/work/project",
2247
+ "query": "guide/intro.md",
2248
+ "matchMode": "suffix",
2249
+ "cursor": "c0ffee.1000"
2250
+ }
2251
+ },
2252
+ {
2253
+ "name": "workspace.files.find with an unknown matchMode",
2254
+ "check": "params",
2255
+ "method": "workspace.files.find",
2256
+ "valid": false,
2257
+ "value": {
2258
+ "projectRoot": "/work/project",
2259
+ "matchMode": "fuzzy"
2260
+ }
2261
+ },
2262
+ {
2263
+ "name": "workspace.files.find with no kinds",
2264
+ "check": "params",
2265
+ "method": "workspace.files.find",
2266
+ "valid": false,
2267
+ "value": {
2268
+ "projectRoot": "/work/project",
2269
+ "kinds": []
2270
+ }
2271
+ },
2272
+ {
2273
+ "name": "workspace.files.find with a link kind",
2274
+ "check": "params",
2275
+ "method": "workspace.files.find",
2276
+ "valid": false,
2277
+ "value": {
2278
+ "projectRoot": "/work/project",
2279
+ "kinds": [
2280
+ "link"
2281
+ ]
2282
+ }
2283
+ },
2284
+ {
2285
+ "name": "workspace.files.find with a limit over 1000",
2286
+ "check": "params",
2287
+ "method": "workspace.files.find",
2288
+ "valid": false,
2289
+ "value": {
2290
+ "projectRoot": "/work/project",
2291
+ "limit": 1001
2292
+ }
2293
+ },
2294
+ {
2295
+ "name": "workspace.files.find result",
2296
+ "check": "result",
2297
+ "method": "workspace.files.find",
2298
+ "valid": true,
2299
+ "value": {
2300
+ "entries": [
2301
+ {
2302
+ "path": "docs",
2303
+ "kind": "directory"
2304
+ },
2305
+ {
2306
+ "path": "docs/sửa lỗi.md",
2307
+ "kind": "file"
2308
+ }
2309
+ ],
2310
+ "nextCursor": "c0ffee.2",
2311
+ "truncated": true
2312
+ }
2313
+ },
2314
+ {
2315
+ "name": "workspace.files.find result without a kind",
2316
+ "check": "result",
2317
+ "method": "workspace.files.find",
2318
+ "valid": false,
2319
+ "value": {
2320
+ "entries": [
2321
+ {
2322
+ "path": "docs"
2323
+ }
2324
+ ]
2325
+ }
2326
+ },
2327
+ {
2328
+ "name": "workspace.files.preview params",
2329
+ "check": "params",
2330
+ "method": "workspace.files.preview",
2331
+ "valid": true,
2332
+ "value": {
2333
+ "projectRoot": "/work/project",
2334
+ "path": "assets/logo.png",
2335
+ "includeIgnored": true,
2336
+ "internalLinks": true,
2337
+ "maxBytes": 52428800
2338
+ }
2339
+ },
2340
+ {
2341
+ "name": "workspace.files.preview a later chunk",
2342
+ "check": "params",
2343
+ "method": "workspace.files.preview",
2344
+ "valid": true,
2345
+ "value": {
2346
+ "projectRoot": "/work/project",
2347
+ "path": "big.log",
2348
+ "offset": 8388608,
2349
+ "revision": "r0123456789abcdef"
2350
+ }
2351
+ },
2352
+ {
2353
+ "name": "workspace.files.preview with maxBytes over 50 MiB",
2354
+ "check": "params",
2355
+ "method": "workspace.files.preview",
2356
+ "valid": false,
2357
+ "value": {
2358
+ "projectRoot": "/work/project",
2359
+ "path": "big.log",
2360
+ "maxBytes": 52428801
2361
+ }
2362
+ },
2363
+ {
2364
+ "name": "workspace.files.preview with a negative offset",
2365
+ "check": "params",
2366
+ "method": "workspace.files.preview",
2367
+ "valid": false,
2368
+ "value": {
2369
+ "projectRoot": "/work/project",
2370
+ "path": "big.log",
2371
+ "offset": -1
2372
+ }
2373
+ },
2374
+ {
2375
+ "name": "workspace.files.preview result",
2376
+ "check": "result",
2377
+ "method": "workspace.files.preview",
2378
+ "valid": true,
2379
+ "value": {
2380
+ "path": "assets/logo.png",
2381
+ "target": "brand/logo.png",
2382
+ "kind": "image",
2383
+ "mimeType": "image/png",
2384
+ "size": 8,
2385
+ "modifiedAt": "2026-10-15T00:00:00.000Z",
2386
+ "revision": "r0123456789abcdef",
2387
+ "encoding": "base64",
2388
+ "content": "iVBORw0KGgo=",
2389
+ "offset": 0
2390
+ }
2391
+ },
2392
+ {
2393
+ "name": "workspace.files.preview result of a first chunk",
2394
+ "check": "result",
2395
+ "method": "workspace.files.preview",
2396
+ "valid": true,
2397
+ "value": {
2398
+ "path": "big.log",
2399
+ "kind": "text",
2400
+ "mimeType": "text/plain",
2401
+ "size": 9437184,
2402
+ "modifiedAt": "2026-10-15T00:00:00.000Z",
2403
+ "revision": "r0123456789abcdef",
2404
+ "encoding": "base64",
2405
+ "content": "aGk=",
2406
+ "offset": 0,
2407
+ "nextOffset": 8388608
2408
+ }
2409
+ },
2410
+ {
2411
+ "name": "workspace.files.preview result of a binary file",
2412
+ "check": "result",
2413
+ "method": "workspace.files.preview",
2414
+ "valid": true,
2415
+ "value": {
2416
+ "path": "blob.bin",
2417
+ "kind": "binary",
2418
+ "mimeType": "application/octet-stream",
2419
+ "size": 3,
2420
+ "modifiedAt": "2026-10-15T00:00:00.000Z",
2421
+ "revision": "r0123456789abcdef",
2422
+ "encoding": "none"
2423
+ }
2424
+ },
2425
+ {
2426
+ "name": "workspace.files.preview result over 50 MiB",
2427
+ "check": "result",
2428
+ "method": "workspace.files.preview",
2429
+ "valid": false,
2430
+ "value": {
2431
+ "path": "huge.bin",
2432
+ "kind": "binary",
2433
+ "mimeType": "application/octet-stream",
2434
+ "size": 52428801,
2435
+ "modifiedAt": "2026-10-15T00:00:00.000Z",
2436
+ "revision": "r1",
2437
+ "encoding": "none"
2438
+ }
2439
+ },
2440
+ {
2441
+ "name": "workspace.files.preview result with a link kind",
2442
+ "check": "result",
2443
+ "method": "workspace.files.preview",
2444
+ "valid": false,
2445
+ "value": {
2446
+ "path": "x",
2447
+ "kind": "link",
2448
+ "mimeType": "text/plain",
2449
+ "size": 0,
2450
+ "modifiedAt": "2026-10-15T00:00:00.000Z",
2451
+ "revision": "r1",
2452
+ "encoding": "none"
2453
+ }
2454
+ },
2455
+ {
2456
+ "name": "host.directories.search params",
2457
+ "check": "params",
2458
+ "method": "host.directories.search",
2459
+ "valid": true,
2460
+ "value": {
2461
+ "query": "~/Code/al",
2462
+ "limit": 30
2463
+ }
2464
+ },
2465
+ {
2466
+ "name": "host.directories.search a name under home",
2467
+ "check": "params",
2468
+ "method": "host.directories.search",
2469
+ "valid": true,
2470
+ "value": {
2471
+ "query": "projects"
2472
+ }
2473
+ },
2474
+ {
2475
+ "name": "host.directories.search without a query",
2476
+ "check": "params",
2477
+ "method": "host.directories.search",
2478
+ "valid": false,
2479
+ "value": {}
2480
+ },
2481
+ {
2482
+ "name": "host.directories.search with a limit over 100",
2483
+ "check": "params",
2484
+ "method": "host.directories.search",
2485
+ "valid": false,
2486
+ "value": {
2487
+ "query": "x",
2488
+ "limit": 101
2489
+ }
2490
+ },
2491
+ {
2492
+ "name": "host.directories.search result",
2493
+ "check": "result",
2494
+ "method": "host.directories.search",
2495
+ "valid": true,
2496
+ "value": {
2497
+ "entries": [
2498
+ {
2499
+ "path": "/home/user/Code/alp"
2500
+ },
2501
+ {
2502
+ "path": "/home/user/Code/sửa lỗi"
2503
+ }
2504
+ ],
2505
+ "truncated": true
2506
+ }
2507
+ },
2508
+ {
2509
+ "name": "host.directories.search result with an empty path",
2510
+ "check": "result",
2511
+ "method": "host.directories.search",
2512
+ "valid": false,
2513
+ "value": {
2514
+ "entries": [
2515
+ {
2516
+ "path": ""
2517
+ }
2518
+ ]
2519
+ }
2520
+ },
2116
2521
  {
2117
2522
  "name": "question.answer params",
2118
2523
  "check": "params",
@@ -3454,49 +3859,101 @@
3454
3859
  }
3455
3860
  },
3456
3861
  {
3457
- "name": "task.update with an id that is not a task id",
3862
+ "name": "task.update with an id that is not a task id",
3863
+ "check": "params",
3864
+ "method": "task.update",
3865
+ "valid": false,
3866
+ "value": {
3867
+ "projectRoot": "/work/project",
3868
+ "id": "bd-1",
3869
+ "action": "close"
3870
+ }
3871
+ },
3872
+ {
3873
+ "name": "task.update result",
3874
+ "check": "result",
3875
+ "method": "task.update",
3876
+ "valid": true,
3877
+ "value": {
3878
+ "id": "t-a3f8",
3879
+ "status": "closed",
3880
+ "rev": 4,
3881
+ "landed": "Epic t-a3f8 landed"
3882
+ }
3883
+ },
3884
+ {
3885
+ "name": "task.gate.resolve params",
3886
+ "check": "params",
3887
+ "method": "task.gate.resolve",
3888
+ "valid": true,
3889
+ "value": {
3890
+ "projectRoot": "/work/project",
3891
+ "id": "t-a3f8",
3892
+ "gate": "g1",
3893
+ "note": "OK"
3894
+ }
3895
+ },
3896
+ {
3897
+ "name": "task.gate.resolve result",
3898
+ "check": "result",
3899
+ "method": "task.gate.resolve",
3900
+ "valid": true,
3901
+ "value": {
3902
+ "id": "t-a3f8",
3903
+ "status": "open",
3904
+ "rev": 5
3905
+ }
3906
+ },
3907
+ {
3908
+ "name": "task.gate.resolve approving with one of the gate's options",
3458
3909
  "check": "params",
3459
- "method": "task.update",
3460
- "valid": false,
3910
+ "method": "task.gate.resolve",
3911
+ "valid": true,
3461
3912
  "value": {
3462
3913
  "projectRoot": "/work/project",
3463
- "id": "bd-1",
3464
- "action": "close"
3914
+ "id": "t-a3f8",
3915
+ "gate": "g1",
3916
+ "choice": "Ship it",
3917
+ "channel": "paseo",
3918
+ "ifRev": 4
3465
3919
  }
3466
3920
  },
3467
3921
  {
3468
- "name": "task.update result",
3469
- "check": "result",
3470
- "method": "task.update",
3922
+ "name": "task.gate.resolve rejecting, which leaves the gate open",
3923
+ "check": "params",
3924
+ "method": "task.gate.resolve",
3471
3925
  "valid": true,
3472
3926
  "value": {
3927
+ "projectRoot": "/work/project",
3473
3928
  "id": "t-a3f8",
3474
- "status": "closed",
3475
- "rev": 4,
3476
- "landed": "Epic t-a3f8 landed"
3929
+ "gate": "g1",
3930
+ "reject": true,
3931
+ "note": "Not yet",
3932
+ "channel": "web"
3477
3933
  }
3478
3934
  },
3479
3935
  {
3480
- "name": "task.gate.resolve params",
3936
+ "name": "task.gate.resolve with channel cli (the CLI writes the files)",
3481
3937
  "check": "params",
3482
3938
  "method": "task.gate.resolve",
3483
- "valid": true,
3939
+ "valid": false,
3484
3940
  "value": {
3485
3941
  "projectRoot": "/work/project",
3486
3942
  "id": "t-a3f8",
3487
3943
  "gate": "g1",
3488
- "note": "OK"
3944
+ "channel": "cli"
3489
3945
  }
3490
3946
  },
3491
3947
  {
3492
- "name": "task.gate.resolve result",
3493
- "check": "result",
3948
+ "name": "task.gate.resolve with a choice over 200 characters",
3949
+ "check": "params",
3494
3950
  "method": "task.gate.resolve",
3495
- "valid": true,
3951
+ "valid": false,
3496
3952
  "value": {
3953
+ "projectRoot": "/work/project",
3497
3954
  "id": "t-a3f8",
3498
- "status": "open",
3499
- "rev": 5
3955
+ "gate": "g1",
3956
+ "choice": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
3500
3957
  }
3501
3958
  },
3502
3959
  {
@@ -4799,6 +5256,197 @@
4799
5256
  "snapshot": ""
4800
5257
  }
4801
5258
  },
5259
+ {
5260
+ "name": "workspace.git.facts params",
5261
+ "check": "params",
5262
+ "method": "workspace.git.facts",
5263
+ "valid": true,
5264
+ "value": {
5265
+ "directory": "/work/project"
5266
+ }
5267
+ },
5268
+ {
5269
+ "name": "workspace.git.facts without directory",
5270
+ "check": "params",
5271
+ "method": "workspace.git.facts",
5272
+ "valid": false,
5273
+ "value": {}
5274
+ },
5275
+ {
5276
+ "name": "workspace.git.facts with an empty directory",
5277
+ "check": "params",
5278
+ "method": "workspace.git.facts",
5279
+ "valid": false,
5280
+ "value": {
5281
+ "directory": ""
5282
+ }
5283
+ },
5284
+ {
5285
+ "name": "workspace.git.facts with a workspaceId",
5286
+ "check": "params",
5287
+ "method": "workspace.git.facts",
5288
+ "valid": false,
5289
+ "value": {
5290
+ "directory": "/work/project",
5291
+ "workspaceId": "wks_0123456789abcdef"
5292
+ }
5293
+ },
5294
+ {
5295
+ "name": "workspace.git.facts with a principal context",
5296
+ "check": "params",
5297
+ "method": "workspace.git.facts",
5298
+ "valid": false,
5299
+ "value": {
5300
+ "directory": "/work/project",
5301
+ "principalId": "cred",
5302
+ "authorizedRoots": [
5303
+ "/work/project"
5304
+ ]
5305
+ }
5306
+ },
5307
+ {
5308
+ "name": "workspace.git.facts result",
5309
+ "check": "result",
5310
+ "method": "workspace.git.facts",
5311
+ "valid": true,
5312
+ "value": {
5313
+ "kind": "ok",
5314
+ "repoRoot": "/work/project",
5315
+ "branch": "main",
5316
+ "detached": false,
5317
+ "head": "0123456789abcdef0123456789abcdef01234567",
5318
+ "hasRemote": true,
5319
+ "remoteUrl": "https://example.com/project.git",
5320
+ "dirty": true
5321
+ }
5322
+ },
5323
+ {
5324
+ "name": "workspace.git.facts nested folder",
5325
+ "check": "result",
5326
+ "method": "workspace.git.facts",
5327
+ "valid": true,
5328
+ "value": {
5329
+ "kind": "not_repository_root",
5330
+ "repoRoot": "/work/project",
5331
+ "branch": null,
5332
+ "detached": true,
5333
+ "head": "0123456789abcdef0123456789abcdef01234567",
5334
+ "hasRemote": false,
5335
+ "remoteUrl": null,
5336
+ "dirty": false
5337
+ }
5338
+ },
5339
+ {
5340
+ "name": "workspace.git.facts before the first commit",
5341
+ "check": "result",
5342
+ "method": "workspace.git.facts",
5343
+ "valid": true,
5344
+ "value": {
5345
+ "kind": "ok",
5346
+ "repoRoot": "/work/project",
5347
+ "branch": "main",
5348
+ "detached": false,
5349
+ "head": null,
5350
+ "hasRemote": true,
5351
+ "remoteUrl": "https://example.com/project.git",
5352
+ "dirty": false
5353
+ }
5354
+ },
5355
+ {
5356
+ "name": "workspace.git.facts no repository",
5357
+ "check": "result",
5358
+ "method": "workspace.git.facts",
5359
+ "valid": true,
5360
+ "value": {
5361
+ "kind": "unknown"
5362
+ }
5363
+ },
5364
+ {
5365
+ "name": "workspace.git.facts unsupported",
5366
+ "check": "result",
5367
+ "method": "workspace.git.facts",
5368
+ "valid": true,
5369
+ "value": {
5370
+ "kind": "unsupported",
5371
+ "reason": "worktree_elsewhere"
5372
+ }
5373
+ },
5374
+ {
5375
+ "name": "workspace.git.facts inside a git directory",
5376
+ "check": "result",
5377
+ "method": "workspace.git.facts",
5378
+ "valid": true,
5379
+ "value": {
5380
+ "kind": "unsupported",
5381
+ "reason": "inside_git_dir"
5382
+ }
5383
+ },
5384
+ {
5385
+ "name": "workspace.git.facts unsupported without a reason",
5386
+ "check": "result",
5387
+ "method": "workspace.git.facts",
5388
+ "valid": false,
5389
+ "value": {
5390
+ "kind": "unsupported"
5391
+ }
5392
+ },
5393
+ {
5394
+ "name": "workspace.git.facts unknown with facts",
5395
+ "check": "result",
5396
+ "method": "workspace.git.facts",
5397
+ "valid": false,
5398
+ "value": {
5399
+ "kind": "unknown",
5400
+ "repoRoot": "/work/project",
5401
+ "branch": "main",
5402
+ "detached": false,
5403
+ "head": "0123456789abcdef0123456789abcdef01234567",
5404
+ "hasRemote": true,
5405
+ "remoteUrl": "https://example.com/project.git",
5406
+ "dirty": true
5407
+ }
5408
+ },
5409
+ {
5410
+ "name": "workspace.git.facts ok without repoRoot",
5411
+ "check": "result",
5412
+ "method": "workspace.git.facts",
5413
+ "valid": false,
5414
+ "value": {
5415
+ "kind": "ok",
5416
+ "branch": "main",
5417
+ "detached": false,
5418
+ "head": "0123456789abcdef0123456789abcdef01234567",
5419
+ "hasRemote": true,
5420
+ "remoteUrl": "https://example.com/project.git",
5421
+ "dirty": true
5422
+ }
5423
+ },
5424
+ {
5425
+ "name": "workspace.git.facts an unlisted kind",
5426
+ "check": "result",
5427
+ "method": "workspace.git.facts",
5428
+ "valid": false,
5429
+ "value": {
5430
+ "kind": "not_repository"
5431
+ }
5432
+ },
5433
+ {
5434
+ "name": "workspace.git.facts with status rows",
5435
+ "check": "result",
5436
+ "method": "workspace.git.facts",
5437
+ "valid": false,
5438
+ "value": {
5439
+ "kind": "ok",
5440
+ "repoRoot": "/work/project",
5441
+ "branch": "main",
5442
+ "detached": false,
5443
+ "head": "0123456789abcdef0123456789abcdef01234567",
5444
+ "hasRemote": true,
5445
+ "remoteUrl": "https://example.com/project.git",
5446
+ "dirty": true,
5447
+ "files": []
5448
+ }
5449
+ },
4802
5450
  {
4803
5451
  "name": "workspace.git.diff params",
4804
5452
  "check": "params",
@@ -5766,6 +6414,43 @@
5766
6414
  }
5767
6415
  }
5768
6416
  },
6417
+ {
6418
+ "name": "session.compact params",
6419
+ "check": "params",
6420
+ "method": "session.compact",
6421
+ "valid": true,
6422
+ "value": {
6423
+ "sessionId": "ses_1"
6424
+ }
6425
+ },
6426
+ {
6427
+ "name": "session.compact params with an extra field",
6428
+ "check": "params",
6429
+ "method": "session.compact",
6430
+ "valid": false,
6431
+ "value": {
6432
+ "sessionId": "ses_1",
6433
+ "threshold": 0.5
6434
+ }
6435
+ },
6436
+ {
6437
+ "name": "session.compact result",
6438
+ "check": "result",
6439
+ "method": "session.compact",
6440
+ "valid": true,
6441
+ "value": {
6442
+ "status": "deferred"
6443
+ }
6444
+ },
6445
+ {
6446
+ "name": "session.compact result of an unknown status",
6447
+ "check": "result",
6448
+ "method": "session.compact",
6449
+ "valid": false,
6450
+ "value": {
6451
+ "status": "done"
6452
+ }
6453
+ },
5769
6454
  {
5770
6455
  "name": "session.reload params",
5771
6456
  "check": "params",
@@ -7161,6 +7846,113 @@
7161
7846
  "value": {
7162
7847
  "interrupted": "yes"
7163
7848
  }
7849
+ },
7850
+ {
7851
+ "name": "terminal.capture params",
7852
+ "check": "params",
7853
+ "method": "terminal.capture",
7854
+ "valid": true,
7855
+ "value": {
7856
+ "terminalId": "term_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
7857
+ "start": -2,
7858
+ "end": -1,
7859
+ "stripAnsi": false
7860
+ }
7861
+ },
7862
+ {
7863
+ "name": "terminal.capture fractional index",
7864
+ "check": "params",
7865
+ "method": "terminal.capture",
7866
+ "valid": false,
7867
+ "value": {
7868
+ "terminalId": "term_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
7869
+ "start": 1.5
7870
+ }
7871
+ },
7872
+ {
7873
+ "name": "terminal.capture result",
7874
+ "check": "result",
7875
+ "method": "terminal.capture",
7876
+ "valid": true,
7877
+ "value": {
7878
+ "lines": [
7879
+ "screen"
7880
+ ],
7881
+ "totalLines": 1
7882
+ }
7883
+ },
7884
+ {
7885
+ "name": "terminal.watch params",
7886
+ "check": "params",
7887
+ "method": "terminal.watch",
7888
+ "valid": true,
7889
+ "value": {
7890
+ "after": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
7891
+ "workspaceId": "w"
7892
+ }
7893
+ },
7894
+ {
7895
+ "name": "terminal.watch bad cursor",
7896
+ "check": "params",
7897
+ "method": "terminal.watch",
7898
+ "valid": false,
7899
+ "value": {
7900
+ "after": "bad"
7901
+ }
7902
+ },
7903
+ {
7904
+ "name": "terminal.watch result",
7905
+ "check": "result",
7906
+ "method": "terminal.watch",
7907
+ "valid": true,
7908
+ "value": {
7909
+ "terminals": [],
7910
+ "watchId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
7911
+ "cursor": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
7912
+ "reset": true
7913
+ }
7914
+ },
7915
+ {
7916
+ "name": "terminal.unwatch params",
7917
+ "check": "params",
7918
+ "method": "terminal.unwatch",
7919
+ "valid": true,
7920
+ "value": {}
7921
+ },
7922
+ {
7923
+ "name": "terminal.unwatch result",
7924
+ "check": "result",
7925
+ "method": "terminal.unwatch",
7926
+ "valid": true,
7927
+ "value": {
7928
+ "closed": true
7929
+ }
7930
+ },
7931
+ {
7932
+ "name": "terminal list invalidation",
7933
+ "check": "message",
7934
+ "valid": true,
7935
+ "value": {
7936
+ "jsonrpc": "2.0",
7937
+ "method": "terminal.changed",
7938
+ "params": {
7939
+ "watchId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
7940
+ "cursor": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
7941
+ }
7942
+ }
7943
+ },
7944
+ {
7945
+ "name": "terminal list invalidation invalid token",
7946
+ "check": "message",
7947
+ "valid": false,
7948
+ "value": {
7949
+ "jsonrpc": "2.0",
7950
+ "method": "terminal.changed",
7951
+ "params": {
7952
+ "watchId": "bad",
7953
+ "cursor": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
7954
+ }
7955
+ }
7164
7956
  }
7165
7957
  ]
7166
7958
  }