dsh-mnemon 0.5.26 → 0.5.28

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.
@@ -12,10 +12,10 @@ var dependencies = {
12
12
  "dsh-mnemon-provider-mem0": "0.5.5",
13
13
  "dsh-mnemon-provider-mnemon-native": "0.5.9",
14
14
  "dsh-mnemon-provider-openviking": "0.5.7",
15
- "dsh-mnemon-provider-retaindb": "0.5.5",
15
+ "dsh-mnemon-provider-retaindb": "0.5.6",
16
16
  "dsh-mnemon-provider-supermemory": "0.5.5",
17
17
  "dsh-mnemon-source-documents": "0.5.10",
18
- "dsh-mnemon-source-memory-spaces": "0.5.17",
18
+ "dsh-mnemon-source-memory-spaces": "0.5.18",
19
19
  "dsh-mnemon-source-runtime": "0.5.14",
20
20
  "dsh-mnemon-strategy-auto-capture": "0.5.5",
21
21
  "dsh-mnemon-strategy-default-three-tier": "0.5.8",
package/lib/starter.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as prepareStarterResolution } from "./starter-resolution-BjfPGF8R.js";
1
+ import { t as prepareStarterResolution } from "./starter-resolution-CLmHa3uV.js";
2
2
  //#region src/starter.ts
3
3
  const name = "dsh-mnemon-starter";
4
4
  const provide = ["mnemonStarterReady"];
@@ -621,129 +621,182 @@ export declare const zh: {
621
621
  'config.syncSimpleDescription': string;
622
622
  'config.syncLoading': string;
623
623
  'config.syncUnavailable': string;
624
- 'config.syncNotConfigured': string;
624
+ 'config.syncUnavailableReason': string;
625
625
  'config.syncGitMissing': string;
626
- 'config.syncRemoteBranchMissing': string;
627
- 'config.syncRemoteUnreachable': string;
628
- 'config.syncRemoteCommit': string;
629
- 'config.syncTokenSaved': string;
630
- 'config.syncTokenNone': string;
631
- 'config.syncSave': string;
632
- 'config.syncSaved': string;
633
- 'config.syncFailed': string;
634
- 'config.syncPush': string;
635
- 'config.syncPushing': string;
636
- 'config.syncPushed': string;
637
- 'config.syncPushedLocal': string;
638
- 'config.syncPushIdle': string;
639
- 'config.syncPreview': string;
640
- 'config.syncPreviewing': string;
641
- 'config.syncPreviewReady': string;
642
- 'config.syncPreviewComponents': string;
643
- 'config.syncPreviewFiles': string;
644
- 'config.syncPull': string;
645
- 'config.syncPulling': string;
646
- 'config.syncPulled': string;
647
- 'config.syncBackups': string;
648
- 'config.syncBackupsLoading': string;
649
- 'config.syncBackupsTitle': string;
650
- 'config.syncBackupsHint': string;
651
- 'config.syncBackupsEmpty': string;
652
- 'config.syncBackupsMore': string;
653
- 'config.syncBackupMeta': string;
654
- 'config.syncBackupPushedAt': string;
655
- 'config.syncBackupComponent': string;
656
- 'config.syncBackupNoComponents': string;
657
- 'config.syncBackupUnknownMachine': string;
658
- 'config.syncDiffTitle': string;
659
- 'config.syncDiffSides': string;
660
- 'config.syncDiffTruncated': string;
661
- 'config.syncDiffTombstones': string;
662
- 'config.syncDiffLocalOnly': string;
663
- 'config.syncDiffRemoteOnly': string;
664
- 'config.syncDiffNone': string;
665
- 'config.syncDiffFrom': string;
666
- 'config.syncDiffClear': string;
667
- 'config.syncDiffNothing': string;
668
- 'config.syncDiffConflicts': string;
669
- 'config.syncDiffHere': string;
670
- 'config.syncDiffThere': string;
671
- 'config.syncDiffAdditions': string;
672
- 'config.syncDiffLocalOnlyNote': string;
673
- 'config.syncDiffHeldBack': string;
674
- 'config.syncDiffAdd': string;
675
- 'config.syncDiffAdding': string;
676
- 'config.syncDiffRevive': string;
677
- 'config.syncDiffReviving': string;
678
- 'config.syncDiffAdded': string;
679
- 'config.syncDiffAddHeld': string;
680
- 'config.syncPlanWhere': string;
681
- 'config.syncPlanGo': string;
626
+ 'config.syncRecheck': string;
627
+ 'config.syncFixCredentials': string;
628
+ 'config.syncRepository': string;
629
+ 'config.syncRepositoryHint': string;
630
+ 'config.syncChange': string;
631
+ 'config.syncDisconnect': string;
632
+ 'config.syncDisconnectTitle': string;
633
+ 'config.syncDisconnectBody': string;
634
+ 'config.syncDisconnected': string;
635
+ 'config.syncStateChecking': string;
636
+ 'config.syncStateConnected': string;
637
+ 'config.syncStateNewBranch': string;
638
+ 'config.syncNoCredential': string;
639
+ 'config.syncNoCredentialToken': string;
640
+ 'config.syncIssueAuthHttps': string;
641
+ 'config.syncIssueAuthToken': string;
642
+ 'config.syncIssueAuthSsh': string;
643
+ 'config.syncIssueAuth': string;
644
+ 'config.syncIssueNotFound': string;
645
+ 'config.syncIssueNotFoundGitHub': string;
646
+ 'config.syncIssueNetwork': string;
647
+ 'config.syncIssueTimeout': string;
648
+ 'config.syncIssueUnknown': string;
649
+ 'config.syncViaGitHub': string;
650
+ 'config.syncViaGitHubAnonymous': string;
651
+ 'config.syncViaToken': string;
652
+ 'config.syncViaEnvironment': string;
653
+ 'config.syncViaSsh': string;
654
+ 'config.syncConnectWith': string;
655
+ 'config.syncModeGitHub': string;
656
+ 'config.syncModeAddress': string;
682
657
  'config.syncRepoUrl': string;
683
- 'config.syncRepoUrlHint': string;
684
- 'config.syncBranch': string;
685
- 'config.syncBranchHint': string;
686
- 'config.syncSubdir': string;
687
- 'config.syncSubdirHint': string;
658
+ 'config.syncRepoUrlPlaceholder': string;
659
+ 'config.syncRepoUrlInvalid': string;
660
+ 'config.syncRepoUrlCredentials': string;
688
661
  'config.syncToken': string;
662
+ 'config.syncTokenOptional': string;
663
+ 'config.syncTokenSaved': string;
664
+ 'config.syncTokenEnvironment': string;
689
665
  'config.syncTokenHint': string;
690
- 'config.syncTokenKeep': string;
691
- 'config.syncTokenClear': string;
692
- 'config.syncTokenClearHint': string;
693
- 'config.syncAuthorName': string;
694
- 'config.syncAuthorEmail': string;
695
- 'config.syncAuthorOptional': string;
696
- 'config.syncAuthorHint': string;
697
- 'config.syncAutoBackup': string;
698
- 'config.syncAutoBackupHint': string;
699
- 'config.syncAutoBackupOff': string;
700
- 'config.syncAutoBackupHours': string;
701
- 'config.syncAutoBackupDays': string;
702
- 'config.syncAutoBackupSaved': string;
703
- 'config.syncAutoBackupNext': string;
704
- 'config.syncAutoBackupNever': string;
705
- 'config.syncAutoBackupLast': string;
706
- 'config.syncAutoBackupFailed': string;
707
- 'config.syncCompacted': string;
708
- 'config.syncGitHub': string;
666
+ 'config.syncTokenRemove': string;
667
+ 'config.syncTokenRemoved': string;
668
+ 'config.syncConnect': string;
669
+ 'config.syncConnecting': string;
670
+ 'config.syncSave': string;
671
+ 'config.syncSaving': string;
709
672
  'config.syncGitHubHint': string;
710
- 'config.syncGitHubUnavailable': string;
711
673
  'config.syncGitHubReadOnly': string;
712
674
  'config.syncGitHubSignIn': string;
713
675
  'config.syncGitHubStarting': string;
714
676
  'config.syncGitHubCode': string;
715
- 'config.syncGitHubCopy': string;
677
+ 'config.syncGitHubCopyOpen': string;
716
678
  'config.syncGitHubCopied': string;
717
- 'config.syncGitHubOpen': string;
679
+ 'config.syncGitHubOpenBlocked': string;
718
680
  'config.syncGitHubWaiting': string;
719
681
  'config.syncGitHubSignedIn': string;
720
682
  'config.syncGitHubSignOut': string;
721
683
  'config.syncGitHubFailed': string;
722
684
  'config.syncGitHubExpired': string;
723
685
  'config.syncGitHubDenied': string;
724
- 'config.syncTokenGitHub': string;
725
- 'config.syncTokenEnvironment': string;
726
- 'config.syncTokenOptional': string;
727
- 'config.syncRepositories': string;
728
- 'config.syncRepositoriesHint': string;
729
- 'config.syncRepositoriesSignIn': string;
686
+ 'config.syncGitHubExpiredGrant': string;
687
+ 'config.syncGitHubSignInAgain': string;
688
+ 'config.syncRepositoryLabel': string;
689
+ 'config.syncRepositorySearch': string;
730
690
  'config.syncRepositoriesLoading': string;
731
- 'config.syncRepositoriesLoad': string;
691
+ 'config.syncRepositoriesFailed': string;
692
+ 'config.syncRepositoriesRetry': string;
693
+ 'config.syncRepositoriesNone': string;
732
694
  'config.syncRepositoriesEmpty': string;
733
- 'config.syncRepositoriesChoose': string;
734
- 'config.syncRepositoriesPrivate': string;
735
- 'config.syncRepositoriesNoPush': string;
736
- 'config.syncRepositoryName': string;
695
+ 'config.syncRepositoriesMore': string;
737
696
  'config.syncRepositoryPrivate': string;
697
+ 'config.syncRepositoryPublic': string;
698
+ 'config.syncRepositoryNoPush': string;
699
+ 'config.syncRepositoryCurrent': string;
738
700
  'config.syncRepositoryCreate': string;
739
701
  'config.syncRepositoryCreating': string;
740
- 'config.syncRepositoryCreated': string;
702
+ 'config.syncRepositoryNameInvalid': string;
703
+ 'config.syncPublicTitle': string;
704
+ 'config.syncPublicBody': string;
705
+ 'config.syncPublicConfirm': string;
706
+ 'config.syncRowTitle': string;
707
+ 'config.syncNever': string;
708
+ 'config.syncLast': string;
709
+ 'config.syncLastMerge': string;
710
+ 'config.syncCheck': string;
711
+ 'config.syncNow': string;
712
+ 'config.syncNowRunning': string;
713
+ 'config.syncDone': string;
714
+ 'config.syncDoneMerged': string;
715
+ 'config.syncUpToDate': string;
716
+ 'config.syncUpToDateMerged': string;
717
+ 'config.syncPushFailed': string;
718
+ 'config.syncFailed': string;
719
+ 'config.syncReasonBusy': string;
720
+ 'config.syncReasonNoRepository': string;
721
+ 'config.syncReasonGitMissing': string;
722
+ 'config.syncReasonRemoteEmpty': string;
723
+ 'config.syncReasonRejected': string;
724
+ 'config.syncAuto': string;
725
+ 'config.syncAutoOff': string;
726
+ 'config.syncAutoHour': string;
727
+ 'config.syncAutoHours': string;
728
+ 'config.syncAutoDay': string;
729
+ 'config.syncAutoDays': string;
730
+ 'config.syncAutoHintOff': string;
731
+ 'config.syncAutoHintOn': string;
732
+ 'config.syncAutoNext': string;
733
+ 'config.syncAutoLast': string;
734
+ 'config.syncAutoFailed': string;
735
+ 'config.syncHistory': string;
736
+ 'config.syncHistoryHint': string;
737
+ 'config.syncHistoryView': string;
738
+ 'config.syncHistoryLoading': string;
739
+ 'config.syncHistoryEmpty': string;
740
+ 'config.syncHistoryMore': string;
741
+ 'config.syncHistoryCapped': string;
742
+ 'config.syncHistoryFrom': string;
743
+ 'config.syncHistoryUnknownMachine': string;
744
+ 'config.syncComponentRuntime': string;
745
+ 'config.syncComponentDocuments': string;
746
+ 'config.syncComponentSpaces': string;
747
+ 'config.syncCountRuntime': string;
748
+ 'config.syncCountDocuments': string;
749
+ 'config.syncCountSpaces': string;
750
+ 'config.syncCompareTitle': string;
751
+ 'config.syncCompareLoading': string;
752
+ 'config.syncCompareRemote': string;
753
+ 'config.syncCompareSame': string;
754
+ 'config.syncCompareDiffers': string;
755
+ 'config.syncCompareRuntime': string;
756
+ 'config.syncCompareConflicts': string;
757
+ 'config.syncCompareAllSame': string;
758
+ 'config.syncCompareTruncated': string;
759
+ 'config.syncCompareRemovals': string;
760
+ 'config.syncCompareConflictNote': string;
761
+ 'config.syncCompareShowConflicts': string;
762
+ 'config.syncCompareGoReview': string;
763
+ 'config.syncCompareHeldBack': string;
764
+ 'config.syncCompareRevive': string;
765
+ 'config.syncCompareReviving': string;
766
+ 'config.syncCompareRevived': string;
767
+ 'config.syncDiffHere': string;
768
+ 'config.syncDiffThere': string;
769
+ 'config.syncMergeOnly': string;
770
+ 'config.syncMerging': string;
771
+ 'config.syncMerged': string;
772
+ 'config.syncMergedCount': string;
773
+ 'config.syncAdvanced': string;
774
+ 'config.syncBranch': string;
775
+ 'config.syncSubdir': string;
776
+ 'config.syncDefaultValue': string;
777
+ 'config.syncBranchInvalid': string;
778
+ 'config.syncSubdirInvalid': string;
779
+ 'config.syncAuthor': string;
780
+ 'config.syncAuthorDefault': string;
781
+ 'config.syncAuthorMachine': string;
782
+ 'config.syncAuthorCustom': string;
783
+ 'config.syncAuthorDefaultNote': string;
784
+ 'config.syncAuthorMachineNote': string;
785
+ 'config.syncAuthorName': string;
786
+ 'config.syncAuthorEmail': string;
787
+ 'config.syncAuthorEmailInvalid': string;
788
+ 'config.syncAdvancedNote': string;
789
+ 'config.syncMachineName': string;
790
+ 'config.syncMachineHostname': string;
791
+ 'config.syncMachineCustom': string;
792
+ 'config.syncMachineNameLabel': string;
793
+ 'config.syncMachineHostnameNote': string;
794
+ 'config.syncMachineCustomNote': string;
795
+ 'config.syncMachineNameInvalid': string;
796
+ 'config.syncMachineRenameNote': string;
797
+ 'config.syncAdvancedSaved': string;
741
798
  'config.reconcileTitle': string;
742
799
  'config.reconcileDescription': string;
743
- 'review.rulesTitle': string;
744
- 'review.rulesPull': string;
745
- 'review.rulesDiff': string;
746
- 'review.rulesPlan': string;
747
800
  'review.reconcile': string;
748
801
  'review.reconciling': string;
749
802
  'review.refresh': string;
@@ -120,10 +120,14 @@ export type RpcError = {
120
120
  details: {
121
121
  ns: string;
122
122
  };
123
- } | {
123
+ }
124
+ /** `reason` names a failure the page can state in its own language, such as a sync remote refusing credentials. */
125
+ | {
124
126
  code: 'internal';
125
127
  message: string;
126
- details: Record<string, never>;
128
+ details: Record<string, never> | {
129
+ reason: string;
130
+ };
127
131
  };
128
132
  export type RpcResult<T = JsonValue> = {
129
133
  ok: true;
@@ -637,6 +641,13 @@ export interface MnemonMachineIdentity {
637
641
  label: string;
638
642
  createdAt: string;
639
643
  }
644
+ /**
645
+ * Where an installation's name comes from: the host name of the computer it runs on,
646
+ * which the name then follows, or a name a person typed, which stays as given.
647
+ */
648
+ export type MnemonMachineLabelSource = 'hostname' | 'custom';
649
+ /** The longest name an installation carries; a host name past it is shortened. */
650
+ export declare const MNEMON_MACHINE_LABEL_MAX = 120;
640
651
  /** Which machine wrote one runtime entry, so a merge can tell two installations apart. */
641
652
  export interface MnemonEntryOrigin {
642
653
  machine: string;
@@ -838,11 +849,39 @@ export interface MnemonSyncGitStatus {
838
849
  /** Why Git cannot serve the channel, when it cannot. */
839
850
  issue?: string;
840
851
  }
852
+ /**
853
+ * Why a remote could not be read, as a code the settings page names in its own
854
+ * language: credentials missing or refused, an address that leads nowhere, a
855
+ * network that does not reach the host, or a host that did not answer in time.
856
+ */
857
+ export type MnemonSyncRemoteIssue = 'auth' | 'not-found' | 'network' | 'timeout' | 'unknown';
858
+ /**
859
+ * Why a sync operation did not run or did not finish. The message beside it is
860
+ * Git's or the Host's own words; the reason is what a page can translate and act
861
+ * on, so an operator reads "sign in or add a token" rather than a Git trace.
862
+ */
863
+ export type MnemonSyncFailureReason = 'busy' | 'no-repository' | 'git-missing' | 'remote-empty' | 'remote-auth' | 'remote-not-found' | 'remote-network' | 'remote-timeout' | 'push-rejected' | 'github-unauthorized';
841
864
  export interface MnemonSyncRemoteStatus {
842
865
  reachable: boolean;
843
866
  branchExists: boolean;
844
867
  commit?: string;
845
868
  error?: string;
869
+ /** What kind of failure `error` is, when the remote could not be read. */
870
+ issue?: MnemonSyncRemoteIssue;
871
+ }
872
+ /**
873
+ * The last sync this installation finished, kept on disk so a restart still
874
+ * says when memory last travelled. `sync` merged the branch and published the
875
+ * result; `merge` only merged the branch here.
876
+ */
877
+ export interface MnemonSyncLastRun {
878
+ at: string;
879
+ kind: 'sync' | 'merge';
880
+ commit: string;
881
+ /** Whether the commit reached the remote; a merge never publishes. */
882
+ pushed: boolean;
883
+ /** Remote runtime entries the merge wrote here. */
884
+ added?: number;
846
885
  }
847
886
  export interface MnemonSyncCommit {
848
887
  id: string;
@@ -865,7 +904,17 @@ export interface MnemonSyncStatus {
865
904
  * runs, and a disabled block writes nothing.
866
905
  */
867
906
  machine?: MnemonMachineIdentity;
907
+ /**
908
+ * How `machine.label` is chosen, with the host name a host-name label follows.
909
+ * Present with `machine`; it describes this computer and is never published.
910
+ */
911
+ machineLabel?: {
912
+ source: MnemonMachineLabelSource;
913
+ hostname: string;
914
+ };
868
915
  lastCommit?: MnemonSyncCommit;
916
+ /** The last sync or merge this installation finished. */
917
+ lastRun?: MnemonSyncLastRun;
869
918
  /** The background cadence this Host keeps; absent when no timer runs for this runtime. */
870
919
  autoBackup?: MnemonSyncAutoBackup;
871
920
  }
@@ -883,6 +932,8 @@ export interface MnemonSyncAutoBackup {
883
932
  nextAt?: string;
884
933
  /** Why the last automatic run failed, when it did. */
885
934
  lastError?: string;
935
+ /** The kind of failure `lastError` is, when the Host could tell. */
936
+ lastFailure?: MnemonSyncFailureReason;
886
937
  /** The commit the last automatic run recorded. */
887
938
  lastCommit?: string;
888
939
  /** Whether the last automatic run reached the branch. */
@@ -936,9 +987,13 @@ export interface MnemonSyncPushResult {
936
987
  summary: MnemonPackComponentSummary[];
937
988
  /** Entries the merge dropped because a tombstone removed them. */
938
989
  tombstones: number;
990
+ /** What the merge wrote into this machine's runtime memory. */
991
+ runtime?: MnemonRuntimeMergeReport;
939
992
  };
940
993
  /** Why the branch was not published, when it was not. */
941
994
  reason?: string;
995
+ /** The kind of failure `reason` describes, when the Host could tell. */
996
+ failure?: MnemonSyncFailureReason;
942
997
  /** What folding the mirror's loose objects into a pack recovered, when it ran. */
943
998
  compaction?: MnemonSyncCompaction;
944
999
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mnemon",
3
- "version": "0.5.26",
3
+ "version": "0.5.28",
4
4
  "description": "Composable, view-based memory for DeepSeek Harness. Pluggable sources and strategies, with layered memory out of the box.",
5
5
  "keywords": [
6
6
  "deepseek-harness",
@@ -160,10 +160,10 @@
160
160
  "dsh-mnemon-provider-mem0": "0.5.5",
161
161
  "dsh-mnemon-provider-mnemon-native": "0.5.9",
162
162
  "dsh-mnemon-provider-openviking": "0.5.7",
163
- "dsh-mnemon-provider-retaindb": "0.5.5",
163
+ "dsh-mnemon-provider-retaindb": "0.5.6",
164
164
  "dsh-mnemon-provider-supermemory": "0.5.5",
165
165
  "dsh-mnemon-source-documents": "0.5.10",
166
- "dsh-mnemon-source-memory-spaces": "0.5.17",
166
+ "dsh-mnemon-source-memory-spaces": "0.5.18",
167
167
  "dsh-mnemon-source-runtime": "0.5.14",
168
168
  "dsh-mnemon-strategy-auto-capture": "0.5.5",
169
169
  "dsh-mnemon-strategy-default-three-tier": "0.5.8",