workpeg 0.151.0__tar.gz → 0.151.1__tar.gz
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.
- {workpeg-0.151.0/src/workpeg.egg-info → workpeg-0.151.1}/PKG-INFO +1 -1
- {workpeg-0.151.0 → workpeg-0.151.1}/pyproject.toml +1 -1
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/terminal.py +2 -2
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/devserve.py +5 -4
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/ai.js +0 -32
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/scaffold.js +12 -52
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/workpeg-runtime.js +4 -22
- {workpeg-0.151.0 → workpeg-0.151.1/src/workpeg.egg-info}/PKG-INFO +1 -1
- {workpeg-0.151.0 → workpeg-0.151.1}/LICENSE +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/MANIFEST.in +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/README.md +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/setup.cfg +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/__init__.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/auth.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/build.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/cdn.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/cli.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/config.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/context.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/create_new.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/doctor.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/project.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/run.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/runtime.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/sandbox/__init__.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/sandbox/docker_driver.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/sandbox/driver.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/submit.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/__init__.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/functions/Dockerfile +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/functions/LICENSE +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/functions/README.md +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/functions/app/__init__.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/functions/app/main.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/functions/requirements.txt +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/project/README.md +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/project/function/Dockerfile +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/project/function/app/__init__.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/project/function/app/main.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/project/function/requirements.txt +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/project/ui/main.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/templates/project/workpeg.json +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/__init__.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/actions.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/actions_manifest.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/app.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/build.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/calendar.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/compiler/__init__.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/compiler/ast_parser.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/compiler/ir.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/compiler/js_generator.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/create.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/dates.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/dev_refused_names.json +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/devmode.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/devsite.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/fake_cloud.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/minify.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/render_nodes.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/renderers_manifest.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/ai-concurrent-replies.md +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/ai-prompt-queue.md +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/ai-question-frame.md +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/ai-subagent-frame.md +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/editor.js +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/OFL.txt +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-italic-cyrillic-ext.af944491.woff2 +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-italic-cyrillic.88be6946.woff2 +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-italic-latin-ext.370a8962.woff2 +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-italic-latin.7611b95c.woff2 +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-italic-vietnamese.8dfcf303.woff2 +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-normal-cyrillic-ext.b7a545bb.woff2 +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-normal-cyrillic.6129fc85.woff2 +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-normal-latin-ext.58a6b173.woff2 +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-normal-latin.9b6f5ff4.woff2 +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-normal-vietnamese.f689f638.woff2 +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/icons.css.gz +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/overlay.js +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/pegment.css +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/scaffold.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/search_manifest.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/serve.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/skills_manifest.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/state.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/validators.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/watcher.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/widgets/__init__.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/widgets/base.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/widgets/canvas.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/widgets/display.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/widgets/fields.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/widgets/forms.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/widgets/futures.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/widgets/gestures.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/widgets/interactive.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/widgets/layout.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/widgets/pickers.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/utils.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg.egg-info/SOURCES.txt +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg.egg-info/dependency_links.txt +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg.egg-info/entry_points.txt +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg.egg-info/requires.txt +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg.egg-info/top_level.txt +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_auth.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_build.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_cdn.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_cdn_publish.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_changelog.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_changelog_guard.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_cli.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_config.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_context.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_create_new.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_doctor.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_project_create.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_release_script.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_run.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_runtime.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_submit.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_utils.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_version.py +0 -0
- {workpeg-0.151.0 → workpeg-0.151.1}/tests/test_watch_pipeline.py +0 -0
|
@@ -38,8 +38,8 @@ DEVELOPMENT_ONLY = (
|
|
|
38
38
|
#: ``--fake-cloud``), each sentence whole on a line of its own.
|
|
39
39
|
DEV_PAGE = (
|
|
40
40
|
DEVELOPMENT_ONLY,
|
|
41
|
-
"Your browser gives this page your Workpeg session, with
|
|
42
|
-
"this
|
|
41
|
+
"Your browser gives this page your Workpeg session, with everything "
|
|
42
|
+
"this account can reach.",
|
|
43
43
|
)
|
|
44
44
|
|
|
45
45
|
|
|
@@ -98,12 +98,13 @@ MAC_LISTENING = (
|
|
|
98
98
|
"is not affected.")
|
|
99
99
|
LOOPBACK_LISTENING = "Listening on 127.0.0.1:443, this computer only."
|
|
100
100
|
|
|
101
|
-
#:
|
|
102
|
-
#:
|
|
103
|
-
#:
|
|
101
|
+
#: The dashboard page where an owner or admin may press Install for
|
|
102
|
+
#: testing. Optional: a dev page has the access of the account signed in,
|
|
103
|
+
#: and the API makes its test tables in each business on first use.
|
|
104
104
|
INSTALL_PAGE = "https://developers.workpeg.com/dev-install/"
|
|
105
105
|
INSTALL_WHO = (
|
|
106
|
-
"(
|
|
106
|
+
"(optional: the API makes this peg's test tables in each business on "
|
|
107
|
+
"first use)")
|
|
107
108
|
|
|
108
109
|
#: The red banner, in the owner's words, printed before where it listens.
|
|
109
110
|
DEVELOPMENT_ONLY = terminal.DEV_PAGE
|
|
@@ -2524,7 +2524,6 @@
|
|
|
2524
2524
|
}
|
|
2525
2525
|
|
|
2526
2526
|
function toggleHistoryDrawer() {
|
|
2527
|
-
if (onDevHost()) return; // the list is a chats/ request; see mount
|
|
2528
2527
|
if (historyDrawerEl) { closeHistoryDrawer(); return; }
|
|
2529
2528
|
closeActivityDrawer(); // one drawer at a time (reference behavior)
|
|
2530
2529
|
closeSubagentPanel();
|
|
@@ -12703,41 +12702,11 @@
|
|
|
12703
12702
|
}
|
|
12704
12703
|
}
|
|
12705
12704
|
|
|
12706
|
-
// ── a dev install's page ───────────────────────────────────────────────
|
|
12707
|
-
// Any host under .dev.workpeg.com, the dev clause scaffold.js's
|
|
12708
|
-
// environmentLabel and onDevHost use. The API's dev gate refuses every
|
|
12709
|
-
// `chats/` call from such a page, and the dev page never drives the
|
|
12710
|
-
// person's assistant: a modified SDK there must not steer it. The runtime
|
|
12711
|
-
// still mounts this surface on any /chat route, so the chrome hiding its
|
|
12712
|
-
// entry does not stop a typed URL. Here the surface draws one fixed line
|
|
12713
|
-
// and asks the API nothing. The gate is what enforces it; this spares the
|
|
12714
|
-
// person a page of refusals. localhost is the local preview and keeps the
|
|
12715
|
-
// whole surface.
|
|
12716
|
-
var DEV_OFF_LINE = "Workpeg AI is off on a development page. This peg's " +
|
|
12717
|
-
"actions are offered in Workpeg AI in your workspace.";
|
|
12718
|
-
|
|
12719
|
-
function onDevHost() {
|
|
12720
|
-
try {
|
|
12721
|
-
var host = String(window.location.hostname || "").toLowerCase();
|
|
12722
|
-
return host.slice(-16) === ".dev.workpeg.com";
|
|
12723
|
-
} catch (e) { return false; }
|
|
12724
|
-
}
|
|
12725
|
-
|
|
12726
12705
|
// ── the runtime handoff ────────────────────────────────────────────────
|
|
12727
12706
|
// mount(host, ctx) — host is the reserved #workpeg-ai-root; ctx carries
|
|
12728
12707
|
// { businessId, chatId }. We render for ctx.chatId and take over.
|
|
12729
12708
|
function mount(host, ctx) {
|
|
12730
12709
|
if (!host) return;
|
|
12731
|
-
if (onDevHost()) {
|
|
12732
|
-
// Before anything that binds or fetches. The style sheet is this
|
|
12733
|
-
// file's own text (its one url() is a data: icon), so it requests
|
|
12734
|
-
// nothing. S.host stays unset, so the chrome's redraw doors (locale,
|
|
12735
|
-
// nav resync) have nothing to draw into either.
|
|
12736
|
-
injectStyles();
|
|
12737
|
-
host.textContent = "";
|
|
12738
|
-
host.appendChild(el("p", "wpai-dev-off", { text: DEV_OFF_LINE }));
|
|
12739
|
-
return;
|
|
12740
|
-
}
|
|
12741
12710
|
var biz = (ctx && ctx.businessId) || "";
|
|
12742
12711
|
var chatId = (ctx && ctx.chatId) || "";
|
|
12743
12712
|
var key = chatId || "";
|
|
@@ -13545,7 +13514,6 @@
|
|
|
13545
13514
|
// The action's confirm sentence: what it will do, in its own words. The
|
|
13546
13515
|
// same untrusted-text treatment as the title, one step quieter.
|
|
13547
13516
|
R + " .wpai-approval-request__confirm{unicode-bidi:isolate;font-size:var(--text-body-sm-size,12px);line-height:16px;color:var(--color-text-secondary,var(--color-text-primary));overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}",
|
|
13548
|
-
R + " .wpai-dev-off{margin:24px 16px;font-size:var(--text-body-md-size,14px);line-height:20px;color:var(--color-text-secondary,var(--color-text-primary))}",
|
|
13549
13517
|
// Quieter than the title and cut off from it by a rule, because it is
|
|
13550
13518
|
// not part of what the action says it does — it is context about how the
|
|
13551
13519
|
// action came to be proposed. `isolate` because it interpolates a tool
|
|
@@ -1164,7 +1164,6 @@
|
|
|
1164
1164
|
function renderSearchTabs() {
|
|
1165
1165
|
var tabs = searchRefs.tabs;
|
|
1166
1166
|
tabs.innerHTML = "";
|
|
1167
|
-
if (onDevHost()) return; // nothing to filter, and no Workpeg AI tab
|
|
1168
1167
|
SEARCH_FILTERS.forEach(function (f) {
|
|
1169
1168
|
var pillEl = searchPill(t(f.label), f.id === searchSt.filter,
|
|
1170
1169
|
{ "data-filter": f.id });
|
|
@@ -1200,11 +1199,6 @@
|
|
|
1200
1199
|
function renderSearchBody() {
|
|
1201
1200
|
var sections = searchRefs.sections;
|
|
1202
1201
|
sections.innerHTML = "";
|
|
1203
|
-
if (onDevHost()) {
|
|
1204
|
-
sections.appendChild(searchMessage(
|
|
1205
|
-
t("Search is off on a development page.")));
|
|
1206
|
-
return;
|
|
1207
|
-
}
|
|
1208
1202
|
var f = searchSt.filter;
|
|
1209
1203
|
if (f === "settings") {
|
|
1210
1204
|
sections.appendChild(searchMessage("No settings yet"));
|
|
@@ -1269,7 +1263,6 @@
|
|
|
1269
1263
|
|
|
1270
1264
|
function runSearch(query) {
|
|
1271
1265
|
var seq = ++searchSt.seq;
|
|
1272
|
-
if (onDevHost()) { renderSearchModal(); return; }
|
|
1273
1266
|
if (!S.businessId) { // no business context to search
|
|
1274
1267
|
searchSt.loading = false;
|
|
1275
1268
|
searchSt.error = true;
|
|
@@ -1841,11 +1834,6 @@
|
|
|
1841
1834
|
storeBtn.classList.add("wps-set-peg-store");
|
|
1842
1835
|
panel.appendChild(list);
|
|
1843
1836
|
panel.appendChild(storeBtn);
|
|
1844
|
-
if (onDevHost()) {
|
|
1845
|
-
list.appendChild(el("p", "wps-set-empty", {
|
|
1846
|
-
text: t("Apps are not listed on a development page.") }));
|
|
1847
|
-
return;
|
|
1848
|
-
}
|
|
1849
1837
|
|
|
1850
1838
|
var paint = function () {
|
|
1851
1839
|
list.textContent = "";
|
|
@@ -2918,14 +2906,9 @@
|
|
|
2918
2906
|
});
|
|
2919
2907
|
var input = field.input;
|
|
2920
2908
|
var search = field.el;
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
} else {
|
|
2925
|
-
listWrap.appendChild(pegs ? listEl : appsSkeleton());
|
|
2926
|
-
if (pegs) renderAppList(listEl, "");
|
|
2927
|
-
}
|
|
2928
|
-
if (!pegs && !pegsLoading && !onDevHost()) {
|
|
2909
|
+
listWrap.appendChild(pegs ? listEl : appsSkeleton());
|
|
2910
|
+
if (pegs) renderAppList(listEl, "");
|
|
2911
|
+
if (!pegs && !pegsLoading) {
|
|
2929
2912
|
pegsLoading = true;
|
|
2930
2913
|
json("GET", "businesses/" + encodeURIComponent(S.businessId) + "/pegs/")
|
|
2931
2914
|
.then(function (list) {
|
|
@@ -2990,8 +2973,7 @@
|
|
|
2990
2973
|
// Gated by STYLES on .pg-chat-route.wpai-chat-open (the same classes the
|
|
2991
2974
|
// runtime + ai.js already flip), so a scaffold.js CDN update delivers it
|
|
2992
2975
|
// out of band — no pegment var, no rebuild.
|
|
2993
|
-
var
|
|
2994
|
-
var newChat = dev ? null : el("div", "wps-newchat", { children: [
|
|
2976
|
+
var newChat = el("div", "wps-newchat", { children: [
|
|
2995
2977
|
topAction("edit", t("New chat"), function () {
|
|
2996
2978
|
navigate(bizHref("/chats/new"));
|
|
2997
2979
|
})] });
|
|
@@ -3011,14 +2993,11 @@
|
|
|
3011
2993
|
e.stopPropagation();
|
|
3012
2994
|
openPanel(appsBtn, appsPanel(), "bottom");
|
|
3013
2995
|
});
|
|
3014
|
-
var ai =
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
})] });
|
|
3020
|
-
ai.style.cssText = "display:var(--wp-nav-ai, flex)";
|
|
3021
|
-
}
|
|
2996
|
+
var ai = el("div", "", { children: [
|
|
2997
|
+
topAction("sparkles", "Workpeg AI", function () {
|
|
2998
|
+
navigate(bizHref("/chats/new"));
|
|
2999
|
+
})] });
|
|
3000
|
+
ai.style.cssText = "display:var(--wp-nav-ai, flex)";
|
|
3022
3001
|
|
|
3023
3002
|
var bar = el("div", "pg-container pg-container-topnav wps-topnav", {
|
|
3024
3003
|
children: [
|
|
@@ -3176,9 +3155,8 @@
|
|
|
3176
3155
|
// screens.
|
|
3177
3156
|
var mid = el("div", "wps-side-mid", { children: [slots.nav] });
|
|
3178
3157
|
var foot = el("div", "wps-foot");
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
: navRow("sparkles", "Workpeg AI", bizHref("/chats/new"), "wps-ai-row");
|
|
3158
|
+
var aiRow = navRow("sparkles", "Workpeg AI", bizHref("/chats/new"),
|
|
3159
|
+
"wps-ai-row");
|
|
3182
3160
|
// On any /chats/* route this row IS the active surface (styled via
|
|
3183
3161
|
// .pg-chat-route in STYLES). A click must not reset an open conversation
|
|
3184
3162
|
// back to /chats/new — preventDefault so the runtime's link router skips
|
|
@@ -3694,21 +3672,6 @@
|
|
|
3694
3672
|
return "";
|
|
3695
3673
|
}
|
|
3696
3674
|
|
|
3697
|
-
// A dev install's page: any host under .dev.workpeg.com, the dev clause of
|
|
3698
|
-
// environmentLabel's test. The API's dev gate refuses search, the peg list,
|
|
3699
|
-
// announcements, Sign in with Workpeg and Workpeg AI to such a page, so the
|
|
3700
|
-
// chrome does not ask: those surfaces show a fixed line or are not drawn.
|
|
3701
|
-
// The gate is what enforces it; this only spares the person a refusal.
|
|
3702
|
-
// Wider than the runtime's one-label DEV_HOST on purpose, so the chrome is
|
|
3703
|
-
// quiet on every host the gate refuses. localhost and 127.0.0.1 are the
|
|
3704
|
-
// local preview, not a dev install, and keep every surface.
|
|
3705
|
-
function onDevHost() {
|
|
3706
|
-
try {
|
|
3707
|
-
var host = String(window.location.hostname || "").toLowerCase();
|
|
3708
|
-
return host.slice(-16) === ".dev.workpeg.com";
|
|
3709
|
-
} catch (e) { return false; }
|
|
3710
|
-
}
|
|
3711
|
-
|
|
3712
3675
|
function buildEnvironmentBadge() {
|
|
3713
3676
|
var label = environmentLabel();
|
|
3714
3677
|
if (!label) return null;
|
|
@@ -3834,7 +3797,6 @@
|
|
|
3834
3797
|
// break the page, and a marketing message least of all.
|
|
3835
3798
|
function syncAnnouncements() {
|
|
3836
3799
|
if (!S.businessId) return; // not inside a business — no audience
|
|
3837
|
-
if (onDevHost()) return; // the dev gate refuses them anyway
|
|
3838
3800
|
// Read both ONCE and send exactly what the key was built from. Asking
|
|
3839
3801
|
// twice would let a key say one page and the request ask about another,
|
|
3840
3802
|
// and the mismatch would only ever show up as a banner that will not go
|
|
@@ -5531,9 +5493,7 @@
|
|
|
5531
5493
|
// of this file just grew settle paths for.
|
|
5532
5494
|
ssoClose();
|
|
5533
5495
|
ssoReturns = false;
|
|
5534
|
-
|
|
5535
|
-
// and an app's ask settles with nothing, as with no request at all.
|
|
5536
|
-
if (!requestId || onDevHost()) { if (resolve) resolve(null); return; }
|
|
5496
|
+
if (!requestId) { if (resolve) resolve(null); return; }
|
|
5537
5497
|
ssoReturns = !!resolve;
|
|
5538
5498
|
ssoResolve = resolve || null;
|
|
5539
5499
|
// Which ask this GET belongs to. Its reply draws the chooser, and now it
|
|
@@ -511,12 +511,7 @@
|
|
|
511
511
|
return Workpeg._ensureFreshSession().then(function () {
|
|
512
512
|
return Workpeg._request("GET", url, undefined, {}, true);
|
|
513
513
|
}).then(function (list) {
|
|
514
|
-
|
|
515
|
-
// On a dev install's page the API lists only the businesses where this
|
|
516
|
-
// peg is installed for testing, so none means none: say so in place of
|
|
517
|
-
// a page with no business to open.
|
|
518
|
-
if (!first) devLandingEmpty();
|
|
519
|
-
return first;
|
|
514
|
+
return (list && list[0] && list[0].uuid) || "";
|
|
520
515
|
});
|
|
521
516
|
};
|
|
522
517
|
|
|
@@ -860,8 +855,8 @@
|
|
|
860
855
|
//
|
|
861
856
|
// https://<label>.dev.workpeg.com is a dev install: `workpeg ui serve --dev`
|
|
862
857
|
// answers it from the developer's own computer, and the browser hands that
|
|
863
|
-
// page the signed-in account's whole Workpeg session, with
|
|
864
|
-
//
|
|
858
|
+
// page the signed-in account's whole Workpeg session, with everything that
|
|
859
|
+
// account can reach. So once users/me says the session is live, the runtime says
|
|
865
860
|
// that, and that the account is for development only, not the account the
|
|
866
861
|
// person uses for their company. It is the one control between a company
|
|
867
862
|
// session and a build the person did not review.
|
|
@@ -920,7 +915,7 @@
|
|
|
920
915
|
bar.appendChild(close);
|
|
921
916
|
var words = mk("p", "",
|
|
922
917
|
"This page runs from your own computer, and your browser gives it " +
|
|
923
|
-
"your Workpeg session, with
|
|
918
|
+
"your Workpeg session, with everything this account can reach. This " +
|
|
924
919
|
"account is for development only, not the account you use for " +
|
|
925
920
|
"your company.");
|
|
926
921
|
words.style.margin = "0 0 20px";
|
|
@@ -1043,19 +1038,6 @@
|
|
|
1043
1038
|
} catch (e) { /* the page stays as it is */ }
|
|
1044
1039
|
}
|
|
1045
1040
|
|
|
1046
|
-
// wpFirstBusiness found no business. On a dev page that means this peg is
|
|
1047
|
-
// installed for testing in none of this person's businesses.
|
|
1048
|
-
function devLandingEmpty() {
|
|
1049
|
-
try {
|
|
1050
|
-
if (!onDevHost()) return;
|
|
1051
|
-
var biz = Workpeg._businessIdFromPath();
|
|
1052
|
-
var a = devAnswer(biz);
|
|
1053
|
-
if (a) a[1] = DEV_MISSING;
|
|
1054
|
-
else devAnswers.push([biz, DEV_MISSING]);
|
|
1055
|
-
Workpeg.render();
|
|
1056
|
-
} catch (e) { /* the landing stays as it is */ }
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
1041
|
// The notice itself: fixed words, created nodes and textContent only.
|
|
1060
1042
|
var DEV_INSTALL_PAGE = "https://developers.workpeg.com/dev-install/";
|
|
1061
1043
|
var DEV_LABEL = /^[a-z][a-z0-9-]{1,61}[a-z0-9]$/;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-italic-latin.7611b95c.woff2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{workpeg-0.151.0 → workpeg-0.151.1}/src/workpeg/ui/runtime/fonts/geist-normal-latin.9b6f5ff4.woff2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|