tines 0.0.164 → 0.0.165

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6159,7 +6159,7 @@ files (v${artifact.current_version.version}):`);
6159
6159
  (v) => Number.parseInt(v, 10)
6160
6160
  ).option(
6161
6161
  "--out <path>",
6162
- "write to this file, or into this directory (keeps the stored filename)"
6162
+ "write to this file, or into this directory (keeps the stored filename); folder artifacts require a new or empty directory"
6163
6163
  )
6164
6164
  ).action(
6165
6165
  async (ref, name2, opts) => {
@@ -6184,6 +6184,11 @@ files (v${artifact.current_version.version}):`);
6184
6184
  if (existsSync3(opts.out) && !statSync2(opts.out).isDirectory()) {
6185
6185
  die(`--out for a folder must be a directory, and "${opts.out}" is a file`);
6186
6186
  }
6187
+ if (existsSync3(opts.out) && readdirSync(opts.out).length > 0) {
6188
+ die(
6189
+ `refusing to write folder artifact into non-empty directory "${opts.out}"; choose a new or empty directory`
6190
+ );
6191
+ }
6187
6192
  const files = version.files ?? [];
6188
6193
  let total = 0;
6189
6194
  for (const file of files) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tines",
3
- "version": "0.0.164",
3
+ "version": "0.0.165",
4
4
  "description": "CLI for Tines, an orchestration layer for AI agents",
5
5
  "repository": {
6
6
  "type": "git",