@foleo/cli 0.1.15 → 0.1.18

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 CHANGED
@@ -54,7 +54,7 @@ that Foleo-held bytes are gone. Always carry the returned opaque `etag` exactly.
54
54
 
55
55
  ```sh
56
56
  npx -y @foleo/cli publish ./notes.md --json
57
- npx -y @foleo/cli update <id> ./notes.md --version <version> --json
57
+ npx -y @foleo/cli update <id> ./notes.md --revision <etag> --json
58
58
  ```
59
59
 
60
60
  Source-aware creates refuse an owner-scoped exact content match instead of silently
@@ -66,20 +66,15 @@ page is intentional repeat the create with `--publish-separately`.
66
66
  HTML is executable content. A human must inspect the local source and explicitly approve the hosting risk before an agent uses the acknowledgement flag. The pre-PSL friends alpha accepts a static site rooted at `index.html`, including additional HTML pages and allowlisted local assets. Use no sensitive information.
67
67
 
68
68
  ```sh
69
- npx -y @foleo/cli html-publish ./site --accept-hosting-risk --json
70
- npx -y @foleo/cli html-publish ./site --accept-hosting-risk --settings '{"visibility":"password"}' --password-stdin --json
69
+ npx -y @foleo/cli publish ./site --accept-hosting-risk --json
70
+ npx -y @foleo/cli publish ./site --accept-hosting-risk --settings '{"visibility":"password"}' --password-stdin --json
71
+ npx -y @foleo/cli update <id> ./site --revision <etag> --json
71
72
  npx -y @foleo/cli settings <id> --json
72
73
  npx -y @foleo/cli settings <id> --set visibility=private --revision <etag> --json
73
- npx -y @foleo/cli html-visibility <id> --set private --revision <stateRevision> --json
74
- npx -y @foleo/cli html-password <id> --password-stdin --revision <stateRevision> --json
75
- npx -y @foleo/cli html-visibility <id> --set unlisted --revision <stateRevision> --json
76
74
  npx -y @foleo/cli limits --json
77
75
  ```
78
76
 
79
- Carry the latest returned opaque `etag` into generic settings mutations, and the latest `stateRevision` into format-specific HTML mutations. Public HTML is not available during this alpha.
80
- The `html-*` commands remain supported format-specific commands until generic
81
- publish ships. Use the artifact-generic discovery, settings, and
82
- lifecycle commands above where they exist. No `html-delete`, `html-restore`, or
83
- `html-purge` commands exist.
77
+ `publish` infers Markdown vs HTML from the path. The six `html-*` commands remain deprecated aliases. Carry the latest returned opaque `etag` into generic update and settings mutations, and the latest `stateRevision` into those aliases. Public HTML is not available during this alpha.
78
+ No `html-delete`, `html-restore`, or `html-purge` commands exist.
84
79
 
85
80
  The CLI stores its credential in macOS Keychain after login. Signing in to the Mac app does not sign in the CLI. Never write credentials into source files, prompts, artifacts, or repositories. See [https://foleo.app/agents.md](https://foleo.app/agents.md) for the concise agent contract.
@@ -0,0 +1,81 @@
1
+ /**
2
+ * The CLI's single error contract (spec 089 §E).
3
+ *
4
+ * Every failing exit path routes through here, because the previous behaviour
5
+ * wrote prose to stderr and left stdout empty even under `--json`. An agent
6
+ * that captures stdout — the documented way to consume this CLI — received
7
+ * `""` and could not tell a failure from a success with no output. One object
8
+ * on stdout, always carrying a stable `code`, is the fix.
9
+ *
10
+ * Exit codes stay `0` / `1` / `2` (spec 089 D1). Retryability travels in the
11
+ * payload's `retryable` field, never in the exit status, because
12
+ * `foleo … | jq` discards the CLI's status unless the caller sets `pipefail`.
13
+ */
14
+ export type ErrorSource = "local" | "api" | "upstream";
15
+ export interface FoleoErrorInit {
16
+ code: string;
17
+ message: string;
18
+ /** What the caller should do next. Rendered after the message in prose. */
19
+ next?: string;
20
+ retryable?: boolean;
21
+ retryAfterSeconds?: number | null;
22
+ httpStatus?: number;
23
+ source?: ErrorSource;
24
+ /** The offending value and the actual limit, per spec 089 §E rule 2. */
25
+ context?: Record<string, unknown>;
26
+ /** Usage-shaped failures exit 2; everything else exits 1. */
27
+ usage?: boolean;
28
+ }
29
+ export declare class FoleoError extends Error {
30
+ readonly code: string;
31
+ readonly next: string | undefined;
32
+ readonly retryable: boolean;
33
+ readonly retryAfterSeconds: number | null;
34
+ readonly httpStatus: number | undefined;
35
+ readonly source: ErrorSource;
36
+ readonly context: Record<string, unknown> | undefined;
37
+ readonly usage: boolean;
38
+ constructor(init: FoleoErrorInit);
39
+ }
40
+ /**
41
+ * Usage errors keep their historical constructor shape — `new UsageError(text)`
42
+ * — so the many existing call sites and the tests that pin exit `2` keep
43
+ * working, while still carrying a code for `--json` consumers.
44
+ */
45
+ export declare class UsageError extends FoleoError {
46
+ constructor(message: string, code?: string, context?: Record<string, unknown>);
47
+ }
48
+ /** A local validation failure that is not a usage error (exit 1). */
49
+ export declare class LocalError extends FoleoError {
50
+ constructor(code: string, message: string, init?: Omit<FoleoErrorInit, "code" | "message">);
51
+ }
52
+ export interface ErrorPayload {
53
+ ok: false;
54
+ error: {
55
+ code: string;
56
+ message: string;
57
+ next?: string;
58
+ retryable: boolean;
59
+ retryAfterSeconds?: number;
60
+ httpStatus?: number;
61
+ source: ErrorSource;
62
+ context?: Record<string, unknown>;
63
+ };
64
+ }
65
+ /**
66
+ * Unknown throws still have to produce a coded payload — an uncaught `TypeError`
67
+ * must not degrade the contract to an empty stdout. `unexpected_error` is that
68
+ * floor.
69
+ */
70
+ export declare function toFoleoError(error: unknown): FoleoError;
71
+ export declare function errorPayload(error: unknown): ErrorPayload;
72
+ /**
73
+ * `--json` sends the object to stdout; prose always goes to stderr so that a
74
+ * human reading a terminal and a machine reading stdout never interleave.
75
+ */
76
+ export declare function renderFailure(error: unknown, json: boolean): {
77
+ stdout: string | null;
78
+ stderr: string | null;
79
+ exitCode: number;
80
+ };
81
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,KAAK,GAAG,UAAU,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CA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ACd,SAAS,EAAE,OAAO,CAAC;QACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,WAAW,CAAC;QACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC,CAAC;CACH;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAQvD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,CAmBzD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,GACZ;IAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAapE"}
package/dist/errors.js ADDED
@@ -0,0 +1,114 @@
1
+ /**
2
+ * The CLI's single error contract (spec 089 §E).
3
+ *
4
+ * Every failing exit path routes through here, because the previous behaviour
5
+ * wrote prose to stderr and left stdout empty even under `--json`. An agent
6
+ * that captures stdout — the documented way to consume this CLI — received
7
+ * `""` and could not tell a failure from a success with no output. One object
8
+ * on stdout, always carrying a stable `code`, is the fix.
9
+ *
10
+ * Exit codes stay `0` / `1` / `2` (spec 089 D1). Retryability travels in the
11
+ * payload's `retryable` field, never in the exit status, because
12
+ * `foleo … | jq` discards the CLI's status unless the caller sets `pipefail`.
13
+ */
14
+ export class FoleoError extends Error {
15
+ code;
16
+ next;
17
+ retryable;
18
+ retryAfterSeconds;
19
+ httpStatus;
20
+ source;
21
+ context;
22
+ usage;
23
+ constructor(init) {
24
+ super(init.message);
25
+ this.name = "FoleoError";
26
+ this.code = init.code;
27
+ this.next = init.next;
28
+ this.retryable = init.retryable ?? false;
29
+ this.retryAfterSeconds = init.retryAfterSeconds ?? null;
30
+ this.httpStatus = init.httpStatus;
31
+ this.source = init.source ?? "local";
32
+ this.context = init.context;
33
+ this.usage = init.usage ?? false;
34
+ }
35
+ }
36
+ /**
37
+ * Usage errors keep their historical constructor shape — `new UsageError(text)`
38
+ * — so the many existing call sites and the tests that pin exit `2` keep
39
+ * working, while still carrying a code for `--json` consumers.
40
+ */
41
+ export class UsageError extends FoleoError {
42
+ constructor(message, code = "usage_invalid", context) {
43
+ super({
44
+ code,
45
+ message,
46
+ source: "local",
47
+ usage: true,
48
+ ...(context ? { context } : {}),
49
+ });
50
+ this.name = "UsageError";
51
+ }
52
+ }
53
+ /** A local validation failure that is not a usage error (exit 1). */
54
+ export class LocalError extends FoleoError {
55
+ constructor(code, message, init = {}) {
56
+ super({ code, message, source: "local", ...init });
57
+ this.name = "LocalError";
58
+ }
59
+ }
60
+ /**
61
+ * Unknown throws still have to produce a coded payload — an uncaught `TypeError`
62
+ * must not degrade the contract to an empty stdout. `unexpected_error` is that
63
+ * floor.
64
+ */
65
+ export function toFoleoError(error) {
66
+ if (error instanceof FoleoError)
67
+ return error;
68
+ const message = error instanceof Error ? error.message : String(error);
69
+ return new FoleoError({
70
+ code: "unexpected_error",
71
+ message,
72
+ source: "local",
73
+ });
74
+ }
75
+ export function errorPayload(error) {
76
+ const failure = toFoleoError(error);
77
+ return {
78
+ ok: false,
79
+ error: {
80
+ code: failure.code,
81
+ message: failure.message,
82
+ ...(failure.next === undefined ? {} : { next: failure.next }),
83
+ retryable: failure.retryable,
84
+ ...(failure.retryAfterSeconds === null
85
+ ? {}
86
+ : { retryAfterSeconds: failure.retryAfterSeconds }),
87
+ ...(failure.httpStatus === undefined
88
+ ? {}
89
+ : { httpStatus: failure.httpStatus }),
90
+ source: failure.source,
91
+ ...(failure.context === undefined ? {} : { context: failure.context }),
92
+ },
93
+ };
94
+ }
95
+ /**
96
+ * `--json` sends the object to stdout; prose always goes to stderr so that a
97
+ * human reading a terminal and a machine reading stdout never interleave.
98
+ */
99
+ export function renderFailure(error, json) {
100
+ const failure = toFoleoError(error);
101
+ const exitCode = failure.usage ? 2 : 1;
102
+ if (json) {
103
+ return {
104
+ stdout: `${JSON.stringify(errorPayload(failure), null, 2)}\n`,
105
+ stderr: null,
106
+ exitCode,
107
+ };
108
+ }
109
+ const lines = [failure.message];
110
+ if (failure.next)
111
+ lines.push(failure.next);
112
+ return { stdout: null, stderr: `${lines.join("\n")}\n`, exitCode };
113
+ }
114
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAmBH,MAAM,OAAO,UAAW,SAAQ,KAAK;IAC1B,IAAI,CAAS;IACb,IAAI,CAAqB;IACzB,SAAS,CAAU;IACnB,iBAAiB,CAAgB;IACjC,UAAU,CAAqB;IAC/B,MAAM,CAAc;IACpB,OAAO,CAAsC;IAC7C,KAAK,CAAU;IAExB,YAAY,IAAoB;QAC9B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpB,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;QACzC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC;QACxD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC;IACnC,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,OAAO,UAAW,SAAQ,UA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AAI,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC;AACrE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -16,6 +16,9 @@ export interface CliDeps {
16
16
  dev?: number;
17
17
  ino?: number | bigint;
18
18
  }>;
19
+ stat?(path: string): Promise<{
20
+ isDirectory(): boolean;
21
+ }>;
19
22
  env: Record<string, string | undefined>;
20
23
  stdout(message: string): void;
21
24
  stderr(message: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AA6BA,iGAAiG;AACjG,eAAO,MAAM,uBAAuB,qCAAqC,CAAC;AAO1E,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,6GAS7B,CAAC;AAWX,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAClE,aAAa,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAClD,OAAO,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC1C,KAAK,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAC5B,WAAW,IAAI,OAAO,CAAC;QACvB,MAAM,IAAI,OAAO,CAAC;QAClB,cAAc,IAAI,OAAO,CAAC;QAC1B,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC,CAAC;IACH,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,I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