@researai/deepscientist 1.5.9 → 1.5.11
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 +107 -94
- package/assets/branding/connector-qq.png +0 -0
- package/assets/branding/connector-rokid.png +0 -0
- package/assets/branding/connector-weixin.png +0 -0
- package/assets/branding/projects.png +0 -0
- package/bin/ds.js +168 -9
- package/docs/assets/branding/projects.png +0 -0
- package/docs/en/00_QUICK_START.md +308 -70
- package/docs/en/01_SETTINGS_REFERENCE.md +3 -0
- package/docs/en/02_START_RESEARCH_GUIDE.md +112 -0
- package/docs/en/04_LINGZHU_CONNECTOR_GUIDE.md +62 -179
- package/docs/en/09_DOCTOR.md +41 -5
- package/docs/en/10_WEIXIN_CONNECTOR_GUIDE.md +137 -0
- package/docs/en/11_LICENSE_AND_RISK.md +256 -0
- package/docs/en/12_GUIDED_WORKFLOW_TOUR.md +427 -0
- package/docs/en/13_CORE_ARCHITECTURE_GUIDE.md +297 -0
- package/docs/en/14_PROMPT_SKILLS_AND_MCP_GUIDE.md +506 -0
- package/docs/en/99_ACKNOWLEDGEMENTS.md +4 -1
- package/docs/en/README.md +79 -0
- package/docs/images/lingzhu/rokid-agent-platform-create.png +0 -0
- package/docs/images/weixin/weixin-plugin-entry.png +0 -0
- package/docs/images/weixin/weixin-plugin-entry.svg +33 -0
- package/docs/images/weixin/weixin-qr-confirm.svg +30 -0
- package/docs/images/weixin/weixin-quest-media-flow.svg +44 -0
- package/docs/images/weixin/weixin-settings-bind.svg +57 -0
- package/docs/zh/00_QUICK_START.md +315 -74
- package/docs/zh/01_SETTINGS_REFERENCE.md +3 -0
- package/docs/zh/02_START_RESEARCH_GUIDE.md +112 -0
- package/docs/zh/04_LINGZHU_CONNECTOR_GUIDE.md +62 -193
- package/docs/zh/09_DOCTOR.md +41 -5
- package/docs/zh/10_WEIXIN_CONNECTOR_GUIDE.md +144 -0
- package/docs/zh/11_LICENSE_AND_RISK.md +256 -0
- package/docs/zh/12_GUIDED_WORKFLOW_TOUR.md +423 -0
- package/docs/zh/13_CORE_ARCHITECTURE_GUIDE.md +296 -0
- package/docs/zh/14_PROMPT_SKILLS_AND_MCP_GUIDE.md +506 -0
- package/docs/zh/99_ACKNOWLEDGEMENTS.md +4 -1
- package/docs/zh/README.md +126 -0
- package/install.sh +0 -34
- package/package.json +2 -2
- package/pyproject.toml +1 -1
- package/src/deepscientist/__init__.py +1 -1
- package/src/deepscientist/annotations.py +343 -0
- package/src/deepscientist/artifact/arxiv.py +484 -37
- package/src/deepscientist/artifact/service.py +574 -108
- package/src/deepscientist/arxiv_library.py +275 -0
- package/src/deepscientist/bash_exec/service.py +9 -0
- package/src/deepscientist/bridges/builtins.py +2 -0
- package/src/deepscientist/bridges/connectors.py +447 -0
- package/src/deepscientist/channels/__init__.py +2 -0
- package/src/deepscientist/channels/builtins.py +3 -1
- package/src/deepscientist/channels/qq.py +1 -1
- package/src/deepscientist/channels/qq_gateway.py +1 -1
- package/src/deepscientist/channels/relay.py +7 -1
- package/src/deepscientist/channels/weixin.py +59 -0
- package/src/deepscientist/channels/weixin_ilink.py +317 -0
- package/src/deepscientist/config/models.py +22 -2
- package/src/deepscientist/config/service.py +431 -60
- package/src/deepscientist/connector/__init__.py +4 -0
- package/src/deepscientist/connector/connector_profiles.py +481 -0
- package/src/deepscientist/connector/lingzhu_support.py +668 -0
- package/src/deepscientist/connector/qq_profiles.py +206 -0
- package/src/deepscientist/connector/weixin_support.py +663 -0
- package/src/deepscientist/connector_profiles.py +1 -374
- package/src/deepscientist/connector_runtime.py +2 -0
- package/src/deepscientist/daemon/api/handlers.py +165 -5
- package/src/deepscientist/daemon/api/router.py +13 -1
- package/src/deepscientist/daemon/app.py +1130 -61
- package/src/deepscientist/doctor.py +5 -2
- package/src/deepscientist/gitops/diff.py +120 -29
- package/src/deepscientist/lingzhu_support.py +1 -182
- package/src/deepscientist/mcp/server.py +11 -4
- package/src/deepscientist/prompts/builder.py +15 -0
- package/src/deepscientist/qq_profiles.py +1 -196
- package/src/deepscientist/quest/node_traces.py +23 -0
- package/src/deepscientist/quest/service.py +112 -43
- package/src/deepscientist/quest/stage_views.py +71 -5
- package/src/deepscientist/runners/codex.py +55 -3
- package/src/deepscientist/weixin_support.py +1 -0
- package/src/prompts/connectors/lingzhu.md +3 -1
- package/src/prompts/connectors/weixin.md +230 -0
- package/src/prompts/system.md +2 -0
- package/src/tui/package.json +1 -1
- package/src/ui/dist/assets/{AiManusChatView-BKZ103sn.js → AiManusChatView-D0mTXG4-.js} +156 -48
- package/src/ui/dist/assets/{AnalysisPlugin-mTTzGAlK.js → AnalysisPlugin-Db0cTXxm.js} +1 -1
- package/src/ui/dist/assets/{CliPlugin-BH58n3GY.js → CliPlugin-DrV8je02.js} +164 -9
- package/src/ui/dist/assets/{CodeEditorPlugin-BKGRUH7e.js → CodeEditorPlugin-QXMSCH71.js} +8 -8
- package/src/ui/dist/assets/{CodeViewerPlugin-BMADwFWJ.js → CodeViewerPlugin-7hhtWj_E.js} +5 -5
- package/src/ui/dist/assets/{DocViewerPlugin-ZOnTIHLN.js → DocViewerPlugin-BWMSnRJe.js} +3 -3
- package/src/ui/dist/assets/{GitDiffViewerPlugin-CQ7h1Djm.js → GitDiffViewerPlugin-7J9h9Vy_.js} +20 -21
- package/src/ui/dist/assets/{ImageViewerPlugin-GVS5MsnC.js → ImageViewerPlugin-CHJl_0lr.js} +5 -5
- package/src/ui/dist/assets/{LabCopilotPanel-BZNv1JML.js → LabCopilotPanel-1qSow1es.js} +11 -11
- package/src/ui/dist/assets/{LabPlugin-TWcJsdQA.js → LabPlugin-eQpPPCEp.js} +2 -1
- package/src/ui/dist/assets/{LatexPlugin-DIjHiR2x.js → LatexPlugin-BwRfi89Z.js} +7 -7
- package/src/ui/dist/assets/{MarkdownViewerPlugin-D3ooGAH0.js → MarkdownViewerPlugin-836PVQWV.js} +4 -4
- package/src/ui/dist/assets/{MarketplacePlugin-DfVfE9hN.js → MarketplacePlugin-C2y_556i.js} +3 -3
- package/src/ui/dist/assets/{NotebookEditor-s8JhzuX1.js → NotebookEditor-BRzJbGsn.js} +12 -12
- package/src/ui/dist/assets/{NotebookEditor-DDl0_Mc0.js → NotebookEditor-DIX7Mlzu.js} +1 -1
- package/src/ui/dist/assets/{PdfLoader-C2Sf6SJM.js → PdfLoader-DzRaTAlq.js} +14 -7
- package/src/ui/dist/assets/{PdfMarkdownPlugin-CXFLoIsa.js → PdfMarkdownPlugin-DZUfIUnp.js} +73 -6
- package/src/ui/dist/assets/{PdfViewerPlugin-BYTmz2fK.js → PdfViewerPlugin-BwtICzue.js} +103 -34
- package/src/ui/dist/assets/PdfViewerPlugin-DQ11QcSf.css +3627 -0
- package/src/ui/dist/assets/{SearchPlugin-CjWBI1O9.js → SearchPlugin-DHeIAMsx.js} +1 -1
- package/src/ui/dist/assets/{TextViewerPlugin-DdOBU3-S.js → TextViewerPlugin-C3tCmFox.js} +5 -4
- package/src/ui/dist/assets/{VNCViewer-B8HGgLwQ.js → VNCViewer-CQsKVm3t.js} +10 -10
- package/src/ui/dist/assets/bot-BEA2vWuK.js +21 -0
- package/src/ui/dist/assets/branding/logo-rokid.png +0 -0
- package/src/ui/dist/assets/browser-BAcuE0Xj.js +2895 -0
- package/src/ui/dist/assets/{code-BWAY76JP.js → code-XfbSR8K2.js} +1 -1
- package/src/ui/dist/assets/{file-content-C1NwU5oQ.js → file-content-BjxNaIfy.js} +1 -1
- package/src/ui/dist/assets/{file-diff-panel-CywslwB9.js → file-diff-panel-D_lLVQk0.js} +1 -1
- package/src/ui/dist/assets/{file-socket-B4kzuOBQ.js → file-socket-D9x_5vlY.js} +1 -1
- package/src/ui/dist/assets/{image-D-NZM-6P.js → image-BhWT33W1.js} +1 -1
- package/src/ui/dist/assets/{index-DHZJ_0TI.js → index--c4iXtuy.js} +12 -12
- package/src/ui/dist/assets/{index-BdM1Gqfr.js → index-BDxipwrC.js} +2 -2
- package/src/ui/dist/assets/{index-7Chr1g9c.js → index-DZTZ8mWP.js} +14221 -9523
- package/src/ui/dist/assets/{index-DGIYDuTv.css → index-Dqj-Mjb4.css} +2 -13
- package/src/ui/dist/assets/index-PJbSbPTy.js +25 -0
- package/src/ui/dist/assets/{monaco-Cb2uKKe6.js → monaco-K8izTGgo.js} +1 -1
- package/src/ui/dist/assets/{pdf-effect-queue-DSw_D3RV.js → pdf-effect-queue-DfBors6y.js} +16 -1
- package/src/ui/dist/assets/pdf.worker.min-yatZIOMy.mjs +21 -0
- package/src/ui/dist/assets/{popover-Bg72DGgT.js → popover-yFK1J4fL.js} +1 -1
- package/src/ui/dist/assets/{project-sync-Ce_0BglY.js → project-sync-PENr2zcz.js} +1 -74
- package/src/ui/dist/assets/select-CAbJDfYv.js +1690 -0
- package/src/ui/dist/assets/{sigma-DPaACDrh.js → sigma-DEuYJqTl.js} +1 -1
- package/src/ui/dist/assets/{index-CDxNdQdz.js → square-check-big-omoSUmcd.js} +2 -13
- package/src/ui/dist/assets/{trash-BvTgE5__.js → trash--F119N47.js} +1 -1
- package/src/ui/dist/assets/{useCliAccess-CgPeMOwP.js → useCliAccess-D31UR23I.js} +1 -1
- package/src/ui/dist/assets/{useFileDiffOverlay-xPhz7P5B.js → useFileDiffOverlay-BH6KcMzq.js} +1 -1
- package/src/ui/dist/assets/{wrap-text-C3Un3YQr.js → wrap-text-CZ613PM5.js} +1 -1
- package/src/ui/dist/assets/{zoom-out-BgxLa0Ri.js → zoom-out-BgDLAv3z.js} +1 -1
- package/src/ui/dist/index.html +2 -2
- package/src/ui/dist/assets/AutoFigurePlugin-BGxN8Umr.css +0 -3056
- package/src/ui/dist/assets/AutoFigurePlugin-C_wWw4AP.js +0 -8149
- package/src/ui/dist/assets/PdfViewerPlugin-BJXtIwj_.css +0 -260
- package/src/ui/dist/assets/Stepper-B0Dd8CxK.js +0 -158
- package/src/ui/dist/assets/bibtex-CKaefIN2.js +0 -189
- package/src/ui/dist/assets/file-utils-H2fjA46S.js +0 -109
- package/src/ui/dist/assets/message-square-BzjLiXir.js +0 -16
- package/src/ui/dist/assets/pdfjs-DU1YE8WO.js +0 -3
- package/src/ui/dist/assets/tooltip-C_mA6R0w.js +0 -108
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { S as SquareCheckBig } from './
|
|
5
|
-
import { w as wrapEnvelope, g as getCliClientId, c as acquireCliSocket, n as nextSeq, d as unwrapPayload, a as useCliSocket, e as buildDefaultSessionId, f as buildConversationSessionId, u as useCliAccess } from './useCliAccess-
|
|
6
|
-
import
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-PJbSbPTy.js","assets/index-DZTZ8mWP.js","assets/index-Dqj-Mjb4.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { w as createLucideIcon, cd as useMotionValue, ce as useIsomorphicLayoutEffect, cf as cancelFrame_1, cg as frame_1, ch as collectMotionValues_1, ci as transform_1, cj as useConstant, r as reactExports, ck as MotionConfigContext, cl as attachFollow_1, cm as isMotionValue_1, cn as useInView, j as jsxRuntimeExports, d as Check, b as cn, aO as Button, u as useI18n, bH as useCliStore, _ as __vitePreload, co as ChevronRight, g as RefreshCw, b9 as Plus, b4 as ScrollArea, cp as ChevronLeft, cq as GlareHover, cr as Input, l as Search, k as FileText, cs as Folder, ac as Terminal, N as Sparkles, ba as Dialog, bb as DialogContent, bc as DialogHeader, bd as DialogTitle, ct as DialogDescription, be as DialogFooter, cu as useTerminal, cv as uploadCliFile, bZ as Textarea, cw as CircleCheck, Q as create, cx as persist, o as useToast, cy as unbindCliServer, O as ConnectionState, cz as updateCliSession, cA as SpotlightCard, bT as DropdownMenu, bU as DropdownMenuTrigger, bV as DropdownMenuContent, bX as DropdownMenuItem, a2 as Play, cB as DropdownMenuSeparator, X, cC as Pencil, P as EnhancedTerminal, cD as listCliSessions, cE as FadeContent, t as apiClient, cF as getMyToken, c as copyToClipboard, cG as Bell, c9 as Trash2, cH as getCliServerMetrics, cI as refreshCliServerStatus, cJ as ResponsiveContainer, cK as LineChart, cL as XAxis, cM as YAxis, cN as Tooltip, cO as Line, cP as getCliHealth, cQ as Cpu, cR as listCliFiles, cS as readCliFile, cT as writeCliFile, cU as deleteCliFile, cV as axios, a3 as Download, n as useTabsStore, aM as getPluginIdFromExtension, v as BUILTIN_PLUGINS, aL as getPluginIdFromMimeType, cW as downloadCliFile, cX as buildCliFileId, cY as toCliResourcePath, cZ as Upload, L as LoaderCircle, c_ as listCliLogs, c$ as getCliLogObject, d0 as listCliTasks, T as TriangleAlert, d1 as listCliFindings, d2 as listCliMethods, d3 as createCliMethod, bM as useMaxEntitlement, d4 as Noise } from './index-DZTZ8mWP.js';
|
|
3
|
+
import { e as Server, S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem, L as Layers, n as normalizePath, f as formatFileSize, s as splitPath, j as joinPath, g as findSensitiveMarker, D as DOWNLOAD_MAX_BYTES, T as TEXT_PREVIEW_MAX_BYTES } from './select-CAbJDfYv.js';
|
|
4
|
+
import { S as SquareCheckBig } from './square-check-big-omoSUmcd.js';
|
|
5
|
+
import { w as wrapEnvelope, g as getCliClientId, c as acquireCliSocket, n as nextSeq, d as unwrapPayload, a as useCliSocket, e as buildDefaultSessionId, f as buildConversationSessionId, u as useCliAccess } from './useCliAccess-D31UR23I.js';
|
|
6
|
+
import './index-PJbSbPTy.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @license lucide-react v0.511.0 - ISC
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the ISC license.
|
|
12
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
const __iconNode$9 = [
|
|
17
|
+
["path", { d: "M12 13v8", key: "1l5pq0" }],
|
|
18
|
+
["path", { d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242", key: "1pljnt" }],
|
|
19
|
+
["path", { d: "m8 17 4-4 4 4", key: "1quai1" }]
|
|
20
|
+
];
|
|
21
|
+
const CloudUpload = createLucideIcon("cloud-upload", __iconNode$9);
|
|
7
22
|
|
|
8
23
|
/**
|
|
9
24
|
* @license lucide-react v0.511.0 - ISC
|
|
@@ -365,6 +380,146 @@ function CountUp({
|
|
|
365
380
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className, ref });
|
|
366
381
|
}
|
|
367
382
|
|
|
383
|
+
function Step({ children }) {
|
|
384
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children });
|
|
385
|
+
}
|
|
386
|
+
const clampStep = (step, totalSteps) => {
|
|
387
|
+
if (totalSteps <= 0) return 1;
|
|
388
|
+
return Math.min(Math.max(step, 1), totalSteps);
|
|
389
|
+
};
|
|
390
|
+
function Stepper({
|
|
391
|
+
initialStep = 1,
|
|
392
|
+
onStepChange,
|
|
393
|
+
onFinalStepCompleted,
|
|
394
|
+
backButtonText = "Previous",
|
|
395
|
+
nextButtonText = "Next",
|
|
396
|
+
nextDisabled,
|
|
397
|
+
backDisabled,
|
|
398
|
+
contentAnimation = false,
|
|
399
|
+
className,
|
|
400
|
+
children
|
|
401
|
+
}) {
|
|
402
|
+
const steps = reactExports.useMemo(
|
|
403
|
+
() => reactExports.Children.toArray(children).filter((child) => reactExports.isValidElement(child)),
|
|
404
|
+
[children]
|
|
405
|
+
);
|
|
406
|
+
const totalSteps = steps.length;
|
|
407
|
+
const [currentStep, setCurrentStep] = reactExports.useState(() => clampStep(initialStep, totalSteps));
|
|
408
|
+
const previousStepRef = reactExports.useRef(currentStep);
|
|
409
|
+
reactExports.useEffect(() => {
|
|
410
|
+
setCurrentStep(clampStep(initialStep, totalSteps));
|
|
411
|
+
}, [initialStep, totalSteps]);
|
|
412
|
+
reactExports.useEffect(() => {
|
|
413
|
+
onStepChange?.(currentStep);
|
|
414
|
+
}, [currentStep, onStepChange]);
|
|
415
|
+
reactExports.useEffect(() => {
|
|
416
|
+
previousStepRef.current = currentStep;
|
|
417
|
+
}, [currentStep]);
|
|
418
|
+
const resolveDisabled = (value, step, total) => {
|
|
419
|
+
if (typeof value === "function") return value(step, total);
|
|
420
|
+
return Boolean(value);
|
|
421
|
+
};
|
|
422
|
+
const isFinalStep = currentStep >= totalSteps;
|
|
423
|
+
const isNextDisabled = resolveDisabled(nextDisabled, currentStep, totalSteps);
|
|
424
|
+
const isBackDisabled = resolveDisabled(backDisabled, currentStep, totalSteps);
|
|
425
|
+
const canGoBack = currentStep > 1 && !isBackDisabled;
|
|
426
|
+
const nextLabel = typeof nextButtonText === "function" ? nextButtonText(currentStep, totalSteps) : nextButtonText;
|
|
427
|
+
const handleNext = () => {
|
|
428
|
+
if (isFinalStep) {
|
|
429
|
+
if (!isNextDisabled) {
|
|
430
|
+
onFinalStepCompleted?.();
|
|
431
|
+
}
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
if (isNextDisabled) return;
|
|
435
|
+
setCurrentStep((prev) => clampStep(prev + 1, totalSteps));
|
|
436
|
+
};
|
|
437
|
+
const handleBack = () => {
|
|
438
|
+
if (!canGoBack) return;
|
|
439
|
+
setCurrentStep((prev) => clampStep(prev - 1, totalSteps));
|
|
440
|
+
};
|
|
441
|
+
if (totalSteps === 0) {
|
|
442
|
+
return null;
|
|
443
|
+
}
|
|
444
|
+
const activeStep = steps[currentStep - 1];
|
|
445
|
+
const activeTitle = activeStep?.props?.title ?? `Step ${currentStep}`;
|
|
446
|
+
const activeDescription = activeStep?.props?.description;
|
|
447
|
+
const stepDirection = currentStep >= previousStepRef.current ? "forward" : "back";
|
|
448
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("stepper-root flex flex-col gap-5", className), children: [
|
|
449
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "stepper-header flex flex-wrap items-center justify-between gap-3", children: [
|
|
450
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-wrap items-center gap-3", children: steps.map((step, index) => {
|
|
451
|
+
const stepNumber = index + 1;
|
|
452
|
+
const isComplete = stepNumber < currentStep;
|
|
453
|
+
const isActive = stepNumber === currentStep;
|
|
454
|
+
const title = step.props.title ?? `Step ${stepNumber}`;
|
|
455
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
456
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
457
|
+
"div",
|
|
458
|
+
{
|
|
459
|
+
className: cn(
|
|
460
|
+
"stepper-dot flex h-8 w-8 items-center justify-center rounded-full border text-xs font-semibold transition",
|
|
461
|
+
isComplete && "border-transparent bg-[var(--cli-accent-olive)] text-[var(--cli-ink-0)]",
|
|
462
|
+
isActive && "border-[var(--cli-accent-olive)] bg-white/90 text-[var(--cli-ink-1)]",
|
|
463
|
+
!isComplete && !isActive && "border-white/60 bg-white/60 text-[var(--cli-muted-1)]"
|
|
464
|
+
),
|
|
465
|
+
"data-state": isComplete ? "complete" : isActive ? "active" : "upcoming",
|
|
466
|
+
children: isComplete ? /* @__PURE__ */ jsxRuntimeExports.jsx(Check, { className: "h-4 w-4" }) : stepNumber
|
|
467
|
+
}
|
|
468
|
+
),
|
|
469
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col", children: [
|
|
470
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-[10px] uppercase tracking-wide text-[var(--cli-muted-1)]", children: [
|
|
471
|
+
"Step ",
|
|
472
|
+
stepNumber
|
|
473
|
+
] }),
|
|
474
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
475
|
+
"span",
|
|
476
|
+
{
|
|
477
|
+
className: cn(
|
|
478
|
+
"text-xs font-semibold",
|
|
479
|
+
isActive ? "text-[var(--cli-ink-1)]" : "text-[var(--cli-muted-1)]"
|
|
480
|
+
),
|
|
481
|
+
children: title
|
|
482
|
+
}
|
|
483
|
+
)
|
|
484
|
+
] }),
|
|
485
|
+
index < totalSteps - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-px w-8 bg-white/60", "aria-hidden": "true" }) : null
|
|
486
|
+
] }, `${title}-${stepNumber}`);
|
|
487
|
+
}) }),
|
|
488
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rounded-full border border-white/50 bg-white/80 px-3 py-1 text-[10px] uppercase tracking-wide text-[var(--cli-muted-1)]", children: [
|
|
489
|
+
currentStep,
|
|
490
|
+
" / ",
|
|
491
|
+
totalSteps
|
|
492
|
+
] })
|
|
493
|
+
] }),
|
|
494
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
495
|
+
"div",
|
|
496
|
+
{
|
|
497
|
+
className: "stepper-content rounded-xl border border-white/40 bg-white/80 p-4",
|
|
498
|
+
"data-step": currentStep,
|
|
499
|
+
"data-direction": stepDirection,
|
|
500
|
+
children: [
|
|
501
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
502
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
503
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm font-semibold text-[var(--cli-ink-1)]", children: activeTitle }),
|
|
504
|
+
activeDescription ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-[var(--cli-muted-1)]", children: activeDescription }) : null
|
|
505
|
+
] }),
|
|
506
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "rounded-full border border-white/60 bg-white/70 px-2 py-1 text-[10px] uppercase tracking-wide text-[var(--cli-muted-1)]", children: [
|
|
507
|
+
"Step ",
|
|
508
|
+
currentStep
|
|
509
|
+
] })
|
|
510
|
+
] }),
|
|
511
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-4", children: activeStep })
|
|
512
|
+
]
|
|
513
|
+
},
|
|
514
|
+
contentAnimation ? `step-${currentStep}` : "step-static"
|
|
515
|
+
),
|
|
516
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "stepper-actions flex flex-wrap items-center justify-between gap-3", children: [
|
|
517
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "secondary", onClick: handleBack, disabled: !canGoBack, children: backButtonText }),
|
|
518
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: handleNext, disabled: isNextDisabled, children: nextLabel })
|
|
519
|
+
] })
|
|
520
|
+
] });
|
|
521
|
+
}
|
|
522
|
+
|
|
368
523
|
const statusClasses$1 = {
|
|
369
524
|
online: "bg-[var(--cli-status-online)]",
|
|
370
525
|
offline: "bg-[var(--cli-status-offline)]",
|
|
@@ -523,7 +678,7 @@ function ServerList({
|
|
|
523
678
|
const container = listRef.current;
|
|
524
679
|
const targets = container.querySelectorAll("[data-cli-server-card]");
|
|
525
680
|
if (targets.length === 0) return;
|
|
526
|
-
__vitePreload(async () => { const {default: anime} = await import('./index-
|
|
681
|
+
__vitePreload(async () => { const {default: anime} = await import('./index-PJbSbPTy.js').then(n => n.i);return { default: anime }},true?__vite__mapDeps([0,1,2]):void 0).then(({ default: anime }) => {
|
|
527
682
|
if (cancelled) return;
|
|
528
683
|
anime({
|
|
529
684
|
targets,
|
|
@@ -4919,7 +5074,7 @@ function TasksPanel({ projectId, serverId }) {
|
|
|
4919
5074
|
let cancelled = false;
|
|
4920
5075
|
const targets = listRef.current.querySelectorAll("[data-cli-task-item]");
|
|
4921
5076
|
if (targets.length === 0) return;
|
|
4922
|
-
__vitePreload(async () => { const {default: anime} = await import('./index-
|
|
5077
|
+
__vitePreload(async () => { const {default: anime} = await import('./index-PJbSbPTy.js').then(n => n.i);return { default: anime }},true?__vite__mapDeps([0,1,2]):void 0).then(({ default: anime }) => {
|
|
4923
5078
|
if (cancelled) return;
|
|
4924
5079
|
anime({
|
|
4925
5080
|
targets,
|
|
@@ -5046,7 +5201,7 @@ function FindingsPanel({ projectId, serverId }) {
|
|
|
5046
5201
|
let cancelled = false;
|
|
5047
5202
|
const targets = listRef.current.querySelectorAll("[data-cli-finding-item]");
|
|
5048
5203
|
if (targets.length === 0) return;
|
|
5049
|
-
__vitePreload(async () => { const {default: anime} = await import('./index-
|
|
5204
|
+
__vitePreload(async () => { const {default: anime} = await import('./index-PJbSbPTy.js').then(n => n.i);return { default: anime }},true?__vite__mapDeps([0,1,2]):void 0).then(({ default: anime }) => {
|
|
5050
5205
|
if (cancelled) return;
|
|
5051
5206
|
anime({
|
|
5052
5207
|
targets,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-
|
|
2
|
-
import { i as isCliFileId, R as React, f as useFileTreeStore, j as jsxRuntimeExports, b as cn, L as LoaderCircle, S as Save, B as Braces, g as RefreshCw, h as dynamic, _ as __vitePreload } from './index-
|
|
3
|
-
import { u as useFileContentStore, a as useFileContentLoading } from './file-content-
|
|
4
|
-
import { a as acquireFileSocket } from './file-socket-
|
|
5
|
-
import { c as configureMonacoLoader } from './monaco-
|
|
6
|
-
import { u as useFileDiffOverlay } from './useFileDiffOverlay-
|
|
7
|
-
import { F as FileDiffPanel } from './file-diff-panel-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-K8izTGgo.js","assets/index-DZTZ8mWP.js","assets/index-Dqj-Mjb4.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { i as isCliFileId, R as React, f as useFileTreeStore, j as jsxRuntimeExports, b as cn, L as LoaderCircle, S as Save, B as Braces, g as RefreshCw, h as dynamic, _ as __vitePreload } from './index-DZTZ8mWP.js';
|
|
3
|
+
import { u as useFileContentStore, a as useFileContentLoading } from './file-content-BjxNaIfy.js';
|
|
4
|
+
import { a as acquireFileSocket } from './file-socket-D9x_5vlY.js';
|
|
5
|
+
import { c as configureMonacoLoader } from './monaco-K8izTGgo.js';
|
|
6
|
+
import { u as useFileDiffOverlay } from './useFileDiffOverlay-BH6KcMzq.js';
|
|
7
|
+
import { F as FileDiffPanel } from './file-diff-panel-D_lLVQk0.js';
|
|
8
8
|
|
|
9
|
-
const MonacoEditor = dynamic(() => __vitePreload(() => import('./monaco-
|
|
9
|
+
const MonacoEditor = dynamic(() => __vitePreload(() => import('./monaco-K8izTGgo.js').then(n => n.i),true?__vite__mapDeps([0,1,2]):void 0), { });
|
|
10
10
|
configureMonacoLoader();
|
|
11
11
|
function getLanguageFromName(name) {
|
|
12
12
|
const lower = name.toLowerCase();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import { u as useI18n, a as useWorkspaceSurfaceStore, r as reactExports, c as copyToClipboard, j as jsxRuntimeExports, L as LoaderCircle, C as CircleAlert, F as FileCode, E as Eye, b as cn, d as Check, e as Copy, _ as __vitePreload } from './index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DZTZ8mWP.js","assets/index-Dqj-Mjb4.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { u as useI18n, a as useWorkspaceSurfaceStore, r as reactExports, c as copyToClipboard, j as jsxRuntimeExports, L as LoaderCircle, C as CircleAlert, F as FileCode, E as Eye, b as cn, d as Check, e as Copy, _ as __vitePreload } from './index-DZTZ8mWP.js';
|
|
3
3
|
import { c as consumeFileJumpEffects } from './file-jump-queue-r5XKgJEV.js';
|
|
4
|
-
import { C as Code } from './code-
|
|
5
|
-
import { H as Hash, W as WrapText } from './wrap-text-
|
|
4
|
+
import { C as Code } from './code-XfbSR8K2.js';
|
|
5
|
+
import { H as Hash, W as WrapText } from './wrap-text-CZ613PM5.js';
|
|
6
6
|
|
|
7
7
|
const EXTENSION_TO_LANGUAGE = {
|
|
8
8
|
// JavaScript/TypeScript
|
|
@@ -416,7 +416,7 @@ function CodeViewerPlugin({
|
|
|
416
416
|
setLoading(false);
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
419
|
-
const { getFileContent } = await __vitePreload(async () => { const { getFileContent } = await import('./index-
|
|
419
|
+
const { getFileContent } = await __vitePreload(async () => { const { getFileContent } = await import('./index-DZTZ8mWP.js').then(n => n.el);return { getFileContent }},true?__vite__mapDeps([0,1]):void 0);
|
|
420
420
|
const text = await getFileContent(context.resourceId);
|
|
421
421
|
setContent(text);
|
|
422
422
|
} catch (err) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import {
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DZTZ8mWP.js","assets/index-Dqj-Mjb4.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { w as createLucideIcon, u as useI18n, r as reactExports, j as jsxRuntimeExports, L as LoaderCircle, b as cn, T as TriangleAlert, a3 as Download, _ as __vitePreload, a9 as FileSpreadsheet, k as FileText } from './index-DZTZ8mWP.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @license lucide-react v0.511.0 - ISC
|
|
@@ -228,7 +228,7 @@ function DocViewerPlugin({
|
|
|
228
228
|
if (!context.resourceId) return;
|
|
229
229
|
(async () => {
|
|
230
230
|
try {
|
|
231
|
-
const { downloadFileById } = await __vitePreload(async () => { const { downloadFileById } = await import('./index-
|
|
231
|
+
const { downloadFileById } = await __vitePreload(async () => { const { downloadFileById } = await import('./index-DZTZ8mWP.js').then(n => n.el);return { downloadFileById }},true?__vite__mapDeps([0,1]):void 0);
|
|
232
232
|
await downloadFileById(context.resourceId, fileName);
|
|
233
233
|
} catch (err) {
|
|
234
234
|
console.error("Failed to download document:", err);
|
package/src/ui/dist/assets/{GitDiffViewerPlugin-CQ7h1Djm.js → GitDiffViewerPlugin-7J9h9Vy_.js}
RENAMED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import ImageViewerPlugin from './ImageViewerPlugin-
|
|
3
|
-
import MarkdownViewerPlugin from './MarkdownViewerPlugin-
|
|
4
|
-
import { N as NotebookEditor } from './NotebookEditor-
|
|
5
|
-
import PdfViewerPlugin from './PdfViewerPlugin-
|
|
6
|
-
import './image-
|
|
7
|
-
import './zoom-out-
|
|
8
|
-
import './code-
|
|
9
|
-
import './NotebookEditor-
|
|
1
|
+
import { w as createLucideIcon, aK as inferWorkspaceContentKindFromMetadata, v as BUILTIN_PLUGINS, aL as getPluginIdFromMimeType, aM as getPluginIdFromExtension, r as reactExports, j as jsxRuntimeExports, u as useI18n, b as cn, a as useWorkspaceSurfaceStore, aN as useQuery, k as FileText, aO as Button, g as RefreshCw, aP as buildQuestFileNodeFromDocument, W as toFilesResourcePath, aQ as client } from './index-DZTZ8mWP.js';
|
|
2
|
+
import ImageViewerPlugin from './ImageViewerPlugin-CHJl_0lr.js';
|
|
3
|
+
import MarkdownViewerPlugin from './MarkdownViewerPlugin-836PVQWV.js';
|
|
4
|
+
import { N as NotebookEditor } from './NotebookEditor-BRzJbGsn.js';
|
|
5
|
+
import PdfViewerPlugin from './PdfViewerPlugin-BwtICzue.js';
|
|
6
|
+
import './image-BhWT33W1.js';
|
|
7
|
+
import './zoom-out-BgDLAv3z.js';
|
|
8
|
+
import './code-XfbSR8K2.js';
|
|
9
|
+
import './NotebookEditor-DIX7Mlzu.js';
|
|
10
10
|
import './function-B5QZkkHC.js';
|
|
11
11
|
import './yjs-DncrqiZ8.js';
|
|
12
|
-
import './project-sync-
|
|
13
|
-
import './
|
|
14
|
-
import './popover-
|
|
15
|
-
import './trash
|
|
16
|
-
import './sigma-
|
|
17
|
-
import './useFileDiffOverlay-
|
|
18
|
-
import './file-diff-panel-
|
|
19
|
-
import './file-socket-
|
|
20
|
-
import './pdf-effect-queue-
|
|
21
|
-
import './
|
|
22
|
-
import './
|
|
23
|
-
import './message-square-BzjLiXir.js';
|
|
12
|
+
import './project-sync-PENr2zcz.js';
|
|
13
|
+
import './square-check-big-omoSUmcd.js';
|
|
14
|
+
import './popover-yFK1J4fL.js';
|
|
15
|
+
import './trash--F119N47.js';
|
|
16
|
+
import './sigma-DEuYJqTl.js';
|
|
17
|
+
import './useFileDiffOverlay-BH6KcMzq.js';
|
|
18
|
+
import './file-diff-panel-D_lLVQk0.js';
|
|
19
|
+
import './file-socket-D9x_5vlY.js';
|
|
20
|
+
import './pdf-effect-queue-DfBors6y.js';
|
|
21
|
+
import './PdfLoader-DzRaTAlq.js';
|
|
22
|
+
import './index-PJbSbPTy.js';
|
|
24
23
|
|
|
25
24
|
/**
|
|
26
25
|
* @license lucide-react v0.511.0 - ISC
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import {
|
|
3
|
-
import { I as Image } from './image-
|
|
4
|
-
import { Z as ZoomOut, a as ZoomIn } from './zoom-out-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DZTZ8mWP.js","assets/index-Dqj-Mjb4.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { w as createLucideIcon, r as reactExports, j as jsxRuntimeExports, b as cn, ah as RotateCcw, ai as Info, a3 as Download, L as LoaderCircle, _ as __vitePreload } from './index-DZTZ8mWP.js';
|
|
3
|
+
import { I as Image } from './image-BhWT33W1.js';
|
|
4
|
+
import { Z as ZoomOut, a as ZoomIn } from './zoom-out-BgDLAv3z.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @license lucide-react v0.511.0 - ISC
|
|
@@ -280,7 +280,7 @@ function ImageViewerPlugin({
|
|
|
280
280
|
}
|
|
281
281
|
const loadImageUrl = async () => {
|
|
282
282
|
try {
|
|
283
|
-
const { createFileObjectUrl } = await __vitePreload(async () => { const { createFileObjectUrl } = await import('./index-
|
|
283
|
+
const { createFileObjectUrl } = await __vitePreload(async () => { const { createFileObjectUrl } = await import('./index-DZTZ8mWP.js').then(n => n.el);return { createFileObjectUrl }},true?__vite__mapDeps([0,1]):void 0);
|
|
284
284
|
objectUrl = await createFileObjectUrl(context.resourceId);
|
|
285
285
|
if (cancelled) {
|
|
286
286
|
URL.revokeObjectURL(objectUrl);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from './popover-
|
|
3
|
-
import {
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
1
|
+
import { w as createLucideIcon, r as reactExports, aR as reactDomExports, aS as useReducedMotion, j as jsxRuntimeExports, aT as useQueryClient, o as useToast, u as useI18n, aA as useLabCopilotStore, aU as useLabGraphSelectionStore, aV as useChatSessionStore, aW as buildAvatarColorMap, aX as isLabWorkingStatus, aY as getLabAgentDirectSession, aZ as buildAgentDescriptor, a_ as resolveAgentLogo, aF as resolveAgentDisplayName, aG as resolveAgentMentionLabel, a$ as AnimatePresence, b0 as motion, aO as Button, b1 as pickAvatarFrameColor, aH as resolveQuestLabel, d as Check, b as cn, z as useAuthStore, b2 as useCopilotDockHeaderPortal, b3 as assignLabAgent, b4 as ScrollArea, L as LoaderCircle, b5 as likeLabMoment, b6 as unlikeLabMoment, b7 as commentLabMoment, b8 as Ellipsis, b9 as Plus, l as Search, ba as Dialog, bb as DialogContent, bc as DialogHeader, bd as DialogTitle, be as DialogFooter, bf as getLabGroupSession, bg as getLabFriendsSession } from './index-DZTZ8mWP.js';
|
|
2
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from './popover-yFK1J4fL.js';
|
|
3
|
+
import { S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem } from './select-CAbJDfYv.js';
|
|
4
|
+
import { A as AiManusChatView, D as DEFAULT_AGENT_ID, C as ChatBox, a as applyChatEvent, u as useSSESession, b as ChatMessage, r as renderMarkdown } from './AiManusChatView-D0mTXG4-.js';
|
|
5
|
+
import './index-PJbSbPTy.js';
|
|
6
|
+
import './file-content-BjxNaIfy.js';
|
|
6
7
|
import './file-jump-queue-r5XKgJEV.js';
|
|
7
|
-
import './pdf-effect-queue-
|
|
8
|
-
import './file-diff-panel-
|
|
9
|
-
import './
|
|
10
|
-
import './NotebookEditor-
|
|
11
|
-
import './
|
|
12
|
-
import './trash-BvTgE5__.js';
|
|
8
|
+
import './pdf-effect-queue-DfBors6y.js';
|
|
9
|
+
import './file-diff-panel-D_lLVQk0.js';
|
|
10
|
+
import './bot-BEA2vWuK.js';
|
|
11
|
+
import './NotebookEditor-DIX7Mlzu.js';
|
|
12
|
+
import './trash--F119N47.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @license lucide-react v0.511.0 - ISC
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as createLucideIcon, aN as useQuery, r as reactExports, j as jsxRuntimeExports, bh as Skeleton, bi as Badge, aQ as client, bj as ReactFlowProvider, u as useI18n, aF as resolveAgentDisplayName, a_ as resolveAgentLogo, b1 as pickAvatarFrameColor, aX as isLabWorkingStatus, bk as normalizeLabStatus, bl as useNodesState, bm as useReactFlow, bn as index, bo as Background, b as cn, bp as Handle, bq as Position, br as CircleHelp, bs as OrbitLogoStatus, bt as Clock, bu as Moon, aI as formatRelativeTime, m as ChevronDown, aT as useQueryClient, aA as useLabCopilotStore, aU as useLabGraphSelectionStore, bv as resolveLabCanvasSelectionSemantic, aO as Button, g as RefreshCw, bw as LabQuestGraphCanvas, bx as ArrowLeft, b4 as ScrollArea, N as Sparkles, by as GitBranch, bz as LAB_CANVAS_SEMANTIC_TONE_META, bA as getLabQuest, bB as getLabQuestSummary, bC as getLabQuestEventPayload, bD as getLabQuestNodeTrace, bE as isQuestRuntimeSurface, bF as getApiBaseUrl, bG as redirectToLanding, bH as useCliStore, bI as useActiveTab, v as BUILTIN_PLUGINS, bJ as listLabTemplates, aB as listLabAgents, aC as listLabQuests, bK as getLabOverview, bL as getProject, bM as useMaxEntitlement } from './index-DZTZ8mWP.js';
|
|
2
|
+
import { B as Bot } from './bot-BEA2vWuK.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @license lucide-react v0.511.0 - ISC
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-
|
|
2
|
-
import {
|
|
3
|
-
import { P as ProjectSyncClient } from './project-sync-
|
|
4
|
-
import { c as configureMonacoLoader } from './monaco-
|
|
5
|
-
import { P as PAGE_DIMENSIONS, a as PdfLoader, b as PDF_CMAP_URL, c as PDF_WORKER_SRC, Z as ZOOM_LEVELS, d as PdfHighlighter } from './PdfLoader-
|
|
6
|
-
import { Z as ZoomOut, a as ZoomIn } from './zoom-out-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-K8izTGgo.js","assets/index-DZTZ8mWP.js","assets/index-Dqj-Mjb4.css","assets/yjs-DncrqiZ8.js","assets/function-B5QZkkHC.js","assets/awareness-C0NPR2Dj.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { w as createLucideIcon, z as useAuthStore, u as useI18n, a as useWorkspaceSurfaceStore, r as reactExports, f as useFileTreeStore, W as toFilesResourcePath, Y as checkProjectAccess, Z as listFiles, V as getFileContent, _ as __vitePreload, U as updateFileContent, $ as compileLatex, a0 as listLatexBuilds, j as jsxRuntimeExports, b as cn, k as FileText, a1 as Link2, L as LoaderCircle, S as Save, a2 as Play, T as TriangleAlert, a3 as Download, a4 as getLatexBuild, a5 as getLatexBuildPdfBlob, a6 as getLatexBuildLogText, h as dynamic } from './index-DZTZ8mWP.js';
|
|
3
|
+
import { P as ProjectSyncClient } from './project-sync-PENr2zcz.js';
|
|
4
|
+
import { c as configureMonacoLoader } from './monaco-K8izTGgo.js';
|
|
5
|
+
import { P as PAGE_DIMENSIONS, a as PdfLoader, b as PDF_CMAP_URL, c as PDF_WORKER_SRC, Z as ZOOM_LEVELS, d as PdfHighlighter } from './PdfLoader-DzRaTAlq.js';
|
|
6
|
+
import { Z as ZoomOut, a as ZoomIn } from './zoom-out-BgDLAv3z.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license lucide-react v0.511.0 - ISC
|
|
@@ -19,7 +19,7 @@ const __iconNode = [
|
|
|
19
19
|
];
|
|
20
20
|
const AtSign = createLucideIcon("at-sign", __iconNode);
|
|
21
21
|
|
|
22
|
-
const MonacoEditor = dynamic(() => __vitePreload(() => import('./monaco-
|
|
22
|
+
const MonacoEditor = dynamic(() => __vitePreload(() => import('./monaco-K8izTGgo.js').then(n => n.i),true?__vite__mapDeps([0,1,2]):void 0), { });
|
|
23
23
|
configureMonacoLoader();
|
|
24
24
|
function useIsDarkMode() {
|
|
25
25
|
const [isDark, setIsDark] = reactExports.useState(() => {
|
package/src/ui/dist/assets/{MarkdownViewerPlugin-D3ooGAH0.js → MarkdownViewerPlugin-836PVQWV.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import { u as useI18n, a as useWorkspaceSurfaceStore, r as reactExports, R as React,
|
|
3
|
-
import { C as Code } from './code-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DZTZ8mWP.js","assets/index-Dqj-Mjb4.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { u as useI18n, a as useWorkspaceSurfaceStore, r as reactExports, R as React, a7 as getQuestMarkdownContextFromFileId, c as copyToClipboard, j as jsxRuntimeExports, L as LoaderCircle, C as CircleAlert, a8 as MARKDOWN_VIEWER_STYLES, k as FileText, E as Eye, b as cn, d as Check, e as Copy, M as MarkdownRenderer, _ as __vitePreload } from './index-DZTZ8mWP.js';
|
|
3
|
+
import { C as Code } from './code-XfbSR8K2.js';
|
|
4
4
|
|
|
5
5
|
function isMdxDocument(fileName) {
|
|
6
6
|
if (!fileName) return false;
|
|
@@ -217,7 +217,7 @@ function MarkdownViewerPlugin({
|
|
|
217
217
|
setLoading(false);
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
|
-
const { getFileContent } = await __vitePreload(async () => { const { getFileContent } = await import('./index-
|
|
220
|
+
const { getFileContent } = await __vitePreload(async () => { const { getFileContent } = await import('./index-DZTZ8mWP.js').then(n => n.el);return { getFileContent }},true?__vite__mapDeps([0,1]):void 0);
|
|
221
221
|
const text = await getFileContent(context.resourceId);
|
|
222
222
|
setContent(text);
|
|
223
223
|
} catch (err) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as Sigma } from './sigma-
|
|
3
|
-
import { I as Image } from './image-
|
|
1
|
+
import { w as createLucideIcon, r as reactExports, aa as useNavigate, n as useTabsStore, ab as useOpenFile, f as useFileTreeStore, v as BUILTIN_PLUGINS, j as jsxRuntimeExports, l as Search, N as Sparkles, ac as Terminal, ad as Settings, ae as Puzzle, af as BookOpen, k as FileText, ag as FileCode2, b as cn } from './index-DZTZ8mWP.js';
|
|
2
|
+
import { S as Sigma } from './sigma-DEuYJqTl.js';
|
|
3
|
+
import { I as Image } from './image-BhWT33W1.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.511.0 - ISC
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as PluginKey, a as Plugin, S as Slice, F as Fragment, T as TextSelection, A as AllSelection, N as NodeSelection, E as Extension, m as me, l as le, u as useCurrentEditor, w, b as P, f as findParentNodeClosestToPos, g as getEditorMarkdown, s as setEditorMarkdown, q, c as uploadNotebookAsset, r as resolveNotebookAssetUrl, d as defaultExtensions, J, U, I, e as T, B, O, h as S, K as K$1, G, i as ce, j as isSupportedNotebookAsset } from './NotebookEditor-
|
|
1
|
+
import { w as createLucideIcon, j as jsxRuntimeExports, aO as Button, m as ChevronDown, d as Check, b as cn, r as reactExports, bx as ArrowLeft, c6 as ArrowRight, c7 as Separator, c8 as ArrowUp, c9 as Trash2, u as useI18n, o as useToast, V as getFileContent, L as LoaderCircle, e as Copy, C as CircleAlert, f as useFileTreeStore, a7 as getQuestMarkdownContextFromFileId, ca as rewriteQuestMarkdownForDisplay, cb as rewriteQuestMarkdownForSave, cc as uploadQuestDocumentAsset, U as updateFileContent } from './index-DZTZ8mWP.js';
|
|
2
|
+
import { P as PluginKey, a as Plugin, S as Slice, F as Fragment, T as TextSelection, A as AllSelection, N as NodeSelection, E as Extension, m as me, l as le, u as useCurrentEditor, w, b as P, f as findParentNodeClosestToPos, g as getEditorMarkdown, s as setEditorMarkdown, q, c as uploadNotebookAsset, r as resolveNotebookAssetUrl, d as defaultExtensions, J, U, I, e as T, B, O, h as S, K as K$1, G, i as ce, j as isSupportedNotebookAsset } from './NotebookEditor-DIX7Mlzu.js';
|
|
3
3
|
import { a4 as BIT8, ai as BIT30, ab as min, $ as max, y as unexpectedCase, n as methodUnimplemented, aj as keys, u as every, H as setIfUndefined, D as create } from './function-B5QZkkHC.js';
|
|
4
4
|
import { t as toBase64, e as encodeAny, i as isBrowser, d as doc, s as snapshot, D as Doc, a as applyUpdateV2, f as findIndexSS, b as iterateDeletedStructs, c as typeListToArraySnapshot, S as Snapshot, U as UndoManager, g as createSnapshot, h as isDeleted, Y as YXmlElement, j as YXmlText, k as YText, o as oneOf, C as ContentString, l as ContentFormat, m as createDeleteSet, I as Item, n as createRelativePositionFromTypeIndex, R as RelativePosition, p as findRootTypeKey, q as createID, r as createAbsolutePositionFromRelativePosition, u as isParentOf, v as ContentType, w as encodeStateVector, x as applyUpdate, y as mergeUpdates } from './yjs-DncrqiZ8.js';
|
|
5
|
-
import { P as ProjectSyncClient } from './project-sync-
|
|
6
|
-
import { S as SquareCheckBig } from './
|
|
7
|
-
import { C as Code } from './code-
|
|
8
|
-
import { I as Image } from './image-
|
|
9
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from './popover-
|
|
10
|
-
import { T as Trash, A as ArrowDown } from './trash
|
|
11
|
-
import { S as Sigma } from './sigma-
|
|
12
|
-
import { u as useFileDiffOverlay } from './useFileDiffOverlay-
|
|
13
|
-
import { F as FileDiffPanel } from './file-diff-panel-
|
|
5
|
+
import { P as ProjectSyncClient } from './project-sync-PENr2zcz.js';
|
|
6
|
+
import { S as SquareCheckBig } from './square-check-big-omoSUmcd.js';
|
|
7
|
+
import { C as Code } from './code-XfbSR8K2.js';
|
|
8
|
+
import { I as Image } from './image-BhWT33W1.js';
|
|
9
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from './popover-yFK1J4fL.js';
|
|
10
|
+
import { T as Trash, A as ArrowDown } from './trash--F119N47.js';
|
|
11
|
+
import { S as Sigma } from './sigma-DEuYJqTl.js';
|
|
12
|
+
import { u as useFileDiffOverlay } from './useFileDiffOverlay-BH6KcMzq.js';
|
|
13
|
+
import { F as FileDiffPanel } from './file-diff-panel-D_lLVQk0.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @license lucide-react v0.511.0 - ISC
|
|
@@ -2889,7 +2889,7 @@ const LinkSelector = ({ open, onOpenChange }) => {
|
|
|
2889
2889
|
},
|
|
2890
2890
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Trash, { className: "h-4 w-4" })
|
|
2891
2891
|
}
|
|
2892
|
-
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "icon", className: "h-8", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Check, { className: "h-4 w-4" }) })
|
|
2892
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "icon", type: "submit", className: "h-8", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Check, { className: "h-4 w-4" }) })
|
|
2893
2893
|
]
|
|
2894
2894
|
}
|
|
2895
2895
|
) })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as React, r as reactExports,
|
|
1
|
+
import { R as React, r as reactExports, aR as reactDomExports, e8 as ReactDOM, Q as create, j as jsxRuntimeExports, e9 as createSlot, am as useId, ea as Root, eb as Portal, ec as Overlay, ed as Content, aj as composeRefs, d7 as getDefaultExportFromCjs$2, ee as clsx, ef as shimExports$1, eg as katex, eh as Slot, D as resolveApiBaseUrl, ei as uploadFileAuto, ej as nanoid, ek as cx } from './index-DZTZ8mWP.js';
|
|
2
2
|
|
|
3
3
|
// ::- Persistent data structure representing an ordered mapping from
|
|
4
4
|
// strings to values, with some convenient update methods.
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports, r as reactExports, R as React$1, _ as __vitePreload,
|
|
1
|
+
import { j as jsxRuntimeExports, r as reactExports, R as React$1, _ as __vitePreload, d5 as createRoot, d6 as getAugmentedNamespace, aR as reactDomExports, d7 as getDefaultExportFromCjs } from './index-DZTZ8mWP.js';
|
|
2
2
|
|
|
3
3
|
const PAGE_DIMENSIONS = {
|
|
4
4
|
/** A4 width in points */
|
|
5
5
|
A4_WIDTH: 595};
|
|
6
6
|
const ZOOM_LEVELS = [0.5, 0.75, 1, 1.25, 1.5, 2];
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const pdfWorkerUrl = "/ui/assets/pdf.worker.min-yatZIOMy.mjs";
|
|
9
|
+
|
|
10
|
+
const PDF_WORKER_SRC = pdfWorkerUrl;
|
|
11
|
+
const PDF_CMAP_URL = void 0;
|
|
12
|
+
const PDF_CMAP_PACKED = false;
|
|
10
13
|
|
|
11
14
|
function debounce(fn, waitMs) {
|
|
12
15
|
let timeoutId;
|
|
@@ -25394,7 +25397,9 @@ class PdfLoader extends reactExports.Component {
|
|
|
25394
25397
|
error: null
|
|
25395
25398
|
};
|
|
25396
25399
|
static defaultProps = {
|
|
25397
|
-
workerSrc:
|
|
25400
|
+
workerSrc: PDF_WORKER_SRC,
|
|
25401
|
+
cMapUrl: PDF_CMAP_URL,
|
|
25402
|
+
cMapPacked: PDF_CMAP_PACKED
|
|
25398
25403
|
};
|
|
25399
25404
|
documentRef = React$1.createRef();
|
|
25400
25405
|
componentDidMount() {
|
|
@@ -25433,8 +25438,10 @@ class PdfLoader extends reactExports.Component {
|
|
|
25433
25438
|
const document2 = {
|
|
25434
25439
|
...this.props,
|
|
25435
25440
|
ownerDocument,
|
|
25436
|
-
cMapUrl
|
|
25437
|
-
|
|
25441
|
+
...cMapUrl ? {
|
|
25442
|
+
cMapUrl,
|
|
25443
|
+
cMapPacked
|
|
25444
|
+
} : {}
|
|
25438
25445
|
};
|
|
25439
25446
|
return __webpack_exports__getDocument(document2).promise.then((pdfDocument) => {
|
|
25440
25447
|
this.setState({ pdfDocument });
|
|
@@ -25458,4 +25465,4 @@ class PdfLoader extends reactExports.Component {
|
|
|
25458
25465
|
}
|
|
25459
25466
|
}
|
|
25460
25467
|
|
|
25461
|
-
export { PAGE_DIMENSIONS as P, Rnd as R, ZOOM_LEVELS as Z, PdfLoader as a, PDF_CMAP_URL as b, PDF_WORKER_SRC as c, PdfHighlighter as d, getPageFromElement as g };
|
|
25468
|
+
export { PAGE_DIMENSIONS as P, Rnd as R, ZOOM_LEVELS as Z, PdfLoader as a, PDF_CMAP_URL as b, PDF_WORKER_SRC as c, PdfHighlighter as d, PDF_CMAP_PACKED as e, getPageFromElement as g };
|