@dypt/cli 0.1.3 → 0.1.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/dist/index.js +36 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Argument, Command, Option } from "commander";
|
|
|
9
9
|
// package.json
|
|
10
10
|
var package_default = {
|
|
11
11
|
name: "@dypt/cli",
|
|
12
|
-
version: "0.1.
|
|
12
|
+
version: "0.1.4",
|
|
13
13
|
description: "Command-line interface for dypt task management",
|
|
14
14
|
license: "SEE LICENSE IN LICENSE",
|
|
15
15
|
homepage: "https://dypt.app",
|
|
@@ -403,9 +403,34 @@ var REQUIRED_FILES = [
|
|
|
403
403
|
path3.join("agents", "openai.yaml"),
|
|
404
404
|
path3.join("references", "cli-basics.md")
|
|
405
405
|
];
|
|
406
|
+
var AGENT_INSTRUCTIONS_APPEND_HINT = "To append these instructions to a repo agent file, run: dypt agent install-instructions --append AGENTS.md or dypt agent install-instructions --append CLAUDE.md";
|
|
406
407
|
var AGENT_INSTRUCTIONS_SNIPPET = `## Work Tracking with dypt
|
|
407
408
|
|
|
408
|
-
This project uses dypt tasks as the canonical work tracker.
|
|
409
|
+
This project uses dypt tasks as the canonical work tracker. Use the dypt CLI
|
|
410
|
+
before creating, changing, or reporting on repo work.
|
|
411
|
+
|
|
412
|
+
### Getting Started
|
|
413
|
+
|
|
414
|
+
Check that the CLI is available and authenticated:
|
|
415
|
+
|
|
416
|
+
\`\`\`bash
|
|
417
|
+
dypt --version
|
|
418
|
+
dypt auth status
|
|
419
|
+
\`\`\`
|
|
420
|
+
|
|
421
|
+
If the CLI is missing, install it with:
|
|
422
|
+
|
|
423
|
+
\`\`\`bash
|
|
424
|
+
npm install -g @dypt/cli
|
|
425
|
+
\`\`\`
|
|
426
|
+
|
|
427
|
+
If the dypt CLI skill is not available in this agent session, tell the user and
|
|
428
|
+
offer to install it:
|
|
429
|
+
|
|
430
|
+
\`\`\`bash
|
|
431
|
+
dypt agent install codex
|
|
432
|
+
dypt agent install claude
|
|
433
|
+
\`\`\`
|
|
409
434
|
|
|
410
435
|
When working on repo tasks:
|
|
411
436
|
|
|
@@ -712,7 +737,10 @@ async function runAgentInstallInstructions(input, deps) {
|
|
|
712
737
|
snippet: AGENT_INSTRUCTIONS_SNIPPET,
|
|
713
738
|
dryRun: input.dryRun,
|
|
714
739
|
force: input.force
|
|
715
|
-
}) : {
|
|
740
|
+
}) : {
|
|
741
|
+
snippet: AGENT_INSTRUCTIONS_SNIPPET,
|
|
742
|
+
appendHint: AGENT_INSTRUCTIONS_APPEND_HINT
|
|
743
|
+
};
|
|
716
744
|
if (input.json) {
|
|
717
745
|
deps.printJson(result);
|
|
718
746
|
return;
|
|
@@ -2079,7 +2107,11 @@ function renderAgentInstallResult(result, color) {
|
|
|
2079
2107
|
}
|
|
2080
2108
|
function renderAgentInstructions(result, color) {
|
|
2081
2109
|
if (typeof result.snippet === "string") {
|
|
2082
|
-
|
|
2110
|
+
const lines = [result.snippet.trimEnd()];
|
|
2111
|
+
if (result.appendHint) {
|
|
2112
|
+
lines.push("", dim(result.appendHint, color));
|
|
2113
|
+
}
|
|
2114
|
+
return lines.join("\n");
|
|
2083
2115
|
}
|
|
2084
2116
|
if (result.action === "append" && result.filePath) {
|
|
2085
2117
|
const verb = result.dryRun ? "Would append" : "Appended";
|