textcast-chat-axi 0.1.1 → 0.1.2
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.mjs +4 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1126,6 +1126,7 @@ function createArtifactSdk(deriveQueueKey, isNativeInteractive = isNativeInterac
|
|
|
1126
1126
|
}
|
|
1127
1127
|
const style = document.createElement("style");
|
|
1128
1128
|
style.textContent = `:host{all:initial;position:fixed;z-index:2147483647;left:0;top:0;--lv-surface:var(--surface,#fdfdfb);--lv-field:var(--parchment,#f5f4ed);--lv-fg:var(--near-black,#141413);--lv-soft:var(--dark-warm,#3d3d3a);--lv-muted:var(--stone,#6b6a64);--lv-border:var(--border,#e8e6dc);--lv-line:var(--line,#d8d5c8);--lv-accent:var(--brand,#1b365d);--lv-accent-hover:var(--brand-light,#2d5a8a);--lv-on-accent:var(--on-brand,#faf9f5);--lv-tint:var(--brand-tint,#eef2f7);--lv-shadow:var(--shadow,rgba(20,20,19,.06));--lv-serif:var(--serif,Georgia,serif);--lv-ui:var(--latin-ui,system-ui,-apple-system,"Segoe UI",sans-serif);--lv-danger:#b4442f;font-family:var(--lv-ui);color:var(--lv-fg)}*{box-sizing:border-box}:focus-visible{outline:2px solid var(--lv-accent);outline-offset:2px}button{font-family:var(--lv-ui)}.textcast-text-highlight{position:fixed;pointer-events:none;background:var(--lv-tint);border-radius:2px;box-shadow:inset 0 -2px 0 var(--lv-accent);opacity:.9}.textcast-ask{position:fixed;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 13px 0 11px;border:0;border-radius:999px;background:var(--lv-fg);color:var(--lv-field);font-size:13px;font-weight:600;letter-spacing:.01em;cursor:pointer;box-shadow:0 6px 18px -6px rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.12);animation:textcast-pop .14s ease-out}.textcast-ask:hover{background:var(--lv-accent);color:var(--lv-on-accent)}@keyframes textcast-pop{from{opacity:0;transform:translateY(4px) scale(.96)}to{opacity:1;transform:none}}.textcast-annotation-card{position:fixed;width:min(340px,calc(100vw - 24px));padding:14px;border-radius:14px;background:var(--lv-surface);color:var(--lv-fg);border:1px solid var(--lv-border);box-shadow:0 18px 48px -16px rgba(0,0,0,.28),0 2px 8px var(--lv-shadow);font:14px/1.5 var(--lv-ui);animation:textcast-pop .16s ease-out}.textcast-heading{font-weight:600;font-size:13px;color:var(--lv-muted);margin-bottom:8px}.textcast-quote{margin:0 0 10px;padding:2px 0 2px 10px;border-left:2px solid var(--lv-accent);font-family:var(--lv-serif);font-size:14px;line-height:1.6;color:var(--lv-soft);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.textcast-annotation-card textarea{display:block;width:100%;min-height:78px;resize:vertical;border-radius:10px;border:1px solid var(--lv-border);background:var(--lv-field);color:var(--lv-fg);padding:9px 11px;font:inherit;outline:none;transition:border-color .12s,box-shadow .12s}.textcast-annotation-card textarea:focus{border-color:var(--lv-accent);box-shadow:0 0 0 3px var(--lv-tint)}.textcast-annotation-card textarea::placeholder{color:var(--lv-muted)}.textcast-annotation-card .textcast-hint{margin-top:8px;font-size:11px;color:var(--lv-muted)}.textcast-annotation-card .textcast-hint-alert{color:var(--lv-danger);font-weight:600}.textcast-annotation-card .textcast-row{display:flex;gap:6px;align-items:center;margin-top:10px}.textcast-row-gap{flex:1}.textcast-annotation-card button{border:0;border-radius:9px;padding:7px 12px;font-size:13px;font-weight:600;cursor:pointer;transition:background .12s,color .12s,border-color .12s}.textcast-annotation-card button:active{transform:translateY(1px)}.textcast-annotation-card .textcast-cancel{background:transparent;color:var(--lv-muted);padding-left:6px;padding-right:6px}.textcast-annotation-card .textcast-cancel:hover{color:var(--lv-fg)}.textcast-annotation-card .textcast-send{background:transparent;color:var(--lv-fg);border:1px solid var(--lv-line)}.textcast-annotation-card .textcast-send:hover{border-color:var(--lv-accent);color:var(--lv-accent)}.textcast-annotation-card .textcast-send-now{background:var(--lv-accent);color:var(--lv-on-accent)}.textcast-annotation-card .textcast-send-now:hover{background:var(--lv-accent-hover)}.textcast-annotation-card.is-dropping{outline:2px dashed var(--lv-accent);outline-offset:3px}.textcast-attachments{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-height:176px;overflow-y:auto}.textcast-attachment-chip{display:flex;align-items:center;gap:8px;padding:6px;border-radius:10px;background:var(--lv-field);border:1px solid var(--lv-border)}.textcast-attachment-chip.is-error{border-color:var(--lv-danger)}.textcast-attachment-thumb{width:32px;height:32px;border-radius:6px;object-fit:cover;background:var(--lv-border);flex:0 0 auto}.textcast-attachment-thumb-empty{display:inline-block}.textcast-attachment-body{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1 1 auto}.textcast-attachment-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.textcast-attachment-status{font-size:11px;color:var(--lv-muted)}.textcast-attachment-status-error{color:var(--lv-danger)}.textcast-attachment-retry{flex:0 0 auto;padding:4px 8px!important;font-size:11px!important;border-radius:8px;background:transparent;border:1px solid var(--lv-line)!important;color:var(--lv-fg);cursor:pointer}.textcast-attachment-remove{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0!important;border-radius:50%;background:transparent;color:var(--lv-muted);cursor:pointer;border:0}.textcast-attachment-remove:hover{background:var(--lv-border);color:var(--lv-fg)}.textcast-attach-row{margin-top:8px}.textcast-attach{display:inline-flex;align-items:center;gap:6px;padding:4px 6px!important;background:transparent!important;color:var(--lv-muted)!important;font-size:12px!important;font-weight:500!important}.textcast-attach:hover{color:var(--lv-accent)!important}.textcast-reveal-marker{position:fixed;pointer-events:none;border:2px solid var(--lv-accent);border-radius:6px;box-shadow:0 0 0 5px var(--lv-tint);animation:textcast-reveal-pulse 2.4s ease-out forwards}@keyframes textcast-reveal-pulse{0%{opacity:0}12%{opacity:1}70%{opacity:1}100%{opacity:0}}@media (prefers-reduced-motion:reduce){.textcast-ask,.textcast-annotation-card{animation:none}}`;
|
|
1129
|
+
if (options.dir === "rtl") style.textContent += ":host{direction:rtl}";
|
|
1129
1130
|
shadow.appendChild(style);
|
|
1130
1131
|
return shadow;
|
|
1131
1132
|
}
|
|
@@ -7529,7 +7530,8 @@ function createSdkJs(key, artifactRevision = 0, artifactLoadToken = "", { maxAtt
|
|
|
7529
7530
|
maxAttachmentCount: Number.isFinite(maxAttachmentCount) ? maxAttachmentCount : void 0,
|
|
7530
7531
|
maxAttachmentBytes: Number.isFinite(maxAttachmentBytes) ? maxAttachmentBytes : void 0,
|
|
7531
7532
|
acceptedImageMime: acceptedImageMime.map(String),
|
|
7532
|
-
strings: chromeStrings(locale)
|
|
7533
|
+
strings: chromeStrings(locale),
|
|
7534
|
+
dir: chromeLangAttrs(locale).dir
|
|
7533
7535
|
};
|
|
7534
7536
|
return `(() => {
|
|
7535
7537
|
const key=${JSON.stringify(key)};
|
|
@@ -7591,7 +7593,7 @@ var AGENT_REPLY_INPUT_LIMIT_BYTES = AGENT_REPLY_JSON_LIMIT_BYTES - AGENT_REPLY_J
|
|
|
7591
7593
|
var AGENT_REPLY_LIMIT_LABEL = "2 MB JSON request limit";
|
|
7592
7594
|
var POLL_STATE_HEADER = "textcast-poll-state";
|
|
7593
7595
|
var CODEX_POLL_WAKE_PATH_GUIDANCE = "Codex detected: completed background tasks may not resume Codex automatically, so keep the poll attached to the active turn.";
|
|
7594
|
-
var VERSION = "0.1.
|
|
7596
|
+
var VERSION = "0.1.2";
|
|
7595
7597
|
function detectInvokingAgent(env = process.env) {
|
|
7596
7598
|
return ["CODEX_SANDBOX", "CODEX_THREAD_ID"].some((key) => Object.hasOwn(env, key)) ? "codex" : "generic";
|
|
7597
7599
|
}
|