@dinoxx/dinox-cli 1.0.20 → 1.0.22
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/README.md +72 -139
- package/dist/auth/userInfo.d.ts +8 -1
- package/dist/auth/userInfo.js +38 -6
- package/dist/cli.js +1 -2
- package/dist/cliTypes.d.ts +1 -0
- package/dist/commands/auth/index.js +11 -4
- package/dist/commands/boxes/index.js +274 -54
- package/dist/commands/boxes/model.d.ts +34 -0
- package/dist/commands/boxes/model.js +78 -0
- package/dist/commands/boxes/operations.d.ts +86 -0
- package/dist/commands/boxes/operations.js +415 -0
- package/dist/commands/boxes/repo.d.ts +13 -6
- package/dist/commands/boxes/repo.js +272 -149
- package/dist/commands/boxes/store.d.ts +22 -0
- package/dist/commands/boxes/store.js +143 -0
- package/dist/commands/graph/index.js +11 -38
- package/dist/commands/mcp/noteContentTools.d.ts +222 -0
- package/dist/commands/mcp/noteContentTools.js +390 -0
- package/dist/commands/mcp/server.d.ts +3 -0
- package/dist/commands/mcp/server.js +43 -15
- package/dist/commands/mcp/tools.js +3 -1
- package/dist/commands/mcp/types.d.ts +6 -2
- package/dist/commands/meta/index.js +8 -24
- package/dist/commands/meta/repo.d.ts +0 -3
- package/dist/commands/meta/repo.js +1 -4
- package/dist/commands/notes/actions.d.ts +2 -0
- package/dist/commands/notes/actions.js +149 -55
- package/dist/commands/notes/bulk.d.ts +34 -0
- package/dist/commands/notes/bulk.js +204 -0
- package/dist/commands/notes/contentEngine.d.ts +95 -0
- package/dist/commands/notes/contentEngine.js +652 -0
- package/dist/commands/notes/contentPatch.d.ts +84 -0
- package/dist/commands/notes/contentPatch.js +337 -0
- package/dist/commands/notes/contentPatchCommand.d.ts +3 -0
- package/dist/commands/notes/contentPatchCommand.js +126 -0
- package/dist/commands/notes/descriptors.js +194 -42
- package/dist/commands/notes/export.d.ts +21 -0
- package/dist/commands/notes/export.js +224 -0
- package/dist/commands/notes/metadataMutation.d.ts +28 -0
- package/dist/commands/notes/metadataMutation.js +127 -0
- package/dist/commands/notes/repo.d.ts +20 -0
- package/dist/commands/notes/repo.js +135 -18
- package/dist/commands/notes/runtime.d.ts +3 -12
- package/dist/commands/notes/runtime.js +4 -30
- package/dist/commands/notes/searchSql.js +1 -1
- package/dist/commands/prompt/index.js +17 -47
- package/dist/commands/prompt/repo.js +2 -2
- package/dist/commands/runtime.d.ts +34 -0
- package/dist/commands/runtime.js +110 -0
- package/dist/commands/schema/globalOptions.d.ts +1 -0
- package/dist/commands/schema/globalOptions.js +1 -0
- package/dist/commands/schema/renderSkills.js +21 -7
- package/dist/commands/schema/spec.d.ts +1 -2
- package/dist/commands/schema/spec.js +2 -3
- package/dist/commands/schema/types.d.ts +0 -13
- package/dist/commands/storage/index.js +32 -62
- package/dist/commands/sync.js +22 -5
- package/dist/commands/tags/content.d.ts +32 -0
- package/dist/commands/tags/content.js +243 -0
- package/dist/commands/tags/index.js +287 -51
- package/dist/commands/tags/model.d.ts +38 -0
- package/dist/commands/tags/model.js +100 -0
- package/dist/commands/tags/operations.d.ts +105 -0
- package/dist/commands/tags/operations.js +438 -0
- package/dist/commands/tags/repo.d.ts +5 -1
- package/dist/commands/tags/repo.js +142 -218
- package/dist/commands/tags/store.d.ts +28 -0
- package/dist/commands/tags/store.js +166 -0
- package/dist/commands/todo/index.js +32 -63
- package/dist/commands/writeDryRun.d.ts +25 -0
- package/dist/commands/writeDryRun.js +31 -1
- package/dist/config/resolve.js +2 -2
- package/dist/daemon/index.d.ts +2 -0
- package/dist/daemon/index.js +176 -58
- package/dist/powersync/runtime.d.ts +1 -0
- package/dist/powersync/runtime.js +16 -0
- package/dist/powersync/schema/content.d.ts +2 -0
- package/dist/powersync/schema/content.js +2 -0
- package/dist/powersync/schema/index.d.ts +2 -0
- package/dist/powersync/syncGate.d.ts +24 -0
- package/dist/powersync/syncGate.js +36 -0
- package/dist/skills/check.d.ts +1 -1
- package/dist/skills/check.js +27 -2
- package/dist/utils/authToken.d.ts +2 -0
- package/dist/utils/authToken.js +7 -2
- package/dist/utils/noteContentEngine.d.ts +333 -0
- package/dist/utils/noteContentEngine.js +740 -0
- package/dist/utils/tiptapMarkdownSchema.js +31 -0
- package/package.json +4 -8
|
@@ -28,6 +28,34 @@ const EditorDocument = Document.extend({
|
|
|
28
28
|
content: 'frontmatter? block+',
|
|
29
29
|
});
|
|
30
30
|
const FRONTMATTER_BLOCK_RE = /^(?:\uFEFF)?---[ \t]*\n([\s\S]*?)\n---[ \t]*(?:\n|$)/;
|
|
31
|
+
const MARKED_OPTIONS = { gfm: true };
|
|
32
|
+
function normalizeCodeFenceLanguage(value) {
|
|
33
|
+
return typeof value === 'string' ? value.trim().toLowerCase() : '';
|
|
34
|
+
}
|
|
35
|
+
function createCodeFenceAtomNode(options) {
|
|
36
|
+
return Node.create({
|
|
37
|
+
name: options.name,
|
|
38
|
+
priority: 1000,
|
|
39
|
+
group: 'block',
|
|
40
|
+
atom: true,
|
|
41
|
+
selectable: true,
|
|
42
|
+
defining: true,
|
|
43
|
+
markdownTokenName: 'code',
|
|
44
|
+
addAttributes() {
|
|
45
|
+
return { [options.attr]: { default: '' } };
|
|
46
|
+
},
|
|
47
|
+
parseMarkdown(token) {
|
|
48
|
+
if (normalizeCodeFenceLanguage(token.lang) !== options.language)
|
|
49
|
+
return [];
|
|
50
|
+
return { type: options.name, attrs: { [options.attr]: typeof token.text === 'string' ? token.text : '' } };
|
|
51
|
+
},
|
|
52
|
+
renderMarkdown(node) {
|
|
53
|
+
return `\`\`\`${options.language}\n${String(node.attrs?.[options.attr] || '')}\n\`\`\``;
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
const MermaidNode = createCodeFenceAtomNode({ name: 'mermaid', language: 'mermaid', attr: 'code' });
|
|
58
|
+
const MindgraphNode = createCodeFenceAtomNode({ name: 'mindgraph', language: 'mindgraph', attr: 'markdown' });
|
|
31
59
|
const FrontmatterNode = Node.create({
|
|
32
60
|
name: 'frontmatter',
|
|
33
61
|
group: 'frontmatter',
|
|
@@ -479,6 +507,8 @@ export function createDinoxMarkdownExtensions() {
|
|
|
479
507
|
return [
|
|
480
508
|
EditorDocument,
|
|
481
509
|
FrontmatterNode,
|
|
510
|
+
MermaidNode,
|
|
511
|
+
MindgraphNode,
|
|
482
512
|
Paragraph,
|
|
483
513
|
Text,
|
|
484
514
|
Bold,
|
|
@@ -529,6 +559,7 @@ let markdownManager = null;
|
|
|
529
559
|
export function getDinoxMarkdownManager() {
|
|
530
560
|
if (!markdownManager) {
|
|
531
561
|
markdownManager = new MarkdownManager({
|
|
562
|
+
markedOptions: MARKED_OPTIONS,
|
|
532
563
|
extensions: createDinoxMarkdownExtensions(),
|
|
533
564
|
});
|
|
534
565
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dinoxx/dinox-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"description": "Dinox CLI",
|
|
5
5
|
"main": "dist/dinox.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc -p tsconfig.json && node scripts/add-shebang.mjs",
|
|
8
8
|
"dev": "tsx src/dinox.ts",
|
|
9
|
-
"prepublishOnly": "
|
|
9
|
+
"prepublishOnly": "pnpm run build",
|
|
10
10
|
"publish:npm": "sh ./publish-npm.sh",
|
|
11
11
|
"publish:npm:dry-run": "sh ./publish-npm.sh --dry-run",
|
|
12
12
|
"skills:check": "tsx scripts/check-skills.ts",
|
|
13
|
+
"skills:sync:standalone": "tsx scripts/sync-standalone-skills-repo.ts",
|
|
13
14
|
"skills:sync": "tsx scripts/sync-skills-reference.ts",
|
|
14
15
|
"start": "node dist/dinox.js",
|
|
15
16
|
"test": "node --test --import tsx test/*.test.ts"
|
|
@@ -77,10 +78,5 @@
|
|
|
77
78
|
"tsx": "^4.20.3",
|
|
78
79
|
"typescript": "^5.9.3"
|
|
79
80
|
},
|
|
80
|
-
"
|
|
81
|
-
"onlyBuiltDependencies": [
|
|
82
|
-
"better-sqlite3",
|
|
83
|
-
"esbuild"
|
|
84
|
-
]
|
|
85
|
-
}
|
|
81
|
+
"packageManager": "pnpm@11.5.0"
|
|
86
82
|
}
|