Skip to content

Commit 059385a

Browse files
committed
Support markdown and vault imports
1 parent 0ee7278 commit 059385a

5 files changed

Lines changed: 1096 additions & 16 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ nylio workspaces list
2828
nylio documents create --title "Draft"
2929
nylio documents list --limit 10 --offset 0
3030
nylio documents get <document-id-or-url>
31+
nylio documents import ./draft.docx
32+
nylio documents import ./notes.md
33+
nylio documents import ./my-vault
34+
nylio comments list --document <document-id-or-url>
35+
nylio comments create --document <document-id-or-url> --text "Please clarify this section."
36+
nylio comments reply --comment <comment-id> --text "Updated in the latest pass."
37+
nylio comments resolve --thread <thread-id>
3138
nylio documents edit --document <document-id-or-url> --old-string "<oldString>" --new-string "<newString>"
3239
cat replacement.txt | nylio documents edit --document <document-id-or-url> --old-string "<oldString>" --new-string-stdin
3340
nylio documents replace --document <document-id-or-url> --markdown "<full-enhanced-markdown-body>"
@@ -116,8 +123,11 @@ brew install nylio
116123

117124
- Unknown flags fail fast instead of being ignored.
118125
- Write commands accept explicit flags instead of requiring positional-only input.
126+
- `nylio documents import <path>` uploads a local `.docx`, `.odt`, Markdown, text, or Obsidian vault `.zip` file and creates personal documents.
127+
- Passing a local directory to `nylio documents import` packages it as an Obsidian vault ZIP before upload.
119128
- `nylio documents replace --stdin` reads the replacement body from stdin.
120129
- `nylio documents edit --old-string-stdin` and `--new-string-stdin` let you pipe one side of the edit.
130+
- `nylio comments create --author-mode assistant` and `nylio comments reply --author-mode assistant` post from the user's AI assistant label.
121131
- `--dry-run` previews `documents edit` and `documents replace` requests without sending them.
122132

123133
## Auth

package-lock.json

Lines changed: 102 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"bin": {
1212
"nylio": "dist/index.js"
1313
},
14-
"files": ["dist", "README.md"],
14+
"files": [
15+
"dist",
16+
"README.md"
17+
],
1518
"repository": {
1619
"type": "git",
1720
"url": "git+ssh://git@github.com/prodev1000/nylio-cli.git"
@@ -20,7 +23,12 @@
2023
"url": "https://github.com/prodev1000/nylio-cli/issues"
2124
},
2225
"homepage": "https://github.com/prodev1000/nylio-cli",
23-
"keywords": ["nylio", "cli", "oauth", "mcp"],
26+
"keywords": [
27+
"nylio",
28+
"cli",
29+
"oauth",
30+
"mcp"
31+
],
2432
"publishConfig": {
2533
"access": "public"
2634
},
@@ -36,12 +44,16 @@
3644
"prepack": "turbo run check:publish-safety build",
3745
"prepublishOnly": "turbo run check:publish-safety lint typecheck build && npm pack --dry-run",
3846
"publish:npm": "npm publish --provenance",
47+
"test": "npm run build && node --test test/*.test.mjs",
3948
"typecheck": "tsc --noEmit"
4049
},
4150
"devDependencies": {
42-
"@types/node": "^22.15.30",
4351
"@biomejs/biome": "^1.9.4",
52+
"@types/node": "^22.15.30",
4453
"turbo": "^2.8.1",
4554
"typescript": "^5.9.3"
55+
},
56+
"dependencies": {
57+
"jszip": "^3.10.1"
4658
}
4759
}

0 commit comments

Comments
 (0)