qlogicagent 2.19.14 → 2.20.2

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.
Files changed (81) hide show
  1. package/README.md +0 -1
  2. package/dist/agent-contract.js +1 -1
  3. package/dist/agent.js +29 -29
  4. package/dist/cli.js +1 -1
  5. package/dist/host-contract.js +1 -1
  6. package/dist/index.js +469 -465
  7. package/dist/orchestration.js +13 -13
  8. package/dist/project-memory-host.js +19 -18
  9. package/dist/protocol.js +1 -1
  10. package/dist/tunables.js +1 -1
  11. package/dist/types/cli/acp-extended-handlers.d.ts +5 -10
  12. package/dist/types/cli/acp-extended-host-adapter.d.ts +1 -1
  13. package/dist/types/cli/community-workflow-installer.d.ts +2 -2
  14. package/dist/types/cli/handlers/dream-handler.d.ts +6 -0
  15. package/dist/types/cli/handlers/goal-handler.d.ts +1 -13
  16. package/dist/types/cli/handlers/product-handler.d.ts +6 -9
  17. package/dist/types/cli/handlers/solo-handler.d.ts +3 -6
  18. package/dist/types/cli/handlers/workflow-compute-handler.d.ts +1 -1
  19. package/dist/types/cli/memory-coordinator.d.ts +0 -2
  20. package/dist/types/cli/multi-agent-handler-host.d.ts +1 -1
  21. package/dist/types/cli/orchestration-memory-context.d.ts +1 -0
  22. package/dist/types/cli/product-coordinator.d.ts +2 -5
  23. package/dist/types/cli/rpc-registry.d.ts +0 -3
  24. package/dist/types/cli/runtime-hook-bootstrap.d.ts +0 -2
  25. package/dist/types/cli/stdio-rpc-handler-hosts.d.ts +2 -1
  26. package/dist/types/cli/stdio-server.d.ts +2 -3
  27. package/dist/types/cli/task-distillation-coordinator.d.ts +0 -3
  28. package/dist/types/host-contract/index.d.ts +0 -10
  29. package/dist/types/index.d.ts +0 -1
  30. package/dist/types/orchestration/agent-instance.d.ts +30 -15
  31. package/dist/types/orchestration/agent-roster.d.ts +2 -2
  32. package/dist/types/orchestration/goal-loop-coordinator.d.ts +18 -8
  33. package/dist/types/orchestration/goal-mode-adapters.d.ts +6 -1
  34. package/dist/types/orchestration/goal-run-persistence.d.ts +12 -10
  35. package/dist/types/orchestration/goal-run-types.d.ts +3 -21
  36. package/dist/types/orchestration/index.d.ts +0 -1
  37. package/dist/types/orchestration/product-checkpoint.d.ts +10 -6
  38. package/dist/types/orchestration/product-persistence.d.ts +47 -20
  39. package/dist/types/orchestration/product-planner.d.ts +30 -10
  40. package/dist/types/orchestration/product-run-coordinator.d.ts +4 -3
  41. package/dist/types/orchestration/solo-evaluator.d.ts +10 -16
  42. package/dist/types/orchestration/solo-persistence.d.ts +10 -10
  43. package/dist/types/orchestration/workflow/budget-permission-gate.d.ts +1 -1
  44. package/dist/types/orchestration/workflow/capability-catalog.d.ts +11 -34
  45. package/dist/types/orchestration/workflow/host-executors.d.ts +3 -3
  46. package/dist/types/orchestration/workflow/n8n-import.d.ts +0 -1
  47. package/dist/types/orchestration/workflow/node-schema.d.ts +5 -18
  48. package/dist/types/orchestration/workflow/params-schema.d.ts +7 -16
  49. package/dist/types/orchestration/workflow/qla-executor-host.d.ts +4 -27
  50. package/dist/types/orchestration/workflow/workflow-bundle.d.ts +10 -28
  51. package/dist/types/orchestration/workflow/workflow-controller.d.ts +14 -8
  52. package/dist/types/orchestration/workflow/workflow-error.d.ts +1 -1
  53. package/dist/types/orchestration/workflow/workflow-render.d.ts +1 -1
  54. package/dist/types/orchestration/workflow/workflow-scheduler.d.ts +8 -8
  55. package/dist/types/orchestration/workflow/workflow-store.d.ts +7 -8
  56. package/dist/types/orchestration/workflow-chat-builder.d.ts +1 -1
  57. package/dist/types/protocol/agent-contract.d.ts +7 -7
  58. package/dist/types/protocol/methods.d.ts +1 -129
  59. package/dist/types/protocol/notifications.d.ts +1 -1
  60. package/dist/types/protocol/wire/acp-agent-management.d.ts +45 -24
  61. package/dist/types/protocol/wire/acp-protocol.d.ts +3 -8
  62. package/dist/types/protocol/wire/agent-methods.d.ts +2 -468
  63. package/dist/types/protocol/wire/index.d.ts +1 -1
  64. package/dist/types/protocol/wire/notification-payloads.d.ts +0 -6
  65. package/dist/types/protocol/wire/thread-protocol.d.ts +1 -1
  66. package/dist/types/runtime/config/tunable-defaults.d.ts +0 -9
  67. package/dist/types/runtime/hooks/memory-hooks.d.ts +1 -1
  68. package/dist/types/runtime/infra/acp-protocol-adapter.d.ts +1 -2
  69. package/dist/types/runtime/memory/implicit-extraction.d.ts +4 -1
  70. package/dist/types/runtime/memory/recall-category-filter.d.ts +0 -12
  71. package/dist/types/runtime/ports/memory-recall-source.d.ts +1 -0
  72. package/dist/types/runtime/ports/project-memory-store.d.ts +3 -0
  73. package/dist/types/skills/memory/memdir.d.ts +1 -2
  74. package/dist/types/skills/skill-system/skill-lifecycle.d.ts +0 -17
  75. package/dist/types/skills/skill-system/skill-validation.d.ts +1 -1
  76. package/dist/types/transport/acp-server.d.ts +1 -5
  77. package/dist/types/workflow-host.d.ts +2 -4
  78. package/dist/workflow-host.js +7 -9
  79. package/package.json +1 -1
  80. package/dist/types/cli/credential-vault.d.ts +0 -68
  81. package/dist/types/orchestration/skill-improvement.d.ts +0 -97
@@ -11,7 +11,6 @@
11
11
  import type { ChatMessage, LocalizedToolText, ToolCapabilityCategory } from "./chat-types.js";
12
12
  import type { GatewayRpcMethodMap } from "./gateway-rpc.js";
13
13
  import type { WireTokenUsage } from "./notification-payloads.js";
14
- import type { SoloEvaluation, SoloMessageParams, SoloEvaluateParams, SoloDeleteParams, ProductPlan, ProductPlanParams, ProductConfirmParams, ProductMessageParams, ProductIdParams, ProductDeleteParams, ProductReplayParams } from "./acp-agent-management.js";
15
14
  export type SoloState = "running" | "evaluating" | "completed" | "cancelled" | "failed";
16
15
  export type SoloAgentState = "pending" | "running" | "completed" | "failed" | "idle";
17
16
  export interface SoloAgentResult {
@@ -29,6 +28,7 @@ export interface SoloAgentResult {
29
28
  }
30
29
  export interface SoloStatus {
31
30
  soloId: string;
31
+ projectId: string;
32
32
  state: SoloState;
33
33
  agents: SoloAgentResult[];
34
34
  evaluation?: {
@@ -54,6 +54,7 @@ export interface ProductTaskDef {
54
54
  }
55
55
  export interface ProductStatus {
56
56
  productId: string;
57
+ projectId: string;
57
58
  name: string;
58
59
  phase: ProductPhase;
59
60
  instances: Array<{
@@ -364,89 +365,6 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
364
365
  usage?: WireTokenUsage;
365
366
  };
366
367
  };
367
- "solo.start": {
368
- params: {
369
- task: string;
370
- agents: string[];
371
- cwd: string;
372
- };
373
- result: {
374
- soloId: string;
375
- };
376
- };
377
- "solo.status": {
378
- params: {
379
- soloId: string;
380
- };
381
- result: SoloStatus | null;
382
- };
383
- "solo.cancel": {
384
- params: {
385
- soloId: string;
386
- };
387
- result: {
388
- ok: true;
389
- };
390
- };
391
- "solo.select": {
392
- params: {
393
- soloId: string;
394
- winnerId: string;
395
- };
396
- result: {
397
- ok: true;
398
- mergedBranch: string;
399
- };
400
- };
401
- "product.create": {
402
- params: {
403
- name: string;
404
- cwd: string;
405
- instances: ProductInstanceDef[];
406
- tasks: ProductTaskDef[];
407
- budget?: {
408
- maxTotalTokens?: number;
409
- maxDuration?: number;
410
- };
411
- };
412
- result: {
413
- productId: string;
414
- };
415
- };
416
- "product.resume": {
417
- params: {
418
- productId: string;
419
- };
420
- result: {
421
- ok: true;
422
- };
423
- };
424
- "product.pause": {
425
- params: {
426
- productId: string;
427
- };
428
- result: {
429
- ok: true;
430
- };
431
- };
432
- "product.checkpoint": {
433
- params: {
434
- productId: string;
435
- };
436
- result: {
437
- ok: true;
438
- };
439
- };
440
- "product.status": {
441
- params: {
442
- productId: string;
443
- };
444
- result: ProductStatus | null;
445
- };
446
- "product.list": {
447
- params: undefined;
448
- result: ProductSummary[];
449
- };
450
368
  "thread.user_response": {
451
369
  params: {
452
370
  requestId: string;
@@ -588,390 +506,6 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
588
506
  "agent.health": GatewayRpcMethodMap["agent.health"];
589
507
  "agent.metrics": GatewayRpcMethodMap["agent.metrics"];
590
508
  "agent.cancel": GatewayRpcMethodMap["agent.cancel"];
591
- "solo.list": {
592
- params: undefined;
593
- result: SoloStatus[];
594
- };
595
- "solo.delete": {
596
- params: SoloDeleteParams;
597
- result: {
598
- ok: true;
599
- };
600
- };
601
- "solo.message": {
602
- params: SoloMessageParams;
603
- result: {
604
- resultText: string;
605
- };
606
- };
607
- "solo.evaluate": {
608
- params: SoloEvaluateParams;
609
- result: SoloEvaluation;
610
- };
611
- "product.plan": {
612
- params: ProductPlanParams;
613
- result: {
614
- productId: string;
615
- plan: ProductPlan;
616
- };
617
- };
618
- "product.confirm": {
619
- params: ProductConfirmParams;
620
- result: {
621
- productId: string;
622
- ok: true;
623
- };
624
- };
625
- "product.message": {
626
- params: ProductMessageParams;
627
- result: {
628
- response: string;
629
- plan?: ProductPlan;
630
- mutations?: Array<{
631
- type: string;
632
- taskId: string;
633
- }>;
634
- };
635
- };
636
- "product.delete": {
637
- params: ProductDeleteParams;
638
- result: {
639
- ok: true;
640
- };
641
- };
642
- "product.cancel": {
643
- params: ProductIdParams;
644
- result: {
645
- ok: true;
646
- };
647
- };
648
- "product.rollback": {
649
- params: ProductIdParams & {
650
- checkpoint?: string;
651
- };
652
- result: {
653
- ok: true;
654
- };
655
- };
656
- "product.replay": {
657
- params: ProductReplayParams;
658
- result: {
659
- productId: string;
660
- ok: true;
661
- };
662
- };
663
- "workflow.create": {
664
- params: Record<string, unknown>;
665
- result: Record<string, unknown>;
666
- };
667
- "workflow.get": {
668
- params: {
669
- id: string;
670
- projectId?: string;
671
- includePublished?: boolean;
672
- };
673
- result: Record<string, unknown>;
674
- };
675
- "workflow.describe": {
676
- params: {
677
- id: string;
678
- projectId?: string;
679
- };
680
- result: {
681
- rendered: string;
682
- };
683
- };
684
- "workflow.patch": {
685
- params: Record<string, unknown>;
686
- result: Record<string, unknown>;
687
- };
688
- "workflow.run": {
689
- params: Record<string, unknown>;
690
- result: Record<string, unknown>;
691
- };
692
- "workflow.setActive": {
693
- params: {
694
- id: string;
695
- active: boolean;
696
- projectId?: string;
697
- };
698
- result: Record<string, unknown>;
699
- };
700
- "workflow.list": {
701
- params: {
702
- projectId?: string;
703
- };
704
- result: {
705
- workflows: Array<Record<string, unknown>>;
706
- };
707
- };
708
- "workflow.delete": {
709
- params: {
710
- id: string;
711
- projectId?: string;
712
- };
713
- result: {
714
- ok: true;
715
- };
716
- };
717
- "workflow.onImMessage": {
718
- params: {
719
- channel: string;
720
- text: string;
721
- payload?: Record<string, unknown>;
722
- };
723
- result: {
724
- outcomes: unknown[];
725
- errors?: Array<{
726
- projectId?: string;
727
- error: string;
728
- }>;
729
- };
730
- };
731
- "workflow.onWebhook": {
732
- params: {
733
- path: string;
734
- payload?: Record<string, unknown>;
735
- };
736
- result: {
737
- outcomes: unknown[];
738
- errors?: Array<{
739
- projectId?: string;
740
- error: string;
741
- }>;
742
- wokenWaits?: number;
743
- };
744
- };
745
- "workflow.revisions": {
746
- params: {
747
- id: string;
748
- projectId?: string;
749
- };
750
- result: {
751
- revisions: unknown;
752
- };
753
- };
754
- "workflow.revert": {
755
- params: {
756
- id: string;
757
- rev: number;
758
- projectId?: string;
759
- };
760
- result: Record<string, unknown>;
761
- };
762
- "workflow.runs": {
763
- params: {
764
- id: string;
765
- projectId?: string;
766
- };
767
- result: {
768
- runs: unknown;
769
- };
770
- };
771
- "workflow.runDetail": {
772
- params: {
773
- id: string;
774
- runId: string;
775
- projectId?: string;
776
- };
777
- result: {
778
- run: unknown;
779
- };
780
- };
781
- "workflow.export": {
782
- params: {
783
- id: string;
784
- projectId?: string;
785
- };
786
- result: {
787
- bundle: unknown;
788
- };
789
- };
790
- "workflow.import": {
791
- params: {
792
- payload: unknown;
793
- format?: "n8n";
794
- targetWorkflowId?: string;
795
- id?: string;
796
- name?: string;
797
- projectId?: string;
798
- };
799
- result: Record<string, unknown>;
800
- };
801
- "workflow.duplicate": {
802
- params: {
803
- id: string;
804
- targetProjectId?: string;
805
- name?: string;
806
- projectId?: string;
807
- };
808
- result: Record<string, unknown>;
809
- };
810
- "workflow.update": {
811
- params: Record<string, unknown>;
812
- result: Record<string, unknown>;
813
- };
814
- "workflow.capabilities": {
815
- params: {
816
- projectId?: string;
817
- };
818
- result: {
819
- capabilities: unknown;
820
- };
821
- };
822
- "workflow.onIntent": {
823
- params: {
824
- workflowId: string;
825
- text: string;
826
- surface?: string;
827
- matchedPhrase?: string;
828
- projectId?: string;
829
- };
830
- result: unknown;
831
- };
832
- "workflow.intentIndex": {
833
- params: undefined;
834
- result: {
835
- intents: Array<{
836
- workflowId: string;
837
- projectId?: string;
838
- name: string;
839
- trigger: Record<string, unknown>;
840
- }>;
841
- };
842
- };
843
- "workflow.cancelRun": {
844
- params: {
845
- id: string;
846
- runId?: string;
847
- reason?: string;
848
- projectId?: string;
849
- };
850
- result: Record<string, unknown>;
851
- };
852
- "workflow.setPermissionScope": {
853
- params: {
854
- id: string;
855
- allowUnattendedKinds: string[] | null;
856
- projectId?: string;
857
- };
858
- result: Record<string, unknown>;
859
- };
860
- "workflow.publish": {
861
- params: {
862
- id: string;
863
- projectId?: string;
864
- };
865
- result: Record<string, unknown>;
866
- };
867
- "workflow.audit": {
868
- params: {
869
- id?: string;
870
- limit?: number;
871
- projectId?: string;
872
- };
873
- result: {
874
- entries: unknown;
875
- };
876
- };
877
- "workflow.archive": {
878
- params: {
879
- id: string;
880
- archived: boolean;
881
- projectId?: string;
882
- };
883
- result: Record<string, unknown>;
884
- };
885
- "workflow.dryRun": {
886
- params: {
887
- id: string;
888
- payload?: Record<string, unknown>;
889
- projectId?: string;
890
- };
891
- result: Record<string, unknown>;
892
- };
893
- "workflow.metrics": {
894
- params: {
895
- id: string;
896
- projectId?: string;
897
- };
898
- result: {
899
- metrics: Record<string, unknown>;
900
- };
901
- };
902
- "workflow.approve": {
903
- params: {
904
- approvalId: string;
905
- approved: boolean;
906
- note?: string;
907
- };
908
- result: {
909
- ok: true;
910
- };
911
- };
912
- "workflow.approvals": {
913
- params: undefined;
914
- result: {
915
- approvals: Array<Record<string, unknown>>;
916
- };
917
- };
918
- "workflow.onForm": {
919
- params: {
920
- workflowId: string;
921
- values: Record<string, unknown>;
922
- projectId?: string;
923
- };
924
- result: unknown;
925
- };
926
- "credential.list": {
927
- params: undefined;
928
- result: {
929
- credentials: Array<Record<string, unknown>>;
930
- };
931
- };
932
- "credential.create": {
933
- params: {
934
- type: string;
935
- label: string;
936
- data: Record<string, unknown>;
937
- meta?: Record<string, unknown>;
938
- };
939
- result: Record<string, unknown>;
940
- };
941
- "credential.delete": {
942
- params: {
943
- id: string;
944
- };
945
- result: {
946
- ok: boolean;
947
- };
948
- };
949
- "credential.oauthStart": {
950
- params: {
951
- label: string;
952
- authUrl: string;
953
- tokenUrl: string;
954
- clientId: string;
955
- redirectUri: string;
956
- scopes?: string;
957
- clientSecret?: string;
958
- };
959
- result: {
960
- credentialId: string;
961
- authorizeUrl: string;
962
- state: string;
963
- };
964
- };
965
- "credential.oauthComplete": {
966
- params: {
967
- state: string;
968
- code: string;
969
- };
970
- result: {
971
- ok: true;
972
- credentialId: string;
973
- };
974
- };
975
509
  "session.moveToProject": GatewayRpcMethodMap["session.moveToProject"];
976
510
  "instructions.list": GatewayRpcMethodMap["instructions.list"];
977
511
  "instructions.read": GatewayRpcMethodMap["instructions.read"];
@@ -5,7 +5,7 @@ export { type ChatMessage, type ChatMessageRole, type LocalizedToolText, type Th
5
5
  export { type AgentRpcMethodMap, type ProductInstanceDef, type ProductPhase, type ProductStatus, type ProductSummary, type ProductTaskDef, type ProductTaskStatus, type SoloAgentResult, type SoloAgentState, type SoloState, type SoloStatus, } from "./agent-methods.js";
6
6
  export type * from "./acp-agent-management.js";
7
7
  export { AGENT_TEAM_WS_EVENT_NAMES, AGENT_WS_EVENT_NAMES, ALL_AGENT_WS_EVENT_NAMES, type AgentTeamWsEventName, type AgentWsEventName, type AllAgentWsEventName, } from "./agent-events.js";
8
- export { type AgentSource, type ArtifactType, type MediaResultType, type MemoryDecayCompletedNotification, type MemoryUpdatedNotification, type NotificationMethod, type NotificationMethodMap, type NotificationThreadItem, type PermissionRuleUpdatedNotification, type PlanInterruptedNotification, type PongNotification, type ProductBudgetUpdateNotification, type ProductBudgetWarningNotification, type ProductCheckpointedNotification, type ProductCompletedNotification, type ProductDagTopologyNotification, type ProductTaskCompletedNotification, type ProductTaskFailedNotification, type ProductTaskOutputDeltaNotification, type ProductMembersNotification, type ProductAgentActivityNotification, type ProductTaskStartedNotification, type ProjectArchivedNotification, type ProjectCreatedNotification, type ProjectDeletedNotification, type ProjectDetachedNotification, type ProjectAttachedNotification, type ProjectRenamedNotification, type ProjectSwitchedNotification, type ProjectUnarchivedNotification, type SessionInfoNotification, type SessionRecoveryPendingNotification, type SoloAgentDeltaNotification, type SoloAgentUsageNotification, type SoloEvaluationNotification, type SoloProgressNotification, type TeamMemberNotification, type ToolApprovalRequestNotification, type TurnAnnotationsNotification, type TurnArtifactContractNotification, type TurnArtifactNotification, type TurnAskUserNotification, type TurnDeltaNotification, type TurnEndNotification, type TurnErrorNotification, type TurnExecProgressNotification, type TurnHeartbeatNotification, type TurnMediaPersistedNotification, type TurnMediaProgressNotification, type TurnMediaResultNotification, type TurnPlanUpdateNotification, type TurnProgressNotification, type TurnReasoningDeltaNotification, type TurnRecoveryNotification, type TurnSidechainCompletedNotification, type TurnSidechainStartedNotification, type TurnSkillAcquisitionNeededNotification, type TurnSkillInstructionNotification, type TurnStartNotification, type TurnSubagentDeltaNotification, type TurnSubagentEndedNotification, type TurnSubagentStartedNotification, type TurnSuggestionsNotification, type TurnTaskUpdatedNotification, type TurnTodosUpdatedNotification, type TurnToolBlockedNotification, type TurnToolCallNotification, type TurnToolResultNotification, type TurnToolUseSummaryNotification, type TurnUsageUpdateNotification, type WireTokenUsage, type ProductPlanReadyNotification, type ProductPlanFailedNotification, type ProductPlanningDeltaNotification, type ProductLeaderMessageNotification, type ProductPlanningAskNotification, type GoalRoundMessageNotification, type MentionDelegateStartedNotification, type MentionDelegateActivityNotification, type MentionDelegateSettledNotification, type WorkflowDeletedNotification, type WorkflowRecordNotification, type WorkflowRunCompletedNotification, type WorkflowRunFailedNotification, type WorkflowRunStartedNotification, } from "./notification-payloads.js";
8
+ export { type AgentSource, type ArtifactType, type MediaResultType, type MemoryDecayCompletedNotification, type MemoryUpdatedNotification, type NotificationMethod, type NotificationMethodMap, type NotificationThreadItem, type PermissionRuleUpdatedNotification, type PlanInterruptedNotification, type PongNotification, type ProductBudgetUpdateNotification, type ProductBudgetWarningNotification, type ProductCheckpointedNotification, type ProductCompletedNotification, type ProductDagTopologyNotification, type ProductTaskCompletedNotification, type ProductTaskFailedNotification, type ProductTaskOutputDeltaNotification, type ProductMembersNotification, type ProductAgentActivityNotification, type ProductTaskStartedNotification, type ProjectArchivedNotification, type ProjectCreatedNotification, type ProjectDeletedNotification, type ProjectDetachedNotification, type ProjectAttachedNotification, type ProjectRenamedNotification, type ProjectSwitchedNotification, type ProjectUnarchivedNotification, type SessionInfoNotification, type SessionRecoveryPendingNotification, type SoloAgentDeltaNotification, type SoloAgentUsageNotification, type SoloEvaluationNotification, type SoloProgressNotification, type TeamMemberNotification, type ToolApprovalRequestNotification, type TurnAnnotationsNotification, type TurnArtifactContractNotification, type TurnArtifactNotification, type TurnAskUserNotification, type TurnDeltaNotification, type TurnEndNotification, type TurnErrorNotification, type TurnExecProgressNotification, type TurnHeartbeatNotification, type TurnMediaPersistedNotification, type TurnMediaProgressNotification, type TurnMediaResultNotification, type TurnPlanUpdateNotification, type TurnProgressNotification, type TurnReasoningDeltaNotification, type TurnRecoveryNotification, type TurnSidechainCompletedNotification, type TurnSidechainStartedNotification, type TurnSkillAcquisitionNeededNotification, type TurnStartNotification, type TurnSubagentDeltaNotification, type TurnSubagentEndedNotification, type TurnSubagentStartedNotification, type TurnSuggestionsNotification, type TurnTaskUpdatedNotification, type TurnTodosUpdatedNotification, type TurnToolBlockedNotification, type TurnToolCallNotification, type TurnToolResultNotification, type TurnToolUseSummaryNotification, type TurnUsageUpdateNotification, type WireTokenUsage, type ProductPlanReadyNotification, type ProductPlanFailedNotification, type ProductPlanningDeltaNotification, type ProductLeaderMessageNotification, type ProductPlanningAskNotification, type GoalRoundMessageNotification, type MentionDelegateStartedNotification, type MentionDelegateActivityNotification, type MentionDelegateSettledNotification, type WorkflowDeletedNotification, type WorkflowRecordNotification, type WorkflowRunCompletedNotification, type WorkflowRunFailedNotification, type WorkflowRunStartedNotification, } from "./notification-payloads.js";
9
9
  export { ACP_EXTENDED_METHODS, ACP_EXTENDED_SESSION_UPDATE_TYPES, ACP_METHODS, ACP_PROTOCOL_VERSION, ACP_SESSION_UPDATE_TYPES, isAcpJsonRpcNotification, isAcpJsonRpcRequest, isAcpJsonRpcResponse, isExtendedSessionUpdateType, isStandardSessionUpdateType, parseAcpMessage, type AcpAgentCapabilities, type AcpAgentMessageChunkPayload, type AcpAgentThoughtChunkPayload, type AcpConfigOptionDescriptor, type AcpConfigOptionUpdatePayload, type AcpContentBlock, type AcpEndTurnPayload, type AcpExtendedMethod, type AcpExtendedSessionUpdateType, type AcpFsReadTextFileParams, type AcpFsReadTextFileResult, type AcpFsWriteTextFileParams, type AcpFsWriteTextFileResult, type AcpHostCapabilities, type AcpInitializeParams, type AcpInitializeResult, type AcpJsonRpcError, type AcpJsonRpcMessage, type AcpJsonRpcNotification, type AcpJsonRpcRequest, type AcpJsonRpcResponse, type AcpMode, type AcpPermissionOption, type AcpPermissionRequestParams, type AcpPermissionRequestResult, type AcpPlanPayload, type AcpSessionCancelParams, type AcpSessionCloseParams, type AcpSessionMeta, type AcpSessionLoadParams, type AcpSessionModeState, type AcpSessionNewParams, type AcpSessionNewResult, type AcpSessionPromptParams, type AcpSessionPromptResult, type AcpSessionSetConfigParams, type AcpSessionUpdateNotification, type AcpSessionUpdateType, type AcpStandardMethod, type AcpStandardSessionUpdateType, type AcpStopReason, type AcpToolCallPayload, type AcpToolCallUpdatePayload, type AcpUsage, type AcpUsageUpdatePayload, type AcpXSessionInfoPayload, type AcpXSkillInstructionPayload, } from "./acp-protocol.js";
10
10
  export { type ApprovalRequiredToolContract, type ModelSelectionReason, type PendingPromptContract, type RuntimeCapabilitySummaryContract, type RuntimeSessionContract, type SessionIdentityContract, } from "./session.js";
11
11
  export { type GatewayChannelExecutionEgressContract, type GatewayChannelExecutionEgressKind, type GatewayChannelExecutionIngressBindingContract, type GatewayChannelExecutionIngressSource, } from "./channel-ingress.js";
@@ -454,11 +454,6 @@ export interface ToolApprovalRequestNotification {
454
454
  path: string;
455
455
  };
456
456
  }
457
- /** Skill instruction directive. */
458
- export interface TurnSkillInstructionNotification {
459
- turnId: string;
460
- instruction: unknown;
461
- }
462
457
  /** Agent detected a repeating pattern that should be acquired as a skill from hub. */
463
458
  export interface TurnSkillAcquisitionNeededNotification {
464
459
  turnId: string;
@@ -957,7 +952,6 @@ export interface NotificationMethodMap {
957
952
  "turn.artifact": TurnArtifactNotification;
958
953
  "turn.artifact_contract": TurnArtifactContractNotification;
959
954
  "tool.approval.request": ToolApprovalRequestNotification;
960
- "turn.skill_instruction": TurnSkillInstructionNotification;
961
955
  "turn.skill_acquisition_needed": TurnSkillAcquisitionNeededNotification;
962
956
  "turn.ask_user": TurnAskUserNotification;
963
957
  "memory.updated": MemoryUpdatedNotification;
@@ -10,7 +10,7 @@
10
10
  * This module defines the wire types. The existing `agent.turn` RPC continues
11
11
  * to work; these types provide the foundation for `thread/*` methods.
12
12
  */
13
- export type ItemType = "message" | "tool_call" | "tool_result" | "tool_blocked" | "recovery" | "plan_update" | "skill_instruction";
13
+ export type ItemType = "message" | "tool_call" | "tool_result" | "tool_blocked" | "recovery" | "plan_update";
14
14
  export type ItemRole = "user" | "assistant" | "system";
15
15
  /** A single atomic event within a turn. */
16
16
  export interface ThreadItem {
@@ -82,8 +82,6 @@ export declare const REACTIVE_COMPACT_TARGET_PERCENT = 50;
82
82
  export declare const MIN_TOOL_CALLS_FOR_SKILL = 3;
83
83
  /** Min distinct tools to suggest a new skill. */
84
84
  export declare const MIN_DISTINCT_TOOLS_FOR_SKILL = 2;
85
- /** Cooldown between skill creation suggestions (ms). */
86
- export declare const SKILL_CREATION_COOLDOWN_MS: number;
87
85
  /**
88
86
  * Project-level pattern repetition threshold.
89
87
  * The same workflow signature must appear this many times across turns/sessions
@@ -143,12 +141,6 @@ export declare const TASK_PANEL_GRACE_MS = 30000;
143
141
  export declare const MEMORY_PREFETCH_MAX_SESSION_BYTES: number;
144
142
  /** Max results per memory recall query. */
145
143
  export declare const MEMORY_PREFETCH_LIMIT_PER_RECALL = 10;
146
- /** Min hybrid score for recall injection. The old 0.1 default was a no-op filter —
147
- * top-10 got injected wholesale and weak matches crowded the per-turn byte budget. */
148
- export declare const MEMORY_RECALL_MIN_SCORE = 0.35;
149
- /** Adaptive cliff cutoff: stop taking results when the next score drops by more than
150
- * this ratio vs the previous one (2 relevant hits -> inject 2, don't pad to 10). */
151
- export declare const MEMORY_RECALL_CLIFF_RATIO = 0.4;
152
144
  /** LRU dedup set size for surfaced memory entries. */
153
145
  export declare const MEMORY_MAX_SURFACED_ENTRIES = 100;
154
146
  /** Min hours between dream consolidation runs. */
@@ -200,7 +192,6 @@ export interface TunableDefaults {
200
192
  reactiveCompactTargetPercent: number;
201
193
  minToolCallsForSkill: number;
202
194
  minDistinctToolsForSkill: number;
203
- skillCreationCooldownMs: number;
204
195
  maxForkDepth: number;
205
196
  maxSessions: number;
206
197
  taskSummaryTurnThreshold: number;
@@ -34,7 +34,6 @@ export interface MemoryHooksDeps {
34
34
  /** Part B write visibility: forwards turn.memory_written on auto-extract commits. */
35
35
  sendNotification?: (method: string, params: Record<string, unknown>) => void;
36
36
  /** V3.2 usage 仪表:procedure 复用的 session 维度与负反馈计数落盘目录。 */
37
- profileMemoryDir?: () => string;
38
37
  /** V3.2: tag marking a distilled procedure memory (recall filter). cli injects so runtime never imports skills. */
39
38
  procedureTag?: string;
40
39
  /** V3.2: record distilled procedures whose text reached the prompt (positive reuse signal). cli-injected.
@@ -74,6 +73,7 @@ export declare function createMemoryPrefetchState(): MemoryPrefetchState;
74
73
  *
75
74
  * Returns a cleanup function to unregister.
76
75
  */
76
+ export declare const RESIDENT_TAG_GROUPS: string[][];
77
77
  export declare function registerMemoryHooks(hooks: HookRegistry, deps: MemoryHooksDeps,
78
78
  /** Shared statepass the same object across hook re-registrations in a session. */
79
79
  prefetchState?: MemoryPrefetchState): () => void;
@@ -127,8 +127,7 @@ export declare class AcpProtocolAdapter {
127
127
  */
128
128
  attach(child: ChildProcess, onNotification?: (method: string, params: unknown) => void, hostHandler?: AcpHostRequestHandler): void;
129
129
  /**
130
- * qlogicagent extends ACP `session/update` with an `x_*` variant namespace (x_relay, x_session_info,
131
- * x_skill_instruction, …) that the standard SDK schema does not model and therefore rejects. Detect
130
+ * qlogicagent extends ACP `session/update` with an `x_*` variant namespace (x_relay, x_session_info, …) that the standard SDK schema does not model and therefore rejects. Detect
132
131
  * those notifications on the read side and dispatch them to onNotification directly — bypassing the
133
132
  * SDK's strict validation — so the host's usage/progress accumulation runs exactly as it does for the
134
133
  * internal-agent path. Returns true when the message was consumed here (and must be hidden from the
@@ -6,7 +6,10 @@
6
6
  * Layer 2: Lightweight LLM pass (async, non-blocking) — extracts structured facts
7
7
  *
8
8
  * This runs AFTER turn.end, so the user already has their response.
9
- * Layer 2 only fires for ~10-20% of turns (those with detectable signals).
9
+ * Layer 2 fires only for turns with detectable signals. The often-quoted
10
+ * "~10-20% of turns" was calibrated on general chat; this product's corpus is
11
+ * engineering conversation, and the signal table is deliberately narrowed for
12
+ * it (see the [B14] calibration note above SIGNAL_PATTERNS).
10
13
  *
11
14
  * Reference: claude-code src/services/extractMemories/extractMemories.ts
12
15
  */
@@ -33,18 +33,6 @@ export declare function detectRecallCategories(query: string): RecallCategoryHin
33
33
  * @returns Adjusted score
34
34
  */
35
35
  export declare function applyCategoryBoost(baseScore: number, memoryCategory: string | undefined | null, hint: RecallCategoryHint): number;
36
- /**
37
- * Filter and re-rank a list of recalled memories based on category preferences.
38
- *
39
- * @param memories - Raw recalled memories with optional category
40
- * @param hint - Category hint from detectRecallCategories()
41
- * @param minScore - Minimum adjusted score to keep (default: 0)
42
- * @returns Re-ranked memories (highest adjusted score first)
43
- */
44
- export declare function filterByCategory<T extends {
45
- score?: number;
46
- category?: string | null;
47
- }>(memories: T[], hint: RecallCategoryHint, minScore?: number): T[];
48
36
  /**
49
37
  * Infer memory category from filename prefix convention.
50
38
  * E.g. "lesson-docker.md" → "lesson", "fact-ports.md" → "fact"
@@ -4,6 +4,7 @@ export interface MemoryRecallSource {
4
4
  file: string;
5
5
  snippet: string;
6
6
  score: number;
7
+ mtimeMs: number;
7
8
  }>>;
8
9
  readFile(name: string): Promise<{
9
10
  ok: boolean;
@@ -13,6 +13,8 @@ export interface ProjectMemoryResult {
13
13
  export interface ProjectMemoryStore {
14
14
  getRootPath(): string;
15
15
  ensureInitialized(): void | Promise<void>;
16
+ /** Re-read the Host-owned INDEX snapshot before a later turn assembles its prompt. */
17
+ refreshIndex(): Promise<void>;
16
18
  getIndexForPrompt(): string;
17
19
  getIndexRaw(): string;
18
20
  getIndexUsage(): {
@@ -36,6 +38,7 @@ export interface ProjectMemoryStore {
36
38
  file: string;
37
39
  snippet: string;
38
40
  score: number;
41
+ mtimeMs: number;
39
42
  }>>;
40
43
  }
41
44
  export interface ProjectMemoryStoreFactory {
@@ -6,8 +6,6 @@ export declare const INDEX_MAX_LINES = 200;
6
6
  export declare const TOPIC_FILE_MAX_CHARS = 8192;
7
7
  /** Root directory: <project>/.qlogicagent/memory/ */
8
8
  export declare function getMemdirPath(projectRoot: string): string;
9
- /** Full path to INDEX.md */
10
- export declare function getIndexPath(projectRoot: string): string;
11
9
  /** Global-layer size budget: a cheat-sheet, not a memory store. */
12
10
  export declare const USER_INDEX_MAX_CHARS = 2048;
13
11
  export declare const USER_INDEX_MAX_LINES = 40;
@@ -97,6 +95,7 @@ export declare class Memdir {
97
95
  file: string;
98
96
  snippet: string;
99
97
  score: number;
98
+ mtimeMs: number;
100
99
  }>>;
101
100
  private writeIndex;
102
101
  private writeIndexUnlocked;