@foleo/cli 0.1.28 → 0.1.33
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 +10 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +391 -53
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/foleo/SKILL.md +101 -10
package/README.md
CHANGED
|
@@ -16,14 +16,16 @@ npx -y @foleo/cli whoami
|
|
|
16
16
|
npx -y @foleo/cli doctor
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
The default key can read, publish, and
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
The default key can read, publish, unpublish, and delete or restore artifacts —
|
|
20
|
+
delete is reversible, holding the bytes for a 30-day restore window. Only
|
|
21
|
+
irreversible purge uses incremental authority: add `--allow-purge` at login when
|
|
22
|
+
you intentionally need it. Purge is never requested by a normal installation.
|
|
23
|
+
`--allow-delete` is retired and accepted silently, so existing scripts keep
|
|
24
|
+
working.
|
|
23
25
|
|
|
24
26
|
That runs npm `latest` with no global install, which is the intended steady state — there is no need to install anything permanently. Optional: `npm install --global @foleo/cli` puts `foleo` on PATH.
|
|
25
27
|
|
|
26
|
-
`npx -y @foleo/cli skill get` prints the version-matched bundled skill to stdout — it installs nothing. To keep it across sessions, write that output wherever your agent loads reusable skills or instructions from. `skill path` prints where that file lives on disk, which is only a stable location under a global install — under `npx` it resolves inside a temporary cache. Agents can read the live contract at [https://foleo.app/agents.md](https://foleo.app/agents.md), also available as `https://foleo.app/CLAUDE.md`. Foleo
|
|
28
|
+
`npx -y @foleo/cli skill get` prints the version-matched bundled skill to stdout — it installs nothing. To keep it across sessions, write that output wherever your agent loads reusable skills or instructions from. `skill path` prints where that file lives on disk, which is only a stable location under a global install — under `npx` it resolves inside a temporary cache. Agents can read the live contract at [https://foleo.app/agents.md](https://foleo.app/agents.md), also available as `https://foleo.app/CLAUDE.md`. Foleo also runs a remote MCP server at `https://mcp.foleo.app/mcp`.
|
|
27
29
|
|
|
28
30
|
`npx -y @foleo/cli --version` reports which CLI you are running, and `doctor --json` includes it as `cliVersion`. `npx` resolves npm `latest` on each run, so it stays current on its own; a global install stays pinned until you reinstall. `doctor` also compares your version against the public npm registry and warns if a newer one exists — an unauthenticated GET with a 2.5s timeout that fails open, so a slow or unreachable registry never blocks setup. Set `FOLEO_SKIP_UPDATE_CHECK=1` to turn it off; no other command touches the network except the Foleo API.
|
|
29
31
|
|
|
@@ -74,7 +76,9 @@ npx -y @foleo/cli settings <id> --set visibility=private --revision <etag> --jso
|
|
|
74
76
|
npx -y @foleo/cli limits --json
|
|
75
77
|
```
|
|
76
78
|
|
|
79
|
+
`--runtime-profile auto|open|contained` chooses the HTML runtime profile on an HTML `publish` or `update` (`auto` when omitted); an explicit `contained` page that does not fit fails with `contained_profile_unavailable` and its blocked references, and is never retried as `open`. A change that exposes an existing artifact to more readers or adds a working address (private to unlisted, restore, name attach, a keep-as-alias rename) needs `--acknowledge-access-widening`, passed only after the human approves that change; without it the API answers `acknowledgement_required`. The flag is never implied by `--accept-hosting-risk`.
|
|
80
|
+
|
|
77
81
|
`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
82
|
No `html-delete`, `html-restore`, or `html-purge` commands exist.
|
|
79
83
|
|
|
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.
|
|
84
|
+
The CLI stores its credential in macOS Keychain after login, and logging in again revokes the key it replaces. `npx -y @foleo/cli logout` revokes that key and removes it — if the revoke fails, it still removes it and exits with an error; `--no-revoke` only removes it from this machine. Neither touches `FOLEO_TOKEN`. 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.
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** Spec 060 § G: loopback captures the code, then 302s here. Never put the token on this URL. */
|
|
3
3
|
export declare const FOLEO_LOGIN_SUCCESS_URL = "https://foleo.app/cli/authorized";
|
|
4
4
|
/** REST and shipped CLI share this set; MCP parity is a later Spec 083 gate. */
|
|
5
|
-
export declare const SETTINGS_SURFACE_FIELD_IDS: readonly ["name", "title", "titleUserSet", "slug", "slugUserSet", "visibility", "password", "customDomain"];
|
|
5
|
+
export declare const SETTINGS_SURFACE_FIELD_IDS: readonly ["name", "title", "titleUserSet", "slug", "slugUserSet", "frontmatterDisplay", "visibility", "password", "customDomain"];
|
|
6
6
|
export interface CliDeps {
|
|
7
7
|
fetch: typeof fetch;
|
|
8
8
|
readFile(path: string, encoding: BufferEncoding): Promise<string>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AA4DA,iGAAiG;AACjG,eAAO,MAAM,uBAAuB,qCAAqC,CAAC;AAO1E,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,mIAU7B,CAAC;AAqDX,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,C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