dsh-daoing-memory 0.1.6 → 0.1.8

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/lib/client.js CHANGED
@@ -4167,7 +4167,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4167
4167
  "id": string(),
4168
4168
  "revision": number(),
4169
4169
  "kind": union([literal("positive"), literal("negative")]),
4170
- "source": union([literal("agent"), literal("human")]),
4170
+ "source": union([
4171
+ literal("agent"),
4172
+ literal("human"),
4173
+ literal("system")
4174
+ ]),
4171
4175
  "family": string(),
4172
4176
  "gist": string(),
4173
4177
  "situation": array(string()),
@@ -4442,7 +4446,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4442
4446
  }),
4443
4447
  "reason": string()
4444
4448
  })),
4445
- "appliedConcerns": number()
4449
+ "appliedConcerns": number(),
4450
+ "deletionFeedback": string().optional()
4446
4451
  });
4447
4452
  const dsh_daoing_memory_memory_extractionLog_parameter_0$schema = intersection(string(), unknown());
4448
4453
  const dsh_daoing_memory_memory_extractionLog_parameter_1$schema = number();
@@ -4463,7 +4468,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4463
4468
  "id": string(),
4464
4469
  "revision": number(),
4465
4470
  "kind": union([literal("positive"), literal("negative")]),
4466
- "source": union([literal("agent"), literal("human")]),
4471
+ "source": union([
4472
+ literal("agent"),
4473
+ literal("human"),
4474
+ literal("system")
4475
+ ]),
4467
4476
  "family": string(),
4468
4477
  "gist": string(),
4469
4478
  "situation": array(string()),
@@ -4512,7 +4521,62 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4512
4521
  "id": string(),
4513
4522
  "revision": number(),
4514
4523
  "kind": union([literal("positive"), literal("negative")]),
4515
- "source": union([literal("agent"), literal("human")]),
4524
+ "source": union([
4525
+ literal("agent"),
4526
+ literal("human"),
4527
+ literal("system")
4528
+ ]),
4529
+ "family": string(),
4530
+ "gist": string(),
4531
+ "situation": array(string()),
4532
+ "path": array(object({
4533
+ "order": number(),
4534
+ "action": string()
4535
+ })),
4536
+ "reasoning": string(),
4537
+ "limits": array(string()),
4538
+ "status": union([
4539
+ literal("candidate"),
4540
+ literal("live"),
4541
+ literal("challenged"),
4542
+ literal("superseded"),
4543
+ literal("archived"),
4544
+ literal("cold")
4545
+ ]),
4546
+ "alpha": number(),
4547
+ "beta": number(),
4548
+ "samples": number(),
4549
+ "trust": number(),
4550
+ "weightedTrust": number(),
4551
+ "lastVerifiedAt": number().optional(),
4552
+ "pinned": boolean(),
4553
+ "tokensSaved": number(),
4554
+ "tokensSpent": number(),
4555
+ "parentRevision": number().optional(),
4556
+ "failureReason": string().optional(),
4557
+ "evidence": object({
4558
+ "traceRef": string().optional(),
4559
+ "sessionRef": string().optional(),
4560
+ "note": string().optional()
4561
+ }).optional(),
4562
+ "challengeReason": string().optional(),
4563
+ "context": string(),
4564
+ "verifiedCount": number(),
4565
+ "rejectCount": number(),
4566
+ "globalFlag": boolean(),
4567
+ "createdAt": number(),
4568
+ "updatedAt": number()
4569
+ })]);
4570
+ const dsh_daoing_memory_memory_getDeletionFeedback_parameter_0$schema = intersection(string(), unknown());
4571
+ const dsh_daoing_memory_memory_getDeletionFeedback_result$schema = union([literal(null), object({
4572
+ "id": string(),
4573
+ "revision": number(),
4574
+ "kind": union([literal("positive"), literal("negative")]),
4575
+ "source": union([
4576
+ literal("agent"),
4577
+ literal("human"),
4578
+ literal("system")
4579
+ ]),
4516
4580
  "family": string(),
4517
4581
  "gist": string(),
4518
4582
  "situation": array(string()),
@@ -4613,7 +4677,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4613
4677
  "id": string(),
4614
4678
  "revision": number(),
4615
4679
  "kind": union([literal("positive"), literal("negative")]),
4616
- "source": union([literal("agent"), literal("human")]),
4680
+ "source": union([
4681
+ literal("agent"),
4682
+ literal("human"),
4683
+ literal("system")
4684
+ ]),
4617
4685
  "family": string(),
4618
4686
  "gist": string(),
4619
4687
  "situation": array(string()),
@@ -4703,6 +4771,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4703
4771
  "deleted": boolean(),
4704
4772
  "conflictPending": boolean()
4705
4773
  });
4774
+ const dsh_daoing_memory_memory_humanArchiveExperience_parameter_0$schema = intersection(string(), unknown());
4775
+ const dsh_daoing_memory_memory_humanArchiveExperience_parameter_1$schema = object({
4776
+ "id": string(),
4777
+ "reason": string()
4778
+ });
4779
+ const dsh_daoing_memory_memory_humanArchiveExperience_result$schema = object({ "archived": literal(true) });
4706
4780
  const dsh_daoing_memory_memory_humanConfirmFact_parameter_0$schema = intersection(string(), unknown());
4707
4781
  const dsh_daoing_memory_memory_humanConfirmFact_parameter_1$schema = object({
4708
4782
  "factId": string(),
@@ -4777,7 +4851,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4777
4851
  "id": string(),
4778
4852
  "revision": number(),
4779
4853
  "kind": union([literal("positive"), literal("negative")]),
4780
- "source": union([literal("agent"), literal("human")]),
4854
+ "source": union([
4855
+ literal("agent"),
4856
+ literal("human"),
4857
+ literal("system")
4858
+ ]),
4781
4859
  "family": string(),
4782
4860
  "gist": string(),
4783
4861
  "situation": array(string()),
@@ -4865,7 +4943,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4865
4943
  "id": string(),
4866
4944
  "revision": number(),
4867
4945
  "kind": union([literal("positive"), literal("negative")]),
4868
- "source": union([literal("agent"), literal("human")]),
4946
+ "source": union([
4947
+ literal("agent"),
4948
+ literal("human"),
4949
+ literal("system")
4950
+ ]),
4869
4951
  "family": string(),
4870
4952
  "gist": string(),
4871
4953
  "situation": array(string()),
@@ -4914,7 +4996,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4914
4996
  "id": string(),
4915
4997
  "revision": number(),
4916
4998
  "kind": union([literal("positive"), literal("negative")]),
4917
- "source": union([literal("agent"), literal("human")]),
4999
+ "source": union([
5000
+ literal("agent"),
5001
+ literal("human"),
5002
+ literal("system")
5003
+ ]),
4918
5004
  "family": string(),
4919
5005
  "gist": string(),
4920
5006
  "situation": array(string()),
@@ -4965,7 +5051,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4965
5051
  "id": string(),
4966
5052
  "revision": number(),
4967
5053
  "kind": union([literal("positive"), literal("negative")]),
4968
- "source": union([literal("agent"), literal("human")]),
5054
+ "source": union([
5055
+ literal("agent"),
5056
+ literal("human"),
5057
+ literal("system")
5058
+ ]),
4969
5059
  "family": string(),
4970
5060
  "gist": string(),
4971
5061
  "situation": array(string()),
@@ -5017,7 +5107,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5017
5107
  "id": string(),
5018
5108
  "revision": number(),
5019
5109
  "kind": union([literal("positive"), literal("negative")]),
5020
- "source": union([literal("agent"), literal("human")]),
5110
+ "source": union([
5111
+ literal("agent"),
5112
+ literal("human"),
5113
+ literal("system")
5114
+ ]),
5021
5115
  "family": string(),
5022
5116
  "gist": string(),
5023
5117
  "situation": array(string()),
@@ -5103,7 +5197,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5103
5197
  "id": string(),
5104
5198
  "revision": number(),
5105
5199
  "kind": union([literal("positive"), literal("negative")]),
5106
- "source": union([literal("agent"), literal("human")]),
5200
+ "source": union([
5201
+ literal("agent"),
5202
+ literal("human"),
5203
+ literal("system")
5204
+ ]),
5107
5205
  "family": string(),
5108
5206
  "gist": string(),
5109
5207
  "situation": array(string()),
@@ -5223,7 +5321,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5223
5321
  "id": string(),
5224
5322
  "revision": number(),
5225
5323
  "kind": union([literal("positive"), literal("negative")]),
5226
- "source": union([literal("agent"), literal("human")]),
5324
+ "source": union([
5325
+ literal("agent"),
5326
+ literal("human"),
5327
+ literal("system")
5328
+ ]),
5227
5329
  "family": string(),
5228
5330
  "gist": string(),
5229
5331
  "situation": array(string()),
@@ -5400,7 +5502,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5400
5502
  "id": string(),
5401
5503
  "revision": number(),
5402
5504
  "kind": union([literal("positive"), literal("negative")]),
5403
- "source": union([literal("agent"), literal("human")]),
5505
+ "source": union([
5506
+ literal("agent"),
5507
+ literal("human"),
5508
+ literal("system")
5509
+ ]),
5404
5510
  "family": string(),
5405
5511
  "gist": string(),
5406
5512
  "situation": array(string()),
@@ -5459,7 +5565,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5459
5565
  "id": string(),
5460
5566
  "revision": number(),
5461
5567
  "kind": union([literal("positive"), literal("negative")]),
5462
- "source": union([literal("agent"), literal("human")]),
5568
+ "source": union([
5569
+ literal("agent"),
5570
+ literal("human"),
5571
+ literal("system")
5572
+ ]),
5463
5573
  "family": string(),
5464
5574
  "gist": string(),
5465
5575
  "situation": array(string()),
@@ -5538,7 +5648,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5538
5648
  "id": string(),
5539
5649
  "revision": number(),
5540
5650
  "kind": union([literal("positive"), literal("negative")]),
5541
- "source": union([literal("agent"), literal("human")]),
5651
+ "source": union([
5652
+ literal("agent"),
5653
+ literal("human"),
5654
+ literal("system")
5655
+ ]),
5542
5656
  "family": string(),
5543
5657
  "gist": string(),
5544
5658
  "situation": array(string()),
@@ -5607,7 +5721,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5607
5721
  "id": string(),
5608
5722
  "revision": number(),
5609
5723
  "kind": union([literal("positive"), literal("negative")]),
5610
- "source": union([literal("agent"), literal("human")]),
5724
+ "source": union([
5725
+ literal("agent"),
5726
+ literal("human"),
5727
+ literal("system")
5728
+ ]),
5611
5729
  "family": string(),
5612
5730
  "gist": string(),
5613
5731
  "situation": array(string()),
@@ -5683,7 +5801,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5683
5801
  "id": string(),
5684
5802
  "revision": number(),
5685
5803
  "kind": union([literal("positive"), literal("negative")]),
5686
- "source": union([literal("agent"), literal("human")]),
5804
+ "source": union([
5805
+ literal("agent"),
5806
+ literal("human"),
5807
+ literal("system")
5808
+ ]),
5687
5809
  "family": string(),
5688
5810
  "gist": string(),
5689
5811
  "situation": array(string()),
@@ -5735,7 +5857,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5735
5857
  "id": string(),
5736
5858
  "revision": number(),
5737
5859
  "kind": union([literal("positive"), literal("negative")]),
5738
- "source": union([literal("agent"), literal("human")]),
5860
+ "source": union([
5861
+ literal("agent"),
5862
+ literal("human"),
5863
+ literal("system")
5864
+ ]),
5739
5865
  "family": string(),
5740
5866
  "gist": string(),
5741
5867
  "situation": array(string()),
@@ -5777,6 +5903,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5777
5903
  "createdAt": number(),
5778
5904
  "updatedAt": number()
5779
5905
  });
5906
+ const dsh_daoing_memory_memory_runDeletionFeedback_parameter_0$schema = intersection(string(), unknown());
5907
+ const dsh_daoing_memory_memory_runDeletionFeedback_result$schema = object({
5908
+ "ran": boolean(),
5909
+ "summary": string().optional()
5910
+ });
5780
5911
  const dsh_daoing_memory_memory_stats_parameter_0$schema = intersection(string(), unknown());
5781
5912
  const dsh_daoing_memory_memory_stats_result$schema = object({
5782
5913
  "experiences": object({
@@ -5841,7 +5972,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5841
5972
  "id": string(),
5842
5973
  "revision": number(),
5843
5974
  "kind": union([literal("positive"), literal("negative")]),
5844
- "source": union([literal("agent"), literal("human")]),
5975
+ "source": union([
5976
+ literal("agent"),
5977
+ literal("human"),
5978
+ literal("system")
5979
+ ]),
5845
5980
  "family": string(),
5846
5981
  "gist": string(),
5847
5982
  "situation": array(string()),
@@ -5933,7 +6068,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5933
6068
  },
5934
6069
  sourceLocation: {
5935
6070
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
5936
- "line": 145,
6071
+ "line": 147,
5937
6072
  "column": 3
5938
6073
  }
5939
6074
  },
@@ -5974,7 +6109,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5974
6109
  },
5975
6110
  sourceLocation: {
5976
6111
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
5977
- "line": 218,
6112
+ "line": 327,
5978
6113
  "column": 3
5979
6114
  }
5980
6115
  },
@@ -6006,7 +6141,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6006
6141
  },
6007
6142
  sourceLocation: {
6008
6143
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6009
- "line": 225,
6144
+ "line": 334,
6010
6145
  "column": 3
6011
6146
  }
6012
6147
  },
@@ -6038,7 +6173,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6038
6173
  },
6039
6174
  sourceLocation: {
6040
6175
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6041
- "line": 267,
6176
+ "line": 376,
6042
6177
  "column": 3
6043
6178
  }
6044
6179
  },
@@ -6079,8 +6214,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6079
6214
  },
6080
6215
  sourceLocation: {
6081
6216
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6082
- "line": 151,
6083
- "column": 3
6217
+ "line": 153,
6218
+ "column": 9
6084
6219
  }
6085
6220
  },
6086
6221
  {
@@ -6133,7 +6268,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6133
6268
  },
6134
6269
  sourceLocation: {
6135
6270
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6136
- "line": 204,
6271
+ "line": 313,
6137
6272
  "column": 3
6138
6273
  }
6139
6274
  },
@@ -6165,7 +6300,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6165
6300
  },
6166
6301
  sourceLocation: {
6167
6302
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6168
- "line": 211,
6303
+ "line": 320,
6169
6304
  "column": 3
6170
6305
  }
6171
6306
  },
@@ -6206,7 +6341,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6206
6341
  },
6207
6342
  sourceLocation: {
6208
6343
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6209
- "line": 138,
6344
+ "line": 140,
6210
6345
  "column": 3
6211
6346
  }
6212
6347
  },
@@ -6261,7 +6396,39 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6261
6396
  },
6262
6397
  sourceLocation: {
6263
6398
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6264
- "line": 124,
6399
+ "line": 126,
6400
+ "column": 3
6401
+ }
6402
+ },
6403
+ {
6404
+ id: "dsh-daoing-memory#memory/getDeletionFeedback",
6405
+ service: "memory",
6406
+ namespace: "memory",
6407
+ method: "getDeletionFeedback",
6408
+ invocation: { kind: "direct" },
6409
+ scope: {
6410
+ context: "agent",
6411
+ wire: "agentId"
6412
+ },
6413
+ parameters: [{
6414
+ name: "agent",
6415
+ wire: "agentId",
6416
+ source: "lookup",
6417
+ lookup: "agent",
6418
+ codec: {
6419
+ mode: "strict",
6420
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
6421
+ schema: dsh_daoing_memory_memory_getDeletionFeedback_parameter_0$schema
6422
+ }
6423
+ }],
6424
+ result: {
6425
+ mode: "strict",
6426
+ typeSymbol: "dsh-daoing-memory#memory/getDeletionFeedback:result",
6427
+ schema: dsh_daoing_memory_memory_getDeletionFeedback_result$schema
6428
+ },
6429
+ sourceLocation: {
6430
+ "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6431
+ "line": 259,
6265
6432
  "column": 3
6266
6433
  }
6267
6434
  },
@@ -6302,7 +6469,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6302
6469
  },
6303
6470
  sourceLocation: {
6304
6471
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6305
- "line": 164,
6472
+ "line": 273,
6306
6473
  "column": 3
6307
6474
  }
6308
6475
  },
@@ -6343,7 +6510,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6343
6510
  },
6344
6511
  sourceLocation: {
6345
6512
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6346
- "line": 364,
6513
+ "line": 481,
6347
6514
  "column": 3
6348
6515
  }
6349
6516
  },
@@ -6384,7 +6551,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6384
6551
  },
6385
6552
  sourceLocation: {
6386
6553
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6387
- "line": 307,
6554
+ "line": 424,
6388
6555
  "column": 3
6389
6556
  }
6390
6557
  },
@@ -6425,7 +6592,48 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6425
6592
  },
6426
6593
  sourceLocation: {
6427
6594
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6428
- "line": 335,
6595
+ "line": 452,
6596
+ "column": 3
6597
+ }
6598
+ },
6599
+ {
6600
+ id: "dsh-daoing-memory#memory/humanArchiveExperience",
6601
+ service: "memory",
6602
+ namespace: "memory",
6603
+ method: "humanArchiveExperience",
6604
+ invocation: { kind: "direct" },
6605
+ scope: {
6606
+ context: "agent",
6607
+ wire: "agentId"
6608
+ },
6609
+ parameters: [{
6610
+ name: "agent",
6611
+ wire: "agentId",
6612
+ source: "lookup",
6613
+ lookup: "agent",
6614
+ codec: {
6615
+ mode: "strict",
6616
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
6617
+ schema: dsh_daoing_memory_memory_humanArchiveExperience_parameter_0$schema
6618
+ }
6619
+ }, {
6620
+ name: "request",
6621
+ wire: "request",
6622
+ source: "json",
6623
+ codec: {
6624
+ mode: "strict",
6625
+ typeSymbol: "dsh-daoing-memory/types#HumanArchiveExperienceRequest",
6626
+ schema: dsh_daoing_memory_memory_humanArchiveExperience_parameter_1$schema
6627
+ }
6628
+ }],
6629
+ result: {
6630
+ mode: "strict",
6631
+ typeSymbol: "dsh-daoing-memory#memory/humanArchiveExperience:result",
6632
+ schema: dsh_daoing_memory_memory_humanArchiveExperience_result$schema
6633
+ },
6634
+ sourceLocation: {
6635
+ "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6636
+ "line": 409,
6429
6637
  "column": 3
6430
6638
  }
6431
6639
  },
@@ -6466,7 +6674,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6466
6674
  },
6467
6675
  sourceLocation: {
6468
6676
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6469
- "line": 357,
6677
+ "line": 474,
6470
6678
  "column": 3
6471
6679
  }
6472
6680
  },
@@ -6507,7 +6715,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6507
6715
  },
6508
6716
  sourceLocation: {
6509
6717
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6510
- "line": 379,
6718
+ "line": 496,
6511
6719
  "column": 3
6512
6720
  }
6513
6721
  },
@@ -6548,7 +6756,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6548
6756
  },
6549
6757
  sourceLocation: {
6550
6758
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6551
- "line": 292,
6759
+ "line": 401,
6552
6760
  "column": 3
6553
6761
  }
6554
6762
  },
@@ -6589,7 +6797,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6589
6797
  },
6590
6798
  sourceLocation: {
6591
6799
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6592
- "line": 349,
6800
+ "line": 466,
6593
6801
  "column": 3
6594
6802
  }
6595
6803
  },
@@ -6630,7 +6838,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6630
6838
  },
6631
6839
  sourceLocation: {
6632
6840
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6633
- "line": 300,
6841
+ "line": 417,
6634
6842
  "column": 3
6635
6843
  }
6636
6844
  },
@@ -6671,7 +6879,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6671
6879
  },
6672
6880
  sourceLocation: {
6673
6881
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6674
- "line": 342,
6882
+ "line": 459,
6675
6883
  "column": 3
6676
6884
  }
6677
6885
  },
@@ -6712,7 +6920,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6712
6920
  },
6713
6921
  sourceLocation: {
6714
6922
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6715
- "line": 285,
6923
+ "line": 394,
6716
6924
  "column": 3
6717
6925
  }
6718
6926
  },
@@ -6766,7 +6974,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6766
6974
  },
6767
6975
  sourceLocation: {
6768
6976
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6769
- "line": 314,
6977
+ "line": 431,
6770
6978
  "column": 3
6771
6979
  }
6772
6980
  },
@@ -6807,7 +7015,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6807
7015
  },
6808
7016
  sourceLocation: {
6809
7017
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6810
- "line": 321,
7018
+ "line": 438,
6811
7019
  "column": 3
6812
7020
  }
6813
7021
  },
@@ -6848,7 +7056,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6848
7056
  },
6849
7057
  sourceLocation: {
6850
7058
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6851
- "line": 328,
7059
+ "line": 445,
6852
7060
  "column": 3
6853
7061
  }
6854
7062
  },
@@ -6889,7 +7097,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6889
7097
  },
6890
7098
  sourceLocation: {
6891
7099
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6892
- "line": 371,
7100
+ "line": 488,
6893
7101
  "column": 3
6894
7102
  }
6895
7103
  },
@@ -6930,7 +7138,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6930
7138
  },
6931
7139
  sourceLocation: {
6932
7140
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6933
- "line": 100,
7141
+ "line": 102,
6934
7142
  "column": 3
6935
7143
  }
6936
7144
  },
@@ -6971,7 +7179,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6971
7179
  },
6972
7180
  sourceLocation: {
6973
7181
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
6974
- "line": 232,
7182
+ "line": 341,
6975
7183
  "column": 3
6976
7184
  }
6977
7185
  },
@@ -7012,7 +7220,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7012
7220
  },
7013
7221
  sourceLocation: {
7014
7222
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7015
- "line": 239,
7223
+ "line": 348,
7016
7224
  "column": 3
7017
7225
  }
7018
7226
  },
@@ -7053,7 +7261,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7053
7261
  },
7054
7262
  sourceLocation: {
7055
7263
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7056
- "line": 131,
7264
+ "line": 133,
7057
7265
  "column": 3
7058
7266
  }
7059
7267
  },
@@ -7127,7 +7335,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7127
7335
  },
7128
7336
  sourceLocation: {
7129
7337
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7130
- "line": 185,
7338
+ "line": 294,
7131
7339
  "column": 3
7132
7340
  }
7133
7341
  },
@@ -7181,7 +7389,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7181
7389
  },
7182
7390
  sourceLocation: {
7183
7391
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7184
- "line": 192,
7392
+ "line": 301,
7185
7393
  "column": 3
7186
7394
  }
7187
7395
  },
@@ -7245,7 +7453,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7245
7453
  },
7246
7454
  sourceLocation: {
7247
7455
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7248
- "line": 157,
7456
+ "line": 266,
7249
7457
  "column": 3
7250
7458
  }
7251
7459
  },
@@ -7319,7 +7527,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7319
7527
  },
7320
7528
  sourceLocation: {
7321
7529
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7322
- "line": 171,
7530
+ "line": 280,
7323
7531
  "column": 3
7324
7532
  }
7325
7533
  },
@@ -7373,7 +7581,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7373
7581
  },
7374
7582
  sourceLocation: {
7375
7583
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7376
- "line": 178,
7584
+ "line": 287,
7377
7585
  "column": 3
7378
7586
  }
7379
7587
  },
@@ -7414,7 +7622,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7414
7622
  },
7415
7623
  sourceLocation: {
7416
7624
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7417
- "line": 88,
7625
+ "line": 90,
7418
7626
  "column": 3
7419
7627
  }
7420
7628
  },
@@ -7455,7 +7663,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7455
7663
  },
7456
7664
  sourceLocation: {
7457
7665
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7458
- "line": 82,
7666
+ "line": 84,
7459
7667
  "column": 3
7460
7668
  }
7461
7669
  },
@@ -7496,7 +7704,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7496
7704
  },
7497
7705
  sourceLocation: {
7498
7706
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7499
- "line": 94,
7707
+ "line": 96,
7500
7708
  "column": 3
7501
7709
  }
7502
7710
  },
@@ -7537,7 +7745,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7537
7745
  },
7538
7746
  sourceLocation: {
7539
7747
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7540
- "line": 106,
7748
+ "line": 108,
7541
7749
  "column": 3
7542
7750
  }
7543
7751
  },
@@ -7578,10 +7786,42 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7578
7786
  },
7579
7787
  sourceLocation: {
7580
7788
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7581
- "line": 118,
7789
+ "line": 120,
7582
7790
  "column": 3
7583
7791
  }
7584
7792
  },
7793
+ {
7794
+ id: "dsh-daoing-memory#memory/runDeletionFeedback",
7795
+ service: "memory",
7796
+ namespace: "memory",
7797
+ method: "runDeletionFeedback",
7798
+ invocation: { kind: "direct" },
7799
+ scope: {
7800
+ context: "agent",
7801
+ wire: "agentId"
7802
+ },
7803
+ parameters: [{
7804
+ name: "agent",
7805
+ wire: "agentId",
7806
+ source: "lookup",
7807
+ lookup: "agent",
7808
+ codec: {
7809
+ mode: "strict",
7810
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
7811
+ schema: dsh_daoing_memory_memory_runDeletionFeedback_parameter_0$schema
7812
+ }
7813
+ }],
7814
+ result: {
7815
+ mode: "strict",
7816
+ typeSymbol: "dsh-daoing-memory#memory/runDeletionFeedback:result",
7817
+ schema: dsh_daoing_memory_memory_runDeletionFeedback_result$schema
7818
+ },
7819
+ sourceLocation: {
7820
+ "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7821
+ "line": 239,
7822
+ "column": 9
7823
+ }
7824
+ },
7585
7825
  {
7586
7826
  id: "dsh-daoing-memory#memory/stats",
7587
7827
  service: "memory",
@@ -7610,7 +7850,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7610
7850
  },
7611
7851
  sourceLocation: {
7612
7852
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7613
- "line": 253,
7853
+ "line": 362,
7614
7854
  "column": 3
7615
7855
  }
7616
7856
  },
@@ -7642,7 +7882,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7642
7882
  },
7643
7883
  sourceLocation: {
7644
7884
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7645
- "line": 246,
7885
+ "line": 355,
7646
7886
  "column": 3
7647
7887
  }
7648
7888
  },
@@ -7683,7 +7923,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7683
7923
  },
7684
7924
  sourceLocation: {
7685
7925
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7686
- "line": 112,
7926
+ "line": 114,
7687
7927
  "column": 3
7688
7928
  }
7689
7929
  },
@@ -7715,7 +7955,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7715
7955
  },
7716
7956
  sourceLocation: {
7717
7957
  "file": "packages/memory/dsh-daoing-memory/src/service.ts",
7718
- "line": 260,
7958
+ "line": 369,
7719
7959
  "column": 3
7720
7960
  }
7721
7961
  }
@@ -7795,6 +8035,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7795
8035
  exportLibrary: () => remote.exportLibrary(session),
7796
8036
  humanPin: (request) => remote.humanPin(session, request),
7797
8037
  humanDeleteExperience: (request) => remote.humanDeleteExperience(session, request),
8038
+ humanArchiveExperience: (request) => remote.humanArchiveExperience(session, request),
7798
8039
  humanEditExperience: (request) => remote.humanEditExperience(session, request),
7799
8040
  humanAddExperience: (request) => remote.humanAddExperience(session, request),
7800
8041
  humanPromote: (id, reason) => remote.humanPromote(session, id, reason),
@@ -7878,6 +8119,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7878
8119
  return _currentPage;
7879
8120
  }
7880
8121
  //#endregion
8122
+ //#region src/types.ts
8123
+ /**
8124
+ * Memory system wire vocabulary: experience lifecycle, recall adjudication,
8125
+ * use reports with attribution, the diary/fact semantic layer, and the
8126
+ * append-only ledger. Types only — no runtime code.
8127
+ * @module dsh-daoing-memory/types
8128
+ */
8129
+ /**
8130
+ * System-managed experience families that cannot be deleted by human operators
8131
+ * (only archived). The extraction-feedback family is auto-generated by the
8132
+ * daily deletion-reason summarizer and serves as negative guidance for future
8133
+ * memory extraction.
8134
+ */
8135
+ const SYSTEM_EXPERIENCE_FAMILIES = new Set(["extraction-feedback"]);
8136
+ //#endregion
7881
8137
  //#region \0dsh-css:D:\DSH 插件项目\项目源码\deepseek-harness-master\packages\memory\dsh-daoing-memory\src\client\Workbench.module.css.mjs
7882
8138
  const css$1 = ".KAfEAG_panel{background:var(--dsw-alias-bg-base);border-left:1px solid var(--dsw-alias-border-l2);flex-direction:column;display:flex;position:absolute;top:0;bottom:0;right:0;overflow:hidden}.KAfEAG_header{border-bottom:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);flex-wrap:wrap;align-items:center;gap:16px;padding:10px 16px;display:flex}.KAfEAG_titleBlock{flex-direction:column;gap:2px;min-width:180px;display:flex}.KAfEAG_title{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600}.KAfEAG_subtitle{color:var(--dsw-alias-label-caption);font-size:11px}.KAfEAG_statline{color:var(--dsw-alias-label-tertiary);margin-left:auto;font-size:11px}.KAfEAG_body{flex:1;padding:12px 16px 24px;overflow:auto}.KAfEAG_workbenchTabs{border-bottom:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);align-items:center;gap:2px;padding:0 16px;display:flex}.KAfEAG_workbenchTab{color:var(--dsw-alias-label-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:none;padding:10px 14px;font-size:13px;line-height:20px;position:relative}.KAfEAG_workbenchTab:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}.KAfEAG_workbenchTabActive{color:var(--dsw-alias-label-primary);font-weight:600}.KAfEAG_workbenchTabActive:after{content:\"\";background:var(--ds-color-accent,#4c8dff);border-radius:2px 2px 0 0;height:2px;position:absolute;bottom:-1px;left:14px;right:14px}.KAfEAG_page{flex-direction:column;gap:10px;display:flex}.KAfEAG_toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.KAfEAG_tabs{border-bottom:1px solid var(--dsw-alias-border-l2);flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:12px;padding-bottom:8px;display:flex}.KAfEAG_tab{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);cursor:pointer;white-space:nowrap;border-radius:999px;padding:6px 12px;font-size:12px}.KAfEAG_tab:hover{background:var(--dsw-alias-interactive-bg-hover)}.KAfEAG_tabActive{background:var(--dsw-alias-interactive-bg-active,var(--dsw-alias-bg-module-platform));color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-border-l3,var(--dsw-alias-border-l2));font-weight:600}.KAfEAG_field{color:var(--dsw-alias-label-caption);flex-direction:column;gap:3px;font-size:11px;display:flex}.KAfEAG_field input,.KAfEAG_field select,.KAfEAG_field textarea{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);border-radius:6px;min-width:140px;padding:5px 8px;font-size:12px}.KAfEAG_field textarea{resize:vertical}.KAfEAG_check{color:var(--dsw-alias-label-secondary);align-items:center;gap:5px;font-size:12px;display:flex}.KAfEAG_btn{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-primary);cursor:pointer;white-space:nowrap;border-radius:6px;padding:5px 10px;font-size:12px}.KAfEAG_btn:hover{background:var(--dsw-alias-interactive-bg-hover)}.KAfEAG_btn:disabled{opacity:.5;cursor:default}.KAfEAG_btnDanger{color:var(--dsw-alias-state-error-primary)}.KAfEAG_btnDanger:hover{background:var(--dsw-alias-interactive-bg-hover-danger)}.KAfEAG_error{color:var(--dsw-alias-state-error-primary);font-size:12px}.KAfEAG_okLine{color:var(--dsw-alias-state-success-primary);font-size:12px}.KAfEAG_warnLine{color:var(--dsw-alias-state-warn-label);margin-bottom:6px;font-size:12px}.KAfEAG_empty{color:var(--dsw-alias-label-caption);padding:14px 4px;font-size:12px}.KAfEAG_list{flex-direction:column;gap:8px;display:flex}.KAfEAG_card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);border-radius:8px;padding:8px 12px}.KAfEAG_cardHead{cursor:pointer;flex-wrap:wrap;align-items:center;gap:8px;display:flex}.KAfEAG_cardTitle{color:var(--dsw-alias-label-primary);font-size:13px;font-weight:500}.KAfEAG_cardMeta{color:var(--dsw-alias-label-caption);font-size:11px}.KAfEAG_cardSub{align-items:center;gap:12px;margin-top:4px;display:flex}.KAfEAG_concernBg{color:var(--dsw-alias-label-caption);margin-top:3px;font-size:11px;line-height:1.5}.KAfEAG_cardDetail{border-top:1px solid var(--dsw-alias-border-l2);flex-direction:column;gap:5px;margin-top:8px;padding-top:8px;display:flex}.KAfEAG_detailRow{color:var(--dsw-alias-label-secondary);font-size:12px}.KAfEAG_detailLabel{min-width:64px;color:var(--dsw-alias-label-caption);display:inline-block}.KAfEAG_actions{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.KAfEAG_historyTitle{color:var(--dsw-alias-label-secondary);margin-top:10px;font-size:12px;font-weight:600}.KAfEAG_table{border-collapse:collapse;width:100%;color:var(--dsw-alias-label-secondary);font-size:12px}.KAfEAG_table th{text-align:left;color:var(--dsw-alias-label-caption);border-bottom:1px solid var(--dsw-alias-border-l2);padding:5px 8px;font-weight:500}.KAfEAG_table td{border-bottom:1px solid var(--dsw-alias-border-l2);vertical-align:top;padding:5px 8px}.KAfEAG_valueCell{text-overflow:ellipsis;white-space:nowrap;max-width:320px;overflow:hidden}.KAfEAG_payloadFull{white-space:pre-wrap;word-break:break-all;max-width:480px}.KAfEAG_payloadToggle{cursor:pointer;color:var(--ds-color-accent,#4c8dff);user-select:none;margin-left:6px;font-size:12px}.KAfEAG_payloadToggle:hover{text-decoration:underline}.KAfEAG_cellActions{flex-wrap:wrap;gap:4px;display:flex}.KAfEAG_badge{white-space:nowrap;border-radius:9px;padding:1px 7px;font-size:11px}.KAfEAG_badgePositive{background:var(--dsw-alias-state-success-tertiary);color:var(--dsw-alias-state-success-primary)}.KAfEAG_badgeNegative{background:var(--dsw-alias-state-warn-tertiary);color:var(--dsw-alias-state-warn-label)}.KAfEAG_badgePinned{background:var(--dsw-alias-state-business-tertiary);color:var(--dsw-alias-state-business-primary)}.KAfEAG_badgeConflict{background:var(--dsw-alias-state-warn-tertiary);color:var(--dsw-alias-state-warn-label)}.KAfEAG_statusLive{background:var(--dsw-alias-state-success-tertiary);color:var(--dsw-alias-state-success-primary)}.KAfEAG_statusCandidate{background:var(--dsw-alias-interactive-bg-active);color:var(--dsw-alias-label-secondary)}.KAfEAG_statusChallenged{background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary)}.KAfEAG_statusOther{background:var(--dsw-alias-bg-skeleton);color:var(--dsw-alias-label-caption)}.KAfEAG_trust{color:var(--dsw-alias-label-tertiary);font-size:11px}.KAfEAG_columns{grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:16px;display:grid}.KAfEAG_column{flex-direction:column;gap:8px;min-width:0;display:flex}.KAfEAG_sectionTitle{color:var(--dsw-alias-label-primary);margin-top:6px;font-size:13px;font-weight:600}.KAfEAG_form{border:1px solid var(--dsw-alias-border-l2);border-radius:8px;flex-direction:column;gap:8px;padding:12px;display:flex}.KAfEAG_form .KAfEAG_btn{align-self:flex-start}.KAfEAG_rules{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:4px;margin:0;padding-left:18px;font-size:12px;display:flex}";
7883
8139
  const tagId$1 = "dsh-daoing-memory/Workbench.module.css";
@@ -7889,61 +8145,61 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7889
8145
  document.head.appendChild(tag);
7890
8146
  }
7891
8147
  var Workbench_module_css_default = {
7892
- "toolbar": "KAfEAG_toolbar",
7893
- "trust": "KAfEAG_trust",
7894
- "columns": "KAfEAG_columns",
8148
+ "subtitle": "KAfEAG_subtitle",
8149
+ "cardDetail": "KAfEAG_cardDetail",
8150
+ "workbenchTabs": "KAfEAG_workbenchTabs",
8151
+ "btn": "KAfEAG_btn",
8152
+ "valueCell": "KAfEAG_valueCell",
8153
+ "check": "KAfEAG_check",
8154
+ "detailLabel": "KAfEAG_detailLabel",
8155
+ "payloadFull": "KAfEAG_payloadFull",
8156
+ "workbenchTab": "KAfEAG_workbenchTab",
7895
8157
  "cardMeta": "KAfEAG_cardMeta",
8158
+ "statusLive": "KAfEAG_statusLive",
7896
8159
  "statusOther": "KAfEAG_statusOther",
7897
- "cardTitle": "KAfEAG_cardTitle",
7898
- "badgePositive": "KAfEAG_badgePositive",
7899
- "badgeNegative": "KAfEAG_badgeNegative",
7900
- "cardSub": "KAfEAG_cardSub",
7901
- "payloadToggle": "KAfEAG_payloadToggle",
7902
- "okLine": "KAfEAG_okLine",
8160
+ "tabs": "KAfEAG_tabs",
8161
+ "concernBg": "KAfEAG_concernBg",
8162
+ "actions": "KAfEAG_actions",
8163
+ "historyTitle": "KAfEAG_historyTitle",
8164
+ "card": "KAfEAG_card",
8165
+ "columns": "KAfEAG_columns",
8166
+ "form": "KAfEAG_form",
8167
+ "cardHead": "KAfEAG_cardHead",
7903
8168
  "panel": "KAfEAG_panel",
8169
+ "workbenchTabActive": "KAfEAG_workbenchTabActive",
7904
8170
  "title": "KAfEAG_title",
7905
- "concernBg": "KAfEAG_concernBg",
7906
- "error": "KAfEAG_error",
7907
- "valueCell": "KAfEAG_valueCell",
7908
- "statusChallenged": "KAfEAG_statusChallenged",
7909
- "list": "KAfEAG_list",
7910
- "statusLive": "KAfEAG_statusLive",
8171
+ "empty": "KAfEAG_empty",
8172
+ "payloadToggle": "KAfEAG_payloadToggle",
7911
8173
  "cellActions": "KAfEAG_cellActions",
7912
8174
  "badge": "KAfEAG_badge",
7913
- "tabActive": "KAfEAG_tabActive",
7914
- "detailLabel": "KAfEAG_detailLabel",
7915
- "btnDanger": "KAfEAG_btnDanger",
7916
- "workbenchTab": "KAfEAG_workbenchTab",
7917
- "btn": "KAfEAG_btn",
7918
- "cardHead": "KAfEAG_cardHead",
7919
- "detailRow": "KAfEAG_detailRow",
7920
- "page": "KAfEAG_page",
7921
- "subtitle": "KAfEAG_subtitle",
7922
- "historyTitle": "KAfEAG_historyTitle",
7923
- "sectionTitle": "KAfEAG_sectionTitle",
7924
- "table": "KAfEAG_table",
7925
- "tab": "KAfEAG_tab",
7926
8175
  "body": "KAfEAG_body",
7927
- "workbenchTabs": "KAfEAG_workbenchTabs",
7928
- "titleBlock": "KAfEAG_titleBlock",
7929
- "header": "KAfEAG_header",
7930
- "card": "KAfEAG_card",
7931
- "badgePinned": "KAfEAG_badgePinned",
8176
+ "badgeConflict": "KAfEAG_badgeConflict",
7932
8177
  "statusCandidate": "KAfEAG_statusCandidate",
7933
- "form": "KAfEAG_form",
7934
- "check": "KAfEAG_check",
7935
- "cardDetail": "KAfEAG_cardDetail",
7936
- "payloadFull": "KAfEAG_payloadFull",
8178
+ "sectionTitle": "KAfEAG_sectionTitle",
8179
+ "titleBlock": "KAfEAG_titleBlock",
8180
+ "cardTitle": "KAfEAG_cardTitle",
8181
+ "cardSub": "KAfEAG_cardSub",
8182
+ "toolbar": "KAfEAG_toolbar",
8183
+ "badgePositive": "KAfEAG_badgePositive",
7937
8184
  "rules": "KAfEAG_rules",
7938
- "empty": "KAfEAG_empty",
7939
- "workbenchTabActive": "KAfEAG_workbenchTabActive",
7940
- "badgeConflict": "KAfEAG_badgeConflict",
7941
- "column": "KAfEAG_column",
7942
- "warnLine": "KAfEAG_warnLine",
8185
+ "trust": "KAfEAG_trust",
8186
+ "badgePinned": "KAfEAG_badgePinned",
8187
+ "detailRow": "KAfEAG_detailRow",
8188
+ "btnDanger": "KAfEAG_btnDanger",
8189
+ "error": "KAfEAG_error",
8190
+ "tab": "KAfEAG_tab",
8191
+ "tabActive": "KAfEAG_tabActive",
7943
8192
  "statline": "KAfEAG_statline",
7944
- "actions": "KAfEAG_actions",
8193
+ "list": "KAfEAG_list",
8194
+ "badgeNegative": "KAfEAG_badgeNegative",
8195
+ "header": "KAfEAG_header",
7945
8196
  "field": "KAfEAG_field",
7946
- "tabs": "KAfEAG_tabs"
8197
+ "okLine": "KAfEAG_okLine",
8198
+ "warnLine": "KAfEAG_warnLine",
8199
+ "page": "KAfEAG_page",
8200
+ "table": "KAfEAG_table",
8201
+ "statusChallenged": "KAfEAG_statusChallenged",
8202
+ "column": "KAfEAG_column"
7947
8203
  };
7948
8204
  //#endregion
7949
8205
  //#region src/client/ExperiencePage.tsx
@@ -8071,12 +8327,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8071
8327
  refresh
8072
8328
  ]);
8073
8329
  const runDelete = (0, react.useCallback)(async (item) => {
8074
- const reason = await promptReason(`删除经验「${item.gist.slice(0, 24)}」(指纹保留在账本)`);
8075
- if (reason === void 0) return;
8076
- await actions.humanDeleteExperience({
8077
- id: item.id,
8078
- reason
8079
- });
8330
+ if (SYSTEM_EXPERIENCE_FAMILIES.has(item.family)) {
8331
+ const reason = await promptReason(`归档系统经验「${item.family}」(保留数据,移出活跃召回)`);
8332
+ if (reason === void 0) return;
8333
+ await actions.humanArchiveExperience({
8334
+ id: item.id,
8335
+ reason
8336
+ });
8337
+ } else {
8338
+ const reason = await promptReason(`删除经验「${item.gist.slice(0, 24)}」(指纹保留在账本)`);
8339
+ if (reason === void 0) return;
8340
+ await actions.humanDeleteExperience({
8341
+ id: item.id,
8342
+ reason
8343
+ });
8344
+ }
8080
8345
  refresh();
8081
8346
  onChanged();
8082
8347
  }, [
@@ -8213,6 +8478,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8213
8478
  title: item.gist,
8214
8479
  children: item.gist
8215
8480
  }),
8481
+ SYSTEM_EXPERIENCE_FAMILIES.has(item.family) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
8482
+ className: `${Workbench_module_css_default.badge} ${Workbench_module_css_default.badgeConflict}`,
8483
+ title: "系统自动生成的经验,禁止删除,只能归档",
8484
+ children: ["系统·", item.family]
8485
+ }),
8216
8486
  item.pinned && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
8217
8487
  className: `${Workbench_module_css_default.badge} ${Workbench_module_css_default.badgePinned}`,
8218
8488
  children: "永久"
@@ -8406,17 +8676,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8406
8676
  document.head.appendChild(tag);
8407
8677
  }
8408
8678
  var ReasonDialog_module_css_default = {
8679
+ "header": "L4KK8a_header",
8680
+ "dialog": "L4KK8a_dialog",
8409
8681
  "buttons": "L4KK8a_buttons",
8410
- "btnConfirm": "L4KK8a_btnConfirm",
8682
+ "overlay": "L4KK8a_overlay",
8411
8683
  "footer": "L4KK8a_footer",
8412
- "textarea": "L4KK8a_textarea",
8413
- "hint": "L4KK8a_hint",
8414
8684
  "btnCancel": "L4KK8a_btnCancel",
8415
- "title": "L4KK8a_title",
8416
- "overlay": "L4KK8a_overlay",
8685
+ "textarea": "L4KK8a_textarea",
8417
8686
  "subtitle": "L4KK8a_subtitle",
8418
- "dialog": "L4KK8a_dialog",
8419
- "header": "L4KK8a_header"
8687
+ "hint": "L4KK8a_hint",
8688
+ "btnConfirm": "L4KK8a_btnConfirm",
8689
+ "title": "L4KK8a_title"
8420
8690
  };
8421
8691
  //#endregion
8422
8692
  //#region src/client/ReasonDialog.tsx
@@ -10440,6 +10710,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10440
10710
  humanDeleteExperience: async (session, request) => {
10441
10711
  unwrap(await memory.humanDeleteExperience(session, request));
10442
10712
  },
10713
+ humanArchiveExperience: async (session, request) => {
10714
+ unwrap(await memory.humanArchiveExperience(session, request));
10715
+ },
10443
10716
  humanEditExperience: async (session, request) => unwrap(await memory.humanEditExperience(session, request)),
10444
10717
  humanAddExperience: async (session, request) => unwrap(await memory.humanAddExperience(session, request)),
10445
10718
  humanPromote: async (session, id, reason) => unwrap(await memory.humanPromote(session, id, reason)),