clementine-agent 1.18.152 → 1.18.153
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/dist/cli/dashboard.js +9 -3
- package/package.json +1 -1
package/dist/cli/dashboard.js
CHANGED
|
@@ -39485,9 +39485,15 @@ async function runWorkflow(name) {
|
|
|
39485
39485
|
// the list so the migrated workflow disappears (its .md is renamed to
|
|
39486
39486
|
// .md.migrated server-side and parseAllWorkflows stops picking it up).
|
|
39487
39487
|
async function migrateWorkflowToSkill(name) {
|
|
39488
|
-
|
|
39489
|
-
|
|
39490
|
-
|
|
39488
|
+
// 1.18.153 — escape \\n through the outer template literal. Without the
|
|
39489
|
+
// double-backslash the served HTML gets literal newlines INSIDE a single-
|
|
39490
|
+
// quoted JS string, which the browser parser rejects as
|
|
39491
|
+
// "Uncaught SyntaxError: Invalid or unexpected token". That kills the
|
|
39492
|
+
// entire inline script block, so no API calls fire, no data renders,
|
|
39493
|
+
// dashboard appears completely broken even though the server is healthy.
|
|
39494
|
+
if (!confirm('Migrate "' + name + '" into a skill folder?\\n\\n' +
|
|
39495
|
+
'• A new skill will be created at vault/00-System/skills/<slug>/SKILL.md\\n' +
|
|
39496
|
+
'• The original workflow .md will be renamed to .md.migrated (kept for rollback)\\n' +
|
|
39491
39497
|
'• The workflow stops firing; the skill is ready to schedule from the Skills tab')) return;
|
|
39492
39498
|
try {
|
|
39493
39499
|
var r = await apiFetch('/api/workflows/' + encodeURIComponent(name) + '/migrate-to-skill', {
|