@mx-space/cli 0.13.0 → 0.13.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/README.md +15 -52
- package/ROADMAP.md +7 -10
- package/dist/bin/mxs.mjs +1 -1
- package/dist/{esm-lpolVSUJ.mjs → esm-DFrz5rIo.mjs} +7 -42
- package/dist/esm-DXO9Afik.mjs +2 -0
- package/dist/index.d.mts +1 -30
- package/dist/index.mjs +1 -1
- package/dist/{mxs-PFV8OJ-M.mjs → mxs-DXpzbUf4.mjs} +21467 -22361
- package/package.json +1 -1
- package/skills/overview.md +0 -1
- package/dist/esm-DGvoYR6n.mjs +0 -2
- package/skills/commands-ai.md +0 -115
package/README.md
CHANGED
|
@@ -427,7 +427,7 @@ Snippets are addressed by Snowflake id or `<reference>/<name>`. A bare name with
|
|
|
427
427
|
| -------------------------- | ----------------------------------------------------------- |
|
|
428
428
|
| `--name <name>` | `name` (required for `create`) |
|
|
429
429
|
| `--reference <r>` | `reference` (defaults to `root` server-side) |
|
|
430
|
-
| `--type <t>` | `type`: `json`, `json5`, `function`, `text`, or `
|
|
430
|
+
| `--type <t>` | `type`: `json`, `json5`, `function`, `text`, `yaml`, or `skill` |
|
|
431
431
|
| `--file <path\|->` | Read `raw` content from a file; `-` reads stdin |
|
|
432
432
|
| `--raw <text>` | Inline `raw` content |
|
|
433
433
|
| `--private` / `--no-private` | `private` |
|
|
@@ -447,63 +447,26 @@ echo '{"a":1}' | mxs snippet create --name config
|
|
|
447
447
|
mxs snippet edit web/theme
|
|
448
448
|
```
|
|
449
449
|
|
|
450
|
-
|
|
450
|
+
### Skill snippets
|
|
451
451
|
|
|
452
|
-
|
|
452
|
+
The `skill` type stores a Claude Code-style skill bundle (YAML frontmatter + markdown body). On create/update the server parses the frontmatter, enforces that frontmatter `name` matches the snippet `name`, requires a non-empty `description`, copies the description into `comment`, and auto-fills `customPath` to `sk/<name>` when not set. The raw markdown (including frontmatter) is served at `/api/v3/s/sk/<name>` with `Content-Type: text/markdown`.
|
|
453
453
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
| Command | Description |
|
|
459
|
-
| -------------------------------------------------- | ----------------------------------------------------------------- |
|
|
460
|
-
| `mxs ai summary regen <id> [--to <lang>...]` | Regenerate an article's summary (optionally for given languages). |
|
|
461
|
-
| `mxs ai summary list [--page <n>] [--size <n>] [--grouped]` | List summaries (flat or grouped by article). |
|
|
462
|
-
| `mxs ai summary get <recordId>` | Get one summary by record id. |
|
|
463
|
-
| `mxs ai summary by-article <id> [--lang <l>] [--only-db]` | Show an article's summary; `--only-db` skips auto-generate. |
|
|
464
|
-
| `mxs ai summary edit <recordId>` | Edit the `summary` field via `$EDITOR` (JSON envelope). |
|
|
465
|
-
| `mxs ai summary delete <recordId> [--force]` | Delete a summary record. |
|
|
466
|
-
|
|
467
|
-
### Translate
|
|
468
|
-
|
|
469
|
-
| Command | Description |
|
|
470
|
-
| -------------------------------------------------------- | ------------------------------------------------------------- |
|
|
471
|
-
| `mxs ai translate run <id> --to <lang>... [--no-wait]` | Translate an article into one or more languages (`--to` required, repeatable). |
|
|
472
|
-
| `mxs ai translate list [--page <n>] [--size <n>]` | List translations (always grouped by article — no flat list server-side). |
|
|
473
|
-
| `mxs ai translate get <recordId>` | Get one translation by record id. |
|
|
474
|
-
| `mxs ai translate by-article <id> [--lang <l>]` | Show an article's translations (single lang or all). |
|
|
475
|
-
| `mxs ai translate languages <id>` | List languages an article has been translated into. |
|
|
476
|
-
| `mxs ai translate edit <recordId>` | Edit translation fields via `$EDITOR` (JSON envelope). |
|
|
477
|
-
| `mxs ai translate delete <recordId> [--force]` | Delete a translation record. |
|
|
478
|
-
|
|
479
|
-
### Translation Entries
|
|
480
|
-
|
|
481
|
-
The i18n dictionary entries layer used by category / topic / note metadata. `--key-path` accepts only the server-validated set: `category.name`, `topic.name`, `topic.introduce`, `topic.description`, `note.mood`, `note.weather`.
|
|
454
|
+
```bash
|
|
455
|
+
mxs snippet create --name db-migration-author --type skill --file SKILL.md
|
|
456
|
+
# attach to a post via meta.skillIds on `mxs post create`/`update`
|
|
457
|
+
```
|
|
482
458
|
|
|
483
|
-
|
|
484
|
-
| ----------------------------------------------------------------------------- | ------------------------------------------------------ |
|
|
485
|
-
| `mxs ai translate entries list [--page <n>] [--size <n>] [--key-path <p>] [--lang <l>]` | List entries with optional filters. |
|
|
486
|
-
| `mxs ai translate entries generate [--key-path <p>...] [--to <lang>...]` | Trigger regeneration of entries. |
|
|
487
|
-
| `mxs ai translate entries edit <recordId>` | Edit `translatedText` via `$EDITOR` (JSON envelope). |
|
|
488
|
-
| `mxs ai translate entries delete <recordId> [--force]` | Delete an entry. |
|
|
459
|
+
A minimal `SKILL.md`:
|
|
489
460
|
|
|
490
|
-
|
|
461
|
+
```markdown
|
|
462
|
+
---
|
|
463
|
+
name: db-migration-author
|
|
464
|
+
description: Expand-contract Postgres migrations safe for rolling deploys.
|
|
465
|
+
---
|
|
491
466
|
|
|
492
|
-
|
|
493
|
-
| ------------------------------------------------------ | ------------------------------------------------------------------- |
|
|
494
|
-
| `mxs ai insights refresh <id> [--no-wait]` | Refresh AI insights for an article. |
|
|
495
|
-
| `mxs ai insights list [--page <n>] [--size <n>] [--grouped]` | List insights (flat or grouped by article). |
|
|
496
|
-
| `mxs ai insights get <recordId>` | Get one insights record by record id. |
|
|
497
|
-
| `mxs ai insights by-article <id> [--lang <l>] [--only-db]` | Show an article's insights; `--only-db` skips auto-generate. |
|
|
498
|
-
| `mxs ai insights edit <recordId>` | Edit the `content` field via `$EDITOR` (JSON envelope). |
|
|
499
|
-
| `mxs ai insights delete <recordId> [--force]` | Delete an insights record. |
|
|
467
|
+
## When to use
|
|
500
468
|
|
|
501
|
-
|
|
502
|
-
mxs ai summary regen my-post --to en --to ja
|
|
503
|
-
mxs ai translate run my-post --to en
|
|
504
|
-
mxs ai insights refresh my-post
|
|
505
|
-
mxs ai summary list --grouped
|
|
506
|
-
mxs ai translate languages my-post
|
|
469
|
+
Use when authoring or reviewing any Postgres migration in this codebase.
|
|
507
470
|
```
|
|
508
471
|
|
|
509
472
|
## Configuration
|
package/ROADMAP.md
CHANGED
|
@@ -24,18 +24,15 @@
|
|
|
24
24
|
|
|
25
25
|
State map: `unread=0`, `read=1`, `junk=2`. Routes single-id verbs through the server's batch endpoints (`PATCH /comments/batch/state`, `DELETE /comments/batch`) for one unified path.
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## v2 — AI
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
- `mxs ai summary {regen,list,get,by-article,edit,delete}`
|
|
31
|
-
- `mxs ai translate {run,list,get,by-article,languages,edit,delete}`
|
|
32
|
-
- `mxs ai translate entries {list,generate,edit,delete}`
|
|
33
|
-
- `mxs ai insights {refresh,list,get,by-article,edit,delete}`
|
|
34
|
-
- Generate verbs enqueue a task on the server and poll `GET /tasks/:id` until terminal; `--no-wait` returns the `taskId` immediately. Dedup-aware: `created: false` joins the in-flight task.
|
|
29
|
+
> **Note (v0.3):** Service interface placeholders for AI, Backup, and Cache are reserved in `src/services/{Ai,Backup,Cache}.ts` and threaded through the layer composition. Implementation is pending.
|
|
35
30
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
- `mxs ai
|
|
31
|
+
- AI module commands
|
|
32
|
+
- `mxs ai summary regen <id>`
|
|
33
|
+
- `mxs ai translate <id> --to <locale>`
|
|
34
|
+
- `mxs ai insights refresh`
|
|
35
|
+
- `mxs ai tokens`
|
|
39
36
|
|
|
40
37
|
## v3
|
|
41
38
|
|
package/dist/bin/mxs.mjs
CHANGED
|
@@ -10390,7 +10390,7 @@ const liveServices = /*#__PURE__*/ pipe(/*#__PURE__*/ empty$24(), /*#__PURE__*/
|
|
|
10390
10390
|
*/
|
|
10391
10391
|
const currentServices = /*#__PURE__*/ globalValue(/*#__PURE__*/ Symbol.for("effect/DefaultServices/currentServices"), () => fiberRefUnsafeMakeContext(liveServices));
|
|
10392
10392
|
/** @internal */
|
|
10393
|
-
const sleep$
|
|
10393
|
+
const sleep$2 = (duration) => {
|
|
10394
10394
|
const decodedDuration = decode$4(duration);
|
|
10395
10395
|
return clockWith((clock) => clock.sleep(decodedDuration));
|
|
10396
10396
|
};
|
|
@@ -11860,7 +11860,7 @@ const matchSimple = (concurrency, sequential, concurrent) => {
|
|
|
11860
11860
|
* @since 2.0.0
|
|
11861
11861
|
* @category constructors
|
|
11862
11862
|
*/
|
|
11863
|
-
const sleep$
|
|
11863
|
+
const sleep$1 = sleep$2;
|
|
11864
11864
|
/**
|
|
11865
11865
|
* @since 2.0.0
|
|
11866
11866
|
* @category constructors
|
|
@@ -12037,7 +12037,7 @@ const provideService$1 = /*#__PURE__*/ dual(3, (self, tag, service) => contextWi
|
|
|
12037
12037
|
const provideServiceEffect = /*#__PURE__*/ dual(3, (self, tag, effect) => contextWithEffect$1((env) => flatMap$6(effect, (service) => provideContext$1(self, pipe(env, add$2(tag, service))))));
|
|
12038
12038
|
const repeatN$1 = /*#__PURE__*/ dual(2, (self, n) => suspend$8(() => repeatNLoop(self, n)));
|
|
12039
12039
|
const repeatNLoop = (self, n) => flatMap$6(self, (a) => n <= 0 ? succeed$8(a) : zipRight$3(yieldNow$2(), repeatNLoop(self, n - 1)));
|
|
12040
|
-
const sleep
|
|
12040
|
+
const sleep = sleep$1;
|
|
12041
12041
|
const succeedNone = /*#__PURE__*/ succeed$8(/*#__PURE__*/ none$4());
|
|
12042
12042
|
const summarized = /*#__PURE__*/ dual(3, (self, summary, f) => flatMap$6(summary, (start) => flatMap$6(self, (value) => map$7(summary, (end) => [f(start, end), value]))));
|
|
12043
12043
|
const tapError$1 = /*#__PURE__*/ dual(2, (self, f) => matchCauseEffect$2(self, {
|
|
@@ -16347,7 +16347,7 @@ const timeoutFail = /*#__PURE__*/ dual(2, (self, { duration, onTimeout }) => fla
|
|
|
16347
16347
|
duration
|
|
16348
16348
|
})));
|
|
16349
16349
|
/** @internal */
|
|
16350
|
-
const timeoutTo = /*#__PURE__*/ dual(2, (self, { duration, onSuccess, onTimeout }) => fiberIdWith$1((parentFiberId) => uninterruptibleMask$2((restore) => raceFibersWith(restore(self), interruptible$2(sleep
|
|
16350
|
+
const timeoutTo = /*#__PURE__*/ dual(2, (self, { duration, onSuccess, onTimeout }) => fiberIdWith$1((parentFiberId) => uninterruptibleMask$2((restore) => raceFibersWith(restore(self), interruptible$2(sleep(duration)), {
|
|
16351
16351
|
onSelfWin: (winner, loser) => flatMap$6(winner.await, (exit) => {
|
|
16352
16352
|
if (exit._tag === "Success") return flatMap$6(winner.inheritAll, () => as$1(interruptAsFiber(loser, parentFiberId), onSuccess(exit.value)));
|
|
16353
16353
|
else return flatMap$6(interruptAsFiber(loser, parentFiberId), () => exitFailCause$1(exit.cause));
|
|
@@ -17576,7 +17576,7 @@ var ScheduleDriverImpl = class {
|
|
|
17576
17576
|
const millis$1 = start(decision.intervals) - now;
|
|
17577
17577
|
if (millis$1 <= 0) return setState.pipe(zipRight$3(updateInfo(this.iterationMeta, now, input, out)), as$1(out));
|
|
17578
17578
|
const duration = millis(millis$1);
|
|
17579
|
-
return pipe(setState, zipRight$3(updateInfo(this.iterationMeta, now, input, out)), zipRight$3(sleep
|
|
17579
|
+
return pipe(setState, zipRight$3(updateInfo(this.iterationMeta, now, input, out)), zipRight$3(sleep(duration)), as$1(out));
|
|
17580
17580
|
}))))));
|
|
17581
17581
|
}
|
|
17582
17582
|
};
|
|
@@ -20616,41 +20616,6 @@ const forkIn = forkIn$1;
|
|
|
20616
20616
|
*/
|
|
20617
20617
|
const forkScoped = forkScoped$1;
|
|
20618
20618
|
/**
|
|
20619
|
-
* Suspends the execution of an effect for a specified `Duration`.
|
|
20620
|
-
*
|
|
20621
|
-
* **Details**
|
|
20622
|
-
*
|
|
20623
|
-
* This function pauses the execution of an effect for a given duration. It is
|
|
20624
|
-
* asynchronous, meaning that it does not block the fiber executing the effect.
|
|
20625
|
-
* Instead, the fiber is suspended during the delay period and can resume once
|
|
20626
|
-
* the specified time has passed.
|
|
20627
|
-
*
|
|
20628
|
-
* The duration can be specified using various formats supported by the
|
|
20629
|
-
* `Duration` module, such as a string (`"2 seconds"`) or numeric value
|
|
20630
|
-
* representing milliseconds.
|
|
20631
|
-
*
|
|
20632
|
-
* **Example**
|
|
20633
|
-
*
|
|
20634
|
-
* ```ts
|
|
20635
|
-
* import { Effect } from "effect"
|
|
20636
|
-
*
|
|
20637
|
-
* const program = Effect.gen(function*() {
|
|
20638
|
-
* console.log("Starting task...")
|
|
20639
|
-
* yield* Effect.sleep("3 seconds") // Waits for 3 seconds
|
|
20640
|
-
* console.log("Task completed!")
|
|
20641
|
-
* })
|
|
20642
|
-
*
|
|
20643
|
-
* Effect.runFork(program)
|
|
20644
|
-
* // Output:
|
|
20645
|
-
* // Starting task...
|
|
20646
|
-
* // Task completed!
|
|
20647
|
-
* ```
|
|
20648
|
-
*
|
|
20649
|
-
* @since 2.0.0
|
|
20650
|
-
* @category Delays & Timeouts
|
|
20651
|
-
*/
|
|
20652
|
-
const sleep = sleep$1;
|
|
20653
|
-
/**
|
|
20654
20619
|
* Adds a time limit to an effect, triggering a timeout if the effect exceeds
|
|
20655
20620
|
* the duration.
|
|
20656
20621
|
*
|
|
@@ -28124,7 +28089,7 @@ const get$2 = (self_) => {
|
|
|
28124
28089
|
self.state = stateEmpty;
|
|
28125
28090
|
return scopeClose(state.scope, exitVoid$1);
|
|
28126
28091
|
}
|
|
28127
|
-
return sleep
|
|
28092
|
+
return sleep(self.idleTimeToLive).pipe(interruptible$2, zipRight$3(suspend$8(() => {
|
|
28128
28093
|
if (self.state._tag === "Acquired" && self.state.refCount === 0) {
|
|
28129
28094
|
self.state = stateEmpty;
|
|
28130
28095
|
return scopeClose(state.scope, exitVoid$1);
|
|
@@ -37684,4 +37649,4 @@ const unsafeAdd = /*#__PURE__*/ dual((args) => isFiberSet(args[0]), (self, fiber
|
|
|
37684
37649
|
*/
|
|
37685
37650
|
const join = (self) => _await(self.deferred);
|
|
37686
37651
|
//#endregion
|
|
37687
|
-
export { drain as $,
|
|
37652
|
+
export { drain as $, pipe as $a, reduceRight as $i, uninterruptible as $n, has$4 as $r, either$1 as $t, compose as A, BaseProto as Aa, every$1 as Ai, orElse$3 as An, addFinalizer$1 as Ar, encodeSync as At, ensuring as B, combine$7 as Ba, headNonEmpty$2 as Bi, scoped$3 as Bn, update$1 as Br, async as Bt, Number$ as C, boolean as Ca, isMissingDataOnly as Ci, match$2 as Cn, Error$1 as Cr, currentContext as Ct, String$ as D, merge$3 as Da, contains as Di, onError as Dn, error as Dr, unsafeMake$3 as Dt, Schema_exports as E, left as Ea, appendAll$2 as Ei, negate as En, taggedEnum as Er, get$3 as Et, transform as F, symbolRedactable as Fa, findLast as Fi, retry as Fn, void_$2 as Fr, addFinalizer as Ft, mapError as G, isObject as Ga, make$48 as Gi, sync$1 as Gn, CommitPrototype as Gr, catchIf as Gt, fromChannel as H, string$3 as Ha, isEmptyReadonlyArray as Hi, serviceOption as Hn, allLevels as Hr, catchAll as Ht, make$5 as I, toStringUnknown as Ia, flatMap$8 as Ii, runFork$1 as In, ParentSpan as Ir, all as It, splitLines as J, constFalse as Ja, matchLeft as Ji, tapErrorCause as Jn, isNil as Jr, catchTags as Jt, run as K, isTagged as Ka, map$12 as Ki, tap as Kn, round as Kr, catchSome as Kt, isConfig as L, equals$3 as La, fromIterable$10 as Li, runSync as Ln, get$5 as Lr, annotateLogs as Lt, decodeUnknown as M, NodeInspectSymbol as Ma, filterMap as Mi, provide$1 as Mn, isInterruptedOnly as Mr, _void as Mt, int as N, format$4 as Na, findFirst$1 as Ni, provideService as Nn, fail$7 as Nr, acquireRelease as Nt, TaggedError as O, right as Oa, drop$1 as Oi, onInterrupt as On, log as Or, nominal as Ot, optional as P, redact as Pa, findFirstIndex as Pi, repeatN as Pn, isFailure as Pr, acquireUseRelease$2 as Pt, unwrapScoped as Q, identity as Qa, reduce$7 as Qi, try_ as Qn, get$9 as Qr, dieMessage as Qt, asyncScoped as R, symbol as Ra, getSomes as Ri, runtime as Rn, make$27 as Rr, as as Rt, Literal as S, some$1 as Sa, isConfigError as Si, mapInputContext as Sn, Equivalence$2 as Sr, succeed$1 as St, Record as T, string$2 as Ta, append$2 as Ti, matchEffect as Tn, tagged as Tr, currentTracerEnabled as Tt, fromReadableStream as U, symbol$1 as Ua, isNonEmptyReadonlyArray as Ui, succeed$3 as Un, getOrDefault as Ur, catchAllCause$1 as Ut, fail as V, hash as Va, isArray as Vi, serviceFunctions as Vn, updateAndGet as Vr, cached as Vt, mapChunks as W, hasProperty as Wa, join$3 as Wi, suspend$6 as Wn, updateAs as Wr, catchAllDefect as Wt, transduce as X, constVoid as Xa, of$2 as Xi, tryMap as Xn, empty$19 as Xr, contextWithEffect as Xt, suspend$1 as Y, constUndefined as Ya, matchRight as Yi, timeout as Yn, of as Yr, context as Yt, unwrap as Z, dual as Za, prepend$2 as Zi, tryPromise as Zn, fromIterable$5 as Zr, die as Zt, fromString as _, isSome as _a, Tag as _i, logError as _n, interrupt$1 as _r, effect$1 as _t, make$1 as a, take$3 as aa, fromIterable$6 as ai, filterOrDieMessage as an, when$2 as ar, embedInput as at, Defect as b, none$4 as ba, merge$1 as bi, mapBoth$1 as bn, succeed$4 as br, provideMerge as bt, defaultLogger as c, map$13 as ca, seconds as ci, fnUntraced as cn, zip$1 as cr, fromEffect as ct, get as d, fromNullable as da, of$1 as di, forkScoped as dn, zipWith as dr, write as dt, some as ea, isEmpty$5 as ei, ensuring$4 as en, __commonJSMin as eo, uninterruptibleMask as er, foldLeftChunks as et, make$3 as f, getOrElse as fa, reduce$6 as fi, gen as fn, DeferredTypeId as fr, spaced as ft, when as g, isOption as ga, Reference as gi, locally as gn, failCause$3 as gr, make$10 as gt, value as h, isNone as ha, GenericTag as hi, isEffect as hn, fail$5 as hr, get$1 as ht, isMailbox as i, tailNonEmpty$1 as ia, add as ii, filter$1 as in, useSpan as ir, acquireUseRelease as it, declare as j, Class$5 as ja, filter$4 as ji, orElseFail as jn, isInterrupted as jr, is as jt, Union as k, pipeArguments as ka, empty$26 as ki, orDie as kn, Scope as kr, decodeSync as kt, prettyLoggerDefault as l, filter$5 as la, appendAll$1 as li, forEach$2 as ln, zipLeft as lr, suspend$2 as lt, orElse as m, getOrUndefined as ma, unsafeFromArray as mi, interruptible as mn, complete as mr, updateContext as mt, make as n, span as na, set$4 as ni, failCause$2 as nn, __require as no, unsafeMakeLatch as nr, fromChannel$1 as nt, toChannel as o, unsafeGet$3 as oa, has$5 as oi, flatMap$4 as on, withFiberRuntime as or, ensuring$1 as ot, updateEffect as p, getOrThrow as pa, toArray$1 as pi, ignore as pn, _await as pr, runFork as pt, runCollect as q, globalValue as qa, match$8 as qi, tapError as qn, cons as qr, catchTag as qt, unsafeAdd as r, splitAt as ra, make$39 as ri, failSync as rn, __toESM as ro, unsafeMakeSemaphore as rr, unwrapScoped$1 as rt, unify as s, getEquivalence$5 as sa, remove$1 as si, flatten$3 as sn, withParentSpan as sr, flatMap as st, join as t, sort as ta, make$36 as ti, fail$4 as tn, __exportAll as to, unlessEffect as tr, forEach as tt, withMinimumLogLevel as u, flatMap$9 as ua, map$11 as ui, forkDaemon as un, zipRight$1 as ur, void_ as ut, Cause as v, map$14 as va, get$13 as vi, logWarning as vn, isDone as vr, mergeAll$1 as vt, NumberFromString as w, mapInput as wa, allocate as wi, matchCauseEffect as wn, TaggedError$1 as wr, currentLoggers as wt, Int as x, orElse$5 as xa, omit$3 as xi, mapError$4 as xn, unsafeDone as xr, scoped$2 as xt, Date$ as y, match$9 as ya, getOption$1 as yi, map$3 as yn, make$15 as yr, provide as yt, bufferChunks as z, cached$1 as za, head$2 as zi, scope as zn, set$2 as zr, asVoid as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1493,35 +1493,6 @@ declare class SkillCorpusEmpty extends SkillCorpusEmpty_base<{
|
|
|
1493
1493
|
readonly hint?: string;
|
|
1494
1494
|
readonly cause?: unknown;
|
|
1495
1495
|
}> {}
|
|
1496
|
-
declare const AiTaskCreateFailed_base: new <A extends Record<string, any> = {}>(args: VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => YieldableError & {
|
|
1497
|
-
readonly _tag: "AiTaskCreateFailed";
|
|
1498
|
-
} & Readonly<A>;
|
|
1499
|
-
declare class AiTaskCreateFailed extends AiTaskCreateFailed_base<{
|
|
1500
|
-
readonly message?: string;
|
|
1501
|
-
readonly details?: unknown;
|
|
1502
|
-
readonly hint?: string;
|
|
1503
|
-
readonly cause?: unknown;
|
|
1504
|
-
}> {}
|
|
1505
|
-
declare const AiTaskFailed_base: new <A extends Record<string, any> = {}>(args: VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => YieldableError & {
|
|
1506
|
-
readonly _tag: "AiTaskFailed";
|
|
1507
|
-
} & Readonly<A>;
|
|
1508
|
-
declare class AiTaskFailed extends AiTaskFailed_base<{
|
|
1509
|
-
readonly message?: string;
|
|
1510
|
-
readonly taskId?: string;
|
|
1511
|
-
readonly status?: string;
|
|
1512
|
-
readonly details?: unknown;
|
|
1513
|
-
readonly hint?: string;
|
|
1514
|
-
}> {}
|
|
1515
|
-
declare const AiRecordNotFound_base: new <A extends Record<string, any> = {}>(args: VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => YieldableError & {
|
|
1516
|
-
readonly _tag: "AiRecordNotFound";
|
|
1517
|
-
} & Readonly<A>;
|
|
1518
|
-
declare class AiRecordNotFound extends AiRecordNotFound_base<{
|
|
1519
|
-
readonly message?: string;
|
|
1520
|
-
readonly kind?: string;
|
|
1521
|
-
readonly ref?: string;
|
|
1522
|
-
readonly details?: unknown;
|
|
1523
|
-
readonly hint?: string;
|
|
1524
|
-
}> {}
|
|
1525
1496
|
declare const Generic_base: new <A extends Record<string, any> = {}>(args: VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => YieldableError & {
|
|
1526
1497
|
readonly _tag: "Generic";
|
|
1527
1498
|
} & Readonly<A>;
|
|
@@ -1531,7 +1502,7 @@ declare class Generic extends Generic_base<{
|
|
|
1531
1502
|
readonly hint?: string;
|
|
1532
1503
|
readonly cause?: unknown;
|
|
1533
1504
|
}> {}
|
|
1534
|
-
type CliError = AuthMissing | AuthExpired | AuthDenied | AuthProbe | NetworkTimeout | NetworkDns | NetworkRefused | ValidationFailed | ValidationXml | ValidationJson | ServerError | ResourceNotFound | ConfigMissingApiUrl | ConfigMissingToken | ConfigMigrationFailed | ProfileNotFound | ProfileNoneActive | ProfileInvalidName | WriteRequiresExplicit | UpdateDevEnvironment | UpdateTransientInstall | UpdatePmUnknown | UpdateRegistryUnreachable | UpdateNodeIncompatible | UpdateSpawnFailed | UpdatePermissionDenied | ArgvParse | ChapterNotFound | SkillCorpusEmpty |
|
|
1505
|
+
type CliError = AuthMissing | AuthExpired | AuthDenied | AuthProbe | NetworkTimeout | NetworkDns | NetworkRefused | ValidationFailed | ValidationXml | ValidationJson | ServerError | ResourceNotFound | ConfigMissingApiUrl | ConfigMissingToken | ConfigMigrationFailed | ProfileNotFound | ProfileNoneActive | ProfileInvalidName | WriteRequiresExplicit | UpdateDevEnvironment | UpdateTransientInstall | UpdatePmUnknown | UpdateRegistryUnreachable | UpdateNodeIncompatible | UpdateSpawnFailed | UpdatePermissionDenied | ArgvParse | ChapterNotFound | SkillCorpusEmpty | Generic;
|
|
1535
1506
|
type CliErrorTag = CliError['_tag'];
|
|
1536
1507
|
declare const tagToCode: Record<CliErrorTag, string>;
|
|
1537
1508
|
declare const codeForTag: (tag: CliErrorTag) => string;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as defaultMessageFor, c as tagToCode, i as codeForTag, l as toErrorEnvelope, n as defaultGlobalFlags, o as exitCodeForError, r as parseGlobalFlags, s as exitCodeForTag, t as run } from "./mxs-
|
|
1
|
+
import { a as defaultMessageFor, c as tagToCode, i as codeForTag, l as toErrorEnvelope, n as defaultGlobalFlags, o as exitCodeForError, r as parseGlobalFlags, s as exitCodeForTag, t as run } from "./mxs-DXpzbUf4.mjs";
|
|
2
2
|
export { codeForTag, defaultGlobalFlags, defaultMessageFor, exitCodeForError, exitCodeForTag, parseGlobalFlags, run, tagToCode, toErrorEnvelope };
|