@sunasteriskrnd/takumi 1.0.0-dev.57 → 1.0.0-dev.58
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/dist/index.js +131 -52
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -19815,7 +19815,7 @@ var package_default;
|
|
|
19815
19815
|
var init_package = __esm(() => {
|
|
19816
19816
|
package_default = {
|
|
19817
19817
|
name: "@sunasteriskrnd/takumi",
|
|
19818
|
-
version: "1.0.0-dev.
|
|
19818
|
+
version: "1.0.0-dev.58",
|
|
19819
19819
|
description: "CLI tool for bootstrapping and managing Takumi projects",
|
|
19820
19820
|
type: "module",
|
|
19821
19821
|
repository: {
|
|
@@ -19836,6 +19836,7 @@ var init_package = __esm(() => {
|
|
|
19836
19836
|
scripts: {
|
|
19837
19837
|
tkm: "bun scripts/run-cli.ts --",
|
|
19838
19838
|
dev: "bun scripts/run-cli.ts --config src/lib/build-config/dev.json --",
|
|
19839
|
+
stg: "bun scripts/run-cli.ts --config src/lib/build-config/stg.json --",
|
|
19839
19840
|
build: "bun scripts/build-cli.ts",
|
|
19840
19841
|
"build:dev": "bun scripts/build-cli.ts --config src/lib/build-config/dev.json",
|
|
19841
19842
|
compile: "bun scripts/build-cli.ts --compile",
|
|
@@ -20011,7 +20012,7 @@ function getLegacyManifestPath(providerRoot) {
|
|
|
20011
20012
|
return join4(providerRoot, LEGACY_MANIFEST_FILENAME);
|
|
20012
20013
|
}
|
|
20013
20014
|
function getCliVersion() {
|
|
20014
|
-
return "1.0.0-dev.
|
|
20015
|
+
return "1.0.0-dev.58"?.trim() || process.env.npm_package_version?.trim() || "unknown";
|
|
20015
20016
|
}
|
|
20016
20017
|
function getCliUserAgent() {
|
|
20017
20018
|
return `${TAKUMI_CLI_NPM_PACKAGE_NAME}/${getCliVersion()}`;
|
|
@@ -51481,75 +51482,102 @@ var init_auth_command_help = __esm(() => {
|
|
|
51481
51482
|
};
|
|
51482
51483
|
});
|
|
51483
51484
|
|
|
51484
|
-
// src/domains/help/commands/artifact-
|
|
51485
|
-
var
|
|
51486
|
-
var
|
|
51487
|
-
|
|
51488
|
-
name: "artifact",
|
|
51489
|
-
description: "Upload
|
|
51490
|
-
usage: "tkm artifact
|
|
51485
|
+
// src/domains/help/commands/artifact-action-help.ts
|
|
51486
|
+
var artifactUploadHelp, artifactDownloadHelp, artifactDeleteHelp;
|
|
51487
|
+
var init_artifact_action_help = __esm(() => {
|
|
51488
|
+
artifactUploadHelp = {
|
|
51489
|
+
name: "artifact upload",
|
|
51490
|
+
description: "Upload a file or directory as a new artifact (or a new version with --id)",
|
|
51491
|
+
usage: "tkm artifact upload <file|dir> [options]",
|
|
51491
51492
|
examples: [
|
|
51492
51493
|
{
|
|
51493
51494
|
command: "tkm artifact upload ./report.html --title 'Weekly Report'",
|
|
51494
51495
|
description: "Upload a file (or directory) as a new artifact and print its share URL"
|
|
51495
51496
|
},
|
|
51496
51497
|
{
|
|
51497
|
-
command: "tkm artifact
|
|
51498
|
-
description: "
|
|
51499
|
-
},
|
|
51500
|
-
{
|
|
51501
|
-
command: "tkm artifact delete <uuid|url> --ver 2",
|
|
51502
|
-
description: "Delete ONLY version 2 (soft delete; other versions stay). A pasted URL with ?v=2 does the same"
|
|
51498
|
+
command: "tkm artifact upload ./report.html --id <uuid|url> -m 'fix chart colors'",
|
|
51499
|
+
description: "Push a new version of an existing artifact with a change note"
|
|
51503
51500
|
}
|
|
51504
51501
|
],
|
|
51505
51502
|
optionGroups: [
|
|
51506
51503
|
{
|
|
51507
|
-
title: "
|
|
51504
|
+
title: "Options",
|
|
51508
51505
|
options: [
|
|
51509
51506
|
{
|
|
51510
|
-
flags: "
|
|
51511
|
-
description: "
|
|
51507
|
+
flags: "--id <uuid|url>",
|
|
51508
|
+
description: "Existing artifact (UUID or viewer URL) to overwrite with a new version"
|
|
51512
51509
|
},
|
|
51513
51510
|
{
|
|
51514
|
-
flags: "
|
|
51515
|
-
description: "
|
|
51511
|
+
flags: "--title <title>",
|
|
51512
|
+
description: "Display title for the artifact (max 200 chars)"
|
|
51516
51513
|
},
|
|
51517
51514
|
{
|
|
51518
|
-
flags: "
|
|
51519
|
-
description: "
|
|
51515
|
+
flags: "-m, --message <message>",
|
|
51516
|
+
description: "Short note describing this version's change (max 100 chars)"
|
|
51520
51517
|
}
|
|
51521
51518
|
]
|
|
51519
|
+
}
|
|
51520
|
+
]
|
|
51521
|
+
};
|
|
51522
|
+
artifactDownloadHelp = {
|
|
51523
|
+
name: "artifact download",
|
|
51524
|
+
description: "Download an artifact's files (latest version or --ver <n>)",
|
|
51525
|
+
usage: "tkm artifact download <uuid|url> [options]",
|
|
51526
|
+
examples: [
|
|
51527
|
+
{
|
|
51528
|
+
command: "tkm artifact download <uuid|url>",
|
|
51529
|
+
description: "Download the latest version into slug(title) or uuid in CWD"
|
|
51522
51530
|
},
|
|
51531
|
+
{
|
|
51532
|
+
command: "tkm artifact download <uuid|url> -o ./out --ver 3",
|
|
51533
|
+
description: "Download a specific version's files into a directory"
|
|
51534
|
+
}
|
|
51535
|
+
],
|
|
51536
|
+
optionGroups: [
|
|
51523
51537
|
{
|
|
51524
51538
|
title: "Options",
|
|
51525
51539
|
options: [
|
|
51526
|
-
{
|
|
51527
|
-
flags: "--id <uuid|url>",
|
|
51528
|
-
description: "(upload) Existing artifact to overwrite with a new version"
|
|
51529
|
-
},
|
|
51530
|
-
{
|
|
51531
|
-
flags: "--title <title>",
|
|
51532
|
-
description: "(upload) Display title for the artifact (max 200 chars)"
|
|
51533
|
-
},
|
|
51534
|
-
{
|
|
51535
|
-
flags: "-m, --message <message>",
|
|
51536
|
-
description: "(upload) Short note describing this version's change (max 100 chars)"
|
|
51537
|
-
},
|
|
51538
51540
|
{
|
|
51539
51541
|
flags: "-o, --output <dir>",
|
|
51540
|
-
description: "
|
|
51542
|
+
description: "Output directory; default: slug(title) or uuid in CWD"
|
|
51541
51543
|
},
|
|
51542
51544
|
{
|
|
51543
51545
|
flags: "--ver <n>",
|
|
51544
|
-
description: "
|
|
51546
|
+
description: "Version to download. ?v=<n> in a pasted URL works too; --ver wins when both given"
|
|
51545
51547
|
},
|
|
51546
51548
|
{
|
|
51547
51549
|
flags: "--force",
|
|
51548
|
-
description: "
|
|
51550
|
+
description: "Allow writing into a non-empty directory"
|
|
51551
|
+
}
|
|
51552
|
+
]
|
|
51553
|
+
}
|
|
51554
|
+
]
|
|
51555
|
+
};
|
|
51556
|
+
artifactDeleteHelp = {
|
|
51557
|
+
name: "artifact delete",
|
|
51558
|
+
description: "Soft-delete a whole artifact, or a single version with --ver <n>",
|
|
51559
|
+
usage: "tkm artifact delete <uuid|url> [options]",
|
|
51560
|
+
examples: [
|
|
51561
|
+
{
|
|
51562
|
+
command: "tkm artifact delete <uuid|url>",
|
|
51563
|
+
description: "Soft-delete the whole artifact after a confirmation prompt"
|
|
51564
|
+
},
|
|
51565
|
+
{
|
|
51566
|
+
command: "tkm artifact delete <uuid|url> --ver 2",
|
|
51567
|
+
description: "Delete ONLY version 2 (soft delete; other versions stay). A pasted URL with ?v=2 does the same"
|
|
51568
|
+
}
|
|
51569
|
+
],
|
|
51570
|
+
optionGroups: [
|
|
51571
|
+
{
|
|
51572
|
+
title: "Options",
|
|
51573
|
+
options: [
|
|
51574
|
+
{
|
|
51575
|
+
flags: "--ver <n>",
|
|
51576
|
+
description: "Version to delete. ?v=<n> in a pasted URL works too; --ver wins when both given"
|
|
51549
51577
|
},
|
|
51550
51578
|
{
|
|
51551
51579
|
flags: "-y, --yes",
|
|
51552
|
-
description: "
|
|
51580
|
+
description: "Skip the confirmation prompt"
|
|
51553
51581
|
}
|
|
51554
51582
|
]
|
|
51555
51583
|
}
|
|
@@ -51557,6 +51585,57 @@ var init_artifact_command_help = __esm(() => {
|
|
|
51557
51585
|
};
|
|
51558
51586
|
});
|
|
51559
51587
|
|
|
51588
|
+
// src/domains/help/commands/artifact-command-help.ts
|
|
51589
|
+
var artifactCommandHelp;
|
|
51590
|
+
var init_artifact_command_help = __esm(() => {
|
|
51591
|
+
init_artifact_action_help();
|
|
51592
|
+
artifactCommandHelp = {
|
|
51593
|
+
name: "artifact",
|
|
51594
|
+
description: "Upload, download, and delete Takumi artifacts (upload|download|delete)",
|
|
51595
|
+
usage: "tkm artifact <upload|download|delete> [options]",
|
|
51596
|
+
examples: [
|
|
51597
|
+
{
|
|
51598
|
+
command: "tkm artifact upload ./report.html --title 'Weekly Report'",
|
|
51599
|
+
description: "Upload a file (or directory) as a new artifact and print its share URL"
|
|
51600
|
+
},
|
|
51601
|
+
{
|
|
51602
|
+
command: "tkm artifact download <uuid|url> -o ./out --ver 3",
|
|
51603
|
+
description: "Download a specific version's files into a directory"
|
|
51604
|
+
}
|
|
51605
|
+
],
|
|
51606
|
+
optionGroups: [
|
|
51607
|
+
{
|
|
51608
|
+
title: "Actions",
|
|
51609
|
+
options: [
|
|
51610
|
+
{
|
|
51611
|
+
flags: "upload <file|dir>",
|
|
51612
|
+
description: "Upload a file or directory as a new artifact (or new version with --id)"
|
|
51613
|
+
},
|
|
51614
|
+
{
|
|
51615
|
+
flags: "download <uuid|url>",
|
|
51616
|
+
description: "Download an artifact's files (latest or --ver <n>)"
|
|
51617
|
+
},
|
|
51618
|
+
{
|
|
51619
|
+
flags: "delete <uuid|url>",
|
|
51620
|
+
description: "Soft-delete the whole artifact, or one version with --ver <n>"
|
|
51621
|
+
}
|
|
51622
|
+
]
|
|
51623
|
+
}
|
|
51624
|
+
],
|
|
51625
|
+
sections: [
|
|
51626
|
+
{
|
|
51627
|
+
title: "Learn More",
|
|
51628
|
+
content: "Run 'tkm artifact <action> --help' for action-specific options and examples."
|
|
51629
|
+
}
|
|
51630
|
+
],
|
|
51631
|
+
subcommands: {
|
|
51632
|
+
upload: artifactUploadHelp,
|
|
51633
|
+
download: artifactDownloadHelp,
|
|
51634
|
+
delete: artifactDeleteHelp
|
|
51635
|
+
}
|
|
51636
|
+
};
|
|
51637
|
+
});
|
|
51638
|
+
|
|
51560
51639
|
// src/domains/help/commands/mcp-command-help.ts
|
|
51561
51640
|
var mcpCommandHelp;
|
|
51562
51641
|
var init_mcp_command_help = __esm(() => {
|
|
@@ -51634,6 +51713,7 @@ var init_commands2 = __esm(() => {
|
|
|
51634
51713
|
init_config_command_help();
|
|
51635
51714
|
init_auth_command_help();
|
|
51636
51715
|
init_artifact_command_help();
|
|
51716
|
+
init_artifact_action_help();
|
|
51637
51717
|
init_mcp_command_help();
|
|
51638
51718
|
init_common_options();
|
|
51639
51719
|
});
|
|
@@ -51938,6 +52018,7 @@ var init_help_renderer = __esm(() => {
|
|
|
51938
52018
|
// src/domains/help/help-interceptor.ts
|
|
51939
52019
|
var exports_help_interceptor = {};
|
|
51940
52020
|
__export(exports_help_interceptor, {
|
|
52021
|
+
resolveHelpTarget: () => resolveHelpTarget,
|
|
51941
52022
|
isHelpRequested: () => isHelpRequested,
|
|
51942
52023
|
handleHelp: () => handleHelp
|
|
51943
52024
|
});
|
|
@@ -51955,30 +52036,28 @@ function getHelpOptions() {
|
|
|
51955
52036
|
noColor
|
|
51956
52037
|
};
|
|
51957
52038
|
}
|
|
51958
|
-
function
|
|
51959
|
-
const
|
|
51960
|
-
|
|
51961
|
-
|
|
51962
|
-
continue;
|
|
51963
|
-
}
|
|
51964
|
-
if (hasCommand(arg)) {
|
|
51965
|
-
return arg;
|
|
51966
|
-
}
|
|
52039
|
+
function resolveHelpTarget(argv) {
|
|
52040
|
+
const tokens = argv.filter((arg) => !arg.startsWith("-"));
|
|
52041
|
+
const [command, action] = tokens;
|
|
52042
|
+
if (command === undefined || !hasCommand(command)) {
|
|
51967
52043
|
return null;
|
|
51968
52044
|
}
|
|
51969
|
-
|
|
52045
|
+
const help = HELP_REGISTRY[command];
|
|
52046
|
+
if (action !== undefined && help.subcommands?.[action]) {
|
|
52047
|
+
return help.subcommands[action];
|
|
52048
|
+
}
|
|
52049
|
+
return help;
|
|
51970
52050
|
}
|
|
51971
52051
|
async function handleHelp(_args) {
|
|
51972
52052
|
try {
|
|
51973
52053
|
const options2 = getHelpOptions();
|
|
51974
|
-
const
|
|
52054
|
+
const help = resolveHelpTarget(process.argv.slice(2));
|
|
51975
52055
|
let output3;
|
|
51976
|
-
if (
|
|
52056
|
+
if (help === null) {
|
|
51977
52057
|
output3 = renderGlobalHelp(HELP_REGISTRY, options2);
|
|
51978
52058
|
} else {
|
|
51979
|
-
const help = HELP_REGISTRY[command];
|
|
51980
52059
|
output3 = renderHelp(help, {
|
|
51981
|
-
command,
|
|
52060
|
+
command: help.name,
|
|
51982
52061
|
globalHelp: false,
|
|
51983
52062
|
options: options2
|
|
51984
52063
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunasteriskrnd/takumi",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.58",
|
|
4
4
|
"description": "CLI tool for bootstrapping and managing Takumi projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"scripts": {
|
|
22
22
|
"tkm": "bun scripts/run-cli.ts --",
|
|
23
23
|
"dev": "bun scripts/run-cli.ts --config src/lib/build-config/dev.json --",
|
|
24
|
+
"stg": "bun scripts/run-cli.ts --config src/lib/build-config/stg.json --",
|
|
24
25
|
"build": "bun scripts/build-cli.ts",
|
|
25
26
|
"build:dev": "bun scripts/build-cli.ts --config src/lib/build-config/dev.json",
|
|
26
27
|
"compile": "bun scripts/build-cli.ts --compile",
|