t3code-cli 0.14.0 → 0.14.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.js +9 -5
- package/package.json +1 -1
- package/src/bin.ts +10 -7
package/dist/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as __toESM, i as __require, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
3
|
-
import { $D as flatMap, $E as runDrain, $O as mergeAll, $T as Struct, $k as hasProperty, $w as extractSingleParams, AE as Size,
|
|
3
|
+
import { $D as flatMap, $E as runDrain, $O as mergeAll, $T as Struct, $k as hasProperty, $w as extractSingleParams, AE as Size, AT as isTrueValue, Ak as empty$1, BD as andThen, BE as filter, Bk as isSome, Bw as toImpl, CC as T3Config, CD as BadArgument, CE as make$6, CO as scoped, CT as magenta, Ck as isSuccess, DE as FileDescriptor, DO as suspend, DT as getTypeName, EE as TypeId$2, EO as succeed, ET as getChoiceKeys, Es as layerNode$1, Ew as T3Application, FD as value$2, FT as UnrecognizedOption, Fk as getOrElse, Fn as BaseAppLayer, Fw as getGlobalFlagsForCommandTree, GE as isStream, Gw as optional$2, HD as as, HT as isQuitError, Hk as match, Hw as boolean, ID as makeRunMain, IT as isCliError, Iw as getHelpForCommandPath, JD as catchTags, Jw as withDescription$1, KD as catchFilter, KE as map$1, Kw as string$2, LD as acquireRelease, LE as decodeText, LO as uninterruptible, Lw as TypeId$3, ME as make$8, MO as timeoutOrElse, MT as InvalidValue, Mk as flatMap$1, Mw as LogLevel, NE as callback$1, NO as tryPromise, NT as ShowHelp, Nb as ProviderUserInputAnswers, Nk as fromNullishOr, Ns as latestAssistantMessage, Nw as Wizard, OE as FileSystem, OO as sync, OT as isBoolean, Ok as Reference, PO as try_, PT as UnknownSubcommand, Pk as fromUndefinedOr, Ps as threadStatus, Pw as getGlobalFlagsForCommandPath, QD as fail, QE as run$2, QO as effect, QT as String$1, Qw as argumentKind, RD as addFinalizer, RO as void_, Rk as getOrUndefined, Rw as checkForDuplicateFlags, SC as layer$12, SD as unbounded, SE as ProcessId, SO as runFork, ST as green, Sk as isResult, Sw as resolveOutputFormat, TD as systemError, TE as Path$1, TT as white, UD as asVoid, UE as fromIterable, UT as make$11, Uk as none, Uw as choice, VT as Terminal, Vw as parseConfig, WD as callback, WE as fromQueue, Wk as some, Ww as integer$1, XD as effectify, Xw as error, YD as catch_, YE as merge, Yw as Formatter, Zw as log, _C as resolveThreadId, _D as make$10, _E as fdName, _T as toggle, aA as isUndefined, aD as succeed$5, aO as gen, aT as mapEffect$1, ak as _await, aw as formatFlag, bC as ThreadSessionError, bD as shutdown, bE as ChildProcessSpawner, bO as provideService, bT as bold, bw as isAgentEnvironment, cA as pipe, cD as transduce, cT as variadic$1, ck as make$13, cw as projectPathFlag, dD as make$9, dE as optionalKey, dO as mapError, dT as float, dw as threadFlag, eA as isNotNull, eD as runFold, eE as TaggedErrorClass, eO as fn, ek as provide, fC as CliPath, fD as drain, fO as match$1, fT as integer, fk as succeed$1, fw as threadFormatFlag, gD as failCauseUnsafe, gE as fromWritable, gO as orDie, gT as text, gw as canRenderLiveTerminal, hC as resolveCommandProjectRef, hD as endUnsafe, hE as fromReadable, hT as select, hw as yesFlag, iE as decodeUnknownEffect, iO as forkScoped, iT as isParam, ik as MinimumLogLevel, iw as forceFlag, jE as WatchBackend, jk as make$12, js as layer$13, jw as BuiltIns, kE as FileTypeId, kT as isFalseValue, kk as Service, ks as layerNode, lA as pipeArguments, lD as unwrap, lT as confirm, lk as makeUnsafe, lw as replaceFlag, mC as T3Auth, mE as make$7, mT as run$3, mw as worktreeFlag, nA as isNullish, nD as runHead, nO as forEach, nT as getUnderlyingSingleOrThrow, nk as succeed$2, oA as dual, oE as decodeUnknownSync, oO as ignore, oT as optional$1, ok as doneUnsafe, ow as modelFlags, pC as cliEnvironmentSetting, pD as isSink, pE as Crypto, pO as matchEffect, pT as password, pw as waitFormatFlag, qD as catchTag, qO as fail$1, qT as Literal, qw as withDefault, rD as runLast, rT as isFlagParam, rk as sync$1, rw as envNameFlag, sA as identity$1, sD as tap, sE as fromJsonString, sO as interrupt, sT as string$1, sk as isDone, sw as projectFlag, tA as isNotUndefined, tD as runForEach, tO as fnUntraced, tT as getParamMetadata, tk as provideMerge, uD as get$1, uO as map, uT as date, uk as succeed$4, uw as selfActionForceFlag, vC as resolveWorktreePath, vD as offer, vE as make$5, vO as provide$1, vT as annotate, wD as badArgument, wE as makeHandle, wO as serviceOption, wT as red, wk as succeed$3, ww as loadT3CliEnv, xC as CliRuntime, xE as ExitCode, xO as result$1, xT as cyanBright, xw as isInteractiveHumanTerminal, yC as ProjectLookupError, yD as offerUnsafe, yE as parseFdName, yO as provideContext, yT as blackBright, yk as fail$2, zE as empty, zk as isNone, zw as makeCommand } from "./shared.js";
|
|
4
4
|
import * as OS from "node:os";
|
|
5
5
|
import os, { homedir } from "node:os";
|
|
6
6
|
import * as NodeChildProcess from "node:child_process";
|
|
@@ -88893,7 +88893,7 @@ var T3Version = class extends Service()("t3cli/T3Version") {};
|
|
|
88893
88893
|
//#endregion
|
|
88894
88894
|
//#region src/version/layer.ts
|
|
88895
88895
|
const PackageJsonSchema = fromJsonString(Struct({ version: String$1 }));
|
|
88896
|
-
const T3VersionBundledLive = sync$1(T3Version, () => ({ version: "0.14.
|
|
88896
|
+
const T3VersionBundledLive = sync$1(T3Version, () => ({ version: "0.14.1" }));
|
|
88897
88897
|
effect(T3Version, gen(function* () {
|
|
88898
88898
|
const packageJson = yield* (yield* FileSystem).readFileString(fileURLToPath(new URL("../../package.json", import.meta.url)));
|
|
88899
88899
|
return { version: (yield* decodeUnknownEffect(PackageJsonSchema)(packageJson)).version };
|
|
@@ -88909,8 +88909,12 @@ runMain(gen(function* () {
|
|
|
88909
88909
|
return yield* run(createCliCommand(), { version: version.version });
|
|
88910
88910
|
}).pipe(catchTag("ShowHelp", (error) => sync(() => {
|
|
88911
88911
|
process.exitCode = error.errors.length > 0 ? 1 : 0;
|
|
88912
|
-
})),
|
|
88913
|
-
|
|
88914
|
-
|
|
88912
|
+
})), matchEffect({
|
|
88913
|
+
onFailure: (error) => gen(function* () {
|
|
88914
|
+
yield* (yield* T3Output).writeStderr(`${error instanceof Error ? error.message : String(error)}\n`);
|
|
88915
|
+
process.exitCode = 1;
|
|
88916
|
+
}),
|
|
88917
|
+
onSuccess: (value) => succeed(value)
|
|
88918
|
+
}), scoped, provide$1(CliLayer)));
|
|
88915
88919
|
//#endregion
|
|
88916
88920
|
export {};
|
package/package.json
CHANGED
package/src/bin.ts
CHANGED
|
@@ -54,14 +54,17 @@ const program = Effect.gen(function* () {
|
|
|
54
54
|
process.exitCode = error.errors.length > 0 ? 1 : 0;
|
|
55
55
|
}),
|
|
56
56
|
),
|
|
57
|
-
Effect.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
Effect.matchEffect({
|
|
58
|
+
onFailure: (error) =>
|
|
59
|
+
Effect.gen(function* () {
|
|
60
|
+
const output = yield* T3Output;
|
|
61
|
+
yield* output.writeStderr(`${error instanceof Error ? error.message : String(error)}\n`);
|
|
62
|
+
process.exitCode = 1;
|
|
63
|
+
}),
|
|
64
|
+
onSuccess: (value) => Effect.succeed(value),
|
|
65
|
+
}),
|
|
63
66
|
Effect.scoped,
|
|
64
67
|
Effect.provide(CliLayer),
|
|
65
68
|
);
|
|
66
69
|
|
|
67
|
-
NodeRuntime.runMain(program
|
|
70
|
+
NodeRuntime.runMain(program);
|