records-cli 0.0.2 → 0.0.3

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/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Fixed production origin — not configurable. */
2
- export declare const RECORDS_ORIGIN = "https://records-api.tolkee.dev";
2
+ export declare const RECORDS_ORIGIN = "https://api-records.tolkee.dev";
3
3
  export type ClientOptions = {
4
4
  baseUrl: string;
5
5
  token?: string;
package/dist/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Fixed production origin — not configurable. */
2
- export const RECORDS_ORIGIN = "https://records-api.tolkee.dev";
2
+ export const RECORDS_ORIGIN = "https://api-records.tolkee.dev";
3
3
  export class ApiError extends Error {
4
4
  status;
5
5
  body;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "records-cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Command-line interface to Records for automation and LLM agents.",
5
5
  "type": "module",
6
6
  "bin": {
package/skill/SKILL.md CHANGED
@@ -1,8 +1,9 @@
1
1
  ---
2
2
 
3
3
  ## name: records-cli
4
+
4
5
  description: How to record new knowledge for the user via the Records CLI—create groups and records so ideas from the chat become stored documents. Use when the user asks to save, remember, or record something from the conversation, or when you should persist an explanation (lesson, reference, how-to) for later.
5
- compatibility: Requires the `records-cli` npm package (or a local build). Uses HTTPS against `https://records-api.tolkee.dev` only. Commands that change data need a token; ask the user if you do not have one.
6
+ compatibility: Requires the `records-cli` npm package (or a local build). Uses HTTPS against `https://api-records.tolkee.dev` only. Commands that change data need a token; ask the user if you do not have one.
6
7
  metadata:
7
8
  cli-package: records-cli
8
9
  spec-version: "1.0"
@@ -12,7 +13,7 @@ metadata:
12
13
  ## Install and environment
13
14
 
14
15
  - **Package:** `records-cli` — install with `npm install -g records-cli` or run ad hoc with `npx records-cli`.
15
- - **Server:** always `https://records-api.tolkee.dev` (not configurable).
16
+ - **Server:** always `https://api-records.tolkee.dev` (not configurable).
16
17
  - **Token:** For commands that mutate or list protected data, pass `-t <token>` or set `RECORDS_TOKEN` to the user’s plaintext key.
17
18
  - **If you do not already have a key**, ask the user before running protected commands. Do not guess or fabricate a key. Once they share it, use it only for CLI invocations and avoid repeating the full secret in replies when unnecessary.
18
19
  - If the user has no key yet, they may create one through their usual Records setup, or—where the server allows it—via the bootstrap flow described in the reference (creating the first key when none exist).
@@ -9,7 +9,7 @@
9
9
  | `-p, --pretty` | — | Pretty-print JSON on stdout |
10
10
 
11
11
 
12
- All requests use `**https://records-api.tolkee.dev`** as the origin (fixed).
12
+ All requests use `**https://api-records.tolkee.dev`** as the origin (fixed).
13
13
 
14
14
  Successful responses are JSON on **stdout** (usually `{ "data": … }`). Failures print JSON with `error` (and `status` / `body` when available) on **stdout**; the process exits non-zero.
15
15