oh-my-til 1.1.2 → 1.3.1-dev.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.
package/main.js CHANGED
@@ -15546,6 +15546,7 @@ var TILWatcher = class {
15546
15546
  };
15547
15547
 
15548
15548
  // src/obsidian/main.ts
15549
+ var electronRequire2 = window.require;
15549
15550
  var TILPlugin = class extends import_obsidian5.Plugin {
15550
15551
  constructor() {
15551
15552
  super(...arguments);
@@ -15576,6 +15577,13 @@ var TILPlugin = class extends import_obsidian5.Plugin {
15576
15577
  this.openDashboard();
15577
15578
  }
15578
15579
  });
15580
+ this.addCommand({
15581
+ id: "update-plugin",
15582
+ name: "Update Plugin",
15583
+ callback: () => {
15584
+ this.updatePlugin();
15585
+ }
15586
+ });
15579
15587
  this.addSettingTab(new TILSettingTab(this.app, this));
15580
15588
  if (this.settings.openDashboardOnStartup) {
15581
15589
  this.app.workspace.onLayoutReady(() => {
@@ -15692,6 +15700,40 @@ var TILPlugin = class extends import_obsidian5.Plugin {
15692
15700
  }
15693
15701
  return null;
15694
15702
  }
15703
+ async updatePlugin() {
15704
+ const { exec } = electronRequire2("child_process");
15705
+ const adapter = this.app.vault.adapter;
15706
+ const vaultPath = adapter.basePath;
15707
+ if (!vaultPath) {
15708
+ new import_obsidian5.Notice("\u274C Oh My TIL: vault path\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");
15709
+ return;
15710
+ }
15711
+ const notice = new import_obsidian5.Notice("\u23F3 Oh My TIL: \uC5C5\uB370\uC774\uD2B8 \uC911...", 0);
15712
+ const env = {
15713
+ ...process.env,
15714
+ PATH: ensurePath(process.env.PATH)
15715
+ };
15716
+ exec(
15717
+ "claude plugin update oh-my-til@oh-my-til --scope project",
15718
+ { cwd: vaultPath, env },
15719
+ (err, stdout, stderr) => {
15720
+ notice.hide();
15721
+ if (err) {
15722
+ console.error("[oh-my-til] update error:", stderr || err.message);
15723
+ new import_obsidian5.Notice(
15724
+ `\u274C Oh My TIL: \uC5C5\uB370\uC774\uD2B8 \uC2E4\uD328
15725
+ ${(stderr == null ? void 0 : stderr.trim()) || err.message}`,
15726
+ 8e3
15727
+ );
15728
+ return;
15729
+ }
15730
+ new import_obsidian5.Notice(
15731
+ "\u2705 Oh My TIL: \uC5C5\uB370\uC774\uD2B8 \uC644\uB8CC!\nObsidian\uC744 \uC7AC\uC2DC\uC791\uD558\uAC70\uB098 \uD50C\uB7EC\uADF8\uC778\uC744 \uB9AC\uB85C\uB4DC\uD558\uC138\uC694.",
15732
+ 8e3
15733
+ );
15734
+ }
15735
+ );
15736
+ }
15695
15737
  async openDashboard() {
15696
15738
  const existing = this.app.workspace.getLeavesOfType(VIEW_TYPE_TIL_DASHBOARD);
15697
15739
  if (existing.length > 0) {
package/manifest.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
- "id": "oh-my-til",
3
- "name": "Oh My TIL",
4
- "version": "1.1.2",
5
- "minAppVersion": "1.5.0",
6
- "description": "Embedded Claude Code terminal for TIL learning workflows",
7
- "author": "SongYunSeop",
8
- "authorUrl": "https://github.com/SongYunSeop",
9
- "isDesktopOnly": true
2
+ "id": "oh-my-til",
3
+ "name": "Oh My TIL",
4
+ "version": "1.3.0",
5
+ "minAppVersion": "1.5.0",
6
+ "description": "Embedded Claude Code terminal for TIL learning workflows",
7
+ "author": "SongYunSeop",
8
+ "authorUrl": "https://github.com/SongYunSeop",
9
+ "isDesktopOnly": true
10
10
  }
package/package.json CHANGED
@@ -1,66 +1,66 @@
1
1
  {
2
- "name": "oh-my-til",
3
- "version": "1.1.2",
4
- "description": "Oh My TIL — Claude Code plugin for TIL learning workflow, with Obsidian integration",
5
- "main": "main.js",
6
- "bin": {
7
- "oh-my-til": "./dist/cli.js"
8
- },
9
- "files": [
10
- "dist/",
11
- "main.js",
12
- "manifest.json",
13
- "styles.css",
14
- "migrate-links.mjs"
15
- ],
16
- "scripts": {
17
- "dev": "node esbuild.config.mjs",
18
- "build": "node esbuild.config.mjs production && node esbuild.cli.mjs",
19
- "build:obsidian": "node esbuild.config.mjs production",
20
- "build:cli": "node esbuild.cli.mjs",
21
- "rebuild-pty": "npx @electron/rebuild -m node_modules/node-pty -v ${ELECTRON_VERSION:?'ELECTRON_VERSION 환경변수를 설정하세요 (예: ELECTRON_VERSION=37.10.2 npm run rebuild-pty)'}",
22
- "deploy": "bash scripts/deploy.sh",
23
- "check": "vitest run && node esbuild.config.mjs production && tsc --noEmit",
24
- "test": "vitest run",
25
- "migrate-links": "npx tsx scripts/migrate-links.ts",
26
- "sync-version": "node scripts/sync-version.mjs",
27
- "prepublishOnly": "npm run build"
28
- },
29
- "keywords": [
30
- "claude",
31
- "claude-code",
32
- "til",
33
- "learning",
34
- "mcp",
35
- "obsidian",
36
- "obsidian-plugin",
37
- "terminal"
38
- ],
39
- "author": "SongYunSeop",
40
- "license": "MIT",
41
- "repository": {
42
- "type": "git",
43
- "url": "https://github.com/SongYunSeop/oh-my-til.git"
44
- },
45
- "homepage": "https://github.com/SongYunSeop/oh-my-til",
46
- "bugs": {
47
- "url": "https://github.com/SongYunSeop/oh-my-til/issues"
48
- },
49
- "dependencies": {
50
- "@modelcontextprotocol/sdk": "^1.26.0",
51
- "@xterm/addon-fit": "^0.10.0",
52
- "@xterm/xterm": "^5.5.0",
53
- "yaml": "^2.8.2",
54
- "zod": "^4.3.6"
55
- },
56
- "devDependencies": {
57
- "@electron/rebuild": "^3.6.0",
58
- "@types/node": "^20.0.0",
59
- "builtin-modules": "^3.3.0",
60
- "esbuild": "^0.20.0",
61
- "node-pty": "^1.0.0",
62
- "obsidian": "^1.5.0",
63
- "typescript": "^5.0.0",
64
- "vitest": "^4.0.18"
65
- }
2
+ "name": "oh-my-til",
3
+ "version": "1.3.1-dev.0",
4
+ "description": "Oh My TIL — Claude Code plugin for TIL learning workflow, with Obsidian integration",
5
+ "main": "main.js",
6
+ "bin": {
7
+ "oh-my-til": "./dist/cli.js"
8
+ },
9
+ "files": [
10
+ "dist/",
11
+ "main.js",
12
+ "manifest.json",
13
+ "styles.css",
14
+ "migrate-links.mjs"
15
+ ],
16
+ "scripts": {
17
+ "dev": "node esbuild.config.mjs",
18
+ "build": "node esbuild.config.mjs production && node esbuild.cli.mjs",
19
+ "build:obsidian": "node esbuild.config.mjs production",
20
+ "build:cli": "node esbuild.cli.mjs",
21
+ "rebuild-pty": "npx @electron/rebuild -m node_modules/node-pty -v ${ELECTRON_VERSION:?'ELECTRON_VERSION 환경변수를 설정하세요 (예: ELECTRON_VERSION=37.10.2 npm run rebuild-pty)'}",
22
+ "deploy": "bash scripts/deploy.sh",
23
+ "check": "vitest run && node esbuild.config.mjs production && tsc --noEmit",
24
+ "test": "vitest run",
25
+ "migrate-links": "npx tsx scripts/migrate-links.ts",
26
+ "sync-version": "node scripts/sync-version.mjs",
27
+ "prepublishOnly": "npm run build"
28
+ },
29
+ "keywords": [
30
+ "claude",
31
+ "claude-code",
32
+ "til",
33
+ "learning",
34
+ "mcp",
35
+ "obsidian",
36
+ "obsidian-plugin",
37
+ "terminal"
38
+ ],
39
+ "author": "SongYunSeop",
40
+ "license": "MIT",
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "https://github.com/SongYunSeop/oh-my-til.git"
44
+ },
45
+ "homepage": "https://github.com/SongYunSeop/oh-my-til",
46
+ "bugs": {
47
+ "url": "https://github.com/SongYunSeop/oh-my-til/issues"
48
+ },
49
+ "dependencies": {
50
+ "@modelcontextprotocol/sdk": "^1.26.0",
51
+ "@xterm/addon-fit": "^0.10.0",
52
+ "@xterm/xterm": "^5.5.0",
53
+ "yaml": "^2.8.2",
54
+ "zod": "^4.3.6"
55
+ },
56
+ "devDependencies": {
57
+ "@electron/rebuild": "^3.6.0",
58
+ "@types/node": "^20.0.0",
59
+ "builtin-modules": "^3.3.0",
60
+ "esbuild": "^0.20.0",
61
+ "node-pty": "^1.0.0",
62
+ "obsidian": "^1.5.0",
63
+ "typescript": "^5.0.0",
64
+ "vitest": "^4.0.18"
65
+ }
66
66
  }