imdone-core 2.0.0 → 2.0.1

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 (160) hide show
  1. package/.dependency-cruiser.cjs +412 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
  3. package/.github/workflows/ci.yml +24 -0
  4. package/.imdoneignore +13 -0
  5. package/.mocharc.json +10 -0
  6. package/.prettierrc +6 -0
  7. package/CHANGELOG.md +160 -0
  8. package/_index.md +7 -0
  9. package/_navbar.md +1 -0
  10. package/build.js +57 -0
  11. package/esm-migration.md +446 -0
  12. package/index.html +184 -0
  13. package/lib/FileProjectContext.js +13 -0
  14. package/lib/ProjectContext.js +43 -0
  15. package/lib/adapters/date-time.js +15 -0
  16. package/lib/adapters/environment.js +3 -0
  17. package/lib/adapters/file-gateway.js +154 -0
  18. package/lib/adapters/git-download.js +55 -0
  19. package/lib/adapters/index.js +9 -0
  20. package/lib/adapters/logger.js +136 -0
  21. package/lib/adapters/markdown.js +180 -0
  22. package/lib/adapters/parsers/DateLanguageParser.js +12 -0
  23. package/lib/adapters/parsers/content-transformer.js +116 -0
  24. package/lib/adapters/parsers/file/LocalFileParserFactory.js +36 -0
  25. package/lib/adapters/parsers/file/ReadStreamCodeParser.js +126 -0
  26. package/lib/adapters/parsers/file/ReadStreamMarkdownParser.js +17 -0
  27. package/lib/adapters/parsers/file/ReadStreamTaskParser.js +106 -0
  28. package/lib/adapters/parsers/file/index.js +4 -0
  29. package/lib/adapters/parsers/function-parser.js +25 -0
  30. package/lib/adapters/parsers/index.js +5 -0
  31. package/lib/adapters/parsers/task/CardContentParser.js +367 -0
  32. package/lib/adapters/parsers/task/CheckStyleTaskParser.js +28 -0
  33. package/lib/adapters/parsers/task/CodeStyleTaskParser.js +24 -0
  34. package/lib/adapters/parsers/task/HashStyleTaskParser.js +27 -0
  35. package/lib/adapters/parsers/task/MarkdownStyleTaskParser.js +24 -0
  36. package/lib/adapters/parsers/task/TaskParser.js +38 -0
  37. package/lib/adapters/parsers/task/index.js +6 -0
  38. package/lib/adapters/storage/config.js +44 -0
  39. package/lib/adapters/storage/index.js +2 -0
  40. package/lib/adapters/storage/tags.js +29 -0
  41. package/lib/adapters/yaml.js +9 -0
  42. package/lib/card.js +299 -0
  43. package/lib/checksum.js +22 -0
  44. package/lib/config.js +249 -0
  45. package/lib/constants.js +68 -0
  46. package/lib/context/ApplicationContext.js +35 -0
  47. package/lib/context/index.js +1 -0
  48. package/lib/default-settings.js +37 -0
  49. package/lib/domain/entities/View.js +23 -0
  50. package/lib/domain/entities/index.js +1 -0
  51. package/lib/domain/index.js +2 -0
  52. package/lib/domain/usecases/GetViewsUsecase.js +44 -0
  53. package/lib/domain/usecases/SaveViewUsecase.js +51 -0
  54. package/lib/domain/usecases/index.js +2 -0
  55. package/lib/file.js +1391 -0
  56. package/lib/get-tasks-to-modify.js +117 -0
  57. package/lib/languages.js +113 -0
  58. package/lib/list.js +56 -0
  59. package/lib/migrate-config.js +165 -0
  60. package/lib/mixins/index.js +2 -0
  61. package/lib/mixins/repo-fs-store.js +359 -0
  62. package/lib/mixins/repo-watched-fs-store.js +206 -0
  63. package/lib/plugins/archive-plugin.js +72 -0
  64. package/lib/plugins/default-board-actions-plugin.js +56 -0
  65. package/lib/plugins/default-board-properties-plugin.js +101 -0
  66. package/lib/plugins/default-plugins.js +7 -0
  67. package/lib/plugins/epic-plugin.js +177 -0
  68. package/lib/plugins/extension-plugin.js +94 -0
  69. package/lib/plugins/index.js +9 -0
  70. package/lib/plugins/persist-tags-plugin.js +14 -0
  71. package/lib/plugins/plugin-manager.js +458 -0
  72. package/lib/plugins/plugin-registry.js +57 -0
  73. package/lib/project-factory.js +42 -0
  74. package/lib/project.js +864 -0
  75. package/lib/repository.js +1514 -0
  76. package/lib/task.js +780 -0
  77. package/lib/tools.js +176 -0
  78. package/lib/usecases/actions.js +32 -0
  79. package/lib/usecases/get-imdone-url.js +6 -0
  80. package/lib/usecases/get-project-tags.js +7 -0
  81. package/lib/usecases/get-tasks-in-file.js +26 -0
  82. package/lib/usecases/index.js +4 -0
  83. package/package.json +2 -6
  84. package/scripts/delete-markdown-indexes.js +87 -0
  85. package/scripts/generate-index.js +35 -0
  86. package/scripts/index-markdown.js +55 -0
  87. package/tsconfig.json +15 -0
  88. package/types/FileProjectContext.d.ts +4 -0
  89. package/types/ProjectContext.d.ts +9 -0
  90. package/types/adapters/date-time.d.ts +2 -0
  91. package/types/adapters/environment.d.ts +1 -0
  92. package/types/adapters/file-gateway.d.ts +51 -0
  93. package/types/adapters/git-download.d.ts +1 -0
  94. package/types/adapters/index.d.ts +9 -0
  95. package/types/adapters/logger.d.ts +24 -0
  96. package/types/adapters/markdown.d.ts +13 -0
  97. package/types/adapters/parsers/DateLanguageParser.d.ts +1 -0
  98. package/types/adapters/parsers/content-transformer.d.ts +10 -0
  99. package/types/adapters/parsers/file/LocalFileParserFactory.d.ts +5 -0
  100. package/types/adapters/parsers/file/ReadStreamCodeParser.d.ts +13 -0
  101. package/types/adapters/parsers/file/ReadStreamMarkdownParser.d.ts +7 -0
  102. package/types/adapters/parsers/file/ReadStreamTaskParser.d.ts +19 -0
  103. package/types/adapters/parsers/file/index.d.ts +4 -0
  104. package/types/adapters/parsers/function-parser.d.ts +1 -0
  105. package/types/adapters/parsers/index.d.ts +5 -0
  106. package/types/adapters/parsers/task/CardContentParser.d.ts +45 -0
  107. package/types/adapters/parsers/task/CheckStyleTaskParser.d.ts +12 -0
  108. package/types/adapters/parsers/task/CodeStyleTaskParser.d.ts +14 -0
  109. package/types/adapters/parsers/task/HashStyleTaskParser.d.ts +13 -0
  110. package/types/adapters/parsers/task/MarkdownStyleTaskParser.d.ts +14 -0
  111. package/types/adapters/parsers/task/TaskParser.d.ts +7 -0
  112. package/types/adapters/parsers/task/index.d.ts +6 -0
  113. package/types/adapters/storage/config.d.ts +6 -0
  114. package/types/adapters/storage/index.d.ts +2 -0
  115. package/types/adapters/storage/tags.d.ts +3 -0
  116. package/types/adapters/yaml.d.ts +2 -0
  117. package/types/card.d.ts +166 -0
  118. package/types/checksum.d.ts +8 -0
  119. package/types/config.d.ts +61 -0
  120. package/types/constants.d.ts +46 -0
  121. package/types/context/ApplicationContext.d.ts +24 -0
  122. package/types/context/index.d.ts +1 -0
  123. package/types/default-settings.d.ts +2 -0
  124. package/types/domain/entities/FileProjectContext.d.ts +5 -0
  125. package/types/domain/entities/View.d.ts +17 -0
  126. package/types/domain/entities/index.d.ts +1 -0
  127. package/types/domain/index.d.ts +2 -0
  128. package/types/domain/usecases/GetViewsUsecase.d.ts +4 -0
  129. package/types/domain/usecases/SaveViewUsecase.d.ts +8 -0
  130. package/types/domain/usecases/index.d.ts +2 -0
  131. package/types/file.d.ts +344 -0
  132. package/types/get-tasks-to-modify.d.ts +3 -0
  133. package/types/index.d.ts +23 -0
  134. package/types/languages.d.ts +649 -0
  135. package/types/list.d.ts +30 -0
  136. package/types/migrate-config.d.ts +1 -0
  137. package/types/mixins/index.d.ts +2 -0
  138. package/types/mixins/repo-fs-store.d.ts +2 -0
  139. package/types/mixins/repo-watched-fs-store.d.ts +2 -0
  140. package/types/plugins/archive-plugin.d.ts +8 -0
  141. package/types/plugins/default-board-actions-plugin.d.ts +9 -0
  142. package/types/plugins/default-board-properties-plugin.d.ts +16 -0
  143. package/types/plugins/default-plugins.d.ts +6 -0
  144. package/types/plugins/epic-plugin.d.ts +19 -0
  145. package/types/plugins/extension-plugin.d.ts +15 -0
  146. package/types/plugins/index.d.ts +9 -0
  147. package/types/plugins/persist-tags-plugin.d.ts +4 -0
  148. package/types/plugins/plugin-manager.d.ts +68 -0
  149. package/types/plugins/plugin-registry.d.ts +1 -0
  150. package/types/project-factory.d.ts +14 -0
  151. package/types/project.d.ts +158 -0
  152. package/types/repository.d.ts +996 -0
  153. package/types/task.d.ts +202 -0
  154. package/types/tools.d.ts +29 -0
  155. package/types/usecases/actions.d.ts +7 -0
  156. package/types/usecases/get-imdone-url.d.ts +1 -0
  157. package/types/usecases/get-project-tags.d.ts +1 -0
  158. package/types/usecases/get-tasks-in-file.d.ts +4 -0
  159. package/types/usecases/index.d.ts +4 -0
  160. package/vitest.config.js +13 -0
@@ -0,0 +1,4 @@
1
+ export * from "./LocalFileParserFactory.js";
2
+ export * from "./ReadStreamCodeParser.js";
3
+ export * from "./ReadStreamMarkdownParser.js";
4
+ export * from "./ReadStreamTaskParser.js";
@@ -0,0 +1 @@
1
+ export function getFunctionSignature(fn: any): string;
@@ -0,0 +1,5 @@
1
+ export * from "./DateLanguageParser.js";
2
+ export * from "./content-transformer.js";
3
+ export * from "./function-parser.js";
4
+ export * as file from "./file/index.js";
5
+ export * as task from "./task/index.js";
@@ -0,0 +1,45 @@
1
+ export function getHashStyleRegex(tokenPrefix?: string, orderMeta?: boolean): any;
2
+ export function getCheckedData(content: any): {
3
+ pad: number;
4
+ checked: boolean;
5
+ } | null;
6
+ export function hasTaskInText(config: any, text: any, isCodeFile: any): boolean;
7
+ export function isBeforeTextMarkdownList(beforeText: any): boolean;
8
+ export function padDescription(description?: any[], beforeText?: string): any[];
9
+ export function getTaskContent({ config, content, inBlockComment, beforeText, fileType, lang }: {
10
+ config: any;
11
+ content: any;
12
+ inBlockComment: any;
13
+ beforeText: any;
14
+ fileType: any;
15
+ lang: any;
16
+ }): {
17
+ rawTaskContentLines: string[];
18
+ taskContentLines: string[];
19
+ } | undefined;
20
+ export function getRawTask({ tokenPrefix, orderMeta, beforeText, hasColon, list, order, text, type }: {
21
+ tokenPrefix?: string | undefined;
22
+ orderMeta?: boolean | undefined;
23
+ beforeText?: string | undefined;
24
+ hasColon?: boolean | undefined;
25
+ list: any;
26
+ order?: string | undefined;
27
+ text: any;
28
+ type?: string | undefined;
29
+ }): string;
30
+ export function isNumber(value: any): boolean;
31
+ export function toNumber(value: any): number | undefined;
32
+ export namespace FILE_TYPES {
33
+ let MARKDOWN: string;
34
+ let CODE: string;
35
+ }
36
+ export namespace TASK_TYPES {
37
+ let CODE_1: string;
38
+ export { CODE_1 as CODE };
39
+ export let HASHTAG: string;
40
+ let MARKDOWN_1: string;
41
+ export { MARKDOWN_1 as MARKDOWN };
42
+ }
43
+ export const LIST_NAME_PATTERN: "[\\p{L}0-9-_]{2,}";
44
+ export const LINK_STYLE_REGEX: any;
45
+ export const CHECK_REGEX: RegExp;
@@ -0,0 +1,12 @@
1
+ export class CheckStyleTaskParser extends TaskParser {
2
+ constructor();
3
+ get pattern(): RegExp;
4
+ parse(lineContent: any, line: any, matchResult: any, task: any): {
5
+ beforeText: any;
6
+ text: any;
7
+ line: any;
8
+ checked: any;
9
+ type: any;
10
+ } | undefined;
11
+ }
12
+ import { TaskParser } from "./TaskParser.js";
@@ -0,0 +1,14 @@
1
+ export class CodeStyleTaskParser extends TaskParser {
2
+ constructor(config: any);
3
+ get pattern(): RegExp;
4
+ parse(lineContent: any, line: any, matchResult: any): {
5
+ beforeText: any;
6
+ text: any;
7
+ order: any;
8
+ list: any;
9
+ line: any;
10
+ colon: any;
11
+ type: any;
12
+ };
13
+ }
14
+ import { TaskParser } from './TaskParser.js';
@@ -0,0 +1,13 @@
1
+ export class HashStyleTaskParser extends TaskParser {
2
+ constructor(config: any);
3
+ get pattern(): any;
4
+ parse(lineContent: any, line: any, matchResult: any): {
5
+ text: any;
6
+ order: any;
7
+ list: any;
8
+ line: any;
9
+ colon: any;
10
+ type: any;
11
+ };
12
+ }
13
+ import { TaskParser } from './TaskParser.js';
@@ -0,0 +1,14 @@
1
+ export class MarkdownStyleTaskParser extends TaskParser {
2
+ constructor(config: any);
3
+ get pattern(): RegExp;
4
+ parse(lineContent: any, line: any, matchResult: any): {
5
+ beforeText: any;
6
+ text: any;
7
+ order: any;
8
+ list: any;
9
+ line: any;
10
+ colon: any;
11
+ type: any;
12
+ };
13
+ }
14
+ import { TaskParser } from './TaskParser.js';
@@ -0,0 +1,7 @@
1
+ export class TaskParser {
2
+ constructor(type: any, config: any);
3
+ config: any;
4
+ type: any;
5
+ get pattern(): void;
6
+ parseLine(lineContent: any, line: any, task: any): any;
7
+ }
@@ -0,0 +1,6 @@
1
+ export * from "./CardContentParser.js";
2
+ export * from "./CheckStyleTaskParser.js";
3
+ export * from "./CodeStyleTaskParser.js";
4
+ export * from "./HashStyleTaskParser.js";
5
+ export * from "./MarkdownStyleTaskParser.js";
6
+ export * from "./TaskParser.js";
@@ -0,0 +1,6 @@
1
+ export function load(projectPath: any, configPath?: string): Promise<Config | undefined>;
2
+ export function save(config: any, projectPath: any): Promise<void>;
3
+ export function loadForFilePath(filePath: any): Promise<Config | undefined>;
4
+ export function loadYamlConfig(filePath: any): Promise<{} | undefined>;
5
+ export function findImdonePath(cwd: any): Promise<string>;
6
+ import { Config } from '../../config.js';
@@ -0,0 +1,2 @@
1
+ export * from "./config.js";
2
+ export * from "./tags.js";
@@ -0,0 +1,3 @@
1
+ export function load(projectPath: any): Promise<any>;
2
+ export function save(tags: any, projectPath: any): Promise<void>;
3
+ export const TAGS_FILE_PATH: string;
@@ -0,0 +1,2 @@
1
+ export function dumpYAML(obj: any, opts: any): any;
2
+ export function loadYAML(str: any, opts: any): any;
@@ -0,0 +1,166 @@
1
+ export function newCard(task: any, _project: any, dontParse: any): {
2
+ readonly settings: any;
3
+ readonly maxLines: any;
4
+ interpretedContent: any;
5
+ innerInterpretedContent: any;
6
+ init(totals?: any): /*elided*/ any;
7
+ totals: any;
8
+ onTaskUpdate(): void;
9
+ initProps(): void;
10
+ props: any;
11
+ initComputed(): void;
12
+ computed: any;
13
+ initActions(): void;
14
+ links: any[] | undefined;
15
+ readonly projectPath: any;
16
+ readonly relPath: any;
17
+ readonly fullPath: string | undefined;
18
+ readonly defaultData: any;
19
+ initData(): void;
20
+ dataKeys: string[] | undefined;
21
+ data: any;
22
+ updateDescriptionData(): void;
23
+ desc: {
24
+ title: any;
25
+ html: any;
26
+ truncHtml: any;
27
+ encodedText: string;
28
+ encodedMD: string;
29
+ markdown: any;
30
+ rawMarkdown: any;
31
+ htmlLength: any;
32
+ htmlTruncLength: any;
33
+ isOverMaxLines: any;
34
+ } | undefined;
35
+ getEncodedContent(content: any): {
36
+ encodedMD: string;
37
+ encodedText: string;
38
+ content: any;
39
+ };
40
+ formatContent(content: any, mustache: any): {
41
+ encodedMD: string;
42
+ encodedText: string;
43
+ content: any;
44
+ };
45
+ format(content: any, mustache: any): any;
46
+ getCardMarkdown(): {
47
+ totalLines: number;
48
+ markdown: string;
49
+ rawMarkdown: string;
50
+ };
51
+ truncLines: any;
52
+ getHtml(content: any): {
53
+ html: any;
54
+ truncHtml: any;
55
+ };
56
+ getDescriptionData(): {
57
+ title: any;
58
+ html: any;
59
+ truncHtml: any;
60
+ encodedText: string;
61
+ encodedMD: string;
62
+ markdown: any;
63
+ rawMarkdown: any;
64
+ htmlLength: any;
65
+ htmlTruncLength: any;
66
+ isOverMaxLines: any;
67
+ };
68
+ frontMatter: any;
69
+ pos: any;
70
+ rawTask: any;
71
+ beforeText: any;
72
+ text: any;
73
+ list: any;
74
+ order: any;
75
+ hasColon: any;
76
+ line: any;
77
+ id: any;
78
+ repoId: any;
79
+ source: any;
80
+ type: any;
81
+ tags: any;
82
+ context: any;
83
+ meta: any;
84
+ metaIndex: any;
85
+ inBlockComment: any;
86
+ singleLineBlockComment: any;
87
+ description: any;
88
+ rawTaskContentLines: any;
89
+ taskStartOnLine: any;
90
+ commentStartOnLine: any;
91
+ descriptionStartsWith: any;
92
+ filteredListName: any;
93
+ isWrappedWithCardTag: any;
94
+ config: any;
95
+ allMeta: any;
96
+ allContext: any;
97
+ allTags: any;
98
+ progress: any;
99
+ content: any;
100
+ lastLine: any;
101
+ orderModified: any;
102
+ index: any;
103
+ innerOrder: any;
104
+ readonly descriptionString: any;
105
+ updateLastLine(): void;
106
+ getLastLine(): any;
107
+ parse(): void;
108
+ paddingLength: number | undefined;
109
+ metaKeys: string[] | undefined;
110
+ topics: string[] | undefined;
111
+ issueNumberRegExp(): RegExp;
112
+ readonly listId: any;
113
+ readonly path: any;
114
+ readonly markdownBeforeText: string;
115
+ getTextAndDescription(): any;
116
+ getRawTextAndDescription(): any;
117
+ getProgress(): {
118
+ completed: any;
119
+ total: any;
120
+ };
121
+ getContent(): any;
122
+ updateContent(): void;
123
+ updateFromContent(content: any): void;
124
+ toJSON(): /*elided*/ any & {
125
+ allTags: any;
126
+ allContext: any;
127
+ allMeta: any;
128
+ config: undefined;
129
+ expand: boolean;
130
+ };
131
+ getTagPrefix(): any;
132
+ addToLastCommentInContent(content: any, toAdd: any, newLine: any): string;
133
+ getCheckedData(): {
134
+ pad: number;
135
+ checked: boolean;
136
+ } | null;
137
+ updateOrderMeta(config: any, descContent?: any): undefined;
138
+ replaceContent(regex: any, replacement: any): void;
139
+ replaceMetaSep(oldMetaSep: any, newMetaSep: any): void;
140
+ updateContext(): void;
141
+ parseTodoTxt(): void;
142
+ getTags(): any[];
143
+ getContext(): any[];
144
+ getDueMeta(): any;
145
+ getMetaData(): any;
146
+ getListTrackingMeta(lists: any): any[];
147
+ hasListChanged(lists: any): boolean;
148
+ hasMetaData(key: any, value: any): any;
149
+ getMetaDataWithLinks(config: any): any[];
150
+ getMetaLink(config: any, metaKey: any, metaValue: any): {
151
+ title: string;
152
+ url: string;
153
+ icon: any;
154
+ } | undefined;
155
+ toString(): string;
156
+ getRepoId(): any;
157
+ getSource(): any;
158
+ getId(): any;
159
+ getList(): any;
160
+ getText(opts: any, text: any): any;
161
+ getChecksFromHtml(html: any): boolean[];
162
+ getLine(): any;
163
+ getType(): any;
164
+ equals(task: any): boolean | undefined;
165
+ };
166
+ export const allEmoji: any;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Compute a checksum for a given string or file.
3
+ * @param {string} input - The string or file path to hash.
4
+ * @param {string} algorithm - The hash algorithm to use (default: 'sha1').
5
+ * @param {boolean} isFile - Whether the input is a file path.
6
+ * @returns {Promise<string>} The computed checksum.
7
+ */
8
+ export function computeChecksum(input: string, algorithm?: string, isFile?: boolean): Promise<string>;
@@ -0,0 +1,61 @@
1
+ export class Config {
2
+ static DEFAULT_CONFIG: {
3
+ keepEmptyPriority: boolean;
4
+ code: {
5
+ include_lists: string[];
6
+ };
7
+ lists: {
8
+ hidden: boolean;
9
+ name: string;
10
+ }[];
11
+ };
12
+ static JOURNAL_TYPE: {
13
+ SINGLE_FILE: string;
14
+ FOLDER: string;
15
+ NEW_FILE: string;
16
+ };
17
+ static newDefaultConfig(config?: {}): Config;
18
+ constructor(opts: any);
19
+ settings: {};
20
+ get cards(): any;
21
+ set defaultFilter(filter: any);
22
+ get defaultFilter(): any;
23
+ set name(name: any);
24
+ get name(): any;
25
+ includeList(name: any): any;
26
+ ignoreList(name: any): any;
27
+ listExists(name: any): boolean;
28
+ getDefaultList(): any;
29
+ getDoneList(): any;
30
+ getDoingList(): any;
31
+ isAddNewCardsToTop(): any;
32
+ getNewCardSyntax(): any;
33
+ isMetaNewLine(): any;
34
+ getTagPrefix(): any;
35
+ getTaskPrefix(): any;
36
+ isAddCheckBoxTasks(): any;
37
+ isAddCompletedMeta(): any;
38
+ set customCardTerminator(terminator: any);
39
+ get customCardTerminator(): any;
40
+ get markdownOnly(): any;
41
+ get views(): any;
42
+ get appendNewCardsTo(): any;
43
+ get ignoreFrontMatter(): any;
44
+ get ignoreFrontMatterTags(): any;
45
+ set journalPath(path: any);
46
+ get journalPath(): any;
47
+ get journalTemplate(): any;
48
+ get journalType(): any;
49
+ get journalFilePrefix(): any;
50
+ get journalFileSuffix(): any;
51
+ get replaceSpacesWith(): any;
52
+ get devMode(): any;
53
+ get plugins(): any;
54
+ get orderMeta(): any;
55
+ get maxLines(): any;
56
+ get archiveFolder(): any;
57
+ get archiveCompleted(): any;
58
+ get tokenPrefix(): any;
59
+ get doneList(): any;
60
+ getMetaSep(): any;
61
+ }
@@ -0,0 +1,46 @@
1
+ export namespace constants {
2
+ export { JOURNAL_TYPE };
3
+ export let ASYNC_LIMIT: number;
4
+ export { CONFIG_DIR };
5
+ export { CONFIG_FILE };
6
+ export { CONFIG_FILE_YML };
7
+ export { SORT_FILE };
8
+ export { TEMPLATES_DIR };
9
+ export let IGNORE_FILE: string;
10
+ export let DEFAULT_FILE_PATTERN: string;
11
+ export { DEFAULT_IGNORE };
12
+ export { DEFAULT_IGNORE_PATHS };
13
+ export { DEFAULT_IGNORE_EXTS };
14
+ export namespace ERRORS {
15
+ let NOT_A_FILE: string;
16
+ let CALLBACK_REQUIRED: string;
17
+ let NO_CONTENT: string;
18
+ let LIST_NOT_FOUND: string;
19
+ let TASK_NOT_FOUND: string;
20
+ }
21
+ export { DEFAULT_CONFIG };
22
+ }
23
+ declare const JOURNAL_TYPE: {
24
+ SINGLE_FILE: string;
25
+ FOLDER: string;
26
+ NEW_FILE: string;
27
+ };
28
+ declare const CONFIG_DIR: ".imdone";
29
+ declare const CONFIG_FILE: string;
30
+ declare const CONFIG_FILE_YML: string;
31
+ declare const SORT_FILE: string;
32
+ declare const TEMPLATES_DIR: string;
33
+ declare const DEFAULT_IGNORE: string;
34
+ declare var DEFAULT_IGNORE_PATHS: string;
35
+ declare var DEFAULT_IGNORE_EXTS: string;
36
+ declare const DEFAULT_CONFIG: {
37
+ keepEmptyPriority: boolean;
38
+ code: {
39
+ include_lists: string[];
40
+ };
41
+ lists: {
42
+ hidden: boolean;
43
+ name: string;
44
+ }[];
45
+ };
46
+ export {};
@@ -0,0 +1,24 @@
1
+ export function appContext(): ApplicationContext;
2
+ declare class ApplicationContext {
3
+ constructor({ project, repo, projectContext, projectReader, projectPresenter, }: {
4
+ project: any;
5
+ repo: any;
6
+ projectContext: any;
7
+ projectReader: any;
8
+ projectPresenter: any;
9
+ });
10
+ project: any;
11
+ repo: any;
12
+ projectContext: any;
13
+ projectReader: any;
14
+ projectPresenter: any;
15
+ innerConfig: Config;
16
+ pluginRegistry: {
17
+ getAvailablePlugins: typeof getAvailablePlugins;
18
+ };
19
+ set config(config: any);
20
+ get config(): any;
21
+ }
22
+ import { Config } from '../config.js';
23
+ import { getAvailablePlugins } from '../plugins/plugin-registry.js';
24
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./ApplicationContext.js";
@@ -0,0 +1,2 @@
1
+ export const defaultSettingsString: "openIn: default #override\nopenCodeIn: default #override\njournalType: New File\njournalPath: imdone-tasks #override\nappendNewCardsTo: imdone-tasks.md\nnewCardSyntax: HASHTAG #override\nreplaceSpacesWith: '-' #override\nplugins:\n devMode: false\ncards:\n colors: [] #override if\n template: | # This is the template for new cards that are created in imdone\n \n \n <!--\n created:${(new Date()).toISOString()}\n -->\n trackChanges: false #override\n metaNewLine: false #override\n addCompletedMeta: false #override\n addCheckBoxTasks: false #override\n doingList: DOING #override if\n doneList: DONE #override if\n tokenPrefix: '#' #override\n taskPrefix: '##' #override\n tagPrefix: '+' #override\n metaSep: ':' #override\n orderMeta: true\n maxLines: 6 #override\n addNewCardsToTop: true #override\n showTagsAndMeta: true #override\njournalTemplate: #override\nmarkdownOnly: false #override\n";
2
+ export const defaultSettings: any;
@@ -0,0 +1,5 @@
1
+ export = FileProjectContext;
2
+ declare class FileProjectContext {
3
+ getOrder(list: any, order: any): number;
4
+ getProject(): null;
5
+ }
@@ -0,0 +1,17 @@
1
+ export class View {
2
+ static DEFAULT_VIEW_ID: string;
3
+ static DEFAULT_VIEW_NAME: string;
4
+ constructor({ id, name, filter, lists, modifiable }: {
5
+ id: any;
6
+ name: any;
7
+ filter?: string | undefined;
8
+ lists?: never[] | undefined;
9
+ modifiable?: boolean | undefined;
10
+ });
11
+ id: any;
12
+ name: any;
13
+ lists: any[];
14
+ filter: string;
15
+ get isModifiable(): boolean;
16
+ #private;
17
+ }
@@ -0,0 +1 @@
1
+ export * from "./View.js";
@@ -0,0 +1,2 @@
1
+ export * as entities from "./entities/index.js";
2
+ export * as usecases from "./usecases/index.js";
@@ -0,0 +1,4 @@
1
+ export function getView(_id: any): any;
2
+ export function getDefaultView(): View;
3
+ export function getViews(): any[];
4
+ import { View } from '../entities/View.js';
@@ -0,0 +1,8 @@
1
+ export function saveView({ id, name, lists, filter }: {
2
+ id: any;
3
+ name: any;
4
+ lists: any;
5
+ filter: any;
6
+ }): Promise<any>;
7
+ export function removeDefaultViewFilter(): Promise<void>;
8
+ export function setDefaultViewFilter(filter?: any): Promise<void>;
@@ -0,0 +1,2 @@
1
+ export * from "./GetViewsUsecase.js";
2
+ export * from "./SaveViewUsecase.js";