@taptap/maker 0.0.1 → 0.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 +1 -1
- package/dist/maker.js +27 -9
- 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",
|
|
@@ -31212,7 +31213,7 @@ function compactRuntimeLogEntry(entry) {
|
|
|
31212
31213
|
}
|
|
31213
31214
|
|
|
31214
31215
|
// src/maker/server/mcp.ts
|
|
31215
|
-
var VERSION = true ? "0.0.
|
|
31216
|
+
var VERSION = true ? "0.0.2" : "dev";
|
|
31216
31217
|
var DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1e3;
|
|
31217
31218
|
var PREVIEW_REFRESH_TIMEOUT_MS = 15 * 1e3;
|
|
31218
31219
|
var WATCHER_STOP_TIMEOUT_MS = 1500;
|
|
@@ -32913,7 +32914,6 @@ async function runInit(parsed, ctx) {
|
|
|
32913
32914
|
env,
|
|
32914
32915
|
selected_app_id: selected.id
|
|
32915
32916
|
});
|
|
32916
|
-
await prepareDevKit(targetDir, ctx);
|
|
32917
32917
|
const cloneResult = await cloneMakerProject({
|
|
32918
32918
|
appId: selected.id,
|
|
32919
32919
|
targetDir,
|
|
@@ -32925,6 +32925,10 @@ async function runInit(parsed, ctx) {
|
|
|
32925
32925
|
throw appendPatRecoveryUrl(error2, parsed);
|
|
32926
32926
|
});
|
|
32927
32927
|
emit(ctx, "clone", "Maker project cloned or fetched", cloneResult);
|
|
32928
|
+
await prepareDevKit(targetDir, ctx, {
|
|
32929
|
+
finalizeGitignore: true,
|
|
32930
|
+
forceInstall: true
|
|
32931
|
+
});
|
|
32928
32932
|
if (!skipMcpInstall) {
|
|
32929
32933
|
const ides = parseIdeList(stringOption(parsed, "register_mcp") || "codex,cursor,claude");
|
|
32930
32934
|
const installResults = installMcpConfigs({
|
|
@@ -33341,17 +33345,20 @@ async function resolveProjectSelection(parsed, projects, options) {
|
|
|
33341
33345
|
return selected;
|
|
33342
33346
|
}
|
|
33343
33347
|
}
|
|
33344
|
-
async function prepareDevKit(targetDir, ctx) {
|
|
33348
|
+
async function prepareDevKit(targetDir, ctx, options = {}) {
|
|
33345
33349
|
const before = inspectAiDevKit(targetDir);
|
|
33346
|
-
if (before.ready) {
|
|
33347
|
-
writeDevKitStagedGitignore(
|
|
33348
|
-
path9.join(targetDir, DEV_KIT_GITIGNORE_STAGING_FILE),
|
|
33349
|
-
listPresentDevKitManagedEntries(targetDir)
|
|
33350
|
-
);
|
|
33350
|
+
if (before.ready && !options.forceInstall) {
|
|
33351
33351
|
try {
|
|
33352
33352
|
const skillInstaller = installAiDevKitSkills(targetDir, {
|
|
33353
33353
|
onStart: (event) => emitSkillInstallerStart(ctx, event)
|
|
33354
33354
|
});
|
|
33355
|
+
writeDevKitStagedGitignore(
|
|
33356
|
+
path9.join(targetDir, DEV_KIT_GITIGNORE_STAGING_FILE),
|
|
33357
|
+
listPresentDevKitManagedEntries(targetDir)
|
|
33358
|
+
);
|
|
33359
|
+
if (options.finalizeGitignore) {
|
|
33360
|
+
finalizeStagedDevKitGitignore(targetDir);
|
|
33361
|
+
}
|
|
33355
33362
|
emit(
|
|
33356
33363
|
ctx,
|
|
33357
33364
|
"dev_kit",
|
|
@@ -33362,6 +33369,13 @@ async function prepareDevKit(targetDir, ctx) {
|
|
|
33362
33369
|
}
|
|
33363
33370
|
);
|
|
33364
33371
|
} catch (error2) {
|
|
33372
|
+
writeDevKitStagedGitignore(
|
|
33373
|
+
path9.join(targetDir, DEV_KIT_GITIGNORE_STAGING_FILE),
|
|
33374
|
+
listPresentDevKitManagedEntries(targetDir)
|
|
33375
|
+
);
|
|
33376
|
+
if (options.finalizeGitignore) {
|
|
33377
|
+
finalizeStagedDevKitGitignore(targetDir);
|
|
33378
|
+
}
|
|
33365
33379
|
const detail = error2 instanceof Error ? error2.message : String(error2);
|
|
33366
33380
|
emit(ctx, "dev_kit_warning", `AI skills install failed; clone will continue
|
|
33367
33381
|
${detail}`, {
|
|
@@ -33373,8 +33387,12 @@ ${detail}`, {
|
|
|
33373
33387
|
try {
|
|
33374
33388
|
const result = await installAiDevKit({
|
|
33375
33389
|
targetDir,
|
|
33390
|
+
preserveExisting: options.preserveExisting,
|
|
33376
33391
|
onSkillInstallerStart: (event) => emitSkillInstallerStart(ctx, event)
|
|
33377
33392
|
});
|
|
33393
|
+
if (options.finalizeGitignore) {
|
|
33394
|
+
finalizeStagedDevKitGitignore(targetDir);
|
|
33395
|
+
}
|
|
33378
33396
|
emit(ctx, "dev_kit", formatDevKitInstallMessage("AI dev kit prepared", result), result);
|
|
33379
33397
|
emitDevKitSkillInstallerFailure(
|
|
33380
33398
|
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
|