Import original MIT source package
This commit is contained in:
commit
f288aeed2c
13 files changed
+191
No files matched your search
@@ -0,0 +1,7 @@
|
||||
motiongit.key.json
|
||||
.env*
|
||||
node_modules/
|
||||
output/
|
||||
*.mp4
|
||||
*.wav
|
||||
*.srt
|
||||
@@ -0,0 +1,7 @@
|
||||
# collaboration-pilot-4
|
||||
|
||||
MIT 技术验收样例;无第三方素材。
|
||||
|
||||
## 给 AI 的说明
|
||||
|
||||
读取 motion.json、guide.json、参数和许可。按 html-canvas/1 调用 renderFrame(frame, inputs),30fps、4 秒。源码检查不执行渲染代码。
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"assets": [],
|
||||
"fonts": []
|
||||
}
|
||||
+37
@@ -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": [
|
||||
"提供参数文件"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"algorithm": "sha256",
|
||||
"files": {
|
||||
"asset-manifest.json": "ff873c47995b714095589ccd31f6130208ab3dd277f30ebf6927c833745c8c91",
|
||||
"guide.json": "70b2e4173faebcc8bc55450d19c605faee8ddd820c6bb9a7f1af71003dddcc99",
|
||||
"licenses/TEMPLATE-LICENSE.txt": "8881ef9bfbb1b6eab92a957272ca12b7dfe5b76c751513840c94d9a9842a8d70",
|
||||
"motion.json": "5871757e394473c9a333f3b6844968616334222bcecd5eb1c1aa51b3c125f3d2",
|
||||
"motion.lock.json": "80bc374bc5843d0ffd2a7d318bafe959f251fd5e9a0a2d41abcdd19110bbc297",
|
||||
"params.schema.json": "6181c540191973d6b6db3aafe072d2575b942165ccda3db121e56b7185fee223",
|
||||
"presets/demo.json": "3cfcee13537d0237ff83c651d4d487c270cf3c94ff5bc51e5c1d531f62d3e953",
|
||||
"README.md": "6f46e5ffc580abe5f011d49d66a59070978628f789790c30e510da59444065ee",
|
||||
"SKILL.md": "3aef56ec80d5a3ca39108f98b4220ef668bb924d44cf0fd848207c8ae2281a1b",
|
||||
"src/index.html": "b046d361bc240156056a12ebc34ef3c59bd595a29294ea8c8d15adab45422b11",
|
||||
"src/main.js": "5d797ace1a4d654f54a86d84f181e7c546e72fd2b4a2c092b2b72b08a40d55e4"
|
||||
}
|
||||
}
|
||||
@@ -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
@@ -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-4",
|
||||
"name": "源码协作试点 4",
|
||||
"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": 1080,
|
||||
"height": 1920,
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"runtime": "html-canvas/1",
|
||||
"dependencies": {},
|
||||
"tested": []
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"title"
|
||||
],
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"maxLength": 40,
|
||||
"default": "MotionGit 4"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"title": "MotionGit 4"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<!doctype html><html><head><meta charset="utf-8"><title>MotionGit pilot</title></head><body><canvas id="scene" width="1080" height="1920"></canvas><script src="main.js"></script></body></html>
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// Newly authored MotionGit collaboration fixture 4. 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, 36);
|
||||
paint.fillStyle = '#ffffff';
|
||||
paint.font = '48px sans-serif';
|
||||
paint.fillText(inputs.title, 80, 230);
|
||||
};
|
||||
Reference in new issue
Block a user