From f59298711ae8780ab1909bfe845f8a36e86dfe57 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sun, 30 Nov 2025 08:30:55 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 12 ++++++++++ README.md | 3 +++ hooks/hooks.json | 16 ++++++++++++++ plugin.lock.json | 45 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 hooks/hooks.json create mode 100644 plugin.lock.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..b8b6a99 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "ia-writer-annotations", + "description": "Automatically add iA Writer authorship annotations to your text files when Claude Code edits them (Terminal version only)", + "version": "0.2.0", + "author": { + "name": "Kazuki Yunoue", + "url": "https://github.com/KazukiYunoue" + }, + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..abba83b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ia-writer-annotations + +Automatically add iA Writer authorship annotations to your text files when Claude Code edits them (Terminal version only) diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..64ef6e5 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,16 @@ +{ + "description": "Automatically add iA Writer annotations to edited files", + "hooks": { + "PostToolUse": [ + { + "matcher": "Write|Edit", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/auto-annotate.js" + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..6c70187 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:KazukiYunoue/claude-code-ia-writer-annotations:.claude-plugin", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "7d4fb9a036233509bc1896aa9928431ac14908ac", + "treeHash": "569f0238f8699bd5e3f791c2e8dd457ec0bd52ef89f465d94d21358aca5741b4", + "generatedAt": "2025-11-28T10:11:58.784165Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "ia-writer-annotations", + "description": "Automatically add iA Writer authorship annotations to your text files when Claude Code edits them (Terminal version only)", + "version": "0.2.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "e063037917a98c1db839367a72b834ff21d155489e037e9cf0db151c6ccf6a19" + }, + { + "path": "hooks/hooks.json", + "sha256": "02525dd51045d7abe3dcf5c060de2ae1d5a700ba71bccc47ce012e21c53d87d6" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "510b133ef4d9d131a202861420bbb1893d17a015273f9cfc3e3fdda947f80ac8" + } + ], + "dirSha256": "569f0238f8699bd5e3f791c2e8dd457ec0bd52ef89f465d94d21358aca5741b4" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file