@taskless/cli-nightly 0.11.0-20260820055459x599d3f3

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.
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ /** Input schema for `taskless rule create --from` JSON file */
3
+ export declare const inputSchema: z.ZodObject<{
4
+ prompt: z.ZodString;
5
+ successCases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ failureCases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
+ }, z.core.$strip>;
8
+ /** Output schema for `taskless rule create --json` on success */
9
+ export declare const outputSchema: z.ZodObject<{
10
+ success: z.ZodLiteral<true>;
11
+ ruleId: z.ZodString;
12
+ rules: z.ZodArray<z.ZodString>;
13
+ files: z.ZodArray<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ /** Error schema for `taskless rule create --json` on failure */
16
+ export declare const errorSchema: z.ZodObject<{
17
+ error: z.ZodString;
18
+ }, z.core.$strip>;
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ /** Input schema for `taskless rule improve --from` JSON file */
3
+ export declare const inputSchema: z.ZodObject<{
4
+ ruleId: z.ZodString;
5
+ guidance: z.ZodString;
6
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ filename: z.ZodString;
8
+ content: z.ZodString;
9
+ }, z.core.$strip>>>;
10
+ }, z.core.$strip>;
11
+ /** Output schema for `taskless rule improve --json` on success */
12
+ export declare const outputSchema: z.ZodObject<{
13
+ success: z.ZodLiteral<true>;
14
+ requestId: z.ZodString;
15
+ rules: z.ZodArray<z.ZodString>;
16
+ files: z.ZodArray<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ /** Error schema for `taskless rule improve --json` on failure */
19
+ export declare const errorSchema: z.ZodObject<{
20
+ error: z.ZodString;
21
+ }, z.core.$strip>;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Rewrite the canonical `npx @taskless/cli` invocation to the build-target
3
+ * invocation (`__TASKLESS_CLI__`).
4
+ *
5
+ * A no-op for prod builds, where the define equals {@link PROD_INVOCATION}, so
6
+ * emitted content stays byte-identical to source. For `dev`/`self` builds it
7
+ * swaps both the bare form and the `@latest`-pinned form (the version-pinned
8
+ * form first, so the bare replacement can't leave a dangling `@latest`).
9
+ */
10
+ export declare function applyCliInvocation(content: string): string;
11
+ /**
12
+ * Prepend the build-target notice (`__TASKLESS_CLI_NOTICE__`) to a canonical
13
+ * skill/command body. A no-op for prod, where the notice is empty. For
14
+ * `dev`/`self` builds the banner is inserted immediately after the frontmatter
15
+ * block so it renders as the first body line without corrupting the YAML.
16
+ */
17
+ export declare function withCliBuildNotice(content: string): string;
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@taskless/cli-nightly",
3
+ "version": "0.11.0-20260820055459x599d3f3",
4
+ "license": "MIT",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/taskless/cli.git",
8
+ "directory": "packages/cli"
9
+ },
10
+ "scripts": {
11
+ "build": "vite build && tsc -p tsconfig.prompts.json",
12
+ "build:dev": "TASKLESS_BUILD_TARGET=dev vite build",
13
+ "build:self": "TASKLESS_BUILD_TARGET=self vite build",
14
+ "generate:api": "openapi-typescript https://app.taskless.io/cli/api/__schema -o src/generated/api.d.ts",
15
+ "generate:ast-grep-schema": "tsx scripts/fetch-ast-grep-schema.ts",
16
+ "generate:rule-hash-vectors": "tsx scripts/fetch-rule-hash-vectors.ts",
17
+ "prebuild": "tsx scripts/fetch-rule-hash-vectors.ts",
18
+ "test": "vitest run",
19
+ "typecheck": "tsc --noEmit"
20
+ },
21
+ "type": "module",
22
+ "module": "./dist/index.js",
23
+ "exports": {
24
+ ".": {
25
+ "import": "./dist/index.js"
26
+ },
27
+ "./prompts": {
28
+ "types": "./dist/prompts/index.d.ts",
29
+ "import": "./dist/prompts.js"
30
+ }
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "engines": {
36
+ "node": ">=22.22.0"
37
+ },
38
+ "dependencies": {
39
+ "@clack/prompts": "^1.2.0",
40
+ "chalk": "^5.6.2",
41
+ "citty": "^0.1.6",
42
+ "jose": "^6.2.2",
43
+ "openapi-fetch": "^0.17.0",
44
+ "picocolors": "^1.1.1",
45
+ "posthog-node": "^5.28.11",
46
+ "smol-toml": "^1.6.1",
47
+ "sprintf-js": "^1.1.3",
48
+ "tsx": "^4.21.0",
49
+ "yaml": "^2.8.2",
50
+ "zod": "^4.3.6"
51
+ },
52
+ "devDependencies": {
53
+ "@ast-grep/cli": "0.41.0",
54
+ "@types/sprintf-js": "^1.1.4",
55
+ "openapi-typescript": "^7.13.0",
56
+ "typescript": "^5.7.2",
57
+ "vite": "^7.3.1",
58
+ "vite-tsconfig-paths": "^5.1.4",
59
+ "vitest": "^3.2.3"
60
+ },
61
+ "bin": {
62
+ "taskless": "./dist/index.js"
63
+ },
64
+ "optionalDependencies": {
65
+ "@ast-grep/cli-darwin-arm64": "0.41.0",
66
+ "@ast-grep/cli-darwin-x64": "0.41.0",
67
+ "@ast-grep/cli-linux-arm64-gnu": "0.41.0",
68
+ "@ast-grep/cli-linux-x64-gnu": "0.41.0",
69
+ "@ast-grep/cli-win32-arm64-msvc": "0.41.0",
70
+ "@ast-grep/cli-win32-ia32-msvc": "0.41.0",
71
+ "@ast-grep/cli-win32-x64-msvc": "0.41.0",
72
+ "@taskless/vale-darwin-arm64": "3.17.1-20260810052605",
73
+ "@taskless/vale-darwin-x64": "3.17.1-20260810052605",
74
+ "@taskless/vale-linux-arm64": "3.17.1-20260810052605",
75
+ "@taskless/vale-linux-x64": "3.17.1-20260810052605",
76
+ "@taskless/vale-win32-arm64": "3.17.1-20260810052605",
77
+ "@taskless/vale-win32-x64": "3.17.1-20260810052605"
78
+ }
79
+ }