@taptap/maker 0.0.1-beta.1 → 0.0.1-beta.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 +1 -1
- package/dist/maker.js +41 -19
- package/package.json +1 -1
- package/skills/taptap-maker-local/SKILL.md +18 -14
package/README.md
CHANGED
package/dist/maker.js
CHANGED
|
@@ -28891,7 +28891,7 @@ var DEV_KIT_IGNORE_BEGIN = "# >>> TapTap Maker AI dev kit (local only) >>>";
|
|
|
28891
28891
|
var DEV_KIT_IGNORE_END = "# <<< TapTap Maker AI dev kit (local only) <<<";
|
|
28892
28892
|
var DEV_KIT_GITIGNORE_STAGING_FILE = ".gitignore.dev-kit-before-clone";
|
|
28893
28893
|
var DEV_KIT_REQUIRED_ENTRIES = ["CLAUDE.md", "examples", "templates", "urhox-libs"];
|
|
28894
|
-
var ALWAYS_IGNORED_LOCAL_ENTRIES = [".DS_Store", ".maker"];
|
|
28894
|
+
var ALWAYS_IGNORED_LOCAL_ENTRIES = [".DS_Store", ".maker", ".installer"];
|
|
28895
28895
|
var DEV_KIT_MANAGED_ENTRY_CANDIDATES = [
|
|
28896
28896
|
".claude",
|
|
28897
28897
|
".cli",
|
|
@@ -28899,6 +28899,7 @@ var DEV_KIT_MANAGED_ENTRY_CANDIDATES = [
|
|
|
28899
28899
|
".cursor",
|
|
28900
28900
|
".emmylua",
|
|
28901
28901
|
".gemini",
|
|
28902
|
+
".installer",
|
|
28902
28903
|
"AGENTS.md",
|
|
28903
28904
|
"CLAUDE.md",
|
|
28904
28905
|
"engine-docs",
|
|
@@ -29551,7 +29552,7 @@ async function cloneMakerProject(options) {
|
|
|
29551
29552
|
};
|
|
29552
29553
|
}
|
|
29553
29554
|
async function pushMakerProject(options) {
|
|
29554
|
-
var _a3, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
29555
|
+
var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
29555
29556
|
ensureGitAvailable();
|
|
29556
29557
|
(_a3 = options.onProgress) == null ? void 0 : _a3.call(options, {
|
|
29557
29558
|
progress: 0,
|
|
@@ -29620,10 +29621,13 @@ async function pushMakerProject(options) {
|
|
|
29620
29621
|
message: "Staging all local changes"
|
|
29621
29622
|
});
|
|
29622
29623
|
await runGit(["add", "-A"], { cwd });
|
|
29623
|
-
|
|
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);
|
|
29624
29628
|
message = options.message || generateCommitMessage(statusBefore);
|
|
29625
29629
|
if (staged.trim() || options.allowEmpty) {
|
|
29626
|
-
(
|
|
29630
|
+
(_h = options.onProgress) == null ? void 0 : _h.call(options, {
|
|
29627
29631
|
progress: 45,
|
|
29628
29632
|
total: 100,
|
|
29629
29633
|
phase: "commit",
|
|
@@ -29638,7 +29642,8 @@ async function pushMakerProject(options) {
|
|
|
29638
29642
|
"commit",
|
|
29639
29643
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
29640
29644
|
"-m",
|
|
29641
|
-
message
|
|
29645
|
+
message,
|
|
29646
|
+
...selectedFiles
|
|
29642
29647
|
],
|
|
29643
29648
|
{ cwd }
|
|
29644
29649
|
);
|
|
@@ -29647,7 +29652,7 @@ async function pushMakerProject(options) {
|
|
|
29647
29652
|
}
|
|
29648
29653
|
}
|
|
29649
29654
|
try {
|
|
29650
|
-
(
|
|
29655
|
+
(_i = options.onProgress) == null ? void 0 : _i.call(options, {
|
|
29651
29656
|
progress: 65,
|
|
29652
29657
|
total: 100,
|
|
29653
29658
|
phase: "push",
|
|
@@ -29672,7 +29677,7 @@ async function pushMakerProject(options) {
|
|
|
29672
29677
|
transientRetries
|
|
29673
29678
|
};
|
|
29674
29679
|
}
|
|
29675
|
-
(
|
|
29680
|
+
(_j = options.onProgress) == null ? void 0 : _j.call(options, {
|
|
29676
29681
|
progress: 100,
|
|
29677
29682
|
total: 100,
|
|
29678
29683
|
phase: "done",
|
|
@@ -30843,7 +30848,7 @@ import fs6 from "node:fs";
|
|
|
30843
30848
|
import path7 from "node:path";
|
|
30844
30849
|
var DEFAULT_RUNTIME_LOG_SINCE_SECONDS = 600;
|
|
30845
30850
|
var MAX_RUNTIME_LOG_WINDOW_SECONDS = 3600;
|
|
30846
|
-
var DEFAULT_RUNTIME_LOG_TOPICS = ["user_script", "server_user_script"];
|
|
30851
|
+
var DEFAULT_RUNTIME_LOG_TOPICS = ["engine", "user_script", "server_user_script"];
|
|
30847
30852
|
var MERGED_RUNTIME_LOG_FILE = "runtime.log";
|
|
30848
30853
|
var RUNTIME_LOG_FILES_TO_RESET = [
|
|
30849
30854
|
MERGED_RUNTIME_LOG_FILE,
|
|
@@ -31212,7 +31217,7 @@ function compactRuntimeLogEntry(entry) {
|
|
|
31212
31217
|
}
|
|
31213
31218
|
|
|
31214
31219
|
// src/maker/server/mcp.ts
|
|
31215
|
-
var VERSION = true ? "0.0.1-beta.
|
|
31220
|
+
var VERSION = true ? "0.0.1-beta.2" : "dev";
|
|
31216
31221
|
var DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1e3;
|
|
31217
31222
|
var PREVIEW_REFRESH_TIMEOUT_MS = 15 * 1e3;
|
|
31218
31223
|
var WATCHER_STOP_TIMEOUT_MS = 1500;
|
|
@@ -31295,7 +31300,7 @@ var tools = [
|
|
|
31295
31300
|
files: {
|
|
31296
31301
|
type: "array",
|
|
31297
31302
|
items: { type: "string" },
|
|
31298
|
-
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."
|
|
31299
31304
|
},
|
|
31300
31305
|
confirm_remote_build_without_submit: {
|
|
31301
31306
|
type: "boolean",
|
|
@@ -31306,7 +31311,7 @@ var tools = [
|
|
|
31306
31311
|
},
|
|
31307
31312
|
{
|
|
31308
31313
|
name: "maker_pull_runtime_logs",
|
|
31309
|
-
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.",
|
|
31310
31315
|
inputSchema: {
|
|
31311
31316
|
type: "object",
|
|
31312
31317
|
properties: {
|
|
@@ -32913,7 +32918,6 @@ async function runInit(parsed, ctx) {
|
|
|
32913
32918
|
env,
|
|
32914
32919
|
selected_app_id: selected.id
|
|
32915
32920
|
});
|
|
32916
|
-
await prepareDevKit(targetDir, ctx);
|
|
32917
32921
|
const cloneResult = await cloneMakerProject({
|
|
32918
32922
|
appId: selected.id,
|
|
32919
32923
|
targetDir,
|
|
@@ -32925,6 +32929,10 @@ async function runInit(parsed, ctx) {
|
|
|
32925
32929
|
throw appendPatRecoveryUrl(error2, parsed);
|
|
32926
32930
|
});
|
|
32927
32931
|
emit(ctx, "clone", "Maker project cloned or fetched", cloneResult);
|
|
32932
|
+
await prepareDevKit(targetDir, ctx, {
|
|
32933
|
+
finalizeGitignore: true,
|
|
32934
|
+
forceInstall: true
|
|
32935
|
+
});
|
|
32928
32936
|
if (!skipMcpInstall) {
|
|
32929
32937
|
const ides = parseIdeList(stringOption(parsed, "register_mcp") || "codex,cursor,claude");
|
|
32930
32938
|
const installResults = installMcpConfigs({
|
|
@@ -33187,7 +33195,7 @@ async function runLogsWatch(parsed, ctx) {
|
|
|
33187
33195
|
...replacedWatcher,
|
|
33188
33196
|
reset: booleanOption(parsed, "reset"),
|
|
33189
33197
|
interval_ms: intervalMs,
|
|
33190
|
-
topics: ["user_script", "server_user_script"]
|
|
33198
|
+
topics: ["engine", "user_script", "server_user_script"]
|
|
33191
33199
|
});
|
|
33192
33200
|
try {
|
|
33193
33201
|
const result = await watchRuntimeLogs({
|
|
@@ -33341,17 +33349,20 @@ async function resolveProjectSelection(parsed, projects, options) {
|
|
|
33341
33349
|
return selected;
|
|
33342
33350
|
}
|
|
33343
33351
|
}
|
|
33344
|
-
async function prepareDevKit(targetDir, ctx) {
|
|
33352
|
+
async function prepareDevKit(targetDir, ctx, options = {}) {
|
|
33345
33353
|
const before = inspectAiDevKit(targetDir);
|
|
33346
|
-
if (before.ready) {
|
|
33347
|
-
writeDevKitStagedGitignore(
|
|
33348
|
-
path9.join(targetDir, DEV_KIT_GITIGNORE_STAGING_FILE),
|
|
33349
|
-
listPresentDevKitManagedEntries(targetDir)
|
|
33350
|
-
);
|
|
33354
|
+
if (before.ready && !options.forceInstall) {
|
|
33351
33355
|
try {
|
|
33352
33356
|
const skillInstaller = installAiDevKitSkills(targetDir, {
|
|
33353
33357
|
onStart: (event) => emitSkillInstallerStart(ctx, event)
|
|
33354
33358
|
});
|
|
33359
|
+
writeDevKitStagedGitignore(
|
|
33360
|
+
path9.join(targetDir, DEV_KIT_GITIGNORE_STAGING_FILE),
|
|
33361
|
+
listPresentDevKitManagedEntries(targetDir)
|
|
33362
|
+
);
|
|
33363
|
+
if (options.finalizeGitignore) {
|
|
33364
|
+
finalizeStagedDevKitGitignore(targetDir);
|
|
33365
|
+
}
|
|
33355
33366
|
emit(
|
|
33356
33367
|
ctx,
|
|
33357
33368
|
"dev_kit",
|
|
@@ -33362,6 +33373,13 @@ async function prepareDevKit(targetDir, ctx) {
|
|
|
33362
33373
|
}
|
|
33363
33374
|
);
|
|
33364
33375
|
} catch (error2) {
|
|
33376
|
+
writeDevKitStagedGitignore(
|
|
33377
|
+
path9.join(targetDir, DEV_KIT_GITIGNORE_STAGING_FILE),
|
|
33378
|
+
listPresentDevKitManagedEntries(targetDir)
|
|
33379
|
+
);
|
|
33380
|
+
if (options.finalizeGitignore) {
|
|
33381
|
+
finalizeStagedDevKitGitignore(targetDir);
|
|
33382
|
+
}
|
|
33365
33383
|
const detail = error2 instanceof Error ? error2.message : String(error2);
|
|
33366
33384
|
emit(ctx, "dev_kit_warning", `AI skills install failed; clone will continue
|
|
33367
33385
|
${detail}`, {
|
|
@@ -33373,8 +33391,12 @@ ${detail}`, {
|
|
|
33373
33391
|
try {
|
|
33374
33392
|
const result = await installAiDevKit({
|
|
33375
33393
|
targetDir,
|
|
33394
|
+
preserveExisting: options.preserveExisting,
|
|
33376
33395
|
onSkillInstallerStart: (event) => emitSkillInstallerStart(ctx, event)
|
|
33377
33396
|
});
|
|
33397
|
+
if (options.finalizeGitignore) {
|
|
33398
|
+
finalizeStagedDevKitGitignore(targetDir);
|
|
33399
|
+
}
|
|
33378
33400
|
emit(ctx, "dev_kit", formatDevKitInstallMessage("AI dev kit prepared", result), result);
|
|
33379
33401
|
emitDevKitSkillInstallerFailure(
|
|
33380
33402
|
ctx,
|
package/package.json
CHANGED
|
@@ -15,8 +15,8 @@ This skill covers:
|
|
|
15
15
|
|
|
16
16
|
- initialize local Maker development
|
|
17
17
|
- run the Maker CLI initialization flow
|
|
18
|
-
- prepare local AI dev kit before project binding
|
|
19
18
|
- clone a Maker project
|
|
19
|
+
- prepare local AI dev kit after project checkout
|
|
20
20
|
- choose a Maker app from the CLI app list
|
|
21
21
|
- explain PAT, Git, project binding, and editor reloads
|
|
22
22
|
- inspect local changes
|
|
@@ -33,7 +33,7 @@ post-build runtime log polling loop belongs to the local Maker CLI watcher.
|
|
|
33
33
|
Keep this split clear:
|
|
34
34
|
|
|
35
35
|
- Skill: user intent, step order, whether to ask the user, friendly explanations, failure recovery.
|
|
36
|
-
- CLI: save PAT, fetch app list, prepare dev kit,
|
|
36
|
+
- CLI: save PAT, fetch app list, clone, prepare dev kit, install MCP config, verify local setup,
|
|
37
37
|
and run the local runtime log watcher.
|
|
38
38
|
- MCP tools/resources: inspect Maker status, run the combined commit/push/build path, and support
|
|
39
39
|
one-shot runtime log pulls.
|
|
@@ -133,8 +133,10 @@ Keep the user-facing explanation short:
|
|
|
133
133
|
|
|
134
134
|
## AI Dev Kit Preparation
|
|
135
135
|
|
|
136
|
-
`taptap-maker init`
|
|
137
|
-
|
|
136
|
+
`taptap-maker init` checks out the Maker project before preparing local development environment
|
|
137
|
+
files in the current working directory. Init reinstalls the dev kit after checkout and allows
|
|
138
|
+
dev-kit files to overwrite same-path local helper files; the managed `.gitignore` block keeps
|
|
139
|
+
those files local-only so they are not submitted to Maker Git.
|
|
138
140
|
|
|
139
141
|
`taptap-maker doctor` and `maker://status` check the dev-kit top-level entries for an already bound
|
|
140
142
|
Maker project. If `CLAUDE.md`, `examples/`, `templates/`, or `urhox-libs/` are missing, run
|
|
@@ -161,18 +163,19 @@ resources to the local AI/Agent:
|
|
|
161
163
|
|
|
162
164
|
The CLI is responsible for deterministic file operations:
|
|
163
165
|
|
|
164
|
-
- extract the ZIP into the current directory
|
|
166
|
+
- extract the ZIP into the current directory after checkout
|
|
165
167
|
- skip the ZIP top-level `scripts` directory because it conflicts with Maker project code
|
|
166
168
|
- delete the downloaded `ai-dev-kit.zip` after extraction
|
|
167
169
|
- write a temporary `.gitignore.dev-kit-before-clone` block for installed dev-kit entries
|
|
168
|
-
- after
|
|
170
|
+
- after dev-kit preparation succeeds, merge that block into the checked-out `.gitignore`
|
|
169
171
|
- keep the dev-kit files local-only so they are not submitted to Maker Git
|
|
170
172
|
|
|
171
173
|
Do not hand-write a custom download/unzip script while this CLI command is available.
|
|
172
174
|
|
|
173
|
-
If
|
|
174
|
-
|
|
175
|
-
the user wants to retry
|
|
175
|
+
If dev-kit network access is unavailable after clone succeeds, explain that the Maker project is
|
|
176
|
+
already checked out, but local AI development docs/API/demo support may be incomplete. Ask whether
|
|
177
|
+
the user wants to retry `taptap-maker init` for a full post-checkout dev-kit reinstall or continue
|
|
178
|
+
without the dev kit.
|
|
176
179
|
|
|
177
180
|
If clone or fetch fails with Maker Git output, inspect the returned error fields instead of asking
|
|
178
181
|
the user to delete local files immediately. Treat `retryable: yes`, `classification:
|
|
@@ -280,12 +283,13 @@ Do not delete, move, or overwrite user files during this check.
|
|
|
280
283
|
|
|
281
284
|
## Clone Directory Safety
|
|
282
285
|
|
|
283
|
-
Before clone, the Maker CLI checks local files and reports conflicts. The
|
|
284
|
-
|
|
286
|
+
Before clone, the Maker CLI checks local files and reports conflicts. The current init flow installs
|
|
287
|
+
the AI dev kit after checkout, so a fresh directory should not get checkout conflicts from newly
|
|
288
|
+
generated dev-kit files. Explain this in non-technical terms:
|
|
285
289
|
|
|
286
290
|
- existing local config folders such as `.claude`, `.mcp`, `.skill`, `.config`, `.ini` are kept
|
|
287
291
|
- normal local files are kept unless they conflict with files from the Maker project
|
|
288
|
-
- if conflicts are reported, tell the user exactly which files block clone and ask whether to move,
|
|
292
|
+
- if conflicts are reported, tell the user exactly which pre-existing files block clone and ask whether to move,
|
|
289
293
|
rename, or choose another directory
|
|
290
294
|
|
|
291
295
|
Do not delete or overwrite user files to make clone work unless the user explicitly asks.
|
|
@@ -306,8 +310,8 @@ directory over manual cleanup.
|
|
|
306
310
|
### `.gitignore` Merge During Clone
|
|
307
311
|
|
|
308
312
|
The Maker CLI stages the dev-kit managed ignore block in
|
|
309
|
-
`.gitignore.dev-kit-before-clone`
|
|
310
|
-
|
|
313
|
+
`.gitignore.dev-kit-before-clone` while preparing the dev kit. After the Maker checkout and dev-kit
|
|
314
|
+
preparation both succeed, the CLI merges that managed block into the checked-out `.gitignore` and
|
|
311
315
|
removes the temporary file.
|
|
312
316
|
|
|
313
317
|
If clone still reports conflicts for files other than `.gitignore.dev-kit-before-clone`, do not
|