@ai-ecoverse/slicc-spectrum 1.89.0 → 1.89.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 +2 -2
- package/dist/slicc-ui.js +14 -2
- package/dist/slicc-ui.js.map +2 -2
- package/dist/types/app/freezer.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -485,8 +485,8 @@ A thawed scoop or agent run keeps its row, which says what it was thawed as.
|
|
|
485
485
|
Either way its conversation stays here, and a row without a `kind` counts as a cone.
|
|
486
486
|
A title longer than two lines ends in an ellipsis and carries its full text as a `title`; the dummy's titles are the whole first line of the first message, so only the card cuts them.
|
|
487
487
|
A row with `v6: true` came from SLICC 6 and carries a neutral outline **SLICC 6** badge (`data-badge="v6"`, `data-v6` on the row), set apart from the gray model badge.
|
|
488
|
-
When the agent port has `importProfile` and `importCancel` and the page is neither watch-only nor a guest seat, the bar offers **Import** with an import icon (`data-action="import-v6"
|
|
489
|
-
A zip is a `.zip` name or an `application/zip` or `application/x-zip-compressed` type; deeper checks are left to the preview. Dropping or picking anything else shows an inline error under the bar (`data-error="not-zip"`, a polite status): "That’s not a SLICC 6 export.
|
|
488
|
+
When the agent port has `importProfile` and `importCancel` and the page is neither watch-only nor a guest seat, the bar offers **Import from SLICC 6** with an import icon (`data-action="import-v6"`), shortened to **Import** when the Freezer is narrower than 26rem (its accessible name and tooltip always say "Import from SLICC 6"), on the bar's first row, which picks a `.zip`; dropping a zip on the Freezer (with a "Drop to import" dropzone while dragging) does the same.
|
|
489
|
+
A zip is a `.zip` name or an `application/zip` or `application/x-zip-compressed` type; deeper checks are left to the preview. Dropping or picking anything else shows an inline error under the bar (`data-error="not-zip"`, a polite status): "That’s not a SLICC 6 export. Use the .zip from Export for SLICC 7.", which clears on the next drop or pick, or with its dismiss button (`data-action="dismiss-not-zip"`, which puts focus back on Import).
|
|
490
490
|
Either opens `<slicc-freezer-import>`, a modal (`dialog[data-import]` set to `checking`, `preview`, `importing`, `done` or `failed`): `importProfile(file, { preview: true })` runs behind a progress circle and "Checking the profile…"; then **Import from SLICC 6?** shows the agent's `text`, a summary (cones, scoops, frozen, skills, crons, webhooks, size, on one row when the dialog is wide and in four equal columns when it's narrow, so no cell sits alone on a row) and its notes (`[data-note]`): "You imported this export on {day}." when `already` is set, "Sign in again in Settings: {providers}." (named by their accounts), a **Warning:** with an icon for credential-like files, which are imported for review afterwards (their zip paths as code; more than three fold under a quiet chevron), and a muted "Not imported: {n} mounted folders." behind a folder icon, so every note's text starts at the same edge.
|
|
491
491
|
**Import** (`data-action="import-confirm"`, **Import again** with `again: true` after an earlier import) runs the import with a progress bar from the `importing` event, announced only when it starts and ends; **Done** (`data-action="import-done"`) after "Imported {n} cones." and the report path with **Copy** (`data-action="copy-report"`) closes it and focuses the first imported row.
|
|
492
492
|
A rejection shows the error card with its sentence (a check without a `preview` shows "Couldn’t read this export. Try another zip."), **Try again** (`data-action="import-retry"`, picks again) and **Close**; **Cancel** or <kbd>Escape</kbd> while checking or importing calls `importCancel`.
|
package/dist/slicc-ui.js
CHANGED
|
@@ -26671,7 +26671,7 @@ var frozenKinds = {
|
|
|
26671
26671
|
agent: ["purple", "Agent run"]
|
|
26672
26672
|
};
|
|
26673
26673
|
var zipTypes = ["application/zip", "application/x-zip-compressed"];
|
|
26674
|
-
var notZip = "That\u2019s not a SLICC 6 export.
|
|
26674
|
+
var notZip = "That\u2019s not a SLICC 6 export. Use the .zip from Export for SLICC 7.";
|
|
26675
26675
|
function isZip(file) {
|
|
26676
26676
|
return /\.zip$/i.test(file.name) || zipTypes.includes(file.type);
|
|
26677
26677
|
}
|
|
@@ -26704,6 +26704,18 @@ var SliccFreezer = class extends ModelElement {
|
|
|
26704
26704
|
i`
|
|
26705
26705
|
:host {
|
|
26706
26706
|
position: relative;
|
|
26707
|
+
container: freezer / inline-size;
|
|
26708
|
+
}
|
|
26709
|
+
.bar .long {
|
|
26710
|
+
display: none;
|
|
26711
|
+
}
|
|
26712
|
+
@container freezer (min-width: 26rem) {
|
|
26713
|
+
.bar .long {
|
|
26714
|
+
display: inline;
|
|
26715
|
+
}
|
|
26716
|
+
.bar .short {
|
|
26717
|
+
display: none;
|
|
26718
|
+
}
|
|
26707
26719
|
}
|
|
26708
26720
|
.bar {
|
|
26709
26721
|
flex-wrap: wrap;
|
|
@@ -26928,7 +26940,7 @@ var SliccFreezer = class extends ModelElement {
|
|
|
26928
26940
|
const rows2 = freezerOrder(this.model?.agent.frozen() ?? []);
|
|
26929
26941
|
return b`<div class="bar">
|
|
26930
26942
|
<span>${rows2.length} ${rows2.length === 1 ? "conversation" : "conversations"}</span>
|
|
26931
|
-
${this.importable ? b`<swc-action-button id="import-v6" size="s" quiet data-action="import-v6" accessible-label="Import from SLICC 6" @click=${() => this.#pick()}><swc-icon-import slot="icon"></swc-icon-import>Import</swc-action-button><swc-tooltip for="import-v6" placement="bottom">Import from SLICC 6</swc-tooltip><input type="file" accept=${[".zip", ...zipTypes].join(",")} hidden data-action="import-file" @change=${this.#picked} />` : A}
|
|
26943
|
+
${this.importable ? b`<swc-action-button id="import-v6" size="s" quiet data-action="import-v6" accessible-label="Import from SLICC 6" @click=${() => this.#pick()}><swc-icon-import slot="icon"></swc-icon-import><span class="long">Import from SLICC 6</span><span class="short">Import</span></swc-action-button><swc-tooltip for="import-v6" placement="bottom">Import from SLICC 6</swc-tooltip><input type="file" accept=${[".zip", ...zipTypes].join(",")} hidden data-action="import-file" @change=${this.#picked} />` : A}
|
|
26932
26944
|
</div>
|
|
26933
26945
|
<div class="error" role="status" aria-live="polite" data-error="not-zip">${this.refused && this.importable ? b`<swc-icon-alert-diamond size="s" aria-hidden="true"></swc-icon-alert-diamond><span>${notZip}</span><swc-action-button size="s" quiet data-action="dismiss-not-zip" accessible-label="Dismiss" @click=${() => this.#dismiss()}><swc-icon-close slot="icon"></swc-icon-close></swc-action-button>` : A}</div>
|
|
26934
26946
|
<div class="list">
|