@tnotesjs/core 0.6.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/commands/BaseCommand.ts +58 -0
  2. package/commands/build/BuildCommand.ts +25 -0
  3. package/commands/build/PreviewCommand.ts +29 -0
  4. package/commands/build/index.ts +8 -0
  5. package/commands/dev/DevCommand.ts +75 -0
  6. package/commands/dev/index.ts +7 -0
  7. package/commands/git/PullCommand.ts +25 -0
  8. package/commands/git/PushCommand.ts +64 -0
  9. package/commands/git/index.ts +8 -0
  10. package/commands/index.ts +11 -0
  11. package/commands/init-sub-repo/InitSubRepoCommand.ts +206 -0
  12. package/commands/init-sub-repo/index.ts +1 -0
  13. package/commands/misc/HelpCommand.ts +104 -0
  14. package/commands/misc/index.ts +7 -0
  15. package/commands/models.ts +87 -0
  16. package/commands/note/CreateNoteCommand.ts +160 -0
  17. package/commands/note/RenameNoteCommand.ts +147 -0
  18. package/commands/note/UpdateNoteConfigCommand.ts +78 -0
  19. package/commands/note/index.ts +9 -0
  20. package/commands/registry.ts +47 -0
  21. package/commands/update/UpdateCommand.ts +219 -0
  22. package/commands/update/index.ts +7 -0
  23. package/commands/update-completed-count/UpdateCompletedCountCommand.ts +208 -0
  24. package/commands/update-completed-count/index.ts +5 -0
  25. package/config/templates.ts +0 -5
  26. package/dist/{chunk-5F5RJ2HV.cjs → chunk-7FEANCT6.cjs} +16 -7
  27. package/dist/chunk-AGVER5MX.cjs +1746 -0
  28. package/dist/{chunk-TJ4527KA.cjs → chunk-BL22KD4V.cjs} +324 -950
  29. package/dist/{chunk-56PKXCOX.js → chunk-GWG75A5M.js} +13 -4
  30. package/dist/{chunk-DUTS75WQ.js → chunk-XNO3PCEH.js} +374 -1000
  31. package/dist/chunk-ZEQS64PE.js +1746 -0
  32. package/dist/cli/index.cjs +76 -155
  33. package/dist/cli/index.js +10 -89
  34. package/dist/markdown/index.cjs +8 -12
  35. package/dist/markdown/index.d.cts +1 -1
  36. package/dist/markdown/index.d.ts +1 -1
  37. package/dist/markdown/index.js +7 -11
  38. package/dist/{types-CwBWwNVv.d.ts → types-C_d0fFeD.d.ts} +8 -1
  39. package/dist/{types-CpsEy8lA.d.cts → types-MRBGgJTX.d.cts} +8 -1
  40. package/dist/vitepress/config/index.cjs +402 -178
  41. package/dist/vitepress/config/index.js +392 -168
  42. package/dist/workspace/index.cjs +4 -1202
  43. package/dist/workspace/index.d.cts +2 -2
  44. package/dist/workspace/index.d.ts +2 -2
  45. package/dist/workspace/index.js +4 -1202
  46. package/markdown/components.ts +86 -0
  47. package/markdown/index.ts +17 -0
  48. package/markdown/noteFormatter.test.ts +44 -0
  49. package/markdown/noteFormatter.ts +237 -0
  50. package/package.json +7 -3
  51. package/services/file-watcher/folderChangeHandler.ts +19 -15
  52. package/services/file-watcher/globalUpdateCoordinator.ts +21 -27
  53. package/services/file-watcher/service.ts +1 -6
  54. package/services/index.ts +0 -1
  55. package/services/note/service.ts +4 -6
  56. package/services/readme/service.ts +11 -18
  57. package/services/reconcileToc.ts +20 -0
  58. package/utils/index.ts +0 -9
  59. package/{services/toc → utils}/moveTocInside.test.ts +1 -1
  60. package/vitepress/components/BilibiliOutsidePlayer/BilibiliOutsidePlayer.vue +9 -18
  61. package/vitepress/components/EnWordList/EnWordList.vue +16 -662
  62. package/vitepress/components/Footprints/Footprints.vue +15 -537
  63. package/vitepress/components/Mermaid/Mermaid.vue +13 -588
  64. package/vitepress/components/MindmapPreview/MindmapPreview.vue +12 -434
  65. package/vitepress/components/MindmapPreview/markdown.ts +1 -1
  66. package/vitepress/components/NotesTable/NotesTable.vue +11 -130
  67. package/vitepress/components/constants.ts +2 -2
  68. package/vitepress/components/sidebar.data.ts +8 -5
  69. package/vitepress/configs/markdown.config.ts +170 -26
  70. package/vitepress/plugins/sidebarStructurePlugin.ts +242 -145
  71. package/vitepress/theme/index.ts +9 -13
  72. package/vitepress/theme/styles/base.scss +15 -0
  73. package/workspace/atomic.ts +113 -0
  74. package/workspace/errors.ts +27 -0
  75. package/workspace/index.ts +40 -0
  76. package/workspace/mutationQueue.ts +28 -0
  77. package/workspace/paths.ts +64 -0
  78. package/workspace/reconcile.test.ts +300 -0
  79. package/workspace/reconcile.ts +95 -0
  80. package/workspace/scanner.ts +292 -0
  81. package/workspace/types.ts +224 -0
  82. package/workspace/workspace.test.ts +333 -0
  83. package/workspace/workspace.ts +1020 -0
  84. package/dist/chunk-3R7QSABB.cjs +0 -502
  85. package/dist/chunk-CZXRQPFJ.js +0 -11
  86. package/dist/chunk-HXED7KVT.cjs +0 -11
  87. package/dist/chunk-U6IBLREL.js +0 -502
  88. package/services/toc/index.ts +0 -5
  89. package/services/toc/service.ts +0 -759
  90. package/utils/migrateReadmeToToc.test.ts +0 -111
  91. package/utils/migrateReadmeToToc.ts +0 -135
  92. package/vitepress/components/EnWordList/RightClickMenu.vue +0 -93
@@ -1,5 +1,5 @@
1
- import { C as CreateWorkspaceOptions, T as TNotesWorkspace } from '../types-CpsEy8lA.cjs';
2
- export { A as AttachmentResult, a as ChangedFile, b as CreateNoteInput, c as CreateTocGroupInput, D as DeletePreviewItem, d as DeleteTocEntryInput, e as DeleteTocEntryPreview, K as KnowledgeBaseSnapshot, M as MoveTocEntryInput, f as MutationResult, N as NoteDocument, g as NotePlacement, R as RenameNoteInput, h as RenameTocGroupInput, S as SaveNoteInput, i as TocEntryRef, U as UpdateNoteConfigInput, W as WorkspaceDiagnostic, j as WorkspaceHealth, k as WorkspaceKnowledgeBaseConfig, l as WorkspaceLogger, m as WorkspaceNoteConfig, n as WorkspaceNoteSummary, o as WriteAttachmentInput } from '../types-CpsEy8lA.cjs';
1
+ import { C as CreateWorkspaceOptions, T as TNotesWorkspace } from '../types-MRBGgJTX.cjs';
2
+ export { A as AttachmentResult, a as ChangedFile, b as CreateNoteInput, c as CreateTocGroupInput, D as DeletePreviewItem, d as DeleteTocEntryInput, e as DeleteTocEntryPreview, K as KnowledgeBaseSnapshot, M as MoveTocEntryInput, f as MutationResult, N as NoteDocument, g as NotePlacement, R as RenameNoteInput, h as RenameTocGroupInput, S as SaveNoteInput, i as TocEntryRef, U as UpdateNoteConfigInput, W as WorkspaceDiagnostic, j as WorkspaceHealth, k as WorkspaceKnowledgeBaseConfig, l as WorkspaceLogger, m as WorkspaceNoteConfig, n as WorkspaceNoteSummary, o as WriteAttachmentInput } from '../types-MRBGgJTX.cjs';
3
3
  import '../note-oGm44Rw8.cjs';
4
4
 
5
5
  type WorkspaceErrorCode = 'WORKSPACE_DISPOSED' | 'WORKSPACE_INVALID' | 'WORKSPACE_READ_ONLY' | 'NOTE_NOT_FOUND' | 'NOTE_INDEX_EXHAUSTED' | 'REVISION_CONFLICT' | 'INVALID_TITLE' | 'INVALID_TOC_ENTRY' | 'INVALID_PATH' | 'FILESYSTEM_ERROR';
@@ -1,5 +1,5 @@
1
- import { C as CreateWorkspaceOptions, T as TNotesWorkspace } from '../types-CwBWwNVv.js';
2
- export { A as AttachmentResult, a as ChangedFile, b as CreateNoteInput, c as CreateTocGroupInput, D as DeletePreviewItem, d as DeleteTocEntryInput, e as DeleteTocEntryPreview, K as KnowledgeBaseSnapshot, M as MoveTocEntryInput, f as MutationResult, N as NoteDocument, g as NotePlacement, R as RenameNoteInput, h as RenameTocGroupInput, S as SaveNoteInput, i as TocEntryRef, U as UpdateNoteConfigInput, W as WorkspaceDiagnostic, j as WorkspaceHealth, k as WorkspaceKnowledgeBaseConfig, l as WorkspaceLogger, m as WorkspaceNoteConfig, n as WorkspaceNoteSummary, o as WriteAttachmentInput } from '../types-CwBWwNVv.js';
1
+ import { C as CreateWorkspaceOptions, T as TNotesWorkspace } from '../types-C_d0fFeD.js';
2
+ export { A as AttachmentResult, a as ChangedFile, b as CreateNoteInput, c as CreateTocGroupInput, D as DeletePreviewItem, d as DeleteTocEntryInput, e as DeleteTocEntryPreview, K as KnowledgeBaseSnapshot, M as MoveTocEntryInput, f as MutationResult, N as NoteDocument, g as NotePlacement, R as RenameNoteInput, h as RenameTocGroupInput, S as SaveNoteInput, i as TocEntryRef, U as UpdateNoteConfigInput, W as WorkspaceDiagnostic, j as WorkspaceHealth, k as WorkspaceKnowledgeBaseConfig, l as WorkspaceLogger, m as WorkspaceNoteConfig, n as WorkspaceNoteSummary, o as WriteAttachmentInput } from '../types-C_d0fFeD.js';
3
3
  import '../note-oGm44Rw8.js';
4
4
 
5
5
  type WorkspaceErrorCode = 'WORKSPACE_DISPOSED' | 'WORKSPACE_INVALID' | 'WORKSPACE_READ_ONLY' | 'NOTE_NOT_FOUND' | 'NOTE_INDEX_EXHAUSTED' | 'REVISION_CONFLICT' | 'INVALID_TITLE' | 'INVALID_TOC_ENTRY' | 'INVALID_PATH' | 'FILESYSTEM_ERROR';