mise-projen 0.0.36 → 0.0.38

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/API.md CHANGED
@@ -1811,7 +1811,7 @@ const miseTomlSchema: MiseTomlSchema = { ... }
1811
1811
  | <code><a href="#mise-projen.MiseTomlSchema.property.experimentalMonorepoRoot">experimentalMonorepoRoot</a></code> | <code>boolean</code> | deprecated alias of monorepo_root. |
1812
1812
  | <code><a href="#mise-projen.MiseTomlSchema.property.history">history</a></code> | <code><a href="#mise-projen.MiseTomlSchemaHistory">MiseTomlSchemaHistory</a></code> | dotfiles history: what is never captured, reload commands, and the setup repository (https://mise.jdx.dev/history.html). |
1813
1813
  | <code><a href="#mise-projen.MiseTomlSchema.property.hooks">hooks</a></code> | <code><a href="#mise-projen.Hooks">Hooks</a></code> | hooks to run on events like cd, enter, leave. |
1814
- | <code><a href="#mise-projen.MiseTomlSchema.property.include">include</a></code> | <code>any</code> | config files merged into this one, ranking just below it: a local path (relative to this file), git::<url>//<path>.toml?ref=<ref> or oci::<registry>/<repo>[:tag\|@sha256:<digest>] (the artifact holds a mise.toml). Paranoid mode requires a commit sha or digest for remote includes and rejects local ones; otherwise a branch or tag is refreshed after fetch_remote_versions_cache. |
1814
+ | <code><a href="#mise-projen.MiseTomlSchema.property.include">include</a></code> | <code>any</code> | config files merged into this one, ranking just below it: a local path (relative to this file), git::<url>//<path>.toml?ref=<ref> oci::<registry>/<repo>[:tag\|@sha256:<digest>] (the artifact holds a mise.toml) or zip::<http(s) url> (a zip archive with a mise.toml at its root). Paranoid mode requires a commit sha or digest for remote includes (so it rejects zip::) and rejects local ones; otherwise a branch or tag is refreshed after fetch_remote_versions_cache. |
1815
1815
  | <code><a href="#mise-projen.MiseTomlSchema.property.minVersion">minVersion</a></code> | <code>any</code> | minimum version of mise required to use this config. |
1816
1816
  | <code><a href="#mise-projen.MiseTomlSchema.property.monorepo">monorepo</a></code> | <code><a href="#mise-projen.Monorepo">Monorepo</a></code> | configuration for monorepo task discovery. |
1817
1817
  | <code><a href="#mise-projen.MiseTomlSchema.property.monorepoRoot">monorepoRoot</a></code> | <code>boolean</code> | marks this config as a monorepo root for task path syntax. |
@@ -2055,7 +2055,7 @@ public readonly include: any;
2055
2055
 
2056
2056
  - *Type:* any
2057
2057
 
2058
- config files merged into this one, ranking just below it: a local path (relative to this file), git::<url>//<path>.toml?ref=<ref> or oci::<registry>/<repo>[:tag|@sha256:<digest>] (the artifact holds a mise.toml). Paranoid mode requires a commit sha or digest for remote includes and rejects local ones; otherwise a branch or tag is refreshed after fetch_remote_versions_cache.
2058
+ config files merged into this one, ranking just below it: a local path (relative to this file), git::<url>//<path>.toml?ref=<ref> oci::<registry>/<repo>[:tag|@sha256:<digest>] (the artifact holds a mise.toml) or zip::<http(s) url> (a zip archive with a mise.toml at its root). Paranoid mode requires a commit sha or digest for remote includes (so it rejects zip::) and rejects local ones; otherwise a branch or tag is refreshed after fetch_remote_versions_cache.
2059
2059
 
2060
2060
  ---
2061
2061
 
@@ -11983,7 +11983,10 @@ const settingsTask: SettingsTask = { ... }
11983
11983
  | <code><a href="#mise-projen.SettingsTask.property.cacheRemoteUrl">cacheRemoteUrl</a></code> | <code>string</code> | Deprecated alias for `task.cache.remote_url`. |
11984
11984
  | <code><a href="#mise-projen.SettingsTask.property.disablePaths">disablePaths</a></code> | <code>string[]</code> | Paths that mise does not look for tasks in. |
11985
11985
  | <code><a href="#mise-projen.SettingsTask.property.disableSpecFromRunScripts">disableSpecFromRunScripts</a></code> | <code>boolean</code> | Build task usage specs only from the `usage` field, ignoring deprecated `arg()`, `option()` and `flag()` in run scripts. |
11986
+ | <code><a href="#mise-projen.SettingsTask.property.history">history</a></code> | <code>boolean</code> | Record each task run's duration and result for `mise tasks history`. |
11987
+ | <code><a href="#mise-projen.SettingsTask.property.historyLimit">historyLimit</a></code> | <code>number</code> | How many recent runs of each task `mise tasks history` keeps. |
11986
11988
  | <code><a href="#mise-projen.SettingsTask.property.lockTimeout">lockTimeout</a></code> | <code>string</code> | How long a task waits for a lock another run holds before it fails. |
11989
+ | <code><a href="#mise-projen.SettingsTask.property.logs">logs</a></code> | <code>boolean</code> | Keep the output of each task's last run, for `mise tasks log`. |
11987
11990
  | <code><a href="#mise-projen.SettingsTask.property.monorepoDepth">monorepoDepth</a></code> | <code>number</code> | Maximum directory depth for automatic monorepo discovery, which is deprecated. |
11988
11991
  | <code><a href="#mise-projen.SettingsTask.property.monorepoExcludeDirs">monorepoExcludeDirs</a></code> | <code>string[]</code> | Directory names that automatic monorepo discovery skips. |
11989
11992
  | <code><a href="#mise-projen.SettingsTask.property.monorepoRespectGitignore">monorepoRespectGitignore</a></code> | <code>boolean</code> | Skip directories that `.gitignore` files ignore during automatic monorepo discovery. |
@@ -12155,6 +12158,30 @@ Build task usage specs only from the `usage` field, ignoring deprecated `arg()`,
12155
12158
 
12156
12159
  ---
12157
12160
 
12161
+ ##### `history`<sup>Optional</sup> <a name="history" id="mise-projen.SettingsTask.property.history"></a>
12162
+
12163
+ ```typescript
12164
+ public readonly history: boolean;
12165
+ ```
12166
+
12167
+ - *Type:* boolean
12168
+
12169
+ Record each task run's duration and result for `mise tasks history`.
12170
+
12171
+ ---
12172
+
12173
+ ##### `historyLimit`<sup>Optional</sup> <a name="historyLimit" id="mise-projen.SettingsTask.property.historyLimit"></a>
12174
+
12175
+ ```typescript
12176
+ public readonly historyLimit: number;
12177
+ ```
12178
+
12179
+ - *Type:* number
12180
+
12181
+ How many recent runs of each task `mise tasks history` keeps.
12182
+
12183
+ ---
12184
+
12158
12185
  ##### `lockTimeout`<sup>Optional</sup> <a name="lockTimeout" id="mise-projen.SettingsTask.property.lockTimeout"></a>
12159
12186
 
12160
12187
  ```typescript
@@ -12167,6 +12194,18 @@ How long a task waits for a lock another run holds before it fails.
12167
12194
 
12168
12195
  ---
12169
12196
 
12197
+ ##### `logs`<sup>Optional</sup> <a name="logs" id="mise-projen.SettingsTask.property.logs"></a>
12198
+
12199
+ ```typescript
12200
+ public readonly logs: boolean;
12201
+ ```
12202
+
12203
+ - *Type:* boolean
12204
+
12205
+ Keep the output of each task's last run, for `mise tasks log`.
12206
+
12207
+ ---
12208
+
12170
12209
  ##### `monorepoDepth`<sup>Optional</sup> <a name="monorepoDepth" id="mise-projen.SettingsTask.property.monorepoDepth"></a>
12171
12210
 
12172
12211
  ```typescript
@@ -12756,7 +12795,7 @@ public readonly includes: string[];
12756
12795
 
12757
12796
  files/directories to include searching for tasks.
12758
12797
 
12759
- Can be local paths, git repository URLs using git:: prefix (e.g., git::https://github.com/org/repo.git//path?ref=branch), or OCI artifacts using oci:: prefix (e.g., oci::ghcr.io/org/tasks:1.0.0)
12798
+ Can be local paths, git repository URLs using git:: prefix (e.g., git::https://github.com/org/repo.git//path?ref=branch), OCI artifacts using oci:: prefix (e.g., oci::ghcr.io/org/tasks:1.0.0), or zip archives using zip:: prefix (e.g., zip::https://example.com/tasks.zip)
12760
12799
 
12761
12800
  ---
12762
12801
 
package/lib/index.js CHANGED
@@ -57,7 +57,7 @@ __exportStar(require("./types"), exports);
57
57
  * project.with(new Mise({ config: { tools: { node: ['24'] } } }));
58
58
  */
59
59
  class Mise {
60
- static [JSII_RTTI_SYMBOL_1] = { fqn: "mise-projen.Mise", version: "0.0.36" };
60
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "mise-projen.Mise", version: "0.0.38" };
61
61
  fileName;
62
62
  config;
63
63
  autoDiscover;
@@ -43,7 +43,7 @@ export interface MiseTomlSchema {
43
43
  */
44
44
  readonly env?: Env[];
45
45
  /**
46
- * config files merged into this one, ranking just below it: a local path (relative to this file), git::<url>//<path>.toml?ref=<ref> or oci::<registry>/<repo>[:tag|@sha256:<digest>] (the artifact holds a mise.toml). Paranoid mode requires a commit sha or digest for remote includes and rejects local ones; otherwise a branch or tag is refreshed after fetch_remote_versions_cache
46
+ * config files merged into this one, ranking just below it: a local path (relative to this file), git::<url>//<path>.toml?ref=<ref> oci::<registry>/<repo>[:tag|@sha256:<digest>] (the artifact holds a mise.toml) or zip::<http(s) url> (a zip archive with a mise.toml at its root). Paranoid mode requires a commit sha or digest for remote includes (so it rejects zip::) and rejects local ones; otherwise a branch or tag is refreshed after fetch_remote_versions_cache
47
47
  *
48
48
  * @schema MiseTomlSchema#include
49
49
  */
@@ -1850,7 +1850,7 @@ export interface TaskConfig {
1850
1850
  [key: string]: string[];
1851
1851
  };
1852
1852
  /**
1853
- * files/directories to include searching for tasks. Can be local paths, git repository URLs using git:: prefix (e.g., git::https://github.com/org/repo.git//path?ref=branch), or OCI artifacts using oci:: prefix (e.g., oci::ghcr.io/org/tasks:1.0.0)
1853
+ * files/directories to include searching for tasks. Can be local paths, git repository URLs using git:: prefix (e.g., git::https://github.com/org/repo.git//path?ref=branch), OCI artifacts using oci:: prefix (e.g., oci::ghcr.io/org/tasks:1.0.0), or zip archives using zip:: prefix (e.g., zip::https://example.com/tasks.zip)
1854
1854
  *
1855
1855
  * @schema task_config#includes
1856
1856
  */
@@ -3747,12 +3747,30 @@ export interface SettingsTask {
3747
3747
  * @schema SettingsTask#disable_spec_from_run_scripts
3748
3748
  */
3749
3749
  readonly disableSpecFromRunScripts?: boolean;
3750
+ /**
3751
+ * Record each task run's duration and result for `mise tasks history`.
3752
+ *
3753
+ * @schema SettingsTask#history
3754
+ */
3755
+ readonly history?: boolean;
3756
+ /**
3757
+ * How many recent runs of each task `mise tasks history` keeps.
3758
+ *
3759
+ * @schema SettingsTask#history_limit
3760
+ */
3761
+ readonly historyLimit?: number;
3750
3762
  /**
3751
3763
  * How long a task waits for a lock another run holds before it fails.
3752
3764
  *
3753
3765
  * @schema SettingsTask#lock_timeout
3754
3766
  */
3755
3767
  readonly lockTimeout?: string;
3768
+ /**
3769
+ * Keep the output of each task's last run, for `mise tasks log`.
3770
+ *
3771
+ * @schema SettingsTask#logs
3772
+ */
3773
+ readonly logs?: boolean;
3756
3774
  /**
3757
3775
  * Maximum directory depth for automatic monorepo discovery, which is deprecated.
3758
3776
  *