@taptap/maker 0.0.2 → 0.0.4
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 +1 -1
- package/dist/maker.js +15 -11
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/maker.js
CHANGED
|
@@ -29552,7 +29552,7 @@ async function cloneMakerProject(options) {
|
|
|
29552
29552
|
};
|
|
29553
29553
|
}
|
|
29554
29554
|
async function pushMakerProject(options) {
|
|
29555
|
-
var _a3, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
29555
|
+
var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
29556
29556
|
ensureGitAvailable();
|
|
29557
29557
|
(_a3 = options.onProgress) == null ? void 0 : _a3.call(options, {
|
|
29558
29558
|
progress: 0,
|
|
@@ -29621,10 +29621,13 @@ async function pushMakerProject(options) {
|
|
|
29621
29621
|
message: "Staging all local changes"
|
|
29622
29622
|
});
|
|
29623
29623
|
await runGit(["add", "-A"], { cwd });
|
|
29624
|
-
|
|
29624
|
+
}
|
|
29625
|
+
if (statusBefore.trim() || options.allowEmpty) {
|
|
29626
|
+
const selectedFiles = ((_g = options.files) == null ? void 0 : _g.length) ? ["--", ...options.files] : [];
|
|
29627
|
+
const staged = await readGit(["diff", "--cached", "--name-only", ...selectedFiles], cwd);
|
|
29625
29628
|
message = options.message || generateCommitMessage(statusBefore);
|
|
29626
29629
|
if (staged.trim() || options.allowEmpty) {
|
|
29627
|
-
(
|
|
29630
|
+
(_h = options.onProgress) == null ? void 0 : _h.call(options, {
|
|
29628
29631
|
progress: 45,
|
|
29629
29632
|
total: 100,
|
|
29630
29633
|
phase: "commit",
|
|
@@ -29639,7 +29642,8 @@ async function pushMakerProject(options) {
|
|
|
29639
29642
|
"commit",
|
|
29640
29643
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
29641
29644
|
"-m",
|
|
29642
|
-
message
|
|
29645
|
+
message,
|
|
29646
|
+
...selectedFiles
|
|
29643
29647
|
],
|
|
29644
29648
|
{ cwd }
|
|
29645
29649
|
);
|
|
@@ -29648,7 +29652,7 @@ async function pushMakerProject(options) {
|
|
|
29648
29652
|
}
|
|
29649
29653
|
}
|
|
29650
29654
|
try {
|
|
29651
|
-
(
|
|
29655
|
+
(_i = options.onProgress) == null ? void 0 : _i.call(options, {
|
|
29652
29656
|
progress: 65,
|
|
29653
29657
|
total: 100,
|
|
29654
29658
|
phase: "push",
|
|
@@ -29673,7 +29677,7 @@ async function pushMakerProject(options) {
|
|
|
29673
29677
|
transientRetries
|
|
29674
29678
|
};
|
|
29675
29679
|
}
|
|
29676
|
-
(
|
|
29680
|
+
(_j = options.onProgress) == null ? void 0 : _j.call(options, {
|
|
29677
29681
|
progress: 100,
|
|
29678
29682
|
total: 100,
|
|
29679
29683
|
phase: "done",
|
|
@@ -30844,7 +30848,7 @@ import fs6 from "node:fs";
|
|
|
30844
30848
|
import path7 from "node:path";
|
|
30845
30849
|
var DEFAULT_RUNTIME_LOG_SINCE_SECONDS = 600;
|
|
30846
30850
|
var MAX_RUNTIME_LOG_WINDOW_SECONDS = 3600;
|
|
30847
|
-
var DEFAULT_RUNTIME_LOG_TOPICS = ["user_script", "server_user_script"];
|
|
30851
|
+
var DEFAULT_RUNTIME_LOG_TOPICS = ["engine", "user_script", "server_user_script"];
|
|
30848
30852
|
var MERGED_RUNTIME_LOG_FILE = "runtime.log";
|
|
30849
30853
|
var RUNTIME_LOG_FILES_TO_RESET = [
|
|
30850
30854
|
MERGED_RUNTIME_LOG_FILE,
|
|
@@ -31213,7 +31217,7 @@ function compactRuntimeLogEntry(entry) {
|
|
|
31213
31217
|
}
|
|
31214
31218
|
|
|
31215
31219
|
// src/maker/server/mcp.ts
|
|
31216
|
-
var VERSION = true ? "0.0.
|
|
31220
|
+
var VERSION = true ? "0.0.4" : "dev";
|
|
31217
31221
|
var DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1e3;
|
|
31218
31222
|
var PREVIEW_REFRESH_TIMEOUT_MS = 15 * 1e3;
|
|
31219
31223
|
var WATCHER_STOP_TIMEOUT_MS = 1500;
|
|
@@ -31296,7 +31300,7 @@ var tools = [
|
|
|
31296
31300
|
files: {
|
|
31297
31301
|
type: "array",
|
|
31298
31302
|
items: { type: "string" },
|
|
31299
|
-
description: "Optional files to stage before build. Defaults to all local changes."
|
|
31303
|
+
description: "Optional files to stage and commit before build. Defaults to all local changes."
|
|
31300
31304
|
},
|
|
31301
31305
|
confirm_remote_build_without_submit: {
|
|
31302
31306
|
type: "boolean",
|
|
@@ -31307,7 +31311,7 @@ var tools = [
|
|
|
31307
31311
|
},
|
|
31308
31312
|
{
|
|
31309
31313
|
name: "maker_pull_runtime_logs",
|
|
31310
|
-
description: "Pull Maker
|
|
31314
|
+
description: "Pull Maker runtime logs once from the remote Maker MCP query_runtime_logs tool and write engine/user_script/server_user_script logs to .maker/logs/runtime/runtime.log. This is a one-shot fixed business flow for AI diagnostics; it does not start a watcher, does not keep a long-running MCP call open, and does not clear local logs.",
|
|
31311
31315
|
inputSchema: {
|
|
31312
31316
|
type: "object",
|
|
31313
31317
|
properties: {
|
|
@@ -33191,7 +33195,7 @@ async function runLogsWatch(parsed, ctx) {
|
|
|
33191
33195
|
...replacedWatcher,
|
|
33192
33196
|
reset: booleanOption(parsed, "reset"),
|
|
33193
33197
|
interval_ms: intervalMs,
|
|
33194
|
-
topics: ["user_script", "server_user_script"]
|
|
33198
|
+
topics: ["engine", "user_script", "server_user_script"]
|
|
33195
33199
|
});
|
|
33196
33200
|
try {
|
|
33197
33201
|
const result = await watchRuntimeLogs({
|