@putdotio/cli 1.2.0 → 1.2.1

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/dist/bin.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { A as CliOutputLive, F as CliRuntime, I as CliRuntimeLive, L as translate, M as isStructuredOutputMode, N as renderJson, O as CliSdkLive, P as CliConfigLive, R as version, a as searchCommand, c as brandCommand, g as CliStateLive, i as filesCommand, j as detectOutputModeFromArgv, k as CliOutput, l as versionCommand, n as whoamiCommand, o as eventsCommand, r as transfersCommand, s as downloadLinksCommand, t as describeCli, u as makeAuthCommand } from "./metadata-DHsl0QOK.mjs";
2
+ import { A as CliOutputLive, F as CliRuntime, I as CliRuntimeLive, L as translate, M as isStructuredOutputMode, N as renderJson, O as CliSdkLive, P as CliConfigLive, R as version, a as searchCommand, c as brandCommand, g as CliStateLive, i as filesCommand, j as detectOutputModeFromArgv, k as CliOutput, l as versionCommand, n as whoamiCommand, o as eventsCommand, r as transfersCommand, s as downloadLinksCommand, t as describeCli, u as makeAuthCommand } from "./metadata-B7hMX4g9.mjs";
3
3
  import { Cause, Console, Effect, Layer, Result } from "effect";
4
4
  import { CliError, Command } from "effect/unstable/cli";
5
5
  import { NodeRuntime, NodeServices } from "@effect/platform-node";
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { C as loadPersistedState, D as useProfile, E as savePersistedState, S as listProfiles, T as resolveAuthState, _ as PutioCliConfigSchema, b as clearPersistedState, d as AuthProfileListSchema, f as AuthProfileSummarySchema, g as CliStateLive, h as CliState, m as AuthStatusSchema, p as AuthStateError, t as describeCli, v as PutioCliProfileConfigSchema, w as removeProfile, x as getAuthStatus, y as ResolvedAuthStateSchema } from "./metadata-DHsl0QOK.mjs";
1
+ import { C as loadPersistedState, D as useProfile, E as savePersistedState, S as listProfiles, T as resolveAuthState, _ as PutioCliConfigSchema, b as clearPersistedState, d as AuthProfileListSchema, f as AuthProfileSummarySchema, g as CliStateLive, h as CliState, m as AuthStatusSchema, p as AuthStateError, t as describeCli, v as PutioCliProfileConfigSchema, w as removeProfile, x as getAuthStatus, y as ResolvedAuthStateSchema } from "./metadata-B7hMX4g9.mjs";
2
2
  export { AuthProfileListSchema, AuthProfileSummarySchema, AuthStateError, AuthStatusSchema, CliState, CliStateLive, PutioCliConfigSchema, PutioCliProfileConfigSchema, ResolvedAuthStateSchema, clearPersistedState, describeCli, getAuthStatus, listProfiles, loadPersistedState, removeProfile, resolveAuthState, savePersistedState, useProfile };
@@ -13,7 +13,7 @@ import * as FileSystem from "effect/FileSystem";
13
13
  import { PlatformError, SystemError } from "effect/PlatformError";
14
14
  //#region package.json
15
15
  var name = "@putdotio/cli";
16
- var version = "1.2.0";
16
+ var version = "1.2.1";
17
17
  //#endregion
18
18
  //#region src/i18n/translate.ts
19
19
  const resources = { en: { translation: {
@@ -1629,7 +1629,7 @@ const persistConfigEffect = (effectiveConfigPath, state, message) => Effect.gen(
1629
1629
  const runtime = yield* CliRuntime;
1630
1630
  if (shouldRemoveConfigFile(state)) return yield* fs.remove(effectiveConfigPath, { force: true }).pipe(Effect.mapError((error) => mapFileSystemError(error, message)));
1631
1631
  yield* fs.makeDirectory(runtime.dirname(effectiveConfigPath), { recursive: true }).pipe(Effect.mapError((error) => mapFileSystemError(error, message)));
1632
- yield* fs.writeFileString(effectiveConfigPath, `${JSON.stringify(state, null, 2)}\n`).pipe(Effect.mapError((error) => mapFileSystemError(error, message)));
1632
+ yield* fs.writeFileString(effectiveConfigPath, `${JSON.stringify(state, null, 2)}\n`, { mode: 384 }).pipe(Effect.mapError((error) => mapFileSystemError(error, message)));
1633
1633
  yield* fs.chmod(effectiveConfigPath, 384).pipe(Effect.mapError((error) => mapFileSystemError(error, message)));
1634
1634
  });
1635
1635
  const makeEmptyState = (apiBaseUrl = DEFAULT_PUTIO_API_BASE_URL) => ({ api_base_url: apiBaseUrl });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putdotio/cli",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Agent-first CLI for the put.io API.",
5
5
  "homepage": "https://github.com/putdotio/putio-cli#readme",
6
6
  "bugs": {