@cogfoundry/loomloom 0.4.3 → 0.4.5
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/bin/installer.cjs +12 -8
- package/package.json +9 -7
- package/platforms.json +14 -14
- package/skill/loomloom/SKILL.md +278 -0
- package/skill/loomloom/references/billing.md +217 -0
- package/skill/loomloom/references/cli.md +211 -0
- package/skill/loomloom/references/execution.md +132 -0
- package/skill/loomloom/references/local-skills.md +90 -0
- package/skill/loomloom/references/market.md +157 -0
- package/skill/loomloom/references/setup.md +267 -0
- package/skill/loomloom/references/template-spec.md +291 -0
- package/skill-manifest.json +39 -0
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.4.
|
|
15
|
+
npx @cogfoundry/loomloom@0.4.5 install --agent codex --yes
|
|
16
16
|
```
|
package/bin/installer.cjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { spawnSync } = require("node:child_process");
|
|
4
|
+
const fs = require("node:fs");
|
|
5
|
+
const path = require("node:path");
|
|
4
6
|
const readline = require("node:readline/promises");
|
|
5
7
|
|
|
6
8
|
const PACKAGE_NAME = "@cogfoundry/loomloom";
|
|
7
9
|
const SKILL_NAME = "loomloom";
|
|
8
|
-
const
|
|
10
|
+
const BUNDLED_SKILL_PATH = path.join(__dirname, "..", "skill", SKILL_NAME);
|
|
9
11
|
|
|
10
12
|
function parseInstallArgs(argv) {
|
|
11
13
|
const result = { agent: "", yes: false };
|
|
@@ -29,11 +31,12 @@ function parseInstallArgs(argv) {
|
|
|
29
31
|
return result;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
function bundledSkillPath(source = BUNDLED_SKILL_PATH) {
|
|
35
|
+
const skillFile = path.join(source, "SKILL.md");
|
|
36
|
+
if (!fs.existsSync(skillFile)) {
|
|
37
|
+
throw new Error(`npm package does not contain bundled ${SKILL_NAME} Skill at ${source}`);
|
|
35
38
|
}
|
|
36
|
-
return
|
|
39
|
+
return source;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
function globalPackageSpec(version) {
|
|
@@ -41,7 +44,7 @@ function globalPackageSpec(version) {
|
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
function skillsAddArgs(source, agent) {
|
|
44
|
-
return ["--yes", "skills", "add", source, "--skill", SKILL_NAME, "--global", "--agent", agent, "--yes"];
|
|
47
|
+
return ["--yes", "skills", "add", source, "--skill", SKILL_NAME, "--global", "--agent", agent, "--yes", "--copy"];
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
function skillsListArgs(agent) {
|
|
@@ -100,7 +103,7 @@ function retryCommand(source, agent) {
|
|
|
100
103
|
async function install(argv, options = {}) {
|
|
101
104
|
const parsed = parseInstallArgs(argv);
|
|
102
105
|
const version = options.packageVersion ?? require("../package.json").version;
|
|
103
|
-
const source =
|
|
106
|
+
const source = bundledSkillPath(options.bundledSkillPath);
|
|
104
107
|
const agent = parsed.agent || await (options.promptForAgent ?? promptForAgent)();
|
|
105
108
|
const execute = options.runCommand ?? runCommand;
|
|
106
109
|
|
|
@@ -126,12 +129,13 @@ async function install(argv, options = {}) {
|
|
|
126
129
|
module.exports = {
|
|
127
130
|
PACKAGE_NAME,
|
|
128
131
|
SKILL_NAME,
|
|
132
|
+
BUNDLED_SKILL_PATH,
|
|
133
|
+
bundledSkillPath,
|
|
129
134
|
globalPackageSpec,
|
|
130
135
|
install,
|
|
131
136
|
parseInstallArgs,
|
|
132
137
|
retryCommand,
|
|
133
138
|
skillInstalled,
|
|
134
|
-
skillSourceURL,
|
|
135
139
|
skillsAddArgs,
|
|
136
140
|
skillsListArgs,
|
|
137
141
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cogfoundry/loomloom",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "LoomLoom CLI for defining, compiling, executing, and managing AI work as software",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,17 +15,19 @@
|
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"bin",
|
|
18
|
+
"skill",
|
|
19
|
+
"skill-manifest.json",
|
|
18
20
|
"platforms.json",
|
|
19
21
|
"README.md",
|
|
20
22
|
"LICENSE"
|
|
21
23
|
],
|
|
22
24
|
"optionalDependencies": {
|
|
23
|
-
"@cogfoundry/loomloom-linux-x64": "0.4.
|
|
24
|
-
"@cogfoundry/loomloom-linux-arm64": "0.4.
|
|
25
|
-
"@cogfoundry/loomloom-darwin-x64": "0.4.
|
|
26
|
-
"@cogfoundry/loomloom-darwin-arm64": "0.4.
|
|
27
|
-
"@cogfoundry/loomloom-win32-x64": "0.4.
|
|
28
|
-
"@cogfoundry/loomloom-win32-arm64": "0.4.
|
|
25
|
+
"@cogfoundry/loomloom-linux-x64": "0.4.5",
|
|
26
|
+
"@cogfoundry/loomloom-linux-arm64": "0.4.5",
|
|
27
|
+
"@cogfoundry/loomloom-darwin-x64": "0.4.5",
|
|
28
|
+
"@cogfoundry/loomloom-darwin-arm64": "0.4.5",
|
|
29
|
+
"@cogfoundry/loomloom-win32-x64": "0.4.5",
|
|
30
|
+
"@cogfoundry/loomloom-win32-arm64": "0.4.5"
|
|
29
31
|
},
|
|
30
32
|
"publishConfig": {
|
|
31
33
|
"access": "public"
|
package/platforms.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
{
|
|
2
|
-
"releaseTag": "v0.4.
|
|
3
|
-
"version": "0.4.
|
|
2
|
+
"releaseTag": "v0.4.5",
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"linux-x64": {
|
|
6
6
|
"package": "@cogfoundry/loomloom-linux-x64",
|
|
7
7
|
"binary": "bin/loomloom",
|
|
8
|
-
"binarySHA256": "
|
|
8
|
+
"binarySHA256": "f40ab4fd137849823614d10b4e886706cd0edea2ced6359d703e11dc0ebb5280",
|
|
9
9
|
"archive": "loomloom-linux-amd64.tar.gz",
|
|
10
|
-
"archiveSHA256": "
|
|
10
|
+
"archiveSHA256": "9e5b420ee8fb70499db0cc961ed5ead12ece286b1a28a59ac322f71eed964a61"
|
|
11
11
|
},
|
|
12
12
|
"linux-arm64": {
|
|
13
13
|
"package": "@cogfoundry/loomloom-linux-arm64",
|
|
14
14
|
"binary": "bin/loomloom",
|
|
15
|
-
"binarySHA256": "
|
|
15
|
+
"binarySHA256": "b5650215a5619c490f51da32d2f21c1d0e32f514ae3dbaea9c1c8d8c6c65a6c6",
|
|
16
16
|
"archive": "loomloom-linux-arm64.tar.gz",
|
|
17
|
-
"archiveSHA256": "
|
|
17
|
+
"archiveSHA256": "2882ce29c276ad536a016ab551dec24d1900eeb4ee061fb5e669a310d4c6131d"
|
|
18
18
|
},
|
|
19
19
|
"darwin-x64": {
|
|
20
20
|
"package": "@cogfoundry/loomloom-darwin-x64",
|
|
21
21
|
"binary": "bin/loomloom",
|
|
22
|
-
"binarySHA256": "
|
|
22
|
+
"binarySHA256": "1f83a14ae282df7ebf77a68bc42e497837869313f2a4a6c187ef05e7fbad188a",
|
|
23
23
|
"archive": "loomloom-darwin-amd64.tar.gz",
|
|
24
|
-
"archiveSHA256": "
|
|
24
|
+
"archiveSHA256": "63f2ea0377d54115dcf715a4eb4cc8ab1a7e1c68f29b138cb175dec1b342c272"
|
|
25
25
|
},
|
|
26
26
|
"darwin-arm64": {
|
|
27
27
|
"package": "@cogfoundry/loomloom-darwin-arm64",
|
|
28
28
|
"binary": "bin/loomloom",
|
|
29
|
-
"binarySHA256": "
|
|
29
|
+
"binarySHA256": "2b84a1c8d19aab29c7dcaf026e4b3552fb08ed2cc2430b66d63a0a09ca0616cf",
|
|
30
30
|
"archive": "loomloom-darwin-arm64.tar.gz",
|
|
31
|
-
"archiveSHA256": "
|
|
31
|
+
"archiveSHA256": "bef9ab1a91b7ee9a14b3a6deb2ce0495088f658d1c52c3c81875c0f75e808941"
|
|
32
32
|
},
|
|
33
33
|
"win32-x64": {
|
|
34
34
|
"package": "@cogfoundry/loomloom-win32-x64",
|
|
35
35
|
"binary": "bin/loomloom.exe",
|
|
36
|
-
"binarySHA256": "
|
|
36
|
+
"binarySHA256": "26a30023334c05ee5b146b7303411af7255e1e7b36a0c8c9ff4e4e809b7bfb92",
|
|
37
37
|
"archive": "loomloom-windows-amd64.zip",
|
|
38
|
-
"archiveSHA256": "
|
|
38
|
+
"archiveSHA256": "708e58153f98652b8301dd28e8cee24e29f96ce32ac9c7a63fdc02046e0bd9ca"
|
|
39
39
|
},
|
|
40
40
|
"win32-arm64": {
|
|
41
41
|
"package": "@cogfoundry/loomloom-win32-arm64",
|
|
42
42
|
"binary": "bin/loomloom.exe",
|
|
43
|
-
"binarySHA256": "
|
|
43
|
+
"binarySHA256": "e0cb307f55563f644e2a550e886e70b802332462c991a4161ba9ba14cf9af307",
|
|
44
44
|
"archive": "loomloom-windows-arm64.zip",
|
|
45
|
-
"archiveSHA256": "
|
|
45
|
+
"archiveSHA256": "45e9064ae14150bdee2f0ca1b14f62ae968135cb1af34c61d944a62de0033a5e"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: loomloom
|
|
3
|
+
description: Use this skill when the user mentions LoomLoom, loomloom, batch generation, batch processing, batch tasks, batch execution, template execution, template submission, Excel submission, template download, Excel validation, run results, result download, run id, task status, execution status, official templates, private templates, TemplateSpec, Excel/workbook templates, Market SkillBots, template market, public templates, SkillBot, listing, unlisting, relisting, price changes, fixed task fees, publishing to the Market, review submission, review status, creator earnings, template earnings, usage, orders, call records, installing LoomLoom, doctor, token, server, or when the user clearly wants multi-row input to produce batch outputs.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# loomloom
|
|
7
|
+
|
|
8
|
+
LoomLoom is a template-based AI workflow platform for structured, repeatable AI work. Use it for batch or table-shaped generation, official and private template execution, TemplateSpec authoring, Market SkillBots, creator listing management, local Agent Skill installation, run monitoring, and result retrieval.
|
|
9
|
+
|
|
10
|
+
Do not use LoomLoom for ordinary one-off writing or chat unless the user explicitly asks for LoomLoom, templates, Excel/workbook input, a Market SkillBot, or batch/table-shaped processing.
|
|
11
|
+
|
|
12
|
+
## Install And Update LoomLoom
|
|
13
|
+
|
|
14
|
+
When asked to install or update LoomLoom:
|
|
15
|
+
|
|
16
|
+
1. For the npm one-command setup, require one explicit `skills` Agent id. Run `npx @cogfoundry/loomloom@<version> install --agent <agent-id> --yes`; the setup command verifies that the selected Agent reports the `loomloom` Skill.
|
|
17
|
+
2. Do not omit `--agent` in an Agent or non-interactive session, and do not install the Skill for every detected Agent.
|
|
18
|
+
3. For the shell or PowerShell installers, determine the current Agent's supported Skill root from its runtime configuration or official conventions, then use `<agent-skill-root>/loomloom` as the complete destination with `--skill-dir` or `-SkillDir`.
|
|
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
|
+
5. Verify either the npm setup success result or `<agent-skill-root>/loomloom/SKILL.md` after the explicit-directory path.
|
|
21
|
+
|
|
22
|
+
## Core Objects
|
|
23
|
+
|
|
24
|
+
Choose the product object before choosing a command:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
Official template ── platform-maintained and executed directly
|
|
28
|
+
|
|
29
|
+
Private template ── user-created through TemplateSpec
|
|
30
|
+
└─ Private template version
|
|
31
|
+
├─ optional private Agent Skill Package Head
|
|
32
|
+
└─ Submitted to Market review
|
|
33
|
+
└─ Listing Version (immutable publish snapshot)
|
|
34
|
+
└─ Approved and executable as a SkillBot
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
- Use `template` and `run` for official templates.
|
|
38
|
+
- Use `template-spec` to author, version, and directly execute private templates.
|
|
39
|
+
- Use `market` when a buyer discovers, quotes, or runs a paid SkillBot.
|
|
40
|
+
- Use `listing` and `creator review` when a creator publishes or manages a SkillBot.
|
|
41
|
+
- A Listing is the Market shelf object. Buyers call the Listing; they do not hold a Listing Version.
|
|
42
|
+
- There is no separate "public template" resource. User-facing "public Market template" means a Market SkillBot.
|
|
43
|
+
- `asset list` aggregates private templates and Market SkillBots; it does not include official templates.
|
|
44
|
+
|
|
45
|
+
When "template" is ambiguous, clarify whether the user means an official template, their private template, or a Market SkillBot.
|
|
46
|
+
|
|
47
|
+
## Intent Routing
|
|
48
|
+
|
|
49
|
+
Read every required reference for the current intent before answering with business rules or taking action. References are mandatory routing targets, not optional background reading.
|
|
50
|
+
|
|
51
|
+
| Intent | Required references |
|
|
52
|
+
|---|---|
|
|
53
|
+
| Install/configure LoomLoom; token, server, platform, balance, console, or `doctor` | [setup.md](references/setup.md), [cli.md](references/cli.md) |
|
|
54
|
+
| Execute an official or private template; validate, precheck, run, monitor, or retrieve results | [execution.md](references/execution.md), [billing.md](references/billing.md), [cli.md](references/cli.md) |
|
|
55
|
+
| Create, explain, or version a private template or TemplateSpec | [template-spec.md](references/template-spec.md), [billing.md](references/billing.md), [cli.md](references/cli.md) |
|
|
56
|
+
| Discover, quote, or execute a Market SkillBot | [market.md](references/market.md), [billing.md](references/billing.md), [cli.md](references/cli.md) |
|
|
57
|
+
| Publish, change price/version/profile, list/unlist/relist, review, usage, settlement, or earnings | [market.md](references/market.md), [billing.md](references/billing.md), [cli.md](references/cli.md) |
|
|
58
|
+
| Install or uninstall a LoomLoom template as a local Agent Skill | [local-skills.md](references/local-skills.md), [cli.md](references/cli.md) |
|
|
59
|
+
| Diagnose a failure, ambiguous response, missing ID, or command syntax | [cli.md](references/cli.md) plus the relevant domain reference above |
|
|
60
|
+
|
|
61
|
+
Whenever a task involves fees, quote/precheck, currency, balance, confirmation, paid execution, failure, cancellation, partial completion, usage, settlement, or creator earnings, read `billing.md` before answering or acting.
|
|
62
|
+
|
|
63
|
+
## High-Level Workflows
|
|
64
|
+
|
|
65
|
+
### Official template
|
|
66
|
+
|
|
67
|
+
When the user explicitly asks to use a selected official template, first check or install its public Skill Package in the current Agent's Skill root. Do this after the template is identified and before downloading its workbook, reading its concrete input schema, quoting, or executing. Listing or explaining official templates alone does not authorize installation. If the package check reports no public ZIP, continue with the normal LoomLoom cloud workflow.
|
|
68
|
+
|
|
69
|
+
Default workbook flow:
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
Discover → Select template → Explicit use request → Check/install public Skill Package
|
|
73
|
+
→ Download workbook → Fill → Validate → Precheck
|
|
74
|
+
→ Show fee confirmation → User confirms → Submit → Watch → Results
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Programmatic input is opt-in:
|
|
78
|
+
|
|
79
|
+
```text
|
|
80
|
+
Prepare JSON/JSONL → Validate → Precheck
|
|
81
|
+
→ Show fee confirmation → User confirms → Execute
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Private template execution
|
|
85
|
+
|
|
86
|
+
Bind to an explicit private `template_id + version_id`:
|
|
87
|
+
|
|
88
|
+
```text
|
|
89
|
+
Download/prepare version-specific input → Validate → Precheck
|
|
90
|
+
→ Show fee confirmation → User confirms → Run → Results
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Private template authoring
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
Business conversation → inspect current LoomLoom Server capabilities
|
|
97
|
+
→ decide LoomLoom-only or Agent-assisted
|
|
98
|
+
→ TemplatePlan → User confirms plan → Generate TemplateSpec
|
|
99
|
+
→ Check with the current LoomLoom Server → User confirms creation
|
|
100
|
+
→ Create or append a version
|
|
101
|
+
→ LoomLoom-only: continue normally; do not raise Skill Package with the creator
|
|
102
|
+
→ Agent-assisted: explain the required local capabilities before creation
|
|
103
|
+
→ after obtaining template_id: create the local Skill → preview → creator confirms upload
|
|
104
|
+
→ local trial → upload private Package Head → verify validationStatus=passed
|
|
105
|
+
→ only then complete authoring and allow Market publication
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
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.
|
|
109
|
+
|
|
110
|
+
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.
|
|
111
|
+
|
|
112
|
+
### Legacy TemplateSpec v1 upgrade gate
|
|
113
|
+
|
|
114
|
+
Historical v1 TemplateVersions remain readable and runnable, but v1 cannot be
|
|
115
|
+
used to create a new template or save a new version. When a user needs to
|
|
116
|
+
change, copy, or newly author a v1 template, create a new `template-spec/v2`
|
|
117
|
+
version; never overwrite or claim to repair the historical v1 version.
|
|
118
|
+
|
|
119
|
+
Before changing, copying, or appending a version to an existing private
|
|
120
|
+
template, inspect the exact target version reported by the current Server:
|
|
121
|
+
|
|
122
|
+
```text
|
|
123
|
+
loomloom template-spec get <template-id> --output json
|
|
124
|
+
loomloom template-spec versions <template-id> --output json
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Resolve whether the user means the published, latest, or another explicit
|
|
128
|
+
version, then inspect that version's returned `specVersion`. Do not infer the
|
|
129
|
+
version from JSON shape, a 404, or an error message. If it is
|
|
130
|
+
`template-spec/v1`, do not submit its historical JSON to `create-version`.
|
|
131
|
+
Explain that the historical version remains readable/runnable but is read-only,
|
|
132
|
+
and guide the user through creating a new v2 version. Do not force this upgrade
|
|
133
|
+
when the user only wants to run an existing v1 version.
|
|
134
|
+
|
|
135
|
+
Do not infer a v2 contract from v1 `modelKey`, `staticParams`, field bindings,
|
|
136
|
+
or provider-native fields. Read the current v2 protocol and the target
|
|
137
|
+
environment's authoring facts first:
|
|
138
|
+
|
|
139
|
+
```text
|
|
140
|
+
loomloom model types --output json
|
|
141
|
+
loomloom template-spec docs spec --lang zh-CN
|
|
142
|
+
loomloom template-spec docs inputs --lang zh-CN
|
|
143
|
+
loomloom template-spec docs bindings --lang zh-CN
|
|
144
|
+
loomloom capability resolve --input <modality> --output-modality <modality> --output json
|
|
145
|
+
loomloom template-spec authoring-context --output json
|
|
146
|
+
loomloom template-spec contracts <model-id> --output json
|
|
147
|
+
loomloom model list --step-type <step-type> --output json
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
First classify every v1 Step by its business input and output modalities, then
|
|
151
|
+
call `capability resolve` for that shape. Its returned matches are the primary
|
|
152
|
+
authoring route: a `capabilityProfile` match carries a fixed interface, the
|
|
153
|
+
current operational default, and the live eligible-model set; a
|
|
154
|
+
`fixedModelContract` match carries the exact `subjectRevisionId` and ports. Use
|
|
155
|
+
the Profile when callers need a replaceable model set. Use the Fixed Model
|
|
156
|
+
Contract when the workflow requires one exact model or its dedicated interface.
|
|
157
|
+
Use `model types`, `model list`,
|
|
158
|
+
`authoring-context`, and `contracts` only to diagnose or inspect the lower-level
|
|
159
|
+
facts behind that resolution. If the resolver returns `not_supported`, stop and
|
|
160
|
+
report `needs_authoring_capability`; never infer support from a raw model name
|
|
161
|
+
or modality table.
|
|
162
|
+
|
|
163
|
+
Before writing or checking the v2 candidate, build a per-Step semantic
|
|
164
|
+
preservation ledger from the exported v1 definition. Every non-empty v1
|
|
165
|
+
`Steps[].Instruction` must still reach a model-bound v2 input. For a Capability
|
|
166
|
+
Profile Step, bind that instruction to `systemInstruction` with `literal`,
|
|
167
|
+
`composeValue`, or an appropriate text merge. `workbook.instructions` is only a user filling guide and never substitutes for a model instruction. Preserve the
|
|
168
|
+
v1 model-selection policy: when `AllowModelOverride=false`, use fixed
|
|
169
|
+
`modelSelection` and do not invent a `modelChoice` Template Input. Map image,
|
|
170
|
+
video, audio, file, and step-output references by their actual transport and
|
|
171
|
+
target port, not by converting them to strings.
|
|
172
|
+
|
|
173
|
+
`template-spec check` proves current schema, port, model, and authority
|
|
174
|
+
compatibility only. It does not prove v1-to-v2 semantic equivalence. After a
|
|
175
|
+
successful check, compare at least the Step topology, every non-empty
|
|
176
|
+
Instruction, input transports, upstream bindings, model-selection policy,
|
|
177
|
+
user-visible outputs, and failure policy. If any meaning is missing or changed,
|
|
178
|
+
stop with `semantic_review_required`; do not create the version. Show this
|
|
179
|
+
semantic diff before asking for creation confirmation. On the current LoomLoom
|
|
180
|
+
Server, `create-version` advances both `latestVersionId` and
|
|
181
|
+
`publishedVersionId`; disclose that impact before confirmation and read both
|
|
182
|
+
pointers back afterward.
|
|
183
|
+
|
|
184
|
+
An empty fixed-contract result means that exact target model/operation is not
|
|
185
|
+
currently authorable. Report `missing_fixed_contract` or choose another
|
|
186
|
+
returned target model; never produce a v2 draft that claims the missing
|
|
187
|
+
contract exists. Rewrite the v1 definition as v2
|
|
188
|
+
`templateInputs`, `executionBinding`, and `inputBindings`. Use
|
|
189
|
+
`loomloom template-spec get-version <template-id> <version-id> -f historical.json`
|
|
190
|
+
to retrieve an owner-visible historical definition when needed. Then run
|
|
191
|
+
`check` against the same Server where the new version will be saved and create
|
|
192
|
+
a new immutable version only after explicit confirmation. Do not promise a lossless or automatic v1-to-v2 conversion.
|
|
193
|
+
|
|
194
|
+
### Market buyer
|
|
195
|
+
|
|
196
|
+
```text
|
|
197
|
+
Discover Listing → Inspect public schema → Select Listing → Explicit use request
|
|
198
|
+
→ Check/install public Skill Package → Prepare public input → Quote
|
|
199
|
+
→ Show Market fee confirmation
|
|
200
|
+
→ User confirms → Run through Listing → Usage/results
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Only after the user explicitly says to install or use a selected Market SkillBot, check or install its public Skill Package in the current Agent's Skill root. Do this before preparing the actual input or executing; browsing, explaining, and quoting do not authorize installation. If the package check reports no public ZIP, continue with the normal Market cloud workflow. Package installation does not authorize a paid run.
|
|
204
|
+
|
|
205
|
+
### Market creator
|
|
206
|
+
|
|
207
|
+
```text
|
|
208
|
+
Select a successfully run private version → Explain intended change
|
|
209
|
+
→ User confirms → Submit for review → Track review
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Changing only the price and changing the execution version are different operations; follow `market.md`.
|
|
213
|
+
|
|
214
|
+
### Local Agent Skill
|
|
215
|
+
|
|
216
|
+
```text
|
|
217
|
+
Explicit install/use request → Agent identifies its own Skill root
|
|
218
|
+
→ Download current public ZIP → validate and atomically install/update
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
This automatic package installation does not authorize a paid run. Creator package uploads remain a separate, explicitly confirmed flow.
|
|
222
|
+
|
|
223
|
+
## Global Rules
|
|
224
|
+
|
|
225
|
+
**Match the user's language.** Respond in the language evident from the user's messages. If it is not yet evident, default to Chinese for ShengSuanYun and English for CogFoundry. Apply this to every user-facing message, including predefined templates, confirmations, warnings, and errors. Preserve commands, URLs, identifiers, amounts, and currency codes when localizing.
|
|
226
|
+
|
|
227
|
+
Determine the current platform only from the user's explicit selection or a successful `loomloom doctor --output json` result. Never infer it from a hostname, location, language, or other context.
|
|
228
|
+
|
|
229
|
+
1. **Protect credentials.** Send a token only over HTTPS to the explicitly configured host. Never expose it, follow it across domains, or reuse it across platforms/environments.
|
|
230
|
+
2. **Default to Excel.** Use JSON/JSONL only when the user explicitly requests programmatic input or supplies a compatible request file.
|
|
231
|
+
3. **Separate preparation from execution.** Downloads, uploads, validation, quote, and precheck do not authorize a hosted run.
|
|
232
|
+
4. **Confirm every run by default.** Show the current server-provided estimate and obtain explicit confirmation in the current conversation before creating a hosted run, except during an explicitly activated Test Execution Mode defined below.
|
|
233
|
+
5. **Reconfirm changed input.** If input changes after validation, estimate, or confirmation, validate and estimate again and obtain a new confirmation. Tell the user that the changed input must be re-estimated and reconfirmed.
|
|
234
|
+
6. **Use execution IDs safely.** Every newly confirmed execution gets a new `client-request-id`. Reuse one only for an identical retry of the same confirmed request after an ambiguous failure.
|
|
235
|
+
7. **Do not bypass Market.** Execute a SkillBot through its Listing and public schema. Never expose or reconstruct hidden prompts, steps, mappings, TemplateSpec, or private execution logic.
|
|
236
|
+
8. **Respect order locking.** Market resolves the current sellable Listing Version when creating the order and locks that version and price for the order.
|
|
237
|
+
9. **Confirm persistent changes.** Creating or versioning a template, publishing or changing a Listing, unlisting/relisting, and withdrawing review require explicit confirmation.
|
|
238
|
+
10. **Do not invent facts.** Never guess IDs, versions, flags, currency, fee fields, server state, hidden step IDs, settlement outcomes, or URLs.
|
|
239
|
+
11. **Use current sources of truth.** Use CLI help for syntax, CLI-bundled TemplateSpec docs for the contract, downloaded workbooks for input shape, and returned service fields for state and IDs.
|
|
240
|
+
12. **Keep technical details internal by default.** Translate raw JSON and backend fields into business language unless the user asks for CLI/API details.
|
|
241
|
+
13. **Avoid loading large files into context.** Upload them and preserve returned IDs according to `execution.md`.
|
|
242
|
+
14. **Use platform-specific official API documentation when needed.** When a task requires HTTP API details not covered by the local references—such as endpoints, authentication, request or response fields, OpenAPI definitions, or newly introduced APIs—first determine the current LoomLoom platform from the user's explicit selection or a successful `loomloom doctor --output json` result.
|
|
243
|
+
|
|
244
|
+
For ShengSuanYun, consult the official LoomLoom API documentation:
|
|
245
|
+
|
|
246
|
+
`https://lean.shengsuanyun.com/apidocs/loomloom/api`
|
|
247
|
+
|
|
248
|
+
Treat this documentation as the authoritative source for ShengSuanYun API contracts. Do not guess or fabricate behavior that can be verified there.
|
|
249
|
+
|
|
250
|
+
CogFoundry API documentation is not yet publicly available. Do not use ShengSuanYun-specific API contracts to infer CogFoundry behavior. For CogFoundry, rely on the local references, installed CLI help, and actual service responses until official CogFoundry API documentation becomes available.
|
|
251
|
+
|
|
252
|
+
## Test Execution Mode
|
|
253
|
+
|
|
254
|
+
Test Execution Mode is an optional, conversation-scoped prompt authorization for repeated paid test runs. It is disabled by default and available to every user and Agent that uses this Skill. It is not a server-side authorization or billing-control mechanism.
|
|
255
|
+
|
|
256
|
+
Activate it only when the user explicitly says they do not need a confirmation before each test run and supplies, or explicitly accepts, all of these limits:
|
|
257
|
+
|
|
258
|
+
- target environment / Server;
|
|
259
|
+
- permitted template, private-template version, or Listing scope;
|
|
260
|
+
- maximum tasks per run;
|
|
261
|
+
- maximum cost per run and total cost, with currency;
|
|
262
|
+
- expiry (default: the current conversation only).
|
|
263
|
+
|
|
264
|
+
On activation, restate the limits once and record that Test Execution Mode is active. Within those exact limits, the Agent may validate, precheck, submit, watch, and retrieve results without requesting another per-run confirmation. However, a missing, zero, or currency-unknown precheck estimate is not eligible for automatic submission: stop and obtain a fresh explicit confirmation before creating that run. Each run must still use a new `client-request-id` and report its run ID, status, and actual cost when returned.
|
|
265
|
+
|
|
266
|
+
Test Execution Mode immediately stops and normal per-run confirmation resumes when any limit is exceeded, the input scope changes, the Server/platform changes, the mode expires, or the user withdraws it. Never infer activation from a testing context or from an earlier conversation.
|
|
267
|
+
|
|
268
|
+
The mode never covers persistent or high-impact operations: creating or versioning templates, publishing or changing Listings, unlisting/relisting, withdrawing reviews, deleting data, changing credentials or Server configuration, or any operation outside the approved execution scope. Those operations always require explicit confirmation.
|
|
269
|
+
|
|
270
|
+
## References
|
|
271
|
+
|
|
272
|
+
- [Setup and security](references/setup.md) — installation, `doctor`, credentials, platform messages, console, token/host safety.
|
|
273
|
+
- [Template execution](references/execution.md) — official/private workbook and JSON flows, runs, results, artifacts, large files.
|
|
274
|
+
- [Market and SkillBots](references/market.md) — Listings, public input, buyer and creator workflows, price/version changes.
|
|
275
|
+
- [Billing and confirmation](references/billing.md) — fee fields, currency, confirmation templates, settlement, earnings.
|
|
276
|
+
- [Template authoring](references/template-spec.md) — TemplatePlan conversation, usage modes, TemplateSpec modeling and creation.
|
|
277
|
+
- [Agent Skill Packages](references/local-skills.md) — Agent-created private packages, public ZIP install/update, and package review binding.
|
|
278
|
+
- [CLI and errors](references/cli.md) — syntax sources, ID chaining, recovery rules, complete capability inventory.
|