@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 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.3 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.3",
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.3",
26
- "@cogfoundry/loomloom-linux-arm64": "0.6.2-beta.3",
27
- "@cogfoundry/loomloom-darwin-x64": "0.6.2-beta.3",
28
- "@cogfoundry/loomloom-darwin-arm64": "0.6.2-beta.3",
29
- "@cogfoundry/loomloom-win32-x64": "0.6.2-beta.3",
30
- "@cogfoundry/loomloom-win32-arm64": "0.6.2-beta.3"
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.3",
3
- "version": "0.6.2-beta.3",
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": "0ae5d0e777b8895aef83cbcc36187a832cdad2785357b47732ff4d46b4f97ef2",
8
+ "binarySHA256": "c19cd0efea3cbf89b44479b4d1cd6fb743ba15047e0bae19a7529b1cd1a1b9d7",
9
9
  "archive": "loomloom-linux-amd64.tar.gz",
10
- "archiveSHA256": "91430ee6014d27e68359439fc65b11a14ac4bb4f9f2f82a37a0af19666d686ce"
10
+ "archiveSHA256": "c4c70a92621b42206f3b703673f4a0671036497492bb70465d617771bd9be48f"
11
11
  },
12
12
  "linux-arm64": {
13
13
  "package": "@cogfoundry/loomloom-linux-arm64",
14
14
  "binary": "bin/loomloom",
15
- "binarySHA256": "2764601061778f77c3e099bb2a4d6fa143fde322ac49f19b235b3732b210dc77",
15
+ "binarySHA256": "c2bb53b6bffb61bf6de702068ed93c46c1b59933da20d313543767bedb8de24a",
16
16
  "archive": "loomloom-linux-arm64.tar.gz",
17
- "archiveSHA256": "082752f9a62f24610c9df46788422a6237411dfa0ec3165bceb931c27074041e"
17
+ "archiveSHA256": "dbc0c20690a7b9d0b225131f9cc30d9a2f3cb866554725dcc05797ef75d73f2d"
18
18
  },
19
19
  "darwin-x64": {
20
20
  "package": "@cogfoundry/loomloom-darwin-x64",
21
21
  "binary": "bin/loomloom",
22
- "binarySHA256": "60c06e6fd58d83d05158c484970f45cdac8824029047003691974c86f6c489ad",
22
+ "binarySHA256": "1d2d24eea3aaf083b08dcd7d6cc1687069a409b15bba120eaba902318c12118e",
23
23
  "archive": "loomloom-darwin-amd64.tar.gz",
24
- "archiveSHA256": "0d9792c879491d48269cf4a6d69cd2b6a6f616abe7f9c656007878138b1ee86c"
24
+ "archiveSHA256": "77d52bcdc56f6b1fe63b7900e01980b0fdc6535d0ddb5884aebd81aaba9a4a38"
25
25
  },
26
26
  "darwin-arm64": {
27
27
  "package": "@cogfoundry/loomloom-darwin-arm64",
28
28
  "binary": "bin/loomloom",
29
- "binarySHA256": "68ed56ff3094aa8db974eb20c17e18ef78706f2ff4790e9c23b1d86f094644cf",
29
+ "binarySHA256": "c60232a3f085e9a50c32b2a7c30a2908ad863d31f51a2e13746f6acb1745e30d",
30
30
  "archive": "loomloom-darwin-arm64.tar.gz",
31
- "archiveSHA256": "48b099b0e5a9f723fd3ca108f4df99351bad73146dd82fe64078b6af89d6c51b"
31
+ "archiveSHA256": "00a81cef2f331b90b858100266d158ecf92d1dc77fe71abefb52cecd3611d03a"
32
32
  },
33
33
  "win32-x64": {
34
34
  "package": "@cogfoundry/loomloom-win32-x64",
35
35
  "binary": "bin/loomloom.exe",
36
- "binarySHA256": "d5857fe3b118052e9034aca7c442f22f0b955f3b3d1b86eace030845e3de7a7a",
36
+ "binarySHA256": "0fe1d065ab031fc2807c63c52c77c818ac5773c79c1f1b6e84f3f506f82d9fb5",
37
37
  "archive": "loomloom-windows-amd64.zip",
38
- "archiveSHA256": "1c0ba854e6400e639bfd6d58ae2c39293370c712571476931bbd8690da20c4a0"
38
+ "archiveSHA256": "149fef73741eadfa79535d4825f58532ba36b683bb1b2370a73e2d7df54fd9b3"
39
39
  },
40
40
  "win32-arm64": {
41
41
  "package": "@cogfoundry/loomloom-win32-arm64",
42
42
  "binary": "bin/loomloom.exe",
43
- "binarySHA256": "55f2358f8155c9b694abbc06e3ca0df34c6dc72029ffedea0a866e14aabe32c8",
43
+ "binarySHA256": "3f2413b2094ecc80e341a31266ee4c93f499300e9cd6795dc3a23693d6ff894c",
44
44
  "archive": "loomloom-windows-arm64.zip",
45
- "archiveSHA256": "ccf6c0029abc2c1f94e029e931c8db6cc0ff09027a7a93993799b68c701a4497"
45
+ "archiveSHA256": "49e734724ff113e0c2b66656d21c6d81d57afbb3cd9da120008f33c1ede89ea7"
46
46
  }
47
47
  }
48
48
  }
@@ -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. Check the viewer configuration first; an API Key
110
- and Server URL do not configure the independent viewer. `ready` confirms the
111
- local service started, not that the browser loaded or rendered the viewer.
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 configuration or retained
115
- process support is missing, explain the specific limitation and resolve it 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
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 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.
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. 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
 
@@ -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
- This setup does not configure a viewer address or change the API Key/Server.
39
- Local draft viewing also needs the independent viewer configuration in
40
- [workflow-preview.md](workflow-preview.md).
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
- ## Configure the viewer before authoring
3
+ ## Viewer default and overrides
4
4
 
5
- Check `loomloom template-spec preview --help` and use the intended deployment's
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
- For the ShengSuanYun **test viewer**, the published entry is:
7
+ `https://www.shengsuanyun.com/zh/loomloom/workbench/viewer/v1/bootstrap.js`
12
8
 
13
- ```bash
14
- export LOOMLOOM_VIEWER_BOOTSTRAP_URL='https://test.claw.shengsuanyun.com/zh/loomloom/workbench/viewer/v1/bootstrap.js'
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
- Use this only when the intended viewer is that test deployment; it is not a
18
- production or CogFoundry default. For another deployment, obtain its published
19
- address. The viewer is trusted executable code: verify HTTPS access, anonymous
20
- CORS and compatibility before selecting it. If shell configuration must be
21
- changed, follow the user's authorization; otherwise pass `--viewer-url` per
22
- command. An exported value applies only to that shell and its children; make
23
- sure the retained preview process actually inherits it.
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
- If the environment variable is not set, add `--viewer-url` with the verified
36
- address. Keep the process alive; do not run it in a short-lived shell that
37
- terminates child processes on return.
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. A missing viewer setting
52
- requires the deployment URL; a newer CLI alone does not supply one. If assets
53
- fail to load, report that browser state. If the tool cannot retain a process,
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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "releaseTag": "v0.6.2-beta.3",
3
- "version": "0.6.2-beta.3",
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": "85c93de92a6c9b508fcc9fc866f1b4dc656fa3ab2dd76336b841b8b2cf2b1da8"
28
+ "sha256": "ceae1d8e3fbe62a9dd4d8388cf3828da186b0ecadc0fc70fb71e6921dc0a4757"
29
29
  },
30
30
  {
31
31
  "path": "references/template-spec.md",
32
- "sha256": "a3d4f5722a61de3c476e5aab8415fce30d1a2655eafcae4243b65ee3025402f2"
32
+ "sha256": "3ed090907c941ebe3b8e890e2f5155e221c9281548059f3b6a38daa33f69f864"
33
33
  },
34
34
  {
35
35
  "path": "references/workflow-preview.md",
36
- "sha256": "b53134977fbef267fc3472a498eb6ae6bf2e768f124db58b25939239d45c1066"
36
+ "sha256": "b6e66a05728d87e10920c6b4b7f78b473d8fd0c62f96d816f025321842c2affe"
37
37
  },
38
38
  {
39
39
  "path": "SKILL.md",
40
- "sha256": "3d08377c639925ee55d0b613853ec29fedb8350f738dac64db1c41b04e5198a1"
40
+ "sha256": "4980a5625d94971a46ffbcdbf3bacf602bfaf06639bb16085155819d9d81e978"
41
41
  }
42
42
  ]
43
43
  }