yarlo-cli 0.1.0
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/LICENSE +133 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +48 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/add.d.ts +30 -0
- package/dist/commands/add.d.ts.map +1 -0
- package/dist/commands/add.js +94 -0
- package/dist/commands/add.js.map +1 -0
- package/dist/commands/agent/setup.d.ts +3 -0
- package/dist/commands/agent/setup.d.ts.map +1 -0
- package/dist/commands/agent/setup.js +151 -0
- package/dist/commands/agent/setup.js.map +1 -0
- package/dist/commands/config.d.ts +15 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +41 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/done.d.ts +17 -0
- package/dist/commands/done.d.ts.map +1 -0
- package/dist/commands/done.js +46 -0
- package/dist/commands/done.js.map +1 -0
- package/dist/commands/edit.d.ts +17 -0
- package/dist/commands/edit.d.ts.map +1 -0
- package/dist/commands/edit.js +58 -0
- package/dist/commands/edit.js.map +1 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +39 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/init.d.ts +24 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +113 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/install.d.ts +9 -0
- package/dist/commands/install.d.ts.map +1 -0
- package/dist/commands/install.js +51 -0
- package/dist/commands/install.js.map +1 -0
- package/dist/commands/list.d.ts +30 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +94 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/plugins.d.ts +15 -0
- package/dist/commands/plugins.d.ts.map +1 -0
- package/dist/commands/plugins.js +42 -0
- package/dist/commands/plugins.js.map +1 -0
- package/dist/commands/show.d.ts +17 -0
- package/dist/commands/show.d.ts.map +1 -0
- package/dist/commands/show.js +45 -0
- package/dist/commands/show.js.map +1 -0
- package/dist/commands/status.d.ts +17 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +47 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/uninstall.d.ts +9 -0
- package/dist/commands/uninstall.d.ts.map +1 -0
- package/dist/commands/uninstall.js +46 -0
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/core/config.d.ts +24 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +110 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/fields.d.ts +8 -0
- package/dist/core/fields.d.ts.map +1 -0
- package/dist/core/fields.js +82 -0
- package/dist/core/fields.js.map +1 -0
- package/dist/core/naming.d.ts +12 -0
- package/dist/core/naming.d.ts.map +1 -0
- package/dist/core/naming.js +61 -0
- package/dist/core/naming.js.map +1 -0
- package/dist/core/plugin-loader.d.ts +9 -0
- package/dist/core/plugin-loader.d.ts.map +1 -0
- package/dist/core/plugin-loader.js +38 -0
- package/dist/core/plugin-loader.js.map +1 -0
- package/dist/core/task.d.ts +7 -0
- package/dist/core/task.d.ts.map +1 -0
- package/dist/core/task.js +160 -0
- package/dist/core/task.js.map +1 -0
- package/dist/utils/output.d.ts +3 -0
- package/dist/utils/output.d.ts.map +1 -0
- package/dist/utils/output.js +8 -0
- package/dist/utils/output.js.map +1 -0
- package/package.json +54 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
PolyForm Noncommercial License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree
|
|
8
|
+
to them as both strict obligations and conditions to all
|
|
9
|
+
your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the
|
|
14
|
+
software to do everything you might do with the software
|
|
15
|
+
that would otherwise infringe the licensor's copyright
|
|
16
|
+
in it for any permitted purpose. However, you may
|
|
17
|
+
only distribute the software according to [Distribution
|
|
18
|
+
License](#distribution-license) and make changes or new works
|
|
19
|
+
based on the software according to [Changes and New Works
|
|
20
|
+
License](#changes-and-new-works-license).
|
|
21
|
+
|
|
22
|
+
## Distribution License
|
|
23
|
+
|
|
24
|
+
The licensor grants you an additional copyright license
|
|
25
|
+
to distribute copies of the software. Your license
|
|
26
|
+
to distribute covers distributing the software with
|
|
27
|
+
changes and new works permitted by [Changes and New Works
|
|
28
|
+
License](#changes-and-new-works-license).
|
|
29
|
+
|
|
30
|
+
## Notices
|
|
31
|
+
|
|
32
|
+
You must ensure that anyone who gets a copy of any part of
|
|
33
|
+
the software from you also gets a copy of these terms or the
|
|
34
|
+
URL for them above, as well as copies of any plain-text lines
|
|
35
|
+
beginning with `Required Notice:` that the licensor provided
|
|
36
|
+
with the software. For example:
|
|
37
|
+
|
|
38
|
+
> Required Notice: Copyright Jordy Fontoura (https://github.com/jordyfontoura)
|
|
39
|
+
|
|
40
|
+
## Changes and New Works License
|
|
41
|
+
|
|
42
|
+
The licensor grants you an additional copyright license to
|
|
43
|
+
make changes and new works based on the software for any
|
|
44
|
+
permitted purpose.
|
|
45
|
+
|
|
46
|
+
## Patent License
|
|
47
|
+
|
|
48
|
+
The licensor grants you a patent license for the software that
|
|
49
|
+
covers patent claims the licensor can license, or becomes able
|
|
50
|
+
to license, that you would infringe by using the software.
|
|
51
|
+
|
|
52
|
+
## Noncommercial Purposes
|
|
53
|
+
|
|
54
|
+
Any noncommercial purpose is a permitted purpose.
|
|
55
|
+
|
|
56
|
+
## Personal Uses
|
|
57
|
+
|
|
58
|
+
Personal use for research, experiment, and testing for
|
|
59
|
+
the benefit of public knowledge, personal study, private
|
|
60
|
+
entertainment, hobby projects, amateur pursuits, or religious
|
|
61
|
+
observance, without any anticipated commercial application,
|
|
62
|
+
is use for a permitted purpose.
|
|
63
|
+
|
|
64
|
+
## Noncommercial Organizations
|
|
65
|
+
|
|
66
|
+
Use by any charitable organization, educational institution,
|
|
67
|
+
public research organization, public safety or health
|
|
68
|
+
organization, environmental protection organization, or
|
|
69
|
+
government institution is use for a permitted purpose
|
|
70
|
+
regardless of the source of funding or obligations resulting
|
|
71
|
+
from the funding.
|
|
72
|
+
|
|
73
|
+
## Fair Use
|
|
74
|
+
|
|
75
|
+
You may have "fair use" rights for the software under the
|
|
76
|
+
law. These terms do not limit them.
|
|
77
|
+
|
|
78
|
+
## No Other Rights
|
|
79
|
+
|
|
80
|
+
These terms do not allow you to sublicense or transfer any of
|
|
81
|
+
your licenses to anyone else, or prevent the licensor from
|
|
82
|
+
granting licenses to anyone else. These terms do not imply
|
|
83
|
+
any other licenses.
|
|
84
|
+
|
|
85
|
+
## Patent Defense
|
|
86
|
+
|
|
87
|
+
If you make any written claim that the software infringes or
|
|
88
|
+
contributes to infringement of any patent, your patent license
|
|
89
|
+
for the software granted under these terms ends immediately. If
|
|
90
|
+
your company makes such a claim, your patent license ends
|
|
91
|
+
immediately for work on behalf of your company.
|
|
92
|
+
|
|
93
|
+
## Violations
|
|
94
|
+
|
|
95
|
+
The first time you are notified in writing that you have
|
|
96
|
+
violated any of these terms, or done anything with the software
|
|
97
|
+
not covered by your licenses, your licenses can nonetheless
|
|
98
|
+
continue if you come into full compliance with these terms,
|
|
99
|
+
and take practical steps to correct past violations, within
|
|
100
|
+
32 days of receiving notice. Otherwise, all your licenses
|
|
101
|
+
end immediately.
|
|
102
|
+
|
|
103
|
+
## No Liability
|
|
104
|
+
|
|
105
|
+
***As far as the law allows, the software comes as is, without
|
|
106
|
+
any warranty or condition, and the licensor will not be liable
|
|
107
|
+
to anyone for any damages related to this software or this
|
|
108
|
+
license, under any kind of legal claim.***
|
|
109
|
+
|
|
110
|
+
## Definitions
|
|
111
|
+
|
|
112
|
+
The **licensor** is the individual or entity offering these
|
|
113
|
+
terms, and the **software** is the software the licensor makes
|
|
114
|
+
available under these terms.
|
|
115
|
+
|
|
116
|
+
**You** refers to the individual or entity agreeing to these
|
|
117
|
+
terms.
|
|
118
|
+
|
|
119
|
+
**Your company** is any legal entity, sole proprietorship,
|
|
120
|
+
or other kind of organization that you work for, plus all
|
|
121
|
+
organizations that have control over, are under the control of,
|
|
122
|
+
or are under common control with that organization. **Control**
|
|
123
|
+
means ownership of substantially all the assets of an entity,
|
|
124
|
+
or the power to direct its management and policies by vote,
|
|
125
|
+
contract, or otherwise. Control can be direct or indirect.
|
|
126
|
+
|
|
127
|
+
**Your licenses** are all the licenses granted to you for the
|
|
128
|
+
software under these terms.
|
|
129
|
+
|
|
130
|
+
**Use** means anything you do with the software requiring one
|
|
131
|
+
of your licenses.
|
|
132
|
+
|
|
133
|
+
Required Notice: Copyright (c) 2026 Jordy Fontoura (https://github.com/jordyfontoura)
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../source/cli.tsx"],"names":[],"mappings":""}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import Pastel from "pastel";
|
|
3
|
+
import { loadConfig } from "./core/config.js";
|
|
4
|
+
import { loadPlugins, runPluginCommand } from "./core/plugin-loader.js";
|
|
5
|
+
import { listTasks, getTask, createTask, updateTask, deleteTask, } from "./core/task.js";
|
|
6
|
+
async function main() {
|
|
7
|
+
// Check if this is a plugin command
|
|
8
|
+
const commandName = process.argv[2];
|
|
9
|
+
if (commandName && !commandName.startsWith("-")) {
|
|
10
|
+
try {
|
|
11
|
+
const { config, configDir, projectDir } = await loadConfig();
|
|
12
|
+
if (config.plugins.length > 0) {
|
|
13
|
+
const ctx = {
|
|
14
|
+
config,
|
|
15
|
+
configDir,
|
|
16
|
+
projectDir,
|
|
17
|
+
tasks: {
|
|
18
|
+
list: (filter) => listTasks(config, configDir, filter),
|
|
19
|
+
get: (id) => getTask(config, configDir, id),
|
|
20
|
+
create: (input) => createTask(config, configDir, input),
|
|
21
|
+
update: (id, input) => updateTask(config, configDir, id, input),
|
|
22
|
+
delete: async (id) => { await deleteTask(config, configDir, id); },
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
const { commands } = await loadPlugins(config.plugins, ctx);
|
|
26
|
+
const pluginCmd = commands.get(commandName);
|
|
27
|
+
if (pluginCmd) {
|
|
28
|
+
await runPluginCommand(pluginCmd, process.argv.slice(3), ctx);
|
|
29
|
+
process.exit(0);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
// No config found or plugin loading failed, fall through to Pastel
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const app = new Pastel({
|
|
38
|
+
importMeta: import.meta,
|
|
39
|
+
name: "yarlo",
|
|
40
|
+
description: "Yet Another Repo Local Organizer - Local task management with markdown",
|
|
41
|
+
});
|
|
42
|
+
await app.run();
|
|
43
|
+
}
|
|
44
|
+
main().catch((error) => {
|
|
45
|
+
console.error(error.message);
|
|
46
|
+
process.exit(1);
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../source/cli.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EACL,SAAS,EACT,OAAO,EACP,UAAU,EACV,UAAU,EACV,UAAU,GACX,MAAM,gBAAgB,CAAC;AAExB,KAAK,UAAU,IAAI;IACjB,oCAAoC;IACpC,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC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D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAClB,CAAC;YACH,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,mEAAmE;QACrE,CAAC;IACH,CAAC;IAED,MAAM,GAAG,GAAG,IAAI,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC,IAAI;QACvB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,wEAAwE;KACtF,CAAC,CAAC;IAEH,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC;AAClB,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import zod from "zod";
|
|
2
|
+
export declare const description = "Create a new task";
|
|
3
|
+
export declare const options: zod.ZodObject<{
|
|
4
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
5
|
+
status: zod.ZodOptional<zod.ZodString>;
|
|
6
|
+
priority: zod.ZodOptional<zod.ZodString>;
|
|
7
|
+
labels: zod.ZodOptional<zod.ZodString>;
|
|
8
|
+
assignee: zod.ZodOptional<zod.ZodString>;
|
|
9
|
+
json: zod.ZodDefault<zod.ZodBoolean>;
|
|
10
|
+
}, "strip", zod.ZodTypeAny, {
|
|
11
|
+
json: boolean;
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
status?: string | undefined;
|
|
14
|
+
priority?: string | undefined;
|
|
15
|
+
assignee?: string | undefined;
|
|
16
|
+
labels?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
title?: string | undefined;
|
|
19
|
+
status?: string | undefined;
|
|
20
|
+
priority?: string | undefined;
|
|
21
|
+
assignee?: string | undefined;
|
|
22
|
+
labels?: string | undefined;
|
|
23
|
+
json?: boolean | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
type Props = {
|
|
26
|
+
options: zod.infer<typeof options>;
|
|
27
|
+
};
|
|
28
|
+
export default function Add({ options: opts }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=add.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../source/commands/add.tsx"],"names":[],"mappings":"AAGA,OAAO,GAAG,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,WAAW,sBAAsB,CAAC;AAE/C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;EA2BlB,CAAC;AAEH,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,kDAkFnD"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Text, Box } from "ink";
|
|
4
|
+
import { TextInput } from "@inkjs/ui";
|
|
5
|
+
import zod from "zod";
|
|
6
|
+
import { option } from "pastel";
|
|
7
|
+
import { loadConfig } from "../core/config.js";
|
|
8
|
+
import { createTask } from "../core/task.js";
|
|
9
|
+
import { isJsonMode, jsonOutput } from "../utils/output.js";
|
|
10
|
+
export const description = "Create a new task";
|
|
11
|
+
export const options = zod.object({
|
|
12
|
+
title: zod
|
|
13
|
+
.string()
|
|
14
|
+
.optional()
|
|
15
|
+
.describe(option({ description: "Task title", alias: "t" })),
|
|
16
|
+
status: zod
|
|
17
|
+
.string()
|
|
18
|
+
.optional()
|
|
19
|
+
.describe(option({ description: "Task status", alias: "s" })),
|
|
20
|
+
priority: zod
|
|
21
|
+
.string()
|
|
22
|
+
.optional()
|
|
23
|
+
.describe(option({ description: "Task priority", alias: "p" })),
|
|
24
|
+
labels: zod
|
|
25
|
+
.string()
|
|
26
|
+
.optional()
|
|
27
|
+
.describe(option({ description: "Comma-separated labels", alias: "l" })),
|
|
28
|
+
assignee: zod
|
|
29
|
+
.string()
|
|
30
|
+
.optional()
|
|
31
|
+
.describe(option({ description: "Assignee", alias: "a" })),
|
|
32
|
+
json: zod
|
|
33
|
+
.boolean()
|
|
34
|
+
.describe(option({ description: "Output as JSON" }))
|
|
35
|
+
.default(false),
|
|
36
|
+
});
|
|
37
|
+
export default function Add({ options: opts }) {
|
|
38
|
+
const [title, setTitle] = React.useState(opts.title ?? "");
|
|
39
|
+
const [step, setStep] = React.useState(opts.title ? "creating" : "title");
|
|
40
|
+
const [task, setTask] = React.useState(null);
|
|
41
|
+
const [error, setError] = React.useState("");
|
|
42
|
+
const doCreate = React.useCallback(async (taskTitle) => {
|
|
43
|
+
try {
|
|
44
|
+
const { config, configDir } = await loadConfig();
|
|
45
|
+
const fields = {};
|
|
46
|
+
if (opts.status)
|
|
47
|
+
fields.status = opts.status;
|
|
48
|
+
if (opts.priority)
|
|
49
|
+
fields.priority = opts.priority;
|
|
50
|
+
if (opts.labels)
|
|
51
|
+
fields.labels = opts.labels.split(",").map((l) => l.trim());
|
|
52
|
+
if (opts.assignee)
|
|
53
|
+
fields.assignee = opts.assignee;
|
|
54
|
+
const created = await createTask(config, configDir, {
|
|
55
|
+
title: taskTitle,
|
|
56
|
+
fields,
|
|
57
|
+
});
|
|
58
|
+
if (isJsonMode() || opts.json) {
|
|
59
|
+
jsonOutput(created);
|
|
60
|
+
process.exit(0);
|
|
61
|
+
}
|
|
62
|
+
setTask(created);
|
|
63
|
+
setStep("done");
|
|
64
|
+
}
|
|
65
|
+
catch (err) {
|
|
66
|
+
setError(err instanceof Error ? err.message : String(err));
|
|
67
|
+
setStep("error");
|
|
68
|
+
}
|
|
69
|
+
}, [opts]);
|
|
70
|
+
React.useEffect(() => {
|
|
71
|
+
if (step === "creating" && title) {
|
|
72
|
+
doCreate(title);
|
|
73
|
+
}
|
|
74
|
+
}, [step, title, doCreate]);
|
|
75
|
+
if (step === "title") {
|
|
76
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { bold: true, children: "Task title:" }), _jsx(TextInput, { onSubmit: (value) => {
|
|
77
|
+
if (!value.trim())
|
|
78
|
+
return;
|
|
79
|
+
setTitle(value.trim());
|
|
80
|
+
setStep("creating");
|
|
81
|
+
} })] }));
|
|
82
|
+
}
|
|
83
|
+
if (step === "creating") {
|
|
84
|
+
return _jsx(Text, { children: "Creating task..." });
|
|
85
|
+
}
|
|
86
|
+
if (step === "error") {
|
|
87
|
+
return _jsx(Text, { color: "red", children: error });
|
|
88
|
+
}
|
|
89
|
+
if (step === "done" && task) {
|
|
90
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { color: "green", bold: true, children: ["Created task: ", task.id] }), _jsxs(Text, { children: ["Title: ", _jsx(Text, { bold: true, children: task.title })] }), _jsxs(Text, { children: ["Status: ", _jsx(Text, { color: "cyan", children: String(task.fields.status) })] }), _jsxs(Text, { dimColor: true, children: ["File: ", task.file_path] })] }));
|
|
91
|
+
}
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=add.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../source/commands/add.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,UAAU,E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EAAE,CAAC;QACrB,OAAO,KAAC,IAAI,IAAC,KAAK,EAAC,KAAK,YAAE,KAAK,GAAQ,CAAC;IAC1C,CAAC;IAED,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,EAAE,CAAC;QAC5B,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,MAAC,IAAI,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,qCACP,IAAI,CAAC,EAAE,IACjB,EACP,MAAC,IAAI,0BACI,KAAC,IAAI,IAAC,IAAI,kBAAE,IAAI,CAAC,KAAK,GAAQ,IAChC,EACP,MAAC,IAAI,2BACK,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAQ,IACzD,EACP,MAAC,IAAI,IAAC,QAAQ,6BAAQ,IAAI,CAAC,SAAS,IAAQ,IACxC,CACP,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../source/commands/agent/setup.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,qCAAqC,CAAC;AAwF9D,MAAM,CAAC,OAAO,UAAU,UAAU,4CA8EjC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Text, Box } from "ink";
|
|
4
|
+
import fs from "node:fs/promises";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import { loadConfig } from "../../core/config.js";
|
|
7
|
+
export const description = "Configure AI agents to use yarlo";
|
|
8
|
+
function generateAgentInstructions(config) {
|
|
9
|
+
const statusField = config.fields.find((f) => f.name === "status");
|
|
10
|
+
const statuses = statusField?.options ?? ["backlog", "todo", "in_progress", "done"];
|
|
11
|
+
const priorityField = config.fields.find((f) => f.name === "priority");
|
|
12
|
+
const priorities = priorityField?.options ?? [];
|
|
13
|
+
const fieldDocs = config.fields
|
|
14
|
+
.map((f) => {
|
|
15
|
+
let doc = `- **${f.name}** (${f.type})`;
|
|
16
|
+
if (f.options)
|
|
17
|
+
doc += `: ${f.options.join(", ")}`;
|
|
18
|
+
if (f.required)
|
|
19
|
+
doc += " *(required)*";
|
|
20
|
+
if (f.default !== undefined)
|
|
21
|
+
doc += ` — default: \`${String(f.default)}\``;
|
|
22
|
+
return doc;
|
|
23
|
+
})
|
|
24
|
+
.join("\n");
|
|
25
|
+
return `# yarlo - Task Management
|
|
26
|
+
|
|
27
|
+
This project uses **yarlo** for local task management. Tasks are stored as markdown files with YAML frontmatter in \`.yarlo/${config.tasks_dir}/\`.
|
|
28
|
+
|
|
29
|
+
## Commands (use --json for machine-readable output)
|
|
30
|
+
|
|
31
|
+
\`\`\`bash
|
|
32
|
+
# List all tasks
|
|
33
|
+
yarlo list --json
|
|
34
|
+
|
|
35
|
+
# List filtered tasks
|
|
36
|
+
yarlo list --status in_progress --json
|
|
37
|
+
yarlo list --priority high --json
|
|
38
|
+
yarlo list --label bug --json
|
|
39
|
+
yarlo list --search "keyword" --json
|
|
40
|
+
|
|
41
|
+
# Show task details
|
|
42
|
+
yarlo show <id> --json
|
|
43
|
+
|
|
44
|
+
# Create a task
|
|
45
|
+
yarlo add --title "Task title" --status todo --priority high --json
|
|
46
|
+
|
|
47
|
+
# Update task status
|
|
48
|
+
yarlo status <id> <new-status>
|
|
49
|
+
yarlo done <id>
|
|
50
|
+
|
|
51
|
+
# View config
|
|
52
|
+
yarlo config --json
|
|
53
|
+
\`\`\`
|
|
54
|
+
|
|
55
|
+
## Environment Variable
|
|
56
|
+
|
|
57
|
+
Set \`YARLO_OUTPUT=json\` to force JSON output on all commands.
|
|
58
|
+
|
|
59
|
+
## Available Statuses
|
|
60
|
+
|
|
61
|
+
${statuses.map((s) => `- \`${s}\``).join("\n")}
|
|
62
|
+
|
|
63
|
+
${priorities.length > 0 ? `## Priorities\n\n${priorities.map((p) => `- \`${p}\``).join("\n")}` : ""}
|
|
64
|
+
|
|
65
|
+
## Fields
|
|
66
|
+
|
|
67
|
+
${fieldDocs}
|
|
68
|
+
|
|
69
|
+
## Task File Format
|
|
70
|
+
|
|
71
|
+
Tasks are markdown files with YAML frontmatter:
|
|
72
|
+
|
|
73
|
+
\`\`\`markdown
|
|
74
|
+
---
|
|
75
|
+
id: task-id
|
|
76
|
+
title: Task title
|
|
77
|
+
status: ${statuses[0] ?? "backlog"}
|
|
78
|
+
priority: ${priorities[0] ?? "medium"}
|
|
79
|
+
created_at: ISO-8601
|
|
80
|
+
updated_at: ISO-8601
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
Task description and notes here.
|
|
84
|
+
\`\`\`
|
|
85
|
+
|
|
86
|
+
## Workflow
|
|
87
|
+
|
|
88
|
+
1. Check existing tasks: \`yarlo list --json\`
|
|
89
|
+
2. Pick a task or create one: \`yarlo add --title "..." --json\`
|
|
90
|
+
3. Start working: \`yarlo status <id> in_progress\`
|
|
91
|
+
4. Complete: \`yarlo done <id>\`
|
|
92
|
+
`;
|
|
93
|
+
}
|
|
94
|
+
export default function AgentSetup() {
|
|
95
|
+
const [status, setStatus] = React.useState("loading");
|
|
96
|
+
const [files, setFiles] = React.useState([]);
|
|
97
|
+
const [error, setError] = React.useState("");
|
|
98
|
+
React.useEffect(() => {
|
|
99
|
+
(async () => {
|
|
100
|
+
try {
|
|
101
|
+
const { config, projectDir } = await loadConfig();
|
|
102
|
+
const instructions = generateAgentInstructions(config);
|
|
103
|
+
const written = [];
|
|
104
|
+
// Claude Code — append to CLAUDE.md
|
|
105
|
+
const claudeMdPath = path.join(projectDir, "CLAUDE.md");
|
|
106
|
+
try {
|
|
107
|
+
const existing = await fs.readFile(claudeMdPath, "utf-8");
|
|
108
|
+
if (!existing.includes("# yarlo - Task Management")) {
|
|
109
|
+
await fs.writeFile(claudeMdPath, existing + "\n\n" + instructions, "utf-8");
|
|
110
|
+
written.push("CLAUDE.md (appended)");
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
written.push("CLAUDE.md (already configured)");
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
catch {
|
|
117
|
+
await fs.writeFile(claudeMdPath, instructions, "utf-8");
|
|
118
|
+
written.push("CLAUDE.md (created)");
|
|
119
|
+
}
|
|
120
|
+
// Cursor — .cursorrules
|
|
121
|
+
const cursorPath = path.join(projectDir, ".cursorrules");
|
|
122
|
+
try {
|
|
123
|
+
const existing = await fs.readFile(cursorPath, "utf-8");
|
|
124
|
+
if (!existing.includes("# yarlo - Task Management")) {
|
|
125
|
+
await fs.writeFile(cursorPath, existing + "\n\n" + instructions, "utf-8");
|
|
126
|
+
written.push(".cursorrules (appended)");
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
written.push(".cursorrules (already configured)");
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
catch {
|
|
133
|
+
await fs.writeFile(cursorPath, instructions, "utf-8");
|
|
134
|
+
written.push(".cursorrules (created)");
|
|
135
|
+
}
|
|
136
|
+
setFiles(written);
|
|
137
|
+
setStatus("done");
|
|
138
|
+
}
|
|
139
|
+
catch (err) {
|
|
140
|
+
setError(err instanceof Error ? err.message : String(err));
|
|
141
|
+
setStatus("error");
|
|
142
|
+
}
|
|
143
|
+
})();
|
|
144
|
+
}, []);
|
|
145
|
+
if (status === "error")
|
|
146
|
+
return _jsx(Text, { color: "red", children: error });
|
|
147
|
+
if (status === "loading")
|
|
148
|
+
return _jsx(Text, { children: "Configuring agents..." });
|
|
149
|
+
return (_jsxs(Box, { flexDirection: "column", gap: 1, children: [_jsx(Text, { color: "green", bold: true, children: "AI agent configuration updated!" }), files.map((file) => (_jsxs(Text, { children: [" ", _jsx(Text, { color: "cyan", children: file })] }, file))), _jsx(Text, { dimColor: true, children: "Agents can now use `yarlo list --json` and other commands." })] }));
|
|
150
|
+
}
|
|
151
|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3
|
+
export declare const options: zod.ZodObject<{
|
|
4
|
+
json: zod.ZodDefault<zod.ZodBoolean>;
|
|
5
|
+
}, "strip", zod.ZodTypeAny, {
|
|
6
|
+
json: boolean;
|
|
7
|
+
}, {
|
|
8
|
+
json?: boolean | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
type Props = {
|
|
11
|
+
options: zod.infer<typeof options>;
|
|
12
|
+
};
|
|
13
|
+
export default function Config({ options: opts }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../source/commands/config.tsx"],"names":[],"mappings":"AAEA,OAAO,GAAG,MAAM,KAAK,CAAC;AAMtB,eAAO,MAAM,WAAW,+BAA+B,CAAC;AAExD,eAAO,MAAM,OAAO;;;;;;EAKlB,CAAC;AAEH,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,2CAsEtD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Text, Box } from "ink";
|
|
4
|
+
import zod from "zod";
|
|
5
|
+
import { option } from "pastel";
|
|
6
|
+
import { loadConfig } from "../core/config.js";
|
|
7
|
+
import { isJsonMode, jsonOutput } from "../utils/output.js";
|
|
8
|
+
export const description = "Show project configuration";
|
|
9
|
+
export const options = zod.object({
|
|
10
|
+
json: zod
|
|
11
|
+
.boolean()
|
|
12
|
+
.describe(option({ description: "Output as JSON" }))
|
|
13
|
+
.default(false),
|
|
14
|
+
});
|
|
15
|
+
export default function Config({ options: opts }) {
|
|
16
|
+
const [config, setConfig] = React.useState(null);
|
|
17
|
+
const [configDir, setConfigDir] = React.useState("");
|
|
18
|
+
const [error, setError] = React.useState(null);
|
|
19
|
+
React.useEffect(() => {
|
|
20
|
+
(async () => {
|
|
21
|
+
try {
|
|
22
|
+
const result = await loadConfig();
|
|
23
|
+
if (isJsonMode() || opts.json) {
|
|
24
|
+
jsonOutput(result.config);
|
|
25
|
+
process.exit(0);
|
|
26
|
+
}
|
|
27
|
+
setConfig(result.config);
|
|
28
|
+
setConfigDir(result.configDir);
|
|
29
|
+
}
|
|
30
|
+
catch (err) {
|
|
31
|
+
setError(err instanceof Error ? err.message : String(err));
|
|
32
|
+
}
|
|
33
|
+
})();
|
|
34
|
+
}, []);
|
|
35
|
+
if (error)
|
|
36
|
+
return _jsx(Text, { color: "red", children: error });
|
|
37
|
+
if (!config)
|
|
38
|
+
return _jsx(Text, { children: "Loading..." });
|
|
39
|
+
return (_jsxs(Box, { flexDirection: "column", gap: 1, children: [_jsx(Text, { bold: true, color: "cyan", children: "yarlo config" }), _jsxs(Text, { dimColor: true, children: ["Path: ", configDir, "/config.yml"] }), _jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { bold: true, children: "Config version:" }), " ", config.version] }), _jsxs(Text, { children: [_jsx(Text, { bold: true, children: "yarlo version:" }), " ", config.yarlo_version] }), _jsxs(Text, { children: [_jsx(Text, { bold: true, children: "Tasks dir:" }), " ", config.tasks_dir] }), _jsxs(Text, { children: [_jsx(Text, { bold: true, children: "Attachments dir:" }), " ", config.attachments_dir] }), _jsxs(Text, { children: [_jsx(Text, { bold: true, children: "Naming:" }), " ", config.naming, config.naming_pattern ? ` (${config.naming_pattern})` : ""] }), _jsxs(Text, { children: [_jsx(Text, { bold: true, children: "Plugins:" }), " ", config.plugins.length > 0 ? config.plugins.join(", ") : "none"] })] }), _jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { bold: true, children: "Fields:" }), config.fields.map((field) => (_jsxs(Text, { children: [" ", _jsx(Text, { color: "cyan", children: field.name }), " (", field.type, ")", field.required ? " *" : "", field.options ? ` [${field.options.join(", ")}]` : "", field.default !== undefined ? ` default: ${String(field.default)}` : ""] }, field.name)))] })] }));
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../source/commands/config.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAG5D,MAAM,CAAC,MAAM,WAAW,GAAG,4BAA4B,CAAC;AAExD,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,GAAG;SACN,OAAO,EAAE;SACT,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC,CAAC;SACnD,OAAO,CAAC,KAAK,CAAC;CAClB,CAAC,CAAC;AAMH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAS;IACrD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAqB,IAAI,CAAC,CAAC;IACrE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE9D,KAAK,CAAC,SAAS,CAAC,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
|
|
1
|
+
import zod from "zod";
|
|
2
|
+
export declare const description = "Mark a task as done";
|
|
3
|
+
export declare const args: zod.ZodTuple<[zod.ZodString], null>;
|
|
4
|
+
export declare const options: zod.ZodObject<{
|
|
5
|
+
json: zod.ZodDefault<zod.ZodBoolean>;
|
|
6
|
+
}, "strip", zod.ZodTypeAny, {
|
|
7
|
+
json: boolean;
|
|
8
|
+
}, {
|
|
9
|
+
json?: boolean | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
type Props = {
|
|
12
|
+
args: zod.infer<typeof args>;
|
|
13
|
+
options: zod.infer<typeof options>;
|
|
14
|
+
};
|
|
15
|
+
export default function Done({ args: [id], options: opts }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=done.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"done.d.ts","sourceRoot":"","sources":["../../source/commands/done.tsx"],"names":[],"mappings":"AAEA,OAAO,GAAG,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,WAAW,wBAAwB,CAAC;AAEjD,eAAO,MAAM,IAAI,qCAEf,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;EAKlB,CAAC;AAEH,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;IAC7B,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,2CAgChE"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Text } from "ink";
|
|
4
|
+
import zod from "zod";
|
|
5
|
+
import { argument, option } from "pastel";
|
|
6
|
+
import { loadConfig } from "../core/config.js";
|
|
7
|
+
import { updateTask } from "../core/task.js";
|
|
8
|
+
import { isJsonMode, jsonOutput } from "../utils/output.js";
|
|
9
|
+
export const description = "Mark a task as done";
|
|
10
|
+
export const args = zod.tuple([
|
|
11
|
+
zod.string().describe(argument({ name: "id", description: "Task ID or prefix" })),
|
|
12
|
+
]);
|
|
13
|
+
export const options = zod.object({
|
|
14
|
+
json: zod
|
|
15
|
+
.boolean()
|
|
16
|
+
.describe(option({ description: "Output as JSON" }))
|
|
17
|
+
.default(false),
|
|
18
|
+
});
|
|
19
|
+
export default function Done({ args: [id], options: opts }) {
|
|
20
|
+
const [task, setTask] = React.useState(null);
|
|
21
|
+
const [error, setError] = React.useState(null);
|
|
22
|
+
React.useEffect(() => {
|
|
23
|
+
(async () => {
|
|
24
|
+
try {
|
|
25
|
+
const { config, configDir } = await loadConfig();
|
|
26
|
+
const result = await updateTask(config, configDir, id, {
|
|
27
|
+
fields: { status: "done" },
|
|
28
|
+
});
|
|
29
|
+
if (isJsonMode() || opts.json) {
|
|
30
|
+
jsonOutput(result);
|
|
31
|
+
process.exit(0);
|
|
32
|
+
}
|
|
33
|
+
setTask(result);
|
|
34
|
+
}
|
|
35
|
+
catch (err) {
|
|
36
|
+
setError(err instanceof Error ? err.message : String(err));
|
|
37
|
+
}
|
|
38
|
+
})();
|
|
39
|
+
}, []);
|
|
40
|
+
if (error)
|
|
41
|
+
return _jsx(Text, { color: "red", children: error });
|
|
42
|
+
if (!task)
|
|
43
|
+
return _jsx(Text, { children: "Updating..." });
|
|
44
|
+
return (_jsxs(Text, { color: "green", bold: true, children: ["Done: [", task.id, "] ", task.title] }));
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=done.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"done.js","sourceRoot":"","sources":["../../source/commands/done.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA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