@infekted11/stillnote 0.0.0-stage → 1.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.
@@ -0,0 +1,50 @@
1
+ const { contextBridge, ipcRenderer } = require('electron');
2
+
3
+ contextBridge.exposeInMainWorld('stillnote', {
4
+ googleTasksStatus: () => ipcRenderer.invoke('google-tasks:status'),
5
+ saveGoogleTasksCredentials: (clientId, clientSecret) => ipcRenderer.invoke('google-tasks:save-client-credentials', clientId, clientSecret),
6
+ connectGoogleTasks: () => ipcRenderer.invoke('google-tasks:connect'),
7
+ disconnectGoogleTasks: () => ipcRenderer.invoke('google-tasks:disconnect'),
8
+ listGoogleTaskLists: () => ipcRenderer.invoke('google-tasks:lists'),
9
+ createGoogleTaskList: (title) => ipcRenderer.invoke('google-tasks:list-create', title),
10
+ renameGoogleTaskList: (id, title) => ipcRenderer.invoke('google-tasks:list-rename', id, title),
11
+ listGoogleTasks: (listId) => ipcRenderer.invoke('google-tasks:tasks', listId),
12
+ createGoogleTask: (listId, title, parentTaskId) => ipcRenderer.invoke('google-tasks:task-create', listId, title, parentTaskId),
13
+ updateGoogleTask: (listId, taskId, changes) => ipcRenderer.invoke('google-tasks:task-update', listId, taskId, changes),
14
+ deleteGoogleTask: (listId, taskId) => ipcRenderer.invoke('google-tasks:task-delete', listId, taskId),
15
+ createMeetingTranscript: () => ipcRenderer.invoke('meeting:temp-create'),
16
+ writeMeetingTranscript: (id, contents) => ipcRenderer.invoke('meeting:temp-write', id, contents),
17
+ readMeetingTranscript: (id) => ipcRenderer.invoke('meeting:temp-read', id),
18
+ clearMeetingTranscript: (id) => ipcRenderer.invoke('meeting:temp-clear', id),
19
+ chooseVault: () => ipcRenderer.invoke('vault:choose'),
20
+ listNotes: () => ipcRenderer.invoke('vault:list'),
21
+ findRelevantNotes: (query) => ipcRenderer.invoke('vault:relevant', query),
22
+ getVaultTree: () => ipcRenderer.invoke('vault:tree'),
23
+ createFolder: (parentPath, name) => ipcRenderer.invoke('vault:mkdir', parentPath, name),
24
+ renameEntry: (path, name) => ipcRenderer.invoke('vault:rename', path, name),
25
+ deleteEntry: (path) => ipcRenderer.invoke('vault:delete', path),
26
+ moveEntry: (path, destinationFolderPath) => ipcRenderer.invoke('vault:move', path, destinationFolderPath),
27
+ copyFileLink: (path) => ipcRenderer.invoke('vault:copy-link', path),
28
+ restoreSession: () => ipcRenderer.invoke('session:restore'),
29
+ rememberNote: (path) => ipcRenderer.invoke('session:remember-note', path),
30
+ aiKeyStatus: () => ipcRenderer.invoke('ai:key-status'),
31
+ saveAiKey: (key) => ipcRenderer.invoke('ai:key-save', key),
32
+ clearAiKey: () => ipcRenderer.invoke('ai:key-clear'),
33
+ desmosKeyStatus: () => ipcRenderer.invoke('desmos:key-status'),
34
+ getDesmosKey: () => ipcRenderer.invoke('desmos:key-get'),
35
+ saveDesmosKey: (key) => ipcRenderer.invoke('desmos:key-save', key),
36
+ clearDesmosKey: () => ipcRenderer.invoke('desmos:key-clear'),
37
+ listAiModels: () => ipcRenderer.invoke('ai:models'),
38
+ askAi: (request) => ipcRenderer.invoke('ai:chat', request),
39
+ loadSpellcheckDictionary: () => ipcRenderer.invoke('spellcheck:dictionary'),
40
+ loadCustomDictionary: () => ipcRenderer.invoke('spellcheck:custom-load'),
41
+ saveCustomDictionary: (words) => ipcRenderer.invoke('spellcheck:custom-save', words),
42
+ readNote: (path) => ipcRenderer.invoke('note:read', path),
43
+ writeNote: (path, contents) => ipcRenderer.invoke('note:write', path, contents),
44
+ readAsset: (path) => ipcRenderer.invoke('asset:read', path),
45
+ loadOcctWasm: () => ipcRenderer.invoke('asset:occt-wasm'),
46
+ uploadAssets: (destination, uploads) => ipcRenderer.invoke('asset:upload', destination, uploads),
47
+ exportPdf: (path, html) => ipcRenderer.invoke('note:export-pdf', path, html),
48
+ createNote: (title, parentPath) => ipcRenderer.invoke('note:create', title, parentPath),
49
+ createCodeFile: (name, parentPath) => ipcRenderer.invoke('file:create-code', name, parentPath),
50
+ });
package/main-logo.icns ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,99 @@
1
1
  {
2
2
  "name": "@infekted11/stillnote",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.1",
4
+ "publishConfig": {
5
+ "access": "public",
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "private": false,
9
+ "description": "A local-first Markdown workspace.",
10
+ "main": "electron/main.cjs",
11
+ "bin": {
12
+ "stillnote": "bin/stillnote.cjs"
13
+ },
14
+ "files": [
15
+ "bin/",
16
+ "dist/",
17
+ "electron/",
18
+ "main-logo.icns",
19
+ "README.md"
20
+ ],
21
+ "scripts": {
22
+ "dev": "concurrently -k \"vite --host 127.0.0.1\" \"wait-on http://127.0.0.1:5173 && node scripts/start-electron.cjs dev\"",
23
+ "build": "vite build",
24
+ "start": "npm run build && node scripts/start-electron.cjs production",
25
+ "dist": "npm run build && electron-builder",
26
+ "dist:mac": "npm run build && electron-builder --mac dmg zip",
27
+ "dist:win": "npm run build && electron-builder --win nsis",
28
+ "dist:linux": "npm run build && electron-builder --linux AppImage deb"
29
+ },
30
+ "dependencies": {
31
+ "electron": "^44.9.1"
32
+ },
33
+ "devDependencies": {
34
+ "@codemirror/commands": "^6.8.1",
35
+ "@codemirror/lang-css": "^6.3.1",
36
+ "@codemirror/lang-html": "^6.4.12",
37
+ "@codemirror/lang-javascript": "^6.2.5",
38
+ "@codemirror/lang-json": "^6.0.2",
39
+ "@codemirror/lang-markdown": "^6.3.2",
40
+ "@codemirror/lang-python": "^6.2.1",
41
+ "@codemirror/language": "^6.11.0",
42
+ "@codemirror/search": "^6.5.10",
43
+ "@codemirror/state": "^6.5.2",
44
+ "@codemirror/view": "^6.36.8",
45
+ "@huggingface/transformers": "^4.3.1",
46
+ "@lezer/highlight": "^1.2.1",
47
+ "@lezer/markdown": "^1.8.1",
48
+ "animejs": "^4.5.0",
49
+ "occt-import-js": "^0.0.23",
50
+ "pdfjs-dist": "^6.4.299",
51
+ "three": "^0.186.1",
52
+ "concurrently": "^9.1.2",
53
+ "electron-builder": "^26.0.12",
54
+ "vite": "^6.1.0",
55
+ "wait-on": "^8.0.2"
56
+ },
57
+ "build": {
58
+ "appId": "com.stillnote.app",
59
+ "productName": "Stillnote",
60
+ "directories": {
61
+ "output": "release"
62
+ },
63
+ "files": [
64
+ "dist/**/*",
65
+ "electron/**/*",
66
+ "package.json",
67
+ "main-logo.icns",
68
+ "!**/.env",
69
+ "!**/.env.*",
70
+ "!**/.stillnote-credentials.enc",
71
+ "!**/.stillnote-dictionary.enc"
72
+ ],
73
+ "mac": {
74
+ "icon": "main-logo.icns",
75
+ "target": [
76
+ "dmg",
77
+ "zip"
78
+ ]
79
+ },
80
+ "win": {
81
+ "icon": "assets/icon.ico",
82
+ "target": [
83
+ "nsis"
84
+ ]
85
+ },
86
+ "nsis": {
87
+ "oneClick": false,
88
+ "allowToChangeInstallationDirectory": true
89
+ },
90
+ "linux": {
91
+ "icon": "assets/icon.png",
92
+ "category": "Office",
93
+ "target": [
94
+ "AppImage",
95
+ "deb"
96
+ ]
97
+ }
98
+ }
99
+ }