ae-agent-skills 0.2.6 → 0.2.7
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/CSXS/manifest.xml +2 -2
- package/client/index.html +1 -1
- package/client/lib/runtime.js +25 -0
- package/docs/development.ja.md +67 -0
- package/package.json +5 -1
package/CSXS/manifest.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<ExtensionManifest Version="7.0" ExtensionBundleId="com.yumehiko.aeagentskill" ExtensionBundleVersion="0.2.
|
|
2
|
+
<ExtensionManifest Version="7.0" ExtensionBundleId="com.yumehiko.aeagentskill" ExtensionBundleVersion="0.2.7" ExtensionBundleName="ae-agent-skill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
3
3
|
<ExtensionList>
|
|
4
|
-
<Extension Id="com.yumehiko.aeagentskill.panel" Version="0.2.
|
|
4
|
+
<Extension Id="com.yumehiko.aeagentskill.panel" Version="0.2.7" />
|
|
5
5
|
</ExtensionList>
|
|
6
6
|
<ExecutionEnvironment>
|
|
7
7
|
<HostList>
|
package/client/index.html
CHANGED
package/client/lib/runtime.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
let http = null;
|
|
2
2
|
let path = null;
|
|
3
|
+
let fs = null;
|
|
3
4
|
let nodeReady = true;
|
|
4
5
|
let nodeInitError = null;
|
|
5
6
|
|
|
6
7
|
try {
|
|
7
8
|
http = require('http');
|
|
8
9
|
path = require('path');
|
|
10
|
+
fs = require('fs');
|
|
9
11
|
} catch (e) {
|
|
10
12
|
nodeReady = false;
|
|
11
13
|
nodeInitError = e;
|
|
@@ -16,6 +18,7 @@ const extensionRoot = csInterface.getSystemPath(SystemPath.EXTENSION);
|
|
|
16
18
|
const hostScriptPath = nodeReady
|
|
17
19
|
? escapeForExtendScript(path.join(extensionRoot, 'host', 'index.jsx'))
|
|
18
20
|
: null;
|
|
21
|
+
const extensionVersion = resolveExtensionVersion();
|
|
19
22
|
|
|
20
23
|
function escapeForExtendScript(str) {
|
|
21
24
|
return str.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
|
|
@@ -33,3 +36,25 @@ function evalHostScript(scriptSource, callback) {
|
|
|
33
36
|
const fullScript = `$.evalFile("${hostScriptPath}");${scriptSource}`;
|
|
34
37
|
csInterface.evalScript(fullScript, callback);
|
|
35
38
|
}
|
|
39
|
+
|
|
40
|
+
function resolveExtensionVersion() {
|
|
41
|
+
if (!nodeReady || !fs || !path) return null;
|
|
42
|
+
try {
|
|
43
|
+
const manifestPath = path.join(extensionRoot, 'CSXS', 'manifest.xml');
|
|
44
|
+
const manifest = fs.readFileSync(manifestPath, 'utf8');
|
|
45
|
+
const match = manifest.match(/ExtensionBundleVersion="([^"]+)"/);
|
|
46
|
+
return match ? match[1] : null;
|
|
47
|
+
} catch (e) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function applyPanelVersionLabel() {
|
|
53
|
+
const versionEl = document.getElementById('panel-version');
|
|
54
|
+
if (!versionEl) return;
|
|
55
|
+
if (extensionVersion) {
|
|
56
|
+
versionEl.textContent = `v${extensionVersion}`;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
applyPanelVersionLabel();
|
package/docs/development.ja.md
CHANGED
|
@@ -25,6 +25,73 @@ python3 -m pip install -e ".[dev]"
|
|
|
25
25
|
PYTHONPATH=src pytest
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
## ZXPビルドと公開手順
|
|
29
|
+
|
|
30
|
+
`0.2.6` 以降は `package.json` の `version` を正として、`npm version` 実行時に `CSXS/manifest.xml` へ自動同期します。
|
|
31
|
+
|
|
32
|
+
### 1) バージョン更新
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm version 0.2.7 --no-git-tag-version
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 2) 署名付き ZXP ビルド
|
|
39
|
+
|
|
40
|
+
前提:
|
|
41
|
+
- `ZXPSignCmd` が `PATH` 上にある、または `ZXPSIGNCMD_BIN` で実体パスを指定できる
|
|
42
|
+
- 署名証明書 (`.p12`) とパスワードを用意済み
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
SIGN_CERT_P12=certs/dev-cert.p12 \
|
|
46
|
+
SIGN_CERT_PASSWORD='your-password' \
|
|
47
|
+
./scripts/signing/build-zxp.sh
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
必要なら `ZXPSIGNCMD_BIN` を指定:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
ZXPSIGNCMD_BIN=/absolute/path/to/ZXPSignCmd \
|
|
54
|
+
SIGN_CERT_P12=certs/dev-cert.p12 \
|
|
55
|
+
SIGN_CERT_PASSWORD='your-password' \
|
|
56
|
+
./scripts/signing/build-zxp.sh
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
出力先:
|
|
60
|
+
- `dist/ae-agent-skill-<version>.zxp`
|
|
61
|
+
|
|
62
|
+
### 3) コミット・タグ・push
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
git add package.json CSXS/manifest.xml
|
|
66
|
+
git commit -m "release: v0.2.7"
|
|
67
|
+
git tag v0.2.7
|
|
68
|
+
git push origin HEAD
|
|
69
|
+
git push origin v0.2.7
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### 4) npm 公開
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
npm publish
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### 5) GitHub Release 作成(ZXP添付)
|
|
79
|
+
|
|
80
|
+
`npx ae-agent-skills install` は latest release の `.zxp` を参照するため、Release に ZXP を添付します。
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
gh release create v0.2.7 dist/ae-agent-skill-0.2.7.zxp \
|
|
84
|
+
--title v0.2.7 \
|
|
85
|
+
--notes "Release notes"
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 6) 公開後確認
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
npm view ae-agent-skills version dist-tags.latest --json
|
|
92
|
+
gh release view --repo yumehiko/ae-agent-skills --json tagName,assets
|
|
93
|
+
```
|
|
94
|
+
|
|
28
95
|
## プロジェクト構成
|
|
29
96
|
|
|
30
97
|
### Python CLI
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ae-agent-skills",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "One-command installer for the ae-agent-skill After Effects extension and CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"ae-agent-skills": "bin/ae-agent-setup.mjs",
|
|
8
8
|
"ae-agent-setup": "bin/ae-agent-setup.mjs"
|
|
9
9
|
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"sync:version": "node scripts/release/sync-version.mjs",
|
|
12
|
+
"version": "npm run sync:version"
|
|
13
|
+
},
|
|
10
14
|
"files": [
|
|
11
15
|
"bin",
|
|
12
16
|
"templates",
|