@omni-oss/create-jobs 0.1.9 → 0.1.12

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/CHANGELOG.md CHANGED
@@ -2,6 +2,33 @@
2
2
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
3
3
 
4
4
  - - -
5
+ ## @omni-oss/create-jobs-v0.1.12 - 2026-05-22
6
+ #### Bug Fixes
7
+ - (**@omni-oss/create-jobs**) remove cache hit determination - (cb32459) - Clarence Manuel
8
+ - only skip completed task when exit_code is indicates success - (fd8a11e) - Clarence Manuel
9
+ - create-jobs not respecting cache_hit - (e23ed9f) - Clarence Manuel
10
+ - path error on windows - (8c75e42) - Clarence Manuel
11
+
12
+ - - -
13
+
14
+ ## @omni-oss/create-jobs-v0.1.11 - 2026-05-18
15
+ #### Bug Fixes
16
+ - schema mismatch - (fc1835a) - Clarence Manuel
17
+
18
+ - - -
19
+
20
+ ## @omni-oss/create-jobs-v0.1.10 - 2026-05-18
21
+ #### Bug Fixes
22
+ - schema mismatch - (e9162ab) - Clarence Manuel
23
+ - error due to incorrect field name - (e713001) - Clarence Manuel
24
+ #### Miscellaneous Chores
25
+ - add node, bun, deno types to tsconfig - (dab875e) - Clarence Manuel
26
+ - update omni configs json schema links [skip ci] - (d484be7) - Clarence Manuel
27
+ - update vite configs - (e326f27) - Clarence Manuel
28
+ - utilize bun catalogs - (40fe122) - Clarence Manuel
29
+
30
+ - - -
31
+
5
32
  ## @omni-oss/create-jobs-v0.1.9 - 2026-02-14
6
33
  #### Bug Fixes
7
34
  - (**@omni-oss/create-jobs**) improve artifact name escaping - (4eb9d91) - Clarence Manuel
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env bun
2
- "use strict";const r=require("node:fs/promises"),i=require("@commander-js/extra-typings"),s=require("./schemas-DiJRB439.js"),l=new i.Command;l.argument("<input>","The input file to read from.").option("-o, --output <output>","The output file to write to.").option("-r, --root <root>","Override the workspace root.").action(async(n,e)=>{const a=await r.readFile(n,"utf-8"),u=JSON.parse(a),t=s.TaskResultArraySchema.safeParse(u);if(t.success){const c=t.data,o=s.createJobs(c,e.root);e.output?await r.writeFile(e.output,JSON.stringify(o,null,2)):console.log(o)}else console.error(t.error),process.exit(1)}).parseAsync();
2
+ const e=require("./src-CL-kcNXH.js");let t=require("node:fs/promises");t=e.i(t),new(require("@commander-js/extra-typings")).Command().argument(`<input>`,`The input file to read from.`).option(`-o, --output <output>`,`The output file to write to.`).option(`-r, --root <root>`,`Override the workspace root.`).action(async(n,r)=>{let i=await t.default.readFile(n,`utf-8`),a=JSON.parse(i),o=e.t.safeParse(a);if(o.success){let n=o.data,i=e.r(n,r.root);r.output?await t.default.writeFile(r.output,JSON.stringify(i,null,2)):console.log(i)}else console.error(o.error),process.exit(1)}).parseAsync();
@@ -1,16 +1,13 @@
1
1
  #!/usr/bin/env bun
2
- import r from "node:fs/promises";
3
- import { Command as u } from "@commander-js/extra-typings";
4
- import { T as c, c as p } from "./schemas-DqxD-_k8.mjs";
5
- const l = new u();
6
- l.argument("<input>", "The input file to read from.").option("-o, --output <output>", "The output file to write to.").option("-r, --root <root>", "Override the workspace root.").action(async (s, t) => {
7
- const a = await r.readFile(s, "utf-8"), n = JSON.parse(a), o = c.safeParse(n);
8
- if (o.success) {
9
- const i = o.data, e = p(i, t.root);
10
- t.output ? await r.writeFile(
11
- t.output,
12
- JSON.stringify(e, null, 2)
13
- ) : console.log(e);
14
- } else
15
- console.error(o.error), process.exit(1);
2
+ import { TaskResultArraySchema as e, createJobs as t } from "./index.mjs";
3
+ import n from "node:fs/promises";
4
+ import { Command as r } from "@commander-js/extra-typings";
5
+ //#region src/cli/index.ts
6
+ new r().argument("<input>", "The input file to read from.").option("-o, --output <output>", "The output file to write to.").option("-r, --root <root>", "Override the workspace root.").action(async (r, i) => {
7
+ let a = await n.readFile(r, "utf-8"), o = JSON.parse(a), s = e.safeParse(o);
8
+ if (s.success) {
9
+ let e = s.data, r = t(e, i.root);
10
+ i.output ? await n.writeFile(i.output, JSON.stringify(r, null, 2)) : console.log(r);
11
+ } else console.error(s.error), process.exit(1);
16
12
  }).parseAsync();
13
+ //#endregion
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./schemas-DiJRB439.js");exports.TaskResultArraySchema=e.TaskResultArraySchema;exports.TaskResultSchema=e.TaskResultSchema;exports.createJobs=e.createJobs;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./src-CL-kcNXH.js");exports.TaskResultArraySchema=e.t,exports.TaskResultSchema=e.n,exports.createJobs=e.r;
package/dist/index.mjs CHANGED
@@ -1,6 +1,115 @@
1
- import { T as e, a as r, c } from "./schemas-DqxD-_k8.mjs";
2
- export {
3
- e as TaskResultArraySchema,
4
- r as TaskResultSchema,
5
- c as createJobs
6
- };
1
+ import e from "node:path";
2
+ import t from "node:process";
3
+ import { z as n } from "zod";
4
+ //#region src/create-jobs.ts
5
+ function r(e, n) {
6
+ n ||= t.cwd();
7
+ let r = {
8
+ test: {
9
+ rust: [],
10
+ typescript: []
11
+ },
12
+ build: {
13
+ rust: [],
14
+ typescript: []
15
+ },
16
+ publish: {
17
+ generic: [],
18
+ npm: [],
19
+ rust_github: []
20
+ }
21
+ };
22
+ for (let t of e) {
23
+ if (t.status === "skipped") continue;
24
+ let e = t.task;
25
+ (e.task_name === "test" || t.details.meta?.is_test_task) && (t.details.meta?.language === "rust" && r.test.rust.push(i(t, n)), t.details.meta?.language === "typescript" && r.test.typescript.push(i(t, n))), (e.task_name === "build" || t.details.meta?.is_build_task) && (t.details.meta?.language === "rust" && r.build.rust.push(i(t, n)), t.details.meta?.language === "typescript" && r.build.typescript.push(i(t, n))), (e.task_name === "publish" || t.details.meta?.is_publish_task) && (t.details.meta?.language === "typescript" ? r.publish.npm.push(i(t, n)) : t.details.meta?.language === "rust" ? r.publish.rust_github.push(i(t, n)) : r.publish.generic.push(i(t, n)));
26
+ }
27
+ return r;
28
+ }
29
+ function i(t, n) {
30
+ let r = [], i = [];
31
+ if (t.details.output_files && t.details.output_files.length > 0) for (let o of t.details.output_files) {
32
+ let s = e.resolve(t.task.project_dir, o);
33
+ a(t.task.project_dir, s) ? i.push(e.relative(t.task.project_dir, s)) : r.push(e.relative(n, s));
34
+ }
35
+ return {
36
+ task_name: t.task.task_name,
37
+ project_name: t.task.project_name,
38
+ artifacts: {
39
+ project: {
40
+ name: `project-${o(t.task.project_name)}__${o(t.task.task_name)}`,
41
+ files: i,
42
+ files_count: i.length
43
+ },
44
+ workspace: {
45
+ name: `workspace-${o(t.task.project_name)}__${o(t.task.task_name)}`,
46
+ files: r,
47
+ files_count: r.length
48
+ }
49
+ },
50
+ project_dir: e.relative(n, t.task.project_dir),
51
+ meta: t.details.meta ?? {}
52
+ };
53
+ }
54
+ function a(t, n) {
55
+ let r = e.relative(t, n);
56
+ return r && !r.startsWith("..") && !e.isAbsolute(r);
57
+ }
58
+ function o(e) {
59
+ let t = encodeURIComponent(e);
60
+ return /^(con|prn|aux|nul|com[1-9]|lpt[1-9])$/i.test(t) && (t = `_${t}`), t;
61
+ }
62
+ //#endregion
63
+ //#region src/schemas.ts
64
+ var s = n.object({
65
+ secs: n.number().int().nonnegative().describe("The number of whole seconds elapsed."),
66
+ nanos: n.number().int().nonnegative().describe("The number of nanoseconds elapsed.")
67
+ }), c = n.object({ runner: n.string().describe("The runner to use for the target.") }), l = n.object({
68
+ npm: n.boolean().optional().describe("Whether to publish to npm."),
69
+ github: n.boolean().optional().describe("Whether to publish to github.")
70
+ }), u = n.object({
71
+ type: n.string().optional().describe("The type of project (e.g., library, service, application)."),
72
+ language: n.string().optional().describe("The primary language of the project."),
73
+ targets: n.record(n.string(), c).optional().describe("The targets to build."),
74
+ release: l.optional(),
75
+ is_publish_task: n.boolean().optional().describe("Whether this is a publish job."),
76
+ is_build_task: n.boolean().optional().describe("Whether this is a build job."),
77
+ is_test_task: n.boolean().optional().describe("Whether this is a test job.")
78
+ }), d = n.object({
79
+ meta: u.optional(),
80
+ output_files: n.array(n.string()).optional().describe("The output files generated.")
81
+ }), f = n.object({
82
+ task_name: n.string().describe("The short name of the task (e.g., 'test', 'build')."),
83
+ task_exec: n.string().nullish().describe("The command executed for the task."),
84
+ project_name: n.string().describe("The name of the project."),
85
+ project_dir: n.string().describe("The absolute directory path of the project."),
86
+ full_task_name: n.string().describe("The fully qualified task name (e.g., 'omni_utils#test')."),
87
+ dependencies: n.array(n.string()).describe("A list of dependent task names."),
88
+ enabled: n.boolean().or(n.string()).optional().describe("Whether the task is enabled by configuration. Either a boolean or a tera template string that evaluates to a boolean."),
89
+ interactive: n.boolean().describe("Whether the task is interactive."),
90
+ persistent: n.boolean().describe("Whether the task is persistent.")
91
+ }), p = n.object({
92
+ status: n.literal("completed"),
93
+ hash: n.string().describe("The task's content hash (Base64 encoded string). Used for caching."),
94
+ task: f,
95
+ exit_code: n.number().int().describe("The exit code of the executed command (typically 0 for success)."),
96
+ elapsed: s.describe("The duration the task took to execute."),
97
+ cache_hit: n.boolean().describe("Indicates if the result was pulled from cache."),
98
+ details: d
99
+ }), m = n.object({
100
+ status: n.literal("errored"),
101
+ task: f,
102
+ error: n.string().describe("The error message."),
103
+ details: d
104
+ }), h = n.object({
105
+ status: n.literal("skipped"),
106
+ task: f,
107
+ skip_reason: n.string().describe("The reason the task was skipped (e.g., 'disabled')."),
108
+ details: d
109
+ }), g = n.discriminatedUnion("status", [
110
+ p,
111
+ h,
112
+ m
113
+ ]).describe("Schema for a single task execution result (completed or skipped)."), _ = n.array(g).describe("An array of task execution results.");
114
+ //#endregion
115
+ export { _ as TaskResultArraySchema, g as TaskResultSchema, r as createJobs };
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("node:path");c=s(c);let l=require("node:process");l=s(l);let u=require("zod");function d(e,t){t||=l.default.cwd();let n={test:{rust:[],typescript:[]},build:{rust:[],typescript:[]},publish:{generic:[],npm:[],rust_github:[]}};for(let r of e){if(r.status===`skipped`)continue;let e=r.task;(e.task_name===`test`||r.details.meta?.is_test_task)&&(r.details.meta?.language===`rust`&&n.test.rust.push(f(r,t)),r.details.meta?.language===`typescript`&&n.test.typescript.push(f(r,t))),(e.task_name===`build`||r.details.meta?.is_build_task)&&(r.details.meta?.language===`rust`&&n.build.rust.push(f(r,t)),r.details.meta?.language===`typescript`&&n.build.typescript.push(f(r,t))),(e.task_name===`publish`||r.details.meta?.is_publish_task)&&(r.details.meta?.language===`typescript`?n.publish.npm.push(f(r,t)):r.details.meta?.language===`rust`?n.publish.rust_github.push(f(r,t)):n.publish.generic.push(f(r,t)))}return n}function f(e,t){let n=[],r=[];if(e.details.output_files&&e.details.output_files.length>0)for(let i of e.details.output_files){let a=c.default.resolve(e.task.project_dir,i);p(e.task.project_dir,a)?r.push(c.default.relative(e.task.project_dir,a)):n.push(c.default.relative(t,a))}return{task_name:e.task.task_name,project_name:e.task.project_name,artifacts:{project:{name:`project-${m(e.task.project_name)}__${m(e.task.task_name)}`,files:r,files_count:r.length},workspace:{name:`workspace-${m(e.task.project_name)}__${m(e.task.task_name)}`,files:n,files_count:n.length}},project_dir:c.default.relative(t,e.task.project_dir),meta:e.details.meta??{}}}function p(e,t){let n=c.default.relative(e,t);return n&&!n.startsWith(`..`)&&!c.default.isAbsolute(n)}function m(e){let t=encodeURIComponent(e);return/^(con|prn|aux|nul|com[1-9]|lpt[1-9])$/i.test(t)&&(t=`_${t}`),t}var h=u.z.object({secs:u.z.number().int().nonnegative().describe(`The number of whole seconds elapsed.`),nanos:u.z.number().int().nonnegative().describe(`The number of nanoseconds elapsed.`)}),g=u.z.object({runner:u.z.string().describe(`The runner to use for the target.`)}),_=u.z.object({npm:u.z.boolean().optional().describe(`Whether to publish to npm.`),github:u.z.boolean().optional().describe(`Whether to publish to github.`)}),v=u.z.object({type:u.z.string().optional().describe(`The type of project (e.g., library, service, application).`),language:u.z.string().optional().describe(`The primary language of the project.`),targets:u.z.record(u.z.string(),g).optional().describe(`The targets to build.`),release:_.optional(),is_publish_task:u.z.boolean().optional().describe(`Whether this is a publish job.`),is_build_task:u.z.boolean().optional().describe(`Whether this is a build job.`),is_test_task:u.z.boolean().optional().describe(`Whether this is a test job.`)}),y=u.z.object({meta:v.optional(),output_files:u.z.array(u.z.string()).optional().describe(`The output files generated.`)}),b=u.z.object({task_name:u.z.string().describe(`The short name of the task (e.g., 'test', 'build').`),task_exec:u.z.string().nullish().describe(`The command executed for the task.`),project_name:u.z.string().describe(`The name of the project.`),project_dir:u.z.string().describe(`The absolute directory path of the project.`),full_task_name:u.z.string().describe(`The fully qualified task name (e.g., 'omni_utils#test').`),dependencies:u.z.array(u.z.string()).describe(`A list of dependent task names.`),enabled:u.z.boolean().or(u.z.string()).optional().describe(`Whether the task is enabled by configuration. Either a boolean or a tera template string that evaluates to a boolean.`),interactive:u.z.boolean().describe(`Whether the task is interactive.`),persistent:u.z.boolean().describe(`Whether the task is persistent.`)}),x=u.z.object({status:u.z.literal(`completed`),hash:u.z.string().describe(`The task's content hash (Base64 encoded string). Used for caching.`),task:b,exit_code:u.z.number().int().describe(`The exit code of the executed command (typically 0 for success).`),elapsed:h.describe(`The duration the task took to execute.`),cache_hit:u.z.boolean().describe(`Indicates if the result was pulled from cache.`),details:y}),S=u.z.object({status:u.z.literal(`errored`),task:b,error:u.z.string().describe(`The error message.`),details:y}),C=u.z.object({status:u.z.literal(`skipped`),task:b,skip_reason:u.z.string().describe(`The reason the task was skipped (e.g., 'disabled').`),details:y}),w=u.z.discriminatedUnion(`status`,[x,C,S]).describe(`Schema for a single task execution result (completed or skipped).`),T=u.z.array(w).describe(`An array of task execution results.`);Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omni-oss/create-jobs",
3
- "version": "0.1.9",
3
+ "version": "0.1.12",
4
4
  "bin": "./dist/create-jobs.mjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -19,16 +19,16 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "zod": "^4.3.6",
22
+ "zod": "^4.4.1",
23
23
  "commander": "^14.0.3",
24
- "@commander-js/extra-typings": "14.0.0"
24
+ "@commander-js/extra-typings": "^14.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@omni-oss/tsconfig": "^0.1.1",
28
- "@omni-oss/vite-config": "^0.1.0",
29
- "@omni-oss/vitest-config": "^0.0.0",
30
- "typescript": "^5.9.3",
31
- "@types/node": "25.2.2",
32
- "@types/bun": "^1.3.8"
27
+ "@omni-oss/tsconfig": "workspace:^",
28
+ "@omni-oss/vite-config": "workspace:^",
29
+ "@omni-oss/vitest-config": "workspace:^",
30
+ "typescript": "^6.0.3",
31
+ "@types/node": "^25.6.0",
32
+ "@types/bun": "^1.3.13"
33
33
  }
34
34
  }
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env bun
2
- export {};
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":""}
@@ -1,36 +0,0 @@
1
- import { Meta, TaskResultArray } from './schemas';
2
- export type Artifact = {
3
- name: string;
4
- files: string[];
5
- files_count: number;
6
- };
7
- export type Job = {
8
- task_name: string;
9
- project_name: string;
10
- project_dir: string;
11
- artifacts: {
12
- workspace: Artifact;
13
- project: Artifact;
14
- };
15
- meta: Meta;
16
- };
17
- export type Jobs = {
18
- test: TestJobs;
19
- build: BuildJobs;
20
- publish: PublishJobs;
21
- };
22
- export type TestJobs = {
23
- rust: Job[];
24
- typescript: Job[];
25
- };
26
- export type BuildJobs = {
27
- rust: Job[];
28
- typescript: Job[];
29
- };
30
- export type PublishJobs = {
31
- npm: Job[];
32
- generic: Job[];
33
- rust_github: Job[];
34
- };
35
- export declare function createJobs(results: TaskResultArray, rootDir?: string): Jobs;
36
- //# sourceMappingURL=create-jobs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-jobs.d.ts","sourceRoot":"","sources":["../src/create-jobs.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAc,eAAe,EAAE,MAAM,WAAW,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE;QACP,SAAS,EAAE,QAAQ,CAAC;QACpB,OAAO,EAAE,QAAQ,CAAC;KACrB,CAAC;IACF,IAAI,EAAE,IAAI,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACf,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,WAAW,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACnB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,EAAE,GAAG,EAAE,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACpB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,EAAE,GAAG,EAAE,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACtB,GAAG,EAAE,GAAG,EAAE,CAAC;IACX,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,WAAW,EAAE,GAAG,EAAE,CAAC;CACtB,CAAC;AAEF,wBAAgB,UAAU,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CA8D3E"}
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './create-jobs';
2
- export * from './schemas';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- "use strict";const r=require("node:path"),u=require("node:process"),e=require("zod");function b(s,a){a||(a=u.cwd());const i={test:{rust:[],typescript:[]},build:{rust:[],typescript:[]},publish:{generic:[],npm:[],rust_github:[]}};for(const t of s){if(t.status==="skipped")continue;const o=t.task;(o.task_name==="test"||t.details.meta?.is_test_task)&&(t.details.meta?.language==="rust"&&i.test.rust.push(n(t,a)),t.details.meta?.language==="typescript"&&i.test.typescript.push(n(t,a))),(o.task_name==="build"||t.details.meta?.is_build_task)&&(t.details.meta?.language==="rust"&&i.build.rust.push(n(t,a)),t.details.meta?.language==="typescript"&&i.build.typescript.push(n(t,a))),(o.task_name==="publish"||t.details.meta?.is_publish_task)&&(t.details.meta?.language==="typescript"?i.publish.npm.push(n(t,a)):t.details.meta?.language==="rust"?i.publish.rust_github.push(n(t,a)):i.publish.generic.push(n(t,a)))}return i}function n(s,a){const i=[],t=[];if(s.details.output_files&&s.details.output_files.length>0)for(const o of s.details.output_files){const l=r.resolve(s.task.project_dir,o);m(s.task.project_dir,l)?t.push(r.relative(s.task.project_dir,l)):i.push(r.relative(a,l))}return{task_name:s.task.task_name,project_name:s.task.project_name,artifacts:{project:{name:`project-${c(s.task.project_name)}__${c(s.task.task_name)}`,files:t,files_count:t.length},workspace:{name:`workspace-${c(s.task.project_name)}__${c(s.task.task_name)}`,files:i,files_count:i.length}},project_dir:r.relative(a,s.task.project_dir),meta:s.details.meta??{}}}function m(s,a){const i=r.relative(s,a);return i&&!i.startsWith("..")&&!r.isAbsolute(i)}function c(s){let a=encodeURIComponent(s);return/^(con|prn|aux|nul|com[1-9]|lpt[1-9])$/i.test(a)&&(a=`_${a}`),a}const k=e.z.object({secs:e.z.number().int().nonnegative().describe("The number of whole seconds elapsed."),nanos:e.z.number().int().nonnegative().describe("The number of nanoseconds elapsed.")}),f=e.z.object({runner:e.z.string().describe("The runner to use for the target.")}),g=e.z.object({npm:e.z.boolean().optional().describe("Whether to publish to npm."),github:e.z.boolean().optional().describe("Whether to publish to github.")}),_=e.z.object({type:e.z.string().optional().describe("The type of project (e.g., library, service, application)."),language:e.z.string().optional().describe("The primary language of the project."),targets:e.z.record(e.z.string(),f).optional().describe("The targets to build."),release:g.optional(),is_publish_task:e.z.boolean().optional().describe("Whether this is a publish job."),is_build_task:e.z.boolean().optional().describe("Whether this is a build job."),is_test_task:e.z.boolean().optional().describe("Whether this is a test job.")}),d=e.z.object({meta:_.optional(),output_files:e.z.array(e.z.string()).optional().describe("The output files generated.")}),p=e.z.object({task_name:e.z.string().describe("The short name of the task (e.g., 'test', 'build')."),task_command:e.z.string().describe("The command executed for the task."),project_name:e.z.string().describe("The name of the project."),project_dir:e.z.string().describe("The absolute directory path of the project."),full_task_name:e.z.string().describe("The fully qualified task name (e.g., 'omni_utils#test')."),dependencies:e.z.array(e.z.string()).describe("A list of dependent task names."),enabled:e.z.boolean().or(e.z.string()).optional().describe("Whether the task is enabled by configuration. Either a boolean or a tera template string that evaluates to a boolean."),interactive:e.z.boolean().describe("Whether the task is interactive."),persistent:e.z.boolean().describe("Whether the task is persistent.")}),z=e.z.object({status:e.z.literal("completed"),hash:e.z.string().describe("The task's content hash (Base64 encoded string). Used for caching."),task:p,exit_code:e.z.number().int().describe("The exit code of the executed command (typically 0 for success)."),elapsed:k.describe("The duration the task took to execute."),cache_hit:e.z.boolean().describe("Indicates if the result was pulled from cache."),details:d}),j=e.z.object({status:e.z.literal("errored"),task:p,error:e.z.string().describe("The error message."),details:d}),T=e.z.object({status:e.z.literal("skipped"),task:p,skip_reason:e.z.string().describe("The reason the task was skipped (e.g., 'disabled')."),details:d}),h=e.z.discriminatedUnion("status",[z,T,j]).describe("Schema for a single task execution result (completed or skipped)."),y=e.z.array(h).describe("An array of task execution results.");exports.TaskResultArraySchema=y;exports.TaskResultSchema=h;exports.createJobs=b;
@@ -1,129 +0,0 @@
1
- import n from "node:path";
2
- import h from "node:process";
3
- import { z as e } from "zod";
4
- function x(s, a) {
5
- a || (a = h.cwd());
6
- const i = {
7
- test: {
8
- rust: [],
9
- typescript: []
10
- },
11
- build: {
12
- rust: [],
13
- typescript: []
14
- },
15
- publish: {
16
- generic: [],
17
- npm: [],
18
- rust_github: []
19
- }
20
- };
21
- for (const t of s) {
22
- if (t.status === "skipped")
23
- continue;
24
- const r = t.task;
25
- (r.task_name === "test" || t.details.meta?.is_test_task) && (t.details.meta?.language === "rust" && i.test.rust.push(o(t, a)), t.details.meta?.language === "typescript" && i.test.typescript.push(o(t, a))), (r.task_name === "build" || t.details.meta?.is_build_task) && (t.details.meta?.language === "rust" && i.build.rust.push(o(t, a)), t.details.meta?.language === "typescript" && i.build.typescript.push(o(t, a))), (r.task_name === "publish" || t.details.meta?.is_publish_task) && (t.details.meta?.language === "typescript" ? i.publish.npm.push(o(t, a)) : t.details.meta?.language === "rust" ? i.publish.rust_github.push(o(t, a)) : i.publish.generic.push(o(t, a)));
26
- }
27
- return i;
28
- }
29
- function o(s, a) {
30
- const i = [], t = [];
31
- if (s.details.output_files && s.details.output_files.length > 0)
32
- for (const r of s.details.output_files) {
33
- const l = n.resolve(s.task.project_dir, r);
34
- u(s.task.project_dir, l) ? t.push(
35
- n.relative(s.task.project_dir, l)
36
- ) : i.push(n.relative(a, l));
37
- }
38
- return {
39
- task_name: s.task.task_name,
40
- project_name: s.task.project_name,
41
- artifacts: {
42
- project: {
43
- name: `project-${c(s.task.project_name)}__${c(s.task.task_name)}`,
44
- files: t,
45
- files_count: t.length
46
- },
47
- workspace: {
48
- name: `workspace-${c(s.task.project_name)}__${c(s.task.task_name)}`,
49
- files: i,
50
- files_count: i.length
51
- }
52
- },
53
- project_dir: n.relative(a, s.task.project_dir),
54
- meta: s.details.meta ?? {}
55
- };
56
- }
57
- function u(s, a) {
58
- const i = n.relative(s, a);
59
- return i && !i.startsWith("..") && !n.isAbsolute(i);
60
- }
61
- function c(s) {
62
- let a = encodeURIComponent(s);
63
- return /^(con|prn|aux|nul|com[1-9]|lpt[1-9])$/i.test(a) && (a = `_${a}`), a;
64
- }
65
- const b = e.object({
66
- secs: e.number().int().nonnegative().describe("The number of whole seconds elapsed."),
67
- nanos: e.number().int().nonnegative().describe("The number of nanoseconds elapsed.")
68
- }), m = e.object({
69
- runner: e.string().describe("The runner to use for the target.")
70
- }), f = e.object({
71
- npm: e.boolean().optional().describe("Whether to publish to npm."),
72
- github: e.boolean().optional().describe("Whether to publish to github.")
73
- }), k = e.object({
74
- type: e.string().optional().describe("The type of project (e.g., library, service, application)."),
75
- language: e.string().optional().describe("The primary language of the project."),
76
- targets: e.record(e.string(), m).optional().describe("The targets to build."),
77
- release: f.optional(),
78
- is_publish_task: e.boolean().optional().describe("Whether this is a publish job."),
79
- is_build_task: e.boolean().optional().describe("Whether this is a build job."),
80
- is_test_task: e.boolean().optional().describe("Whether this is a test job.")
81
- }), p = e.object({
82
- meta: k.optional(),
83
- output_files: e.array(e.string()).optional().describe("The output files generated.")
84
- }), d = e.object({
85
- task_name: e.string().describe("The short name of the task (e.g., 'test', 'build')."),
86
- task_command: e.string().describe("The command executed for the task."),
87
- project_name: e.string().describe("The name of the project."),
88
- project_dir: e.string().describe("The absolute directory path of the project."),
89
- full_task_name: e.string().describe("The fully qualified task name (e.g., 'omni_utils#test')."),
90
- dependencies: e.array(e.string()).describe("A list of dependent task names."),
91
- enabled: e.boolean().or(e.string()).optional().describe(
92
- "Whether the task is enabled by configuration. Either a boolean or a tera template string that evaluates to a boolean."
93
- ),
94
- interactive: e.boolean().describe("Whether the task is interactive."),
95
- persistent: e.boolean().describe("Whether the task is persistent.")
96
- }), g = e.object({
97
- status: e.literal("completed"),
98
- hash: e.string().describe(
99
- "The task's content hash (Base64 encoded string). Used for caching."
100
- ),
101
- task: d,
102
- exit_code: e.number().int().describe(
103
- "The exit code of the executed command (typically 0 for success)."
104
- ),
105
- elapsed: b.describe("The duration the task took to execute."),
106
- cache_hit: e.boolean().describe("Indicates if the result was pulled from cache."),
107
- details: p
108
- }), _ = e.object({
109
- status: e.literal("errored"),
110
- task: d,
111
- error: e.string().describe("The error message."),
112
- details: p
113
- }), j = e.object({
114
- status: e.literal("skipped"),
115
- task: d,
116
- skip_reason: e.string().describe("The reason the task was skipped (e.g., 'disabled')."),
117
- details: p
118
- }), T = e.discriminatedUnion("status", [
119
- g,
120
- j,
121
- _
122
- ]).describe(
123
- "Schema for a single task execution result (completed or skipped)."
124
- ), W = e.array(T).describe("An array of task execution results.");
125
- export {
126
- W as T,
127
- T as a,
128
- x as c
129
- };
package/dist/schemas.d.ts DELETED
@@ -1,333 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Defines the structure for the duration object.
4
- */
5
- declare const ElapsedSchema: z.ZodObject<{
6
- secs: z.ZodNumber;
7
- nanos: z.ZodNumber;
8
- }, z.core.$strip>;
9
- /**
10
- * Defines the metadata for the project/task details.
11
- */
12
- declare const MetaSchema: z.ZodObject<{
13
- type: z.ZodOptional<z.ZodString>;
14
- language: z.ZodOptional<z.ZodString>;
15
- targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
16
- runner: z.ZodString;
17
- }, z.core.$strip>>>;
18
- release: z.ZodOptional<z.ZodObject<{
19
- npm: z.ZodOptional<z.ZodBoolean>;
20
- github: z.ZodOptional<z.ZodBoolean>;
21
- }, z.core.$strip>>;
22
- is_publish_task: z.ZodOptional<z.ZodBoolean>;
23
- is_build_task: z.ZodOptional<z.ZodBoolean>;
24
- is_test_task: z.ZodOptional<z.ZodBoolean>;
25
- }, z.core.$strip>;
26
- /**
27
- * Defines the details of the task that was run or skipped.
28
- */
29
- declare const TaskSchema: z.ZodObject<{
30
- task_name: z.ZodString;
31
- task_command: z.ZodString;
32
- project_name: z.ZodString;
33
- project_dir: z.ZodString;
34
- full_task_name: z.ZodString;
35
- dependencies: z.ZodArray<z.ZodString>;
36
- enabled: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
37
- interactive: z.ZodBoolean;
38
- persistent: z.ZodBoolean;
39
- }, z.core.$strip>;
40
- /**
41
- * Schema for a task that successfully completed.
42
- * Note: 'elapsed', 'exit_code', 'hash', and 'cache_hit' are required here.
43
- */
44
- declare const CompletedTaskSchema: z.ZodObject<{
45
- status: z.ZodLiteral<"completed">;
46
- hash: z.ZodString;
47
- task: z.ZodObject<{
48
- task_name: z.ZodString;
49
- task_command: z.ZodString;
50
- project_name: z.ZodString;
51
- project_dir: z.ZodString;
52
- full_task_name: z.ZodString;
53
- dependencies: z.ZodArray<z.ZodString>;
54
- enabled: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
55
- interactive: z.ZodBoolean;
56
- persistent: z.ZodBoolean;
57
- }, z.core.$strip>;
58
- exit_code: z.ZodNumber;
59
- elapsed: z.ZodObject<{
60
- secs: z.ZodNumber;
61
- nanos: z.ZodNumber;
62
- }, z.core.$strip>;
63
- cache_hit: z.ZodBoolean;
64
- details: z.ZodObject<{
65
- meta: z.ZodOptional<z.ZodObject<{
66
- type: z.ZodOptional<z.ZodString>;
67
- language: z.ZodOptional<z.ZodString>;
68
- targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
69
- runner: z.ZodString;
70
- }, z.core.$strip>>>;
71
- release: z.ZodOptional<z.ZodObject<{
72
- npm: z.ZodOptional<z.ZodBoolean>;
73
- github: z.ZodOptional<z.ZodBoolean>;
74
- }, z.core.$strip>>;
75
- is_publish_task: z.ZodOptional<z.ZodBoolean>;
76
- is_build_task: z.ZodOptional<z.ZodBoolean>;
77
- is_test_task: z.ZodOptional<z.ZodBoolean>;
78
- }, z.core.$strip>>;
79
- output_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
- }, z.core.$strip>;
81
- }, z.core.$strip>;
82
- /**
83
- * Schema for a task that was skipped.
84
- * Note: 'skip_reason' is required here, and fields like 'hash' or 'elapsed' are omitted.
85
- */
86
- declare const SkippedTaskSchema: z.ZodObject<{
87
- status: z.ZodLiteral<"skipped">;
88
- task: z.ZodObject<{
89
- task_name: z.ZodString;
90
- task_command: z.ZodString;
91
- project_name: z.ZodString;
92
- project_dir: z.ZodString;
93
- full_task_name: z.ZodString;
94
- dependencies: z.ZodArray<z.ZodString>;
95
- enabled: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
96
- interactive: z.ZodBoolean;
97
- persistent: z.ZodBoolean;
98
- }, z.core.$strip>;
99
- skip_reason: z.ZodString;
100
- details: z.ZodObject<{
101
- meta: z.ZodOptional<z.ZodObject<{
102
- type: z.ZodOptional<z.ZodString>;
103
- language: z.ZodOptional<z.ZodString>;
104
- targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
105
- runner: z.ZodString;
106
- }, z.core.$strip>>>;
107
- release: z.ZodOptional<z.ZodObject<{
108
- npm: z.ZodOptional<z.ZodBoolean>;
109
- github: z.ZodOptional<z.ZodBoolean>;
110
- }, z.core.$strip>>;
111
- is_publish_task: z.ZodOptional<z.ZodBoolean>;
112
- is_build_task: z.ZodOptional<z.ZodBoolean>;
113
- is_test_task: z.ZodOptional<z.ZodBoolean>;
114
- }, z.core.$strip>>;
115
- output_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
116
- }, z.core.$strip>;
117
- }, z.core.$strip>;
118
- /**
119
- * The primary schema for a single task result, using a discriminated union
120
- * based on the 'status' field to correctly type the required fields.
121
- */
122
- export declare const TaskResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
123
- status: z.ZodLiteral<"completed">;
124
- hash: z.ZodString;
125
- task: z.ZodObject<{
126
- task_name: z.ZodString;
127
- task_command: z.ZodString;
128
- project_name: z.ZodString;
129
- project_dir: z.ZodString;
130
- full_task_name: z.ZodString;
131
- dependencies: z.ZodArray<z.ZodString>;
132
- enabled: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
133
- interactive: z.ZodBoolean;
134
- persistent: z.ZodBoolean;
135
- }, z.core.$strip>;
136
- exit_code: z.ZodNumber;
137
- elapsed: z.ZodObject<{
138
- secs: z.ZodNumber;
139
- nanos: z.ZodNumber;
140
- }, z.core.$strip>;
141
- cache_hit: z.ZodBoolean;
142
- details: z.ZodObject<{
143
- meta: z.ZodOptional<z.ZodObject<{
144
- type: z.ZodOptional<z.ZodString>;
145
- language: z.ZodOptional<z.ZodString>;
146
- targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
147
- runner: z.ZodString;
148
- }, z.core.$strip>>>;
149
- release: z.ZodOptional<z.ZodObject<{
150
- npm: z.ZodOptional<z.ZodBoolean>;
151
- github: z.ZodOptional<z.ZodBoolean>;
152
- }, z.core.$strip>>;
153
- is_publish_task: z.ZodOptional<z.ZodBoolean>;
154
- is_build_task: z.ZodOptional<z.ZodBoolean>;
155
- is_test_task: z.ZodOptional<z.ZodBoolean>;
156
- }, z.core.$strip>>;
157
- output_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
158
- }, z.core.$strip>;
159
- }, z.core.$strip>, z.ZodObject<{
160
- status: z.ZodLiteral<"skipped">;
161
- task: z.ZodObject<{
162
- task_name: z.ZodString;
163
- task_command: z.ZodString;
164
- project_name: z.ZodString;
165
- project_dir: z.ZodString;
166
- full_task_name: z.ZodString;
167
- dependencies: z.ZodArray<z.ZodString>;
168
- enabled: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
169
- interactive: z.ZodBoolean;
170
- persistent: z.ZodBoolean;
171
- }, z.core.$strip>;
172
- skip_reason: z.ZodString;
173
- details: z.ZodObject<{
174
- meta: z.ZodOptional<z.ZodObject<{
175
- type: z.ZodOptional<z.ZodString>;
176
- language: z.ZodOptional<z.ZodString>;
177
- targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
178
- runner: z.ZodString;
179
- }, z.core.$strip>>>;
180
- release: z.ZodOptional<z.ZodObject<{
181
- npm: z.ZodOptional<z.ZodBoolean>;
182
- github: z.ZodOptional<z.ZodBoolean>;
183
- }, z.core.$strip>>;
184
- is_publish_task: z.ZodOptional<z.ZodBoolean>;
185
- is_build_task: z.ZodOptional<z.ZodBoolean>;
186
- is_test_task: z.ZodOptional<z.ZodBoolean>;
187
- }, z.core.$strip>>;
188
- output_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
189
- }, z.core.$strip>;
190
- }, z.core.$strip>, z.ZodObject<{
191
- status: z.ZodLiteral<"errored">;
192
- task: z.ZodObject<{
193
- task_name: z.ZodString;
194
- task_command: z.ZodString;
195
- project_name: z.ZodString;
196
- project_dir: z.ZodString;
197
- full_task_name: z.ZodString;
198
- dependencies: z.ZodArray<z.ZodString>;
199
- enabled: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
200
- interactive: z.ZodBoolean;
201
- persistent: z.ZodBoolean;
202
- }, z.core.$strip>;
203
- error: z.ZodString;
204
- details: z.ZodObject<{
205
- meta: z.ZodOptional<z.ZodObject<{
206
- type: z.ZodOptional<z.ZodString>;
207
- language: z.ZodOptional<z.ZodString>;
208
- targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
209
- runner: z.ZodString;
210
- }, z.core.$strip>>>;
211
- release: z.ZodOptional<z.ZodObject<{
212
- npm: z.ZodOptional<z.ZodBoolean>;
213
- github: z.ZodOptional<z.ZodBoolean>;
214
- }, z.core.$strip>>;
215
- is_publish_task: z.ZodOptional<z.ZodBoolean>;
216
- is_build_task: z.ZodOptional<z.ZodBoolean>;
217
- is_test_task: z.ZodOptional<z.ZodBoolean>;
218
- }, z.core.$strip>>;
219
- output_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
220
- }, z.core.$strip>;
221
- }, z.core.$strip>], "status">;
222
- /**
223
- * The final schema for the root array of task results.
224
- */
225
- export declare const TaskResultArraySchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
226
- status: z.ZodLiteral<"completed">;
227
- hash: z.ZodString;
228
- task: z.ZodObject<{
229
- task_name: z.ZodString;
230
- task_command: z.ZodString;
231
- project_name: z.ZodString;
232
- project_dir: z.ZodString;
233
- full_task_name: z.ZodString;
234
- dependencies: z.ZodArray<z.ZodString>;
235
- enabled: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
236
- interactive: z.ZodBoolean;
237
- persistent: z.ZodBoolean;
238
- }, z.core.$strip>;
239
- exit_code: z.ZodNumber;
240
- elapsed: z.ZodObject<{
241
- secs: z.ZodNumber;
242
- nanos: z.ZodNumber;
243
- }, z.core.$strip>;
244
- cache_hit: z.ZodBoolean;
245
- details: z.ZodObject<{
246
- meta: z.ZodOptional<z.ZodObject<{
247
- type: z.ZodOptional<z.ZodString>;
248
- language: z.ZodOptional<z.ZodString>;
249
- targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
250
- runner: z.ZodString;
251
- }, z.core.$strip>>>;
252
- release: z.ZodOptional<z.ZodObject<{
253
- npm: z.ZodOptional<z.ZodBoolean>;
254
- github: z.ZodOptional<z.ZodBoolean>;
255
- }, z.core.$strip>>;
256
- is_publish_task: z.ZodOptional<z.ZodBoolean>;
257
- is_build_task: z.ZodOptional<z.ZodBoolean>;
258
- is_test_task: z.ZodOptional<z.ZodBoolean>;
259
- }, z.core.$strip>>;
260
- output_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
261
- }, z.core.$strip>;
262
- }, z.core.$strip>, z.ZodObject<{
263
- status: z.ZodLiteral<"skipped">;
264
- task: z.ZodObject<{
265
- task_name: z.ZodString;
266
- task_command: z.ZodString;
267
- project_name: z.ZodString;
268
- project_dir: z.ZodString;
269
- full_task_name: z.ZodString;
270
- dependencies: z.ZodArray<z.ZodString>;
271
- enabled: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
272
- interactive: z.ZodBoolean;
273
- persistent: z.ZodBoolean;
274
- }, z.core.$strip>;
275
- skip_reason: z.ZodString;
276
- details: z.ZodObject<{
277
- meta: z.ZodOptional<z.ZodObject<{
278
- type: z.ZodOptional<z.ZodString>;
279
- language: z.ZodOptional<z.ZodString>;
280
- targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
281
- runner: z.ZodString;
282
- }, z.core.$strip>>>;
283
- release: z.ZodOptional<z.ZodObject<{
284
- npm: z.ZodOptional<z.ZodBoolean>;
285
- github: z.ZodOptional<z.ZodBoolean>;
286
- }, z.core.$strip>>;
287
- is_publish_task: z.ZodOptional<z.ZodBoolean>;
288
- is_build_task: z.ZodOptional<z.ZodBoolean>;
289
- is_test_task: z.ZodOptional<z.ZodBoolean>;
290
- }, z.core.$strip>>;
291
- output_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
292
- }, z.core.$strip>;
293
- }, z.core.$strip>, z.ZodObject<{
294
- status: z.ZodLiteral<"errored">;
295
- task: z.ZodObject<{
296
- task_name: z.ZodString;
297
- task_command: z.ZodString;
298
- project_name: z.ZodString;
299
- project_dir: z.ZodString;
300
- full_task_name: z.ZodString;
301
- dependencies: z.ZodArray<z.ZodString>;
302
- enabled: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
303
- interactive: z.ZodBoolean;
304
- persistent: z.ZodBoolean;
305
- }, z.core.$strip>;
306
- error: z.ZodString;
307
- details: z.ZodObject<{
308
- meta: z.ZodOptional<z.ZodObject<{
309
- type: z.ZodOptional<z.ZodString>;
310
- language: z.ZodOptional<z.ZodString>;
311
- targets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
312
- runner: z.ZodString;
313
- }, z.core.$strip>>>;
314
- release: z.ZodOptional<z.ZodObject<{
315
- npm: z.ZodOptional<z.ZodBoolean>;
316
- github: z.ZodOptional<z.ZodBoolean>;
317
- }, z.core.$strip>>;
318
- is_publish_task: z.ZodOptional<z.ZodBoolean>;
319
- is_build_task: z.ZodOptional<z.ZodBoolean>;
320
- is_test_task: z.ZodOptional<z.ZodBoolean>;
321
- }, z.core.$strip>>;
322
- output_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
323
- }, z.core.$strip>;
324
- }, z.core.$strip>], "status">>;
325
- export type Elapsed = z.infer<typeof ElapsedSchema>;
326
- export type Meta = z.infer<typeof MetaSchema>;
327
- export type Task = z.infer<typeof TaskSchema>;
328
- export type CompletedTaskResult = z.infer<typeof CompletedTaskSchema>;
329
- export type SkippedTaskResult = z.infer<typeof SkippedTaskSchema>;
330
- export type TaskResult = z.infer<typeof TaskResultSchema>;
331
- export type TaskResultArray = z.infer<typeof TaskResultArraySchema>;
332
- export {};
333
- //# sourceMappingURL=schemas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AACH,QAAA,MAAM,aAAa;;;iBAWjB,CAAC;AAWH;;GAEG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;iBA0Bd,CAAC;AAUH;;GAEG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;iBAwBd,CAAC;AAIH;;;GAGG;AACH,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBvB,CAAC;AASH;;;GAGG;AACH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOrB,CAAC;AAIH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAQxB,CAAC;AAEN;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAEkB,CAAC;AAIrD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}