@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 +1 -1
- package/package.json +7 -7
- package/platforms.json +14 -14
- package/skill/loomloom/SKILL.md +27 -14
- package/skill/loomloom/references/cli.md +3 -1
- package/skill/loomloom/references/setup.md +14 -1
- package/skill/loomloom/references/template-spec.md +58 -21
- package/skill/loomloom/references/workflow-preview.md +84 -30
- package/skill-manifest.json +7 -7
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.
|
|
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.
|
|
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.
|
|
26
|
-
"@cogfoundry/loomloom-linux-arm64": "0.
|
|
27
|
-
"@cogfoundry/loomloom-darwin-x64": "0.
|
|
28
|
-
"@cogfoundry/loomloom-darwin-arm64": "0.
|
|
29
|
-
"@cogfoundry/loomloom-win32-x64": "0.
|
|
30
|
-
"@cogfoundry/loomloom-win32-arm64": "0.
|
|
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.
|
|
3
|
-
"version": "0.
|
|
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": "
|
|
8
|
+
"binarySHA256": "c19cd0efea3cbf89b44479b4d1cd6fb743ba15047e0bae19a7529b1cd1a1b9d7",
|
|
9
9
|
"archive": "loomloom-linux-amd64.tar.gz",
|
|
10
|
-
"archiveSHA256": "
|
|
10
|
+
"archiveSHA256": "c4c70a92621b42206f3b703673f4a0671036497492bb70465d617771bd9be48f"
|
|
11
11
|
},
|
|
12
12
|
"linux-arm64": {
|
|
13
13
|
"package": "@cogfoundry/loomloom-linux-arm64",
|
|
14
14
|
"binary": "bin/loomloom",
|
|
15
|
-
"binarySHA256": "
|
|
15
|
+
"binarySHA256": "c2bb53b6bffb61bf6de702068ed93c46c1b59933da20d313543767bedb8de24a",
|
|
16
16
|
"archive": "loomloom-linux-arm64.tar.gz",
|
|
17
|
-
"archiveSHA256": "
|
|
17
|
+
"archiveSHA256": "dbc0c20690a7b9d0b225131f9cc30d9a2f3cb866554725dcc05797ef75d73f2d"
|
|
18
18
|
},
|
|
19
19
|
"darwin-x64": {
|
|
20
20
|
"package": "@cogfoundry/loomloom-darwin-x64",
|
|
21
21
|
"binary": "bin/loomloom",
|
|
22
|
-
"binarySHA256": "
|
|
22
|
+
"binarySHA256": "1d2d24eea3aaf083b08dcd7d6cc1687069a409b15bba120eaba902318c12118e",
|
|
23
23
|
"archive": "loomloom-darwin-amd64.tar.gz",
|
|
24
|
-
"archiveSHA256": "
|
|
24
|
+
"archiveSHA256": "77d52bcdc56f6b1fe63b7900e01980b0fdc6535d0ddb5884aebd81aaba9a4a38"
|
|
25
25
|
},
|
|
26
26
|
"darwin-arm64": {
|
|
27
27
|
"package": "@cogfoundry/loomloom-darwin-arm64",
|
|
28
28
|
"binary": "bin/loomloom",
|
|
29
|
-
"binarySHA256": "
|
|
29
|
+
"binarySHA256": "c60232a3f085e9a50c32b2a7c30a2908ad863d31f51a2e13746f6acb1745e30d",
|
|
30
30
|
"archive": "loomloom-darwin-arm64.tar.gz",
|
|
31
|
-
"archiveSHA256": "
|
|
31
|
+
"archiveSHA256": "00a81cef2f331b90b858100266d158ecf92d1dc77fe71abefb52cecd3611d03a"
|
|
32
32
|
},
|
|
33
33
|
"win32-x64": {
|
|
34
34
|
"package": "@cogfoundry/loomloom-win32-x64",
|
|
35
35
|
"binary": "bin/loomloom.exe",
|
|
36
|
-
"binarySHA256": "
|
|
36
|
+
"binarySHA256": "0fe1d065ab031fc2807c63c52c77c818ac5773c79c1f1b6e84f3f506f82d9fb5",
|
|
37
37
|
"archive": "loomloom-windows-amd64.zip",
|
|
38
|
-
"archiveSHA256": "
|
|
38
|
+
"archiveSHA256": "149fef73741eadfa79535d4825f58532ba36b683bb1b2370a73e2d7df54fd9b3"
|
|
39
39
|
},
|
|
40
40
|
"win32-arm64": {
|
|
41
41
|
"package": "@cogfoundry/loomloom-win32-arm64",
|
|
42
42
|
"binary": "bin/loomloom.exe",
|
|
43
|
-
"binarySHA256": "
|
|
43
|
+
"binarySHA256": "3f2413b2094ecc80e341a31266ee4c93f499300e9cd6795dc3a23693d6ff894c",
|
|
44
44
|
"archive": "loomloom-windows-arm64.zip",
|
|
45
|
-
"archiveSHA256": "
|
|
45
|
+
"archiveSHA256": "49e734724ff113e0c2b66656d21c6d81d57afbb3cd9da120008f33c1ede89ea7"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
package/skill/loomloom/SKILL.md
CHANGED
|
@@ -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
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
|
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.
|
|
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
|
-
- [
|
|
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.
|
|
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
|
-
|
|
68
|
-
|
|
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
|
-
##
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
file
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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.
|
package/skill-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"releaseTag": "v0.
|
|
3
|
-
"version": "0.
|
|
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": "
|
|
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": "
|
|
28
|
+
"sha256": "ceae1d8e3fbe62a9dd4d8388cf3828da186b0ecadc0fc70fb71e6921dc0a4757"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"path": "references/template-spec.md",
|
|
32
|
-
"sha256": "
|
|
32
|
+
"sha256": "3ed090907c941ebe3b8e890e2f5155e221c9281548059f3b6a38daa33f69f864"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"path": "references/workflow-preview.md",
|
|
36
|
-
"sha256": "
|
|
36
|
+
"sha256": "b6e66a05728d87e10920c6b4b7f78b473d8fd0c62f96d816f025321842c2affe"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"path": "SKILL.md",
|
|
40
|
-
"sha256": "
|
|
40
|
+
"sha256": "4980a5625d94971a46ffbcdbf3bacf602bfaf06639bb16085155819d9d81e978"
|
|
41
41
|
}
|
|
42
42
|
]
|
|
43
43
|
}
|