@omni-oss/create-jobs 0.1.11 → 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,15 @@
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
+
5
14
  ## @omni-oss/create-jobs-v0.1.11 - 2026-05-18
6
15
  #### Bug Fixes
7
16
  - schema mismatch - (fc1835a) - Clarence Manuel
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env bun
2
- const e=require(`./src-Bf9wHp_E.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();
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();
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./src-Bf9wHp_E.js`);exports.TaskResultArraySchema=e.t,exports.TaskResultSchema=e.n,exports.createJobs=e.r;
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
File without changes
@@ -1 +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}});
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.11",
3
+ "version": "0.1.12",
4
4
  "bin": "./dist/create-jobs.mjs",
5
5
  "publishConfig": {
6
6
  "access": "public"