@cogfoundry/loomloom 0.6.2-beta.3 → 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 +7 -6
- package/skill/loomloom/references/cli.md +3 -1
- package/skill/loomloom/references/setup.md +3 -3
- package/skill/loomloom/references/template-spec.md +36 -0
- package/skill/loomloom/references/workflow-preview.md +23 -24
- 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
|
@@ -106,13 +106,14 @@ Read [workflow-preview.md](references/workflow-preview.md). For a new or modifie
|
|
|
106
106
|
private template, generate the local draft, start `template-spec preview` in a
|
|
107
107
|
retained process, and immediately return the complete `ready.viewUrl` as a
|
|
108
108
|
clickable draft link before continuing validation or saving. Keep that process
|
|
109
|
-
alive during review and edits.
|
|
110
|
-
|
|
111
|
-
local service started, not that the browser loaded or
|
|
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.
|
|
112
113
|
|
|
113
114
|
Offer draft review before creation; skip it when the user explicitly declines or
|
|
114
|
-
has already authorized saving without review. If
|
|
115
|
-
|
|
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
|
|
116
117
|
offer review of the local JSON; do not silently substitute a saved-version page
|
|
117
118
|
or claim that a draft page exists. Preserve the user's existing authorization.
|
|
118
119
|
After saving, return the separate saved-version link from the save result or
|
|
@@ -134,7 +135,7 @@ Business conversation → inspect current LoomLoom Server capabilities
|
|
|
134
135
|
→ only then complete authoring and allow Market publication
|
|
135
136
|
```
|
|
136
137
|
|
|
137
|
-
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.
|
|
138
139
|
|
|
139
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.
|
|
140
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
|
|
|
@@ -35,9 +35,9 @@ Use this reference for installation, `doctor`, browser login, explicit API Token
|
|
|
35
35
|
Use the explicitly selected Agent id. Verify the installed Skill includes
|
|
36
36
|
`references/workflow-preview.md`; the CLI version alone does not establish
|
|
37
37
|
the Skill version. A CLI-only `npm install -g` leaves existing Skills unchanged.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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.
|
|
41
41
|
- For an Agent previously installed by that npm setup command, update both the npm CLI and its matching copied Skill explicitly:
|
|
42
42
|
```bash
|
|
43
43
|
loomloom update --agent <agent-id>
|
|
@@ -10,6 +10,7 @@ Use this reference when creating, modifying, versioning, or explaining a private
|
|
|
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
|
|
|
@@ -239,6 +240,41 @@ both a Profile and Fixed Model Contracts for the same standard capability,
|
|
|
239
240
|
choose from the user's model policy rather than assuming multimedia always
|
|
240
241
|
means fixed model.
|
|
241
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
|
+
|
|
242
278
|
## Legacy v1 Semantic Preservation
|
|
243
279
|
|
|
244
280
|
A v2 candidate is not an upgrade merely because `template-spec check` returns
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
# Workflow viewing
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Viewer default and overrides
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
real HTTPS `/viewer/v1/bootstrap.js` URL. Resolution is explicit `--viewer-url`
|
|
7
|
-
first, then `LOOMLOOM_VIEWER_BOOTSTRAP_URL`. There is no built-in default and no
|
|
8
|
-
URL is inferred from the cloud Server, profile, login or API Key. These are
|
|
9
|
-
separate settings. Do not invent an address or switch the selected Server.
|
|
5
|
+
Preview defaults to the ShengSuanYun production viewer:
|
|
10
6
|
|
|
11
|
-
|
|
7
|
+
`https://www.shengsuanyun.com/zh/loomloom/workbench/viewer/v1/bootstrap.js`
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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.
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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.
|
|
24
23
|
|
|
25
24
|
## Hand off the local draft
|
|
26
25
|
|
|
@@ -32,9 +31,9 @@ sure the retained preview process actually inherits it.
|
|
|
32
31
|
loomloom template-spec preview ./draft.json --no-open --output json
|
|
33
32
|
```
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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.
|
|
38
37
|
3. Wait for the NDJSON event whose `type` is `ready`. Immediately send its full
|
|
39
38
|
`viewUrl`, including `#token=...`, as a clickable **local draft preview** link
|
|
40
39
|
in the user-facing reply, before further validation or save operations. Do
|
|
@@ -48,10 +47,10 @@ sure the retained preview process actually inherits it.
|
|
|
48
47
|
explicitly declined or saving without it was already authorized. Return the
|
|
49
48
|
**saved-version page** separately. Stop only this preview process when done.
|
|
50
49
|
|
|
51
|
-
If startup fails, return the specific cause promptly.
|
|
52
|
-
|
|
53
|
-
fail to load, report that browser state. If the tool cannot retain a
|
|
54
|
-
explain that a live link cannot be kept available. Resolve the issue or offer
|
|
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
|
|
55
54
|
local JSON review and obtain the user's decision before bypassing requested
|
|
56
55
|
visual review. Do not create remotely just to obtain a link, invent a link, or
|
|
57
56
|
silently replace a requested draft page with a saved-version page.
|
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
|
}
|