@mx-space/cli 0.5.1 → 0.6.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 +21 -1
- package/ROADMAP.md +4 -0
- package/dist/bin/mxs.mjs +1 -1
- package/dist/{esm-DO9hVR8S.mjs → esm-CK9m5JKX.mjs} +1 -1
- package/dist/esm-DRbkkY3r.mjs +2 -0
- package/dist/index.d.mts +19 -1
- package/dist/index.mjs +1 -1
- package/dist/{mxs-CCu8LdBX.mjs → mxs-Bs_7ZKs9.mjs} +3671 -3107
- package/package.json +4 -3
- package/skills/auth-config.md +70 -0
- package/skills/authoring.md +175 -0
- package/skills/commands-auth.md +19 -0
- package/skills/commands-category.md +20 -0
- package/skills/commands-comment.md +47 -0
- package/skills/commands-config.md +30 -0
- package/skills/commands-note.md +53 -0
- package/skills/commands-page.md +32 -0
- package/skills/commands-post.md +51 -0
- package/skills/commands-profile.md +22 -0
- package/skills/commands-topic.md +18 -0
- package/skills/output-modes.md +45 -0
- package/skills/overview.md +41 -0
- package/skills/safety.md +114 -0
- package/skills/workflow.md +49 -0
- package/dist/esm-BKxzBG1f.mjs +0 -2
package/README.md
CHANGED
|
@@ -243,7 +243,7 @@ URL follows the admin-vue3 hash-router convention
|
|
|
243
243
|
|
|
244
244
|
| Flag | Field |
|
|
245
245
|
| ---------------------- | ---------------------------------------------------------------------- |
|
|
246
|
-
| `--title <text>` | `title`; defaults to `无题` for create payloads.
|
|
246
|
+
| `--title <text>` | `title`; defaults to `无题` ("Untitled") for create payloads. |
|
|
247
247
|
| `--slug <slug>` | `slug` |
|
|
248
248
|
| `--topic <id-or-name>` | Resolved to `topicId` by id, slug, or name. |
|
|
249
249
|
| `--content <spec>` | Body source. |
|
|
@@ -485,6 +485,26 @@ Example profile config:
|
|
|
485
485
|
| `6` | Server 5xx failure |
|
|
486
486
|
| `7` | Resource not found |
|
|
487
487
|
|
|
488
|
+
## Skill bundle
|
|
489
|
+
|
|
490
|
+
`mxs skill` exposes the bundled AI-agent documentation directly from the CLI binary. Chapters are shipped inside the published `@mx-space/cli` package; liteXML chapters are pulled live from `@haklex/rich-litexml` at runtime (requires `@haklex/rich-litexml@>=0.16.0`).
|
|
491
|
+
|
|
492
|
+
| Command | Behaviour |
|
|
493
|
+
| -------------------------------- | ---------------------------------------------------------- |
|
|
494
|
+
| `mxs skill` | List every chapter (slug + one-line description). |
|
|
495
|
+
| `mxs skill get <slug>` | Print one chapter; default output is markdown for agents. |
|
|
496
|
+
| `mxs skill all` | Concatenate every chapter in registry order. |
|
|
497
|
+
| `mxs skill search <keyword>` | Substring search across title / description / body. |
|
|
498
|
+
|
|
499
|
+
All four verbs honour the global `--json`, `--output llm`, `--output xml`, and `--output readable` flags.
|
|
500
|
+
|
|
501
|
+
Override paths for development or vendoring:
|
|
502
|
+
|
|
503
|
+
| Variable | Effect |
|
|
504
|
+
| ----------------------- | ---------------------------------------------------------------------- |
|
|
505
|
+
| `MXS_SKILL_CLI_DIR` | Override the CLI-native skill directory (default: `<pkg>/skills/`). |
|
|
506
|
+
| `MXS_SKILL_HAKLEX_DIR` | Override the haklex liteXML skill directory. |
|
|
507
|
+
|
|
488
508
|
## Troubleshooting
|
|
489
509
|
|
|
490
510
|
| Symptom | Resolution |
|
package/ROADMAP.md
CHANGED
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
- Internal rewrite onto Effect-TS (`@effect/cli` + `@effect/platform`). User-facing CLI surface is unchanged — see [`README.md`](./README.md#v030-behavior-changes) for the small list of behavioral adjustments and [`docs/architecture.md`](./docs/architecture.md) for the new internal architecture.
|
|
10
10
|
|
|
11
|
+
## Shipped in v0.7
|
|
12
|
+
|
|
13
|
+
- `mxs skill` — bundled AI-agent documentation. List, get, all, search across chapters shipped inside the CLI (`packages/cli/skills/*.md`); liteXML chapters loaded live from the installed `@haklex/rich-litexml` package. Default output is raw markdown for direct context injection.
|
|
14
|
+
|
|
11
15
|
## Next — Comment moderation
|
|
12
16
|
|
|
13
17
|
- `mxs comment list [--page N] [--size N] [--state unread|read|junk] [--all]`
|
package/dist/bin/mxs.mjs
CHANGED
|
@@ -37649,4 +37649,4 @@ const unsafeAdd = /* @__PURE__ */ dual((args) => isFiberSet(args[0]), (self, fib
|
|
|
37649
37649
|
*/
|
|
37650
37650
|
const join = (self) => _await(self.deferred);
|
|
37651
37651
|
//#endregion
|
|
37652
|
-
export {
|
|
37652
|
+
export { drain as $, identity as $a, reduce$7 as $i, try_ as $n, get$9 as $r, either$1 as $t, compose as A, pipeArguments as Aa, empty$26 as Ai, orElse$3 as An, Scope as Ar, encodeSync as At, ensuring as B, cached$1 as Ba, head$2 as Bi, scope as Bn, set$2 as Br, async as Bt, Number$ as C, some$1 as Ca, isConfigError as Ci, match$2 as Cn, Equivalence$2 as Cr, currentContext as Ct, String$ as D, left as Da, appendAll$2 as Di, onError as Dn, taggedEnum as Dr, unsafeMake$3 as Dt, Schema_exports as E, string$2 as Ea, append$2 as Ei, negate as En, tagged as Er, get$3 as Et, transform as F, redact as Fa, findFirstIndex as Fi, retry as Fn, isFailure as Fr, addFinalizer as Ft, mapError as G, hasProperty as Ga, join$3 as Gi, suspend$6 as Gn, updateAs as Gr, catchIf as Gt, fromChannel as H, hash as Ha, isArray as Hi, serviceFunctions as Hn, updateAndGet as Hr, catchAll as Ht, make$5 as I, symbolRedactable as Ia, findLast as Ii, runFork$1 as In, void_$2 as Ir, all as It, splitLines as J, globalValue as Ja, match$8 as Ji, tapError as Jn, cons as Jr, catchTags as Jt, run as K, isObject as Ka, make$48 as Ki, sync$1 as Kn, CommitPrototype as Kr, catchSome as Kt, isConfig as L, toStringUnknown as La, flatMap$8 as Li, runPromise as Ln, ParentSpan as Lr, annotateLogs as Lt, decodeUnknown as M, Class$5 as Ma, filter$4 as Mi, provide$1 as Mn, isInterrupted as Mr, _void as Mt, int as N, NodeInspectSymbol as Na, filterMap as Ni, provideService as Nn, isInterruptedOnly as Nr, acquireRelease as Nt, TaggedError as O, merge$3 as Oa, contains as Oi, onInterrupt as On, error as Or, nominal as Ot, optional as P, format$4 as Pa, findFirst$1 as Pi, repeatN as Pn, fail$7 as Pr, acquireUseRelease$2 as Pt, unwrapScoped as Q, dual as Qa, prepend$2 as Qi, tryPromise as Qn, fromIterable$5 as Qr, dieMessage as Qt, asyncScoped as R, equals$3 as Ra, fromIterable$10 as Ri, runSync as Rn, get$5 as Rr, as as Rt, Literal as S, orElse$5 as Sa, omit$3 as Si, mapInputContext as Sn, unsafeDone as Sr, succeed$1 as St, Record as T, mapInput as Ta, allocate as Ti, matchEffect as Tn, TaggedError$1 as Tr, currentTracerEnabled as Tt, fromReadableStream as U, string$3 as Ua, isEmptyReadonlyArray as Ui, serviceOption as Un, allLevels as Ur, catchAllCause$1 as Ut, fail as V, combine$7 as Va, headNonEmpty$2 as Vi, scoped$3 as Vn, update$1 as Vr, cached as Vt, mapChunks as W, symbol$1 as Wa, isNonEmptyReadonlyArray as Wi, succeed$3 as Wn, getOrDefault as Wr, catchAllDefect as Wt, transduce as X, constUndefined as Xa, matchRight as Xi, timeout as Xn, of as Xr, contextWithEffect as Xt, suspend$1 as Y, constFalse as Ya, matchLeft as Yi, tapErrorCause as Yn, isNil as Yr, context as Yt, unwrap as Z, constVoid as Za, of$2 as Zi, tryMap as Zn, empty$19 as Zr, die as Zt, fromString as _, isOption as _a, Reference as _i, logError as _n, failCause$3 as _r, effect$1 as _t, make$1 as a, tailNonEmpty$1 as aa, add as ai, filterOrDieMessage as an, useSpan as ar, embedInput as at, Defect as b, match$9 as ba, getOption$1 as bi, mapBoth$1 as bn, make$15 as br, provideMerge as bt, make$3 as c, getEquivalence$5 as ca, remove$1 as ci, fnUntraced as cn, withParentSpan as cr, fromEffect as ct, defaultLogger as d, flatMap$9 as da, map$11 as di, forkScoped as dn, zipRight$1 as dr, write as dt, reduceRight as ea, has$4 as ei, ensuring$4 as en, pipe as eo, uninterruptible as er, foldLeftChunks as et, prettyLoggerDefault as f, fromNullable as fa, of$1 as fi, gen as fn, zipWith as fr, spaced as ft, when as g, isNone as ga, GenericTag as gi, locally as gn, fail$5 as gr, make$10 as gt, value as h, getOrUndefined as ha, unsafeFromArray as hi, isEffect as hn, complete as hr, get$1 as ht, isMailbox as i, splitAt as ia, make$39 as ii, filter$1 as in, __toESM as io, unsafeMakeSemaphore as ir, acquireUseRelease as it, declare as j, BaseProto as ja, every$1 as ji, orElseFail as jn, addFinalizer$1 as jr, is as jt, Union as k, right as ka, drop$1 as ki, orDie as kn, log as kr, decodeSync as kt, updateEffect as l, map$13 as la, seconds as li, forEach$2 as ln, zip$1 as lr, suspend$2 as lt, orElse as m, getOrThrow as ma, toArray$1 as mi, interruptible as mn, _await as mr, updateContext as mt, make as n, sort as na, make$36 as ni, failCause$2 as nn, __exportAll as no, unlessEffect as nr, fromChannel$1 as nt, toChannel as o, take$3 as oa, fromIterable$6 as oi, flatMap$4 as on, when$2 as or, ensuring$1 as ot, withMinimumLogLevel as p, getOrElse as pa, reduce$6 as pi, ignore as pn, DeferredTypeId as pr, runFork as pt, runCollect as q, isTagged as qa, map$12 as qi, tap as qn, round as qr, catchTag as qt, unsafeAdd as r, span as ra, set$4 as ri, failSync as rn, __require as ro, unsafeMakeLatch as rr, unwrapScoped$1 as rt, get as s, unsafeGet$3 as sa, has$5 as si, flatten$3 as sn, withFiberRuntime as sr, flatMap as st, join as t, some as ta, isEmpty$5 as ti, fail$4 as tn, __commonJSMin as to, uninterruptibleMask as tr, forEach as tt, unify as u, filter$5 as ua, appendAll$1 as ui, forkDaemon as un, zipLeft as ur, void_ as ut, Cause as v, isSome as va, Tag as vi, logWarning as vn, interrupt$1 as vr, mergeAll$1 as vt, NumberFromString as w, boolean as wa, isMissingDataOnly as wi, matchCauseEffect as wn, Error$1 as wr, currentLoggers as wt, Int as x, none$4 as xa, merge$1 as xi, mapError$4 as xn, succeed$4 as xr, scoped$2 as xt, Date$ as y, map$14 as ya, get$13 as yi, map$3 as yn, isDone as yr, provide as yt, bufferChunks as z, symbol as za, getSomes as zi, runtime as zn, make$27 as zr, asVoid as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1446,6 +1446,24 @@ declare class ArgvParse extends ArgvParse_base<{
|
|
|
1446
1446
|
readonly details?: unknown;
|
|
1447
1447
|
readonly hint?: string;
|
|
1448
1448
|
}> {}
|
|
1449
|
+
declare const ChapterNotFound_base: new <A extends Record<string, any> = {}>(args: VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => YieldableError & {
|
|
1450
|
+
readonly _tag: "ChapterNotFound";
|
|
1451
|
+
} & Readonly<A>;
|
|
1452
|
+
declare class ChapterNotFound extends ChapterNotFound_base<{
|
|
1453
|
+
readonly message?: string;
|
|
1454
|
+
readonly slug?: string;
|
|
1455
|
+
readonly details?: unknown;
|
|
1456
|
+
readonly hint?: string;
|
|
1457
|
+
}> {}
|
|
1458
|
+
declare const SkillCorpusEmpty_base: new <A extends Record<string, any> = {}>(args: VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => YieldableError & {
|
|
1459
|
+
readonly _tag: "SkillCorpusEmpty";
|
|
1460
|
+
} & Readonly<A>;
|
|
1461
|
+
declare class SkillCorpusEmpty extends SkillCorpusEmpty_base<{
|
|
1462
|
+
readonly message?: string;
|
|
1463
|
+
readonly details?: unknown;
|
|
1464
|
+
readonly hint?: string;
|
|
1465
|
+
readonly cause?: unknown;
|
|
1466
|
+
}> {}
|
|
1449
1467
|
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 & {
|
|
1450
1468
|
readonly _tag: "Generic";
|
|
1451
1469
|
} & Readonly<A>;
|
|
@@ -1455,7 +1473,7 @@ declare class Generic extends Generic_base<{
|
|
|
1455
1473
|
readonly hint?: string;
|
|
1456
1474
|
readonly cause?: unknown;
|
|
1457
1475
|
}> {}
|
|
1458
|
-
type CliError = AuthMissing | AuthExpired | AuthDenied | AuthProbe | NetworkTimeout | NetworkDns | NetworkRefused | ValidationFailed | ValidationXml | ServerError | ResourceNotFound | ConfigMissingApiUrl | ConfigMissingToken | ConfigMigrationFailed | ProfileNotFound | ProfileNoneActive | ProfileInvalidName | WriteRequiresExplicit | UpdateDevEnvironment | UpdateTransientInstall | UpdatePmUnknown | UpdateRegistryUnreachable | UpdateNodeIncompatible | UpdateSpawnFailed | UpdatePermissionDenied | ArgvParse | Generic;
|
|
1476
|
+
type CliError = AuthMissing | AuthExpired | AuthDenied | AuthProbe | NetworkTimeout | NetworkDns | NetworkRefused | ValidationFailed | ValidationXml | ServerError | ResourceNotFound | ConfigMissingApiUrl | ConfigMissingToken | ConfigMigrationFailed | ProfileNotFound | ProfileNoneActive | ProfileInvalidName | WriteRequiresExplicit | UpdateDevEnvironment | UpdateTransientInstall | UpdatePmUnknown | UpdateRegistryUnreachable | UpdateNodeIncompatible | UpdateSpawnFailed | UpdatePermissionDenied | ArgvParse | ChapterNotFound | SkillCorpusEmpty | Generic;
|
|
1459
1477
|
type CliErrorTag = CliError['_tag'];
|
|
1460
1478
|
declare const tagToCode: Record<CliErrorTag, string>;
|
|
1461
1479
|
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-Bs_7ZKs9.mjs";
|
|
2
2
|
export { codeForTag, defaultGlobalFlags, defaultMessageFor, exitCodeForError, exitCodeForTag, parseGlobalFlags, run, tagToCode, toErrorEnvelope };
|