momo-ai 1.0.0 → 1.0.2
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/README.md +117 -0
- package/package.json +1 -1
- package/src/_template/LAIN/.momo/advanced/actor.md +42 -0
- package/src/_template/LAIN/.momo/scripts/submodule-clean.sh +56 -0
- package/src/_template/LAIN/AGENTS.md +103 -0
- package/src/_template/LAIN/changes/proposal.md +39 -0
- package/src/_template/LAIN/changes/tasks/task-detail.md +45 -0
- package/src/_template/LAIN/changes/tasks.md +49 -0
- package/src/_template/LAIN/execute/admin-n-f-dashboard.md +53 -0
- package/src/_template/LAIN/execute/admin-n-f-form.md +51 -0
- package/src/_template/LAIN/execute/admin-n-f-home.md +49 -0
- package/src/_template/LAIN/execute/admin-n-f-list.md +52 -0
- package/src/_template/LAIN/execute/admin-n-f-login.md +56 -0
- package/src/_template/LAIN/specification/project-model.md +13 -0
- package/src/_template/LAIN/specification/project.md +73 -0
- package/src/_template/LAIN/specification/requirement.md +25 -0
- package/src/_template/PROMPT/add.md.ejs +5 -0
- package/src/_template/PROMPT/plan.md.ejs +5 -0
- package/src/_template/PROMPT/run.md.ejs +9 -0
- package/src/_template/PROMPT/tasks.md.ejs +5 -0
- package/src/commander/actor.json +12 -0
- package/src/commander/actors.json +6 -0
- package/src/commander/add.json +12 -0
- package/src/commander/archive.json +12 -0
- package/src/commander/env.json +7 -0
- package/src/commander/help.json +7 -0
- package/src/commander/init.json +13 -0
- package/src/commander/list.json +7 -0
- package/src/commander/open.json +7 -0
- package/src/commander/plan.json +12 -0
- package/src/commander/repo.json +18 -0
- package/src/commander/run.json +18 -0
- package/src/commander/show.json +12 -0
- package/src/commander/tasks.json +18 -0
- package/src/commander/unlock.json +6 -0
- package/src/commander/validate.json +12 -0
- package/src/epic/history/ai.economy.impl.fn.excel.js +148 -0
- package/src/epic/history/ai.economy.impl.fn.execute.js +117 -0
- package/src/epic/history/ai.economy.impl.fn.java.js +140 -0
- package/src/epic/history/ai.economy.impl.fn.json.js +23 -0
- package/src/epic/history/ai.economy.impl.fn.plugin.js +160 -0
- package/src/epic/history/ai.economy.impl.fn.react.js +219 -0
- package/src/epic/history/ai.export.impl.fn.parse.js +345 -0
- package/src/epic/history/ai.export.impl.fn.seek.js +42 -0
- package/src/epic/history/ai.export.interface.fn.string.js +5 -0
- package/src/epic/history/ai.export.interface.io.js +69 -0
- package/src/epic/history/ai.export.interface.util.js +17 -0
- package/src/epic/history/ai.parse.metadata.js +94 -0
- package/src/epic/history/ai.path.fn.dir.operation.js +87 -0
- package/src/epic/history/ai.path.fn.io.command.js +43 -0
- package/src/epic/history/ai.path.fn.io.specification.js +59 -0
- package/src/epic/history/ai.path.fn.io.typed.js +63 -0
- package/src/epic/history/ai.path.fn.out.content.js +47 -0
- package/src/epic/history/ai.string.fn.str.util.js +63 -0
- package/src/epic/history/ai.uncork.fn.element.feature.js +52 -0
- package/src/epic/history/ai.uncork.fn.it.feature.js +118 -0
- package/src/epic/history/ai.uncork.fn.to.typed.js +74 -0
- package/src/epic/history/ai.under.fn.cx.evaluate.js +81 -0
- package/src/epic/history/ai.under.fn.fx.terminal.js +143 -0
- package/src/epic/history/ai.unified.fn.fn.error.code.js +108 -0
- package/src/epic/history/ai.unified.fn.is.decision.js +20 -0
- package/src/epic/history/ai.unified.fn.sorter.element.js +26 -0
- package/src/epic/history/zero.__.fn.find.util.js +37 -0
- package/src/epic/history/zero.__.v.constant.js +5 -0
- package/src/epic/index.js +50 -0
- package/src/epic/lain.fn.execute.js +116 -0
- package/src/epic/lain.fn.parse.js +94 -0
- package/src/epic/momo.fn.cx.js +81 -0
- package/src/epic/momo.fn.dir.js +87 -0
- package/src/epic/momo.fn.element.js +52 -0
- package/src/epic/momo.fn.find.js +37 -0
- package/src/epic/momo.fn.fx.js +143 -0
- package/src/epic/momo.fn.io.js +157 -0
- package/src/epic/momo.fn.is.js +20 -0
- package/src/epic/momo.fn.it.js +118 -0
- package/src/epic/momo.fn.log.js +50 -0
- package/src/epic/momo.fn.out.js +47 -0
- package/src/epic/momo.fn.sorter.js +26 -0
- package/src/epic/momo.fn.str.js +63 -0
- package/src/epic/momo.fn.to.js +74 -0
- package/src/epic/momo.v.constant.js +5 -0
- package/src/epic/momo.v.errorcode.js +108 -0
- package/src/executor/executeActor.js +113 -0
- package/src/executor/executeActors.js +58 -0
- package/src/executor/executeAdd.js +248 -0
- package/src/executor/executeArchive.js +124 -0
- package/src/executor/executeEnv.js +158 -0
- package/src/executor/executeHelp.js +23 -0
- package/src/executor/executeInit.js +321 -0
- package/src/executor/executeList.js +111 -0
- package/src/executor/executeOpen.js +150 -0
- package/src/executor/executePlan.js +134 -0
- package/src/executor/executeRepo.js +234 -0
- package/src/executor/executeRun.js +527 -0
- package/src/executor/executeShow.js +164 -0
- package/src/executor/executeTasks.js +323 -0
- package/src/executor/executeUnlock.js +110 -0
- package/src/executor/executeValidate.js +210 -0
- package/src/executor/index.js +35 -0
- package/src/momo.js +39 -1
- package/.idea/copilot.data.migration.agent.xml +0 -6
- package/.idea/copilot.data.migration.ask.xml +0 -6
- package/.idea/copilot.data.migration.ask2agent.xml +0 -6
- package/.idea/copilot.data.migration.edit.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/r2mo-lain.iml +0 -12
- package/.idea/vcs.xml +0 -6
package/src/momo.js
CHANGED
|
@@ -1 +1,39 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const Ec = require('./epic');
|
|
3
|
+
const Executor = require('./executor');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
|
|
7
|
+
// 检查是否是 version 命令模式
|
|
8
|
+
const _isVersionMode = () => {
|
|
9
|
+
const args = process.argv.slice(2);
|
|
10
|
+
return args.includes('version') || args.includes('-v') || args.includes('--version');
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// 获取项目版本号
|
|
14
|
+
const _getVersion = () => {
|
|
15
|
+
try {
|
|
16
|
+
const packagePath = path.resolve(__dirname, '../package.json');
|
|
17
|
+
const packageJson = JSON.parse(fs.readFileSync(packagePath, 'utf8'));
|
|
18
|
+
return packageJson.version || '未知版本';
|
|
19
|
+
} catch (error) {
|
|
20
|
+
return '未知版本';
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// 如果是 version 命令,则只输出版本号并退出
|
|
25
|
+
if (_isVersionMode()) {
|
|
26
|
+
console.log(_getVersion());
|
|
27
|
+
process.exit(0);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// 输出头部
|
|
31
|
+
Ec.executeHeader("Rachel Momo / SDD");
|
|
32
|
+
|
|
33
|
+
// 读取配置文件
|
|
34
|
+
const configArr = Ec.parseMetadata();
|
|
35
|
+
Ec.executeBody(configArr, Executor);
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
// 输出尾部
|
|
39
|
+
Ec.executeEnd();
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/r2mo-lain.iml" filepath="$PROJECT_DIR$/.idea/r2mo-lain.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/r2mo-lain.iml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|