Import original MIT source package
This commit is contained in:
commit
c2661f4474
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-1
|
||||||
|
|
||||||
|
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": "2be0eebb5e496a7689c1aa860dac7f71818cd0a2bf413a5e440b9607a70557cc",
|
||||||
|
"motion.lock.json": "80bc374bc5843d0ffd2a7d318bafe959f251fd5e9a0a2d41abcdd19110bbc297",
|
||||||
|
"params.schema.json": "04b38d31f7bca740fbf33bb38d5edb326cbcaf26aeee11014172d10803f14ad0",
|
||||||
|
"presets/demo.json": "471a29db7e08ffa74b92902d9416fad294ae3b42ef939e7354aaa750caa0bd9d",
|
||||||
|
"README.md": "6ceeebb327510ca3e224e3d72e243cba99748f88f4dde8b876ab1e3904d9000c",
|
||||||
|
"SKILL.md": "3aef56ec80d5a3ca39108f98b4220ef668bb924d44cf0fd848207c8ae2281a1b",
|
||||||
|
"src/index.html": "b51124c47f1c8b0ceb01995a0a88e00b3c5618127f136dbed6d403b819dce214",
|
||||||
|
"src/main.js": "a0b55a5c74b14e2e89d53fbd75657e32ef183320ccaf9345a72e16732ca84aad"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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-1",
|
||||||
|
"name": "源码协作试点 1",
|
||||||
|
"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"
|
||||||
|
}
|
||||||
@@ -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 1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"title": "MotionGit 1"
|
||||||
|
}
|
||||||
@@ -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
@@ -0,0 +1,13 @@
|
|||||||
|
// Newly authored MotionGit collaboration fixture 1. 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, 24);
|
||||||
|
paint.fillStyle = '#ffffff';
|
||||||
|
paint.font = '48px sans-serif';
|
||||||
|
paint.fillText(inputs.title, 80, 230);
|
||||||
|
};
|
||||||
Reference in new issue
Block a user