@todoforai/tfa-surface 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -8,7 +8,7 @@ import { parseArgs } from "node:util";
8
8
  // ../tfa-subagent/dist/auth.js
9
9
  import { readFileSync, writeFileSync, mkdirSync, chmodSync } from "node:fs";
10
10
  import { join, dirname } from "node:path";
11
- import { homedir, platform } from "node:os";
11
+ import { homedir, platform, hostname } from "node:os";
12
12
  var DEFAULT_API_URL = "https://api.todofor.ai";
13
13
  function runActorToken() {
14
14
  return process.env.TODOFORAI_USER_ID ? process.env.TODOFORAI_API_TOKEN || "" : "";
@@ -121,7 +121,7 @@ function resolveToken(opts = {}) {
121
121
  // package.json
122
122
  var package_default = {
123
123
  name: "@todoforai/tfa-surface",
124
- version: "0.1.6",
124
+ version: "0.1.7",
125
125
  description: "TODOforAI surface CLI — see and drive what is shown in the user's live UI (describe, todo/panel views, renderer cards, surface render, controls). Replaces tfa-frontend. Reuses bridge credentials.",
126
126
  type: "module",
127
127
  bin: {
@@ -171,7 +171,7 @@ Surfaces — a ref is a todo id, <todoId>:<alias> (a shown artifact, live) or an
171
171
  open window <ref> [--detached] A floating preview window (any ref); --detached: out of
172
172
  the grid, own size, resizable. connect:/stream: refs always are.
173
173
  open panel <view> [--todo <id>] [--url <url>]
174
- A todo's side panel: changes|agents|preview|browser|terminal
174
+ A todo's side panel: changes|agents|preview|browser|terminal|agent
175
175
  (--todo defaults to $TODOFORAI_TODO_ID).
176
176
  open card <ref> [--id <id>] [--title <t>] [--group <slug>]
177
177
  A card on the project board, for every member —
@@ -189,6 +189,9 @@ Renderer cards (data plane — works headless, no frontend needed;
189
189
  card list [--project <id>] List the project's cards.
190
190
  card get <name> [--project <id>] Print a card's HTML (--json: metadata).
191
191
  card rm <name> [--project <id>] Delete a card.
192
+ A card names itself: <title> and <meta name="description"> (defaults for --title/--description),
193
+ <meta property="og:image" content="data:image/jpeg;base64,…"> (1200×630 screenshot
194
+ with sample data, never real customers) = its gallery tile. https://docs.todofor.ai/windows/widgets
192
195
 
193
196
  Content (inherited from tfa-frontend, broadcast to all tabs):
194
197
  show <surface> <target> [markdown] Render markdown (stdin when omitted).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todoforai/tfa-surface",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "TODOforAI surface CLI — see and drive what is shown in the user's live UI (describe, todo/panel views, renderer cards, surface render, controls). Replaces tfa-frontend. Reuses bridge credentials.",
5
5
  "type": "module",
6
6
  "bin": {