@cogfoundry/loomloom 0.6.2-beta.2 → 0.7.0-beta.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 CHANGED
@@ -12,5 +12,5 @@ GitHub Release assets remain the binary source of truth. The launcher selects an
12
12
  To install the matching general LoomLoom Skill for one explicit Agent, run:
13
13
 
14
14
  ```sh
15
- npx @cogfoundry/loomloom@0.6.2-beta.2 install --agent codex --yes
15
+ npx @cogfoundry/loomloom@0.7.0-beta.1 install --agent codex --yes
16
16
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cogfoundry/loomloom",
3
- "version": "0.6.2-beta.2",
3
+ "version": "0.7.0-beta.1",
4
4
  "description": "LoomLoom CLI for defining, compiling, executing, and managing AI work as software",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -22,12 +22,12 @@
22
22
  "LICENSE"
23
23
  ],
24
24
  "optionalDependencies": {
25
- "@cogfoundry/loomloom-linux-x64": "0.6.2-beta.2",
26
- "@cogfoundry/loomloom-linux-arm64": "0.6.2-beta.2",
27
- "@cogfoundry/loomloom-darwin-x64": "0.6.2-beta.2",
28
- "@cogfoundry/loomloom-darwin-arm64": "0.6.2-beta.2",
29
- "@cogfoundry/loomloom-win32-x64": "0.6.2-beta.2",
30
- "@cogfoundry/loomloom-win32-arm64": "0.6.2-beta.2"
25
+ "@cogfoundry/loomloom-linux-x64": "0.7.0-beta.1",
26
+ "@cogfoundry/loomloom-linux-arm64": "0.7.0-beta.1",
27
+ "@cogfoundry/loomloom-darwin-x64": "0.7.0-beta.1",
28
+ "@cogfoundry/loomloom-darwin-arm64": "0.7.0-beta.1",
29
+ "@cogfoundry/loomloom-win32-x64": "0.7.0-beta.1",
30
+ "@cogfoundry/loomloom-win32-arm64": "0.7.0-beta.1"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
package/platforms.json CHANGED
@@ -1,48 +1,48 @@
1
1
  {
2
- "releaseTag": "v0.6.2-beta.2",
3
- "version": "0.6.2-beta.2",
2
+ "releaseTag": "v0.7.0-beta.1",
3
+ "version": "0.7.0-beta.1",
4
4
  "platforms": {
5
5
  "linux-x64": {
6
6
  "package": "@cogfoundry/loomloom-linux-x64",
7
7
  "binary": "bin/loomloom",
8
- "binarySHA256": "2922d52348006eedde250dfb002ebe60bee5370e5cdf98a63d5d253c348dbca2",
8
+ "binarySHA256": "c19cd0efea3cbf89b44479b4d1cd6fb743ba15047e0bae19a7529b1cd1a1b9d7",
9
9
  "archive": "loomloom-linux-amd64.tar.gz",
10
- "archiveSHA256": "3d0505c3a86e7adc7eb20c07302462c544218d20219c0285b8566012b9702a6d"
10
+ "archiveSHA256": "c4c70a92621b42206f3b703673f4a0671036497492bb70465d617771bd9be48f"
11
11
  },
12
12
  "linux-arm64": {
13
13
  "package": "@cogfoundry/loomloom-linux-arm64",
14
14
  "binary": "bin/loomloom",
15
- "binarySHA256": "8e10f893949ce5ec0cca8646b403bdbd6cf4f534832945823c4749ed1fcbe7e1",
15
+ "binarySHA256": "c2bb53b6bffb61bf6de702068ed93c46c1b59933da20d313543767bedb8de24a",
16
16
  "archive": "loomloom-linux-arm64.tar.gz",
17
- "archiveSHA256": "e886ddfbc86adc0c2c85ca59f785a65f55d4cdc5506ea55fe9b9ef20774d5404"
17
+ "archiveSHA256": "dbc0c20690a7b9d0b225131f9cc30d9a2f3cb866554725dcc05797ef75d73f2d"
18
18
  },
19
19
  "darwin-x64": {
20
20
  "package": "@cogfoundry/loomloom-darwin-x64",
21
21
  "binary": "bin/loomloom",
22
- "binarySHA256": "3b82e8703b665b01f558c987148f94abe1b8053188a50068ca2f65b7d0420725",
22
+ "binarySHA256": "1d2d24eea3aaf083b08dcd7d6cc1687069a409b15bba120eaba902318c12118e",
23
23
  "archive": "loomloom-darwin-amd64.tar.gz",
24
- "archiveSHA256": "2ce15fe2c23e0b9451ffc237abaeab5dedb9f59a5252a86fdb6da8c708696250"
24
+ "archiveSHA256": "77d52bcdc56f6b1fe63b7900e01980b0fdc6535d0ddb5884aebd81aaba9a4a38"
25
25
  },
26
26
  "darwin-arm64": {
27
27
  "package": "@cogfoundry/loomloom-darwin-arm64",
28
28
  "binary": "bin/loomloom",
29
- "binarySHA256": "b1bb87e8b4eece208bd8228a2aeea013f95eabd39ba1c5e91b94cd750675d5c4",
29
+ "binarySHA256": "c60232a3f085e9a50c32b2a7c30a2908ad863d31f51a2e13746f6acb1745e30d",
30
30
  "archive": "loomloom-darwin-arm64.tar.gz",
31
- "archiveSHA256": "8859bd7fd81937907a8dbf0ba7dd6a601c7412e2d52ad8f42d7410188da016c8"
31
+ "archiveSHA256": "00a81cef2f331b90b858100266d158ecf92d1dc77fe71abefb52cecd3611d03a"
32
32
  },
33
33
  "win32-x64": {
34
34
  "package": "@cogfoundry/loomloom-win32-x64",
35
35
  "binary": "bin/loomloom.exe",
36
- "binarySHA256": "448e6e6609111f5d99f4a71d9edc9cc9d946e23e47c9832cb41881789caef7c0",
36
+ "binarySHA256": "0fe1d065ab031fc2807c63c52c77c818ac5773c79c1f1b6e84f3f506f82d9fb5",
37
37
  "archive": "loomloom-windows-amd64.zip",
38
- "archiveSHA256": "7c285a9e17160dce412f776a942f715f990d3b632f4f1b13e923d4204da203b2"
38
+ "archiveSHA256": "149fef73741eadfa79535d4825f58532ba36b683bb1b2370a73e2d7df54fd9b3"
39
39
  },
40
40
  "win32-arm64": {
41
41
  "package": "@cogfoundry/loomloom-win32-arm64",
42
42
  "binary": "bin/loomloom.exe",
43
- "binarySHA256": "d1162ea78fafeaa7e8bc99725c939902880dc0a6cfa331b364009ca811698c1c",
43
+ "binarySHA256": "3f2413b2094ecc80e341a31266ee4c93f499300e9cd6795dc3a23693d6ff894c",
44
44
  "archive": "loomloom-windows-arm64.zip",
45
- "archiveSHA256": "9a917199224bba9ecfc8130634b3a7f12ac6d4e3a4361993e8b0509f45e1a8e8"
45
+ "archiveSHA256": "49e734724ff113e0c2b66656d21c6d81d57afbb3cd9da120008f33c1ede89ea7"
46
46
  }
47
47
  }
48
48
  }
@@ -19,6 +19,12 @@ When asked to install or update LoomLoom:
19
19
  4. Do not guess a Skill root or fall back to another Agent's directory. If the current Agent or root is unknown, ask the user for it.
20
20
  5. Verify either the npm setup success result or `<agent-skill-root>/loomloom/SKILL.md` after the explicit-directory path.
21
21
 
22
+ `npm install -g` updates only the CLI. When the user wants Agent authoring,
23
+ install the matching Skill for the explicit Agent as well. For a Beta, use the
24
+ exact requested version in the setup command; `loomloom update` follows stable
25
+ `latest`. See [setup.md](references/setup.md) and
26
+ [workflow-preview.md](references/workflow-preview.md) for viewer configuration.
27
+
22
28
  ## Core Objects
23
29
 
24
30
  Choose the product object before choosing a command:
@@ -96,23 +102,30 @@ Download/prepare version-specific input → Validate → Precheck
96
102
 
97
103
  ### Private template authoring
98
104
 
99
- Read [workflow-preview.md](references/workflow-preview.md). For new or modified
100
- private templates, normally prepare a preview after confirming the plan:
101
- start `template-spec preview <spec.json>` in a retained tool session before or
102
- during writing, return its `viewUrl` promptly, and keep that session running while
103
- editing. Tell the user viewing is optional. Skip this step if the user declines;
104
- if the CLI or execution tool cannot support it, explain the limitation and
105
- continue normal local authoring without claiming there is a live preview.
106
- This step neither saves nor runs the draft. After saving, use
107
- the save result’s `viewUrl`; if unavailable, retry only
108
- `template-spec view-link <template-id> <version-id>` with the returned exact IDs;
109
- stop the retained preview when editing finishes. For viewing an already saved
110
- version, use view-link directly without a watcher.
105
+ Read [workflow-preview.md](references/workflow-preview.md). For a new or modified
106
+ private template, generate the local draft, start `template-spec preview` in a
107
+ retained process, and immediately return the complete `ready.viewUrl` as a
108
+ clickable draft link before continuing validation or saving. Keep that process
109
+ alive during review and edits. Preview uses the ShengSuanYun production viewer
110
+ by default; check any explicit override without changing the API Key or Server.
111
+ `ready` confirms the local service started, not that the browser loaded or
112
+ rendered the viewer.
113
+
114
+ Offer draft review before creation; skip it when the user explicitly declines or
115
+ has already authorized saving without review. If the viewer cannot load or the
116
+ tool cannot retain the preview process, explain the limitation and resolve it or
117
+ offer review of the local JSON; do not silently substitute a saved-version page
118
+ or claim that a draft page exists. Preserve the user's existing authorization.
119
+ After saving, return the separate saved-version link from the save result or
120
+ retry only `template-spec view-link` with the exact returned IDs. For an already
121
+ saved version, use view-link directly. Stop only the retained preview process
122
+ when editing is finished.
111
123
 
112
124
  ```text
113
125
  Business conversation → inspect current LoomLoom Server capabilities
114
126
  → decide LoomLoom-only or Agent-assisted
115
- → TemplatePlan → User confirms plan → Generate TemplateSpec
127
+ → TemplatePlan → User confirms plan → Generate local TemplateSpec draft
128
+ → Start local preview → Immediately return draft link → User reviews/edits
116
129
  → Check with the current LoomLoom Server → User confirms creation
117
130
  → Create or append a version
118
131
  → LoomLoom-only: continue normally; do not raise Skill Package with the creator
@@ -122,7 +135,7 @@ Business conversation → inspect current LoomLoom Server capabilities
122
135
  → only then complete authoring and allow Market publication
123
136
  ```
124
137
 
125
- Before classifying a request, use current Server facts rather than intuition: resolve its input/output modalities with `loomloom capability resolve`, and inspect `authoring-context`, `contracts`, or `model list` when needed. If the supported TemplateSpec and hosted execution can complete the requested work, treat it as LoomLoom-only and do not mention a Skill Package to the creator. Treat the work as Agent-assisted when a required capability is not available from the current Server and must be supplied locally, including online search or current information, external websites or APIs, browser interaction, local code or scripts, local files or tools, HTML or special-format handling, or runtime decisions.
138
+ Before classifying a request, use current Server facts rather than intuition: resolve its input/output modalities with `loomloom capability resolve`, and inspect `authoring-context`, `contracts`, or `model list` when needed. If the supported TemplateSpec and hosted execution can complete the requested work, treat it as LoomLoom-only and do not mention a Skill Package to the creator. Hosted Code Steps and bounded Loops are part of that hosted execution when the target Server accepts them: deterministic data shaping, validation, file transforms with the Python standard library, conditional branches, and bounded quality rework belong in the template, not in a local Skill (see [Code and Loop Steps](references/template-spec.md#code-and-loop-steps)). Treat the work as Agent-assisted when a required capability is not available from the current Server and must be supplied locally, including online search or current information, external websites or APIs, browser interaction, local tools or code that needs network access or non-standard libraries, local files, HTML or special-format handling the Server cannot produce, or open-ended runtime decisions.
126
139
 
127
140
  An Agent-assisted package is built by the Agent, not by the CLI. Explain the required Agent-local capabilities and include the local Skill in the TemplatePlan before creating the private template. The actual upload happens only after the template has a `template_id`. Show the package preview, obtain confirmation, and run the default local trial before uploading. Read the private Package Head back and require `validationStatus=passed` before declaring authoring complete or publishing the template to Market. If the creator declines the required local assistance or package upload, or if creation, trial, upload, or validation fails, stop this authoring and publication path; do not publish a template that cannot deliver its promised behavior. Every later package replacement repeats preview, creator confirmation, the default local trial, upload, and validation. Do not present backend package modes or backend-generated packages as user choices.
128
141
 
@@ -128,7 +128,9 @@ commands.
128
128
 
129
129
  `template-spec preview --output json` is a long-running NDJSON stream, not a
130
130
  single JSON response. Keep its process alive while editing; return `ready.viewUrl`
131
- before waiting for completion. It does not save or run the draft. Read
131
+ before waiting for completion. Preview uses the ShengSuanYun production viewer
132
+ by default; `--viewer-url` overrides `LOOMLOOM_VIEWER_BOOTSTRAP_URL`, which
133
+ overrides that default. It does not save or run the draft. Read
132
134
  [workflow-preview.md](workflow-preview.md) for lifecycle, errors, and cleanup.
133
135
  `view-link` returns one exact saved version's link and needs no active preview.
134
136
 
@@ -25,11 +25,24 @@ Use this reference for installation, `doctor`, browser login, explicit API Token
25
25
  ```
26
26
 
27
27
  The npm setup command delegates the selected Agent's Skill root to the `skills` manager, copies the matching official Skill bundled in that npm package, and verifies that the selected Agent reports `loomloom`. In an Agent or non-interactive session, `--agent` is required; never ask the manager to install for every detected Agent.
28
+ - For a specific Beta, install the CLI and matching Skill from the **same exact
29
+ version**, for example:
30
+
31
+ ```bash
32
+ npx @cogfoundry/loomloom@0.6.2-beta.3 install --agent codex --yes
33
+ ```
34
+
35
+ Use the explicitly selected Agent id. Verify the installed Skill includes
36
+ `references/workflow-preview.md`; the CLI version alone does not establish
37
+ the Skill version. A CLI-only `npm install -g` leaves existing Skills unchanged.
38
+ Local draft preview uses the built-in ShengSuanYun production viewer without
39
+ changing the API Key/Server. See [workflow-preview.md](workflow-preview.md)
40
+ for explicit viewer overrides and browser resource checks.
28
41
  - For an Agent previously installed by that npm setup command, update both the npm CLI and its matching copied Skill explicitly:
29
42
  ```bash
30
43
  loomloom update --agent <agent-id>
31
44
  ```
32
- It only acts on a recorded npm setup receipt. It must not take over a shell, PowerShell, or Homebrew installation, and it must not guess an Agent directory.
45
+ This follows stable `latest`, not the Beta channel. It only acts on a recorded npm setup receipt. It must not take over a shell, PowerShell, or Homebrew installation, and it must not guess an Agent directory.
33
46
  - For shell or PowerShell installation, determine the current Agent's supported Skill root from its runtime configuration or official conventions. Use `<agent-skill-root>/loomloom` as the complete destination and pass it with `--skill-dir` or `-SkillDir`.
34
47
  - `--skill-dir` selects the Agent that receives the Skill; it is not the CLI binary directory. Do not use another Agent's directory as a fallback. In particular, `~/.codex/skills/loomloom` is for Codex only; a WorkBuddy target uses `~/.workbuddy/skills/loomloom`.
35
48
  - If the explicit-directory path's current Agent Skill root is unknown, ask the user for it. After installation, verify that `<agent-skill-root>/loomloom/SKILL.md` exists.
@@ -6,10 +6,11 @@ Use this reference when creating, modifying, versioning, or explaining a private
6
6
 
7
7
  - [Documentation sources](#documentation-sources)
8
8
  - [Conversation flow](#conversation-flow)
9
- - [Optional workflow viewing](#optional-workflow-viewing)
9
+ - [Draft preview and review](#draft-preview-and-review)
10
10
  - [Usage mode](#usage-mode)
11
11
  - [TemplatePlan](#templateplan)
12
12
  - [Modeling and input rules](#modeling-and-input-rules)
13
+ - [Code and Loop Steps](#code-and-loop-steps)
13
14
  - [Legacy v1 semantic preservation](#legacy-v1-semantic-preservation)
14
15
  - [Creation and versioning](#creation-and-versioning)
15
16
 
@@ -61,31 +62,32 @@ When a user describes a reusable workflow:
61
62
  8. Draft a TemplatePlan first.
62
63
  9. Show the TemplatePlan and wait for confirmation.
63
64
  10. Generate TemplateSpec only after plan confirmation.
64
- 11. Run `loomloom template-spec check <spec.json>` against the same selected
65
+ 11. Start local preview and return its draft link immediately, following
66
+ [workflow-preview.md](workflow-preview.md). Allow the user to review and edit
67
+ before saving; respect an explicit decision to skip review.
68
+ 12. Run `loomloom template-spec check <spec.json>` against the same selected
65
69
  Server where the version will be created. This is the server-authoritative
66
70
  contract check, not an offline schema check.
67
- 12. Ask for a separate creation confirmation.
68
- 13. Create only after explicit creation confirmation.
71
+ 13. Obtain creation authorization if it has not already been given.
72
+ 14. Create only within that authorization and return the saved-version link
73
+ separately from the local draft link.
69
74
 
70
75
  Offer options when asking questions and include a reasonable default.
71
76
 
72
- ## Optional Workflow Viewing
73
-
74
- Read [workflow-preview.md](workflow-preview.md). Normally prepare a preview for
75
- new or modified private templates unless the user declines. After confirming the TemplatePlan, start
76
- `loomloom template-spec preview ./draft.json --output json` in a retained tool
77
- session. Give the user `ready.viewUrl` immediately and continue editing the same
78
- file while the process stays alive. Incomplete JSON can be synchronized.
79
- For edits to an existing private version, fetch that exact version to a local file first.
80
- The preview link works only on the CLI computer and does not require browser login.
81
- Viewing is optional; preview failure does not invalidate the local draft.
82
- Explain unsupported CLI/Server/tool limitations and continue normal local authoring;
83
- do not fabricate a link or switch the selected environment.
84
- Still run `check` and obtain the normal creation confirmation. After saving,
85
- call `template-spec view-link` with the returned exact template/version IDs
86
- and stop the retained watcher when editing is complete. Preview content is
87
- cleared on end/expiry. For an already saved version, use view-link directly:
88
- do not download and re-upload it merely to view it.
77
+ ## Draft Preview And Review
78
+
79
+ The local draft link is part of the normal authoring handoff. Follow
80
+ [workflow-preview.md](workflow-preview.md) for configuration, the retained
81
+ `--no-open --output json` process, immediate link delivery, and failure handling.
82
+ For edits to an existing private version, fetch that exact version to a local
83
+ file first. Preview neither saves the draft nor validates model execution.
84
+
85
+ After review, check against the intended Server and create within the user's
86
+ authorization. Return the saved-version link with its exact IDs; it does not
87
+ replace the earlier draft link. Stop the watcher when editing is complete.
88
+ The preview stops accepting requests on exit; do not promise erasure of data
89
+ already received by the browser. For an already saved version, use `view-link`
90
+ directly without downloading and re-uploading it just to view it.
89
91
 
90
92
  ## Usage Mode
91
93
 
@@ -238,6 +240,41 @@ both a Profile and Fixed Model Contracts for the same standard capability,
238
240
  choose from the user's model policy rather than assuming multimedia always
239
241
  means fixed model.
240
242
 
243
+ ## Code And Loop Steps
244
+
245
+ Use a hosted Code Step for deterministic work between model Steps: reshaping or
246
+ validating values, computing fields, merging or splitting results, and producing
247
+ or transforming files. Use `when` conditions for branches, and a Loop container
248
+ for bounded quality rework (draft → check → revise until accepted or the limit is
249
+ reached). Read the bundled contract and examples before writing them:
250
+
251
+ ```bash
252
+ loomloom template-spec docs code --lang zh-CN
253
+ loomloom template-spec docs steps
254
+ loomloom template-spec docs examples
255
+ ```
256
+
257
+ - Code: `executionBinding.kind=codeProfile` with inline Python `main(inputs)`.
258
+ Omit `profileId`/`profileRevision` to use the default Python 3.12
259
+ standard-library environment. Declare every input (`required=true`,
260
+ `nullable=false`) and at least one named output. Code has no network access;
261
+ work that needs external APIs, websites, or extra libraries stays
262
+ Agent-assisted.
263
+ - Loop: `executionBinding` is only `{"kind":"loop"}`; set `maxIterations`
264
+ (1–10) and `deadlineSeconds` (1–1800), a non-empty `body`, and exactly one of
265
+ `until`, `decision`, or `control`. Never add back edges to `dependsOn`.
266
+ - Start from the closest valid example (`code-value-artifact`,
267
+ `code-condition`, `bounded-text-loop`, `loop-checkpoint`,
268
+ `loop-business-decision`) and avoid the patterns in the invalid examples.
269
+ - Availability is decided by the target Server, not by the docs: run
270
+ `loomloom template-spec check` against the Server you will save to. If it
271
+ rejects Code or Loop, report that the Server does not offer them yet and
272
+ offer a version without them or an Agent-assisted plan; do not fall back
273
+ silently.
274
+ - Describe Code and Loop Steps in the TemplatePlan in business terms (what is
275
+ computed or checked, and how many rework rounds at most) so the creator can
276
+ confirm them.
277
+
241
278
  ## Legacy v1 Semantic Preservation
242
279
 
243
280
  A v2 candidate is not an upgrade merely because `template-spec check` returns
@@ -1,32 +1,86 @@
1
1
  # Workflow viewing
2
2
 
3
- Configure the deployment's real HTTPS bootstrap with
4
- `LOOMLOOM_VIEWER_BOOTSTRAP_URL` or `preview --viewer-url`. Do not invent a hosted
5
- address. For local edits, start `loomloom template-spec preview <spec.json>
6
- --no-open --output json` in a retained tool process. Give the user the complete
7
- ready.viewUrl and keep the process alive while editing. It works on that computer.
8
-
9
- The CLI supplies only a tiny local startup page and a protected JSON snapshot.
10
- The browser loads public Workbench JS/CSS directly, then renders locally. The
11
- CLI never downloads or embeds the UI. Draft content, node information and local
12
- credentials are not sent to any remote API. No cloud token, login, contract query,
13
- Redis, upload, save or model execution occurs. Missing model metadata stays
14
- unverified; a diagram does not mean the workflow passed validation.
15
-
16
- Use a regular UTF-8 file up to 1 MiB. Missing/incomplete files produce explicit
17
- waiting or parse states and recover on edits. NDJSON ready, synced, waiting and
18
- ended describe local preview only. Do not log draft text or the private local
19
- URL to telemetry. Closing a tab does not stop CLI; stop only this retained
20
- process when finished. The page detects disconnection, but do not promise that
21
- previously received browser data is erased. Refresh works with the original
22
- fragment while the CLI is alive; restarting needs the new link.
23
-
24
- If public UI assets are unavailable, report the loading error; do not switch to
25
- an embedded resource package, cloud upload or automatic execution. No published
26
- viewer URL or fully offline operation is assumed.
27
-
28
- For saved versions, normal confirmation/validation/persistence rules still
29
- apply. Use `loomloom template-spec view-link <template-id> <version-id>` with
30
- exact IDs; its online link requires the owner to log in and is independent of
31
- local preview. A view-link failure never undoes a successful save; retry only
32
- the read, never the save mutation.
3
+ ## Viewer default and overrides
4
+
5
+ Preview defaults to the ShengSuanYun production viewer:
6
+
7
+ `https://www.shengsuanyun.com/zh/loomloom/workbench/viewer/v1/bootstrap.js`
8
+
9
+ No viewer configuration is required for this default. Resolution is explicit
10
+ `--viewer-url` first, then a non-empty `LOOMLOOM_VIEWER_BOOTSTRAP_URL`, then the
11
+ built-in production URL. Empty or whitespace-only environment values use the
12
+ default; existing non-empty overrides remain effective. Explicit invalid
13
+ overrides fail rather than silently choosing another viewer.
14
+
15
+ The viewer setting is independent of the cloud Server, profile, login and API
16
+ Key. The default does not switch the selected API platform. For another viewer
17
+ deployment, obtain its published HTTPS `/viewer/v1/bootstrap.js` address and
18
+ pass `--viewer-url`; do not infer one from the API Server. The viewer is trusted
19
+ executable code: check JavaScript MIME type, anonymous CORS and compatibility
20
+ when diagnosing resource failures. HTTP 200 containing HTML is not a working
21
+ viewer. Changing persistent shell configuration still requires the user's
22
+ authorization; exported overrides must reach the retained preview process.
23
+
24
+ ## Hand off the local draft
25
+
26
+ 1. After the plan is approved, generate a regular UTF-8 draft file (up to 1 MiB).
27
+ To modify a saved version, export that exact version first.
28
+ 2. Start the command in a retained tool process:
29
+
30
+ ```bash
31
+ loomloom template-spec preview ./draft.json --no-open --output json
32
+ ```
33
+
34
+ This uses the production viewer unless explicitly overridden. Keep the
35
+ process alive; do not run it in a short-lived shell that terminates child
36
+ processes on return.
37
+ 3. Wait for the NDJSON event whose `type` is `ready`. Immediately send its full
38
+ `viewUrl`, including `#token=...`, as a clickable **local draft preview** link
39
+ in the user-facing reply, before further validation or save operations. Do
40
+ not leave it only in tool output. Say that it works on the CLI computer while
41
+ this process remains running. `ready` proves only local startup; only browser
42
+ observation can establish that public resources loaded and the graph rendered.
43
+ 4. Keep editing the same file during review. Follow `synced` and `waiting`
44
+ events, and report parsing or file issues honestly. Still run server `check`
45
+ before saving; a diagram is not proof of execution validity.
46
+ 5. Save within the user's authorization after review, unless review was
47
+ explicitly declined or saving without it was already authorized. Return the
48
+ **saved-version page** separately. Stop only this preview process when done.
49
+
50
+ If startup fails, return the specific cause promptly. Check invalid overrides
51
+ and CLI version when configuration differs from the documented default. If
52
+ assets fail to load, report that browser state. If the tool cannot retain a
53
+ process, explain that a live link cannot be kept available. Resolve the issue or offer
54
+ local JSON review and obtain the user's decision before bypassing requested
55
+ visual review. Do not create remotely just to obtain a link, invent a link, or
56
+ silently replace a requested draft page with a saved-version page.
57
+
58
+ ## Privacy and lifecycle
59
+
60
+ The CLI serves a tiny loopback startup page and protected JSON snapshot. The
61
+ browser loads public JS/CSS directly over HTTPS and renders locally. The CLI
62
+ never downloads or embeds UI resources. No cloud token, login, contract query,
63
+ Redis, upload, save or model execution is used by preview. Missing model metadata
64
+ stays unverified. Drafts and local session credentials stay on this computer.
65
+
66
+ Give the private local URL only to the user for this session; do not put it in
67
+ telemetry, logs or reports. Closing a tab does not stop CLI. Refresh uses the
68
+ original fragment; restarting CLI requires its new link. On exit the service
69
+ closes and the page can detect disconnection, but do not promise that browser
70
+ data already received is erased. There is no cloud draft expiry or storage.
71
+
72
+ ## Saved versions
73
+
74
+ Use `loomloom template-spec view-link <template-id> <version-id>` with exact IDs
75
+ for an already saved version. Its online page requires owner login and is
76
+ independent of the local draft page. Successful save responses can include
77
+ `viewUrl`; if unavailable, retry only this read, never the successful mutation.
78
+
79
+ ## CLI and Skill versions
80
+
81
+ `npm install -g` updates only the CLI. An existing Agent Skill can remain stale.
82
+ For a requested Beta, install both from that exact version with
83
+ `npx @cogfoundry/loomloom@<version> install --agent <agent-id> --yes`, then verify
84
+ the selected Agent's installed Skill and its `references/workflow-preview.md`.
85
+ See [setup.md](setup.md). Do not use stable `latest` or `loomloom update` to
86
+ select a Beta, and do not install into every Agent.
@@ -1,6 +1,6 @@
1
1
  {
2
- "releaseTag": "v0.6.2-beta.2",
3
- "version": "0.6.2-beta.2",
2
+ "releaseTag": "v0.7.0-beta.1",
3
+ "version": "0.7.0-beta.1",
4
4
  "source": "agent-guidance/loomloom",
5
5
  "files": [
6
6
  {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  {
11
11
  "path": "references/cli.md",
12
- "sha256": "e5a927433427637a596812281179c8de82bb92904a6cb1e46c657168e2e24ce6"
12
+ "sha256": "faa8bc80fbc2f51ee526f6849b659aa589d335625dcbd27b1a4315f09e4154fe"
13
13
  },
14
14
  {
15
15
  "path": "references/execution.md",
@@ -25,19 +25,19 @@
25
25
  },
26
26
  {
27
27
  "path": "references/setup.md",
28
- "sha256": "77b11609fccaf8a6ca80184c04c859d040e093be758634e716e1e712e3471ce3"
28
+ "sha256": "ceae1d8e3fbe62a9dd4d8388cf3828da186b0ecadc0fc70fb71e6921dc0a4757"
29
29
  },
30
30
  {
31
31
  "path": "references/template-spec.md",
32
- "sha256": "66d81e6640b98aa7b577445f82d3be6154583df87fc322a3dee5f492d0ecc345"
32
+ "sha256": "3ed090907c941ebe3b8e890e2f5155e221c9281548059f3b6a38daa33f69f864"
33
33
  },
34
34
  {
35
35
  "path": "references/workflow-preview.md",
36
- "sha256": "cb98938b8a4a25a42fff151bd2057c80f1507cbe56571d9a527520293f92f22d"
36
+ "sha256": "b6e66a05728d87e10920c6b4b7f78b473d8fd0c62f96d816f025321842c2affe"
37
37
  },
38
38
  {
39
39
  "path": "SKILL.md",
40
- "sha256": "c7f6661e02fbacc1e890472a3a51a0c1e8cc38dcb003d4048cc636886cd56ce4"
40
+ "sha256": "4980a5625d94971a46ffbcdbf3bacf602bfaf06639bb16085155819d9d81e978"
41
41
  }
42
42
  ]
43
43
  }