Import original MIT source package

This commit is contained in:
Pilot Maintainer committed 2026-10-06 17:24:58 +08:00
commit e708750d32
13 files changed
+191

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
motiongit.key.json
.env*
node_modules/
output/
*.mp4
*.wav
*.srt
+7
View File
@@ -0,0 +1,7 @@
# collaboration-pilot-3
MIT 技术验收样例;无第三方素材。
## 给 AI 的说明
读取 motion.json、guide.json、参数和许可。按 html-canvas/1 调用 renderFrame(frame, inputs),30fps、4 秒。源码检查不执行渲染代码。
+3
View File
@@ -0,0 +1,3 @@
# 源码协作样例
先读取元数据与许可,确认标题后制作。
+4
View File
@@ -0,0 +1,4 @@
{
"assets": [],
"fonts": []
}
+37
View File
@@ -0,0 +1,37 @@
{
"guideVersion": "0.1",
"fit": {
"summary": "源码协作技术样例",
"goodFor": [
"技术验收"
],
"notFor": [
"正式模板交付"
],
"placement": "opening"
},
"duration": {
"policy": "fixed",
"min": 4,
"max": 4,
"default": 4
},
"materials": [],
"copy": [
{
"param": "title",
"label": "标题",
"from": [
"conversation",
"text.script"
],
"rule": "用户确认的标题"
}
],
"conversation": [
"确认标题"
],
"hostWithoutTools": [
"提供参数文件"
]
}
+16
View File
@@ -0,0 +1,16 @@
{
"algorithm": "sha256",
"files": {
"asset-manifest.json": "ff873c47995b714095589ccd31f6130208ab3dd277f30ebf6927c833745c8c91",
"guide.json": "70b2e4173faebcc8bc55450d19c605faee8ddd820c6bb9a7f1af71003dddcc99",
"licenses/TEMPLATE-LICENSE.txt": "8881ef9bfbb1b6eab92a957272ca12b7dfe5b76c751513840c94d9a9842a8d70",
"motion.json": "0acd0111d240c51e5dd0688c7092cb8eea155830845f56fe335dcae481846310",
"motion.lock.json": "80bc374bc5843d0ffd2a7d318bafe959f251fd5e9a0a2d41abcdd19110bbc297",
"params.schema.json": "6b75e6f0997ed4eff3e51ae1bdac7cdd6c203dd43d48b8714f538b0598f8aa03",
"presets/demo.json": "1cf565bfa0a901417aa216b20b6fdf407d54dfb8d4b08e194d1c664e8e680ab2",
"README.md": "c7ddf76b475443e94471a8d8e429bce250265ee04197b1e93442c5f6cd0a5d0f",
"SKILL.md": "3aef56ec80d5a3ca39108f98b4220ef668bb924d44cf0fd848207c8ae2281a1b",
"src/index.html": "b51124c47f1c8b0ceb01995a0a88e00b3c5618127f136dbed6d403b819dce214",
"src/main.js": "d36a499df49b7f1752a2ea39cb2e29100b30fd164adb548f5e4576e6c0c534ff"
}
}
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 MotionGit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+60
View File
@@ -0,0 +1,60 @@
{
"$schema": "https://motiongit.com/schema/motion/0.1.json",
"format": "motiongit-template",
"specVersion": "0.1.0-draft.1",
"template": {
"id": "collaboration-pilot-3",
"name": "源码协作试点 3",
"version": "1.0.0",
"status": "draft"
},
"runtime": {
"profile": "html-canvas/1",
"engine": "motiongit-pilot",
"engineVersion": "0.1.0",
"entry": "src/index.html",
"dependencyLock": "motion.lock.json"
},
"parameters": {
"schema": "params.schema.json",
"defaultPreset": "presets/demo.json"
},
"assets": {
"manifest": "asset-manifest.json"
},
"output": {
"width": 1920,
"height": 1080,
"fps": {
"num": 30,
"den": 1
},
"durationPolicy": "fixed"
},
"preview": {
"preset": "presets/demo.json"
},
"license": {
"file": "licenses/TEMPLATE-LICENSE.txt"
},
"permissions": {
"network": false,
"read": [
"package",
"instance-inputs"
],
"write": [
"instance-output"
]
},
"ai": {
"summary": "新建的 MIT 技术验收样例,仅验证源码协作与发布链。",
"entry": "SKILL.md",
"guide": "guide.json",
"authoring": {
"tool": "codex",
"client": "codex"
}
},
"integrity": "integrity.json"
}
+5
View File
@@ -0,0 +1,5 @@
{
"runtime": "html-canvas/1",
"dependencies": {},
"tested": []
}
+14
View File
@@ -0,0 +1,14 @@
{
"type": "object",
"additionalProperties": false,
"required": [
"title"
],
"properties": {
"title": {
"type": "string",
"maxLength": 40,
"default": "MotionGit 3"
}
}
}
+3
View File
@@ -0,0 +1,3 @@
{
"title": "MotionGit 3"
}
+1
View File
@@ -0,0 +1 @@
<!doctype html><html><head><meta charset="utf-8"><title>MotionGit pilot</title></head><body><canvas id="scene" width="1920" height="1080"></canvas><script src="main.js"></script></body></html>
+13
View File
@@ -0,0 +1,13 @@
// Newly authored MotionGit collaboration fixture 3. MIT.
const surface = document.querySelector('#scene');
const paint = surface.getContext('2d');
window.renderFrame = (frame, inputs) => {
paint.fillStyle = '#102030';
paint.fillRect(0, 0, surface.width, surface.height);
paint.fillStyle = '#79c0ff';
const progress = Math.max(0, Math.min(1, frame / 30));
paint.fillRect(80, 100, (surface.width - 160) * progress, 32);
paint.fillStyle = '#ffffff';
paint.font = '48px sans-serif';
paint.fillText(inputs.title, 80, 230);
};