@openbkn/workshop 0.2.2 → 0.2.3
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/{ActionConfirm-DJ91X3ml.js → ActionConfirm-ITBip2Ic.js} +5 -5
- package/dist/{ActionFailure-ZgPt_3B-.js → ActionFailure-CWifUJ2j.js} +2 -2
- package/dist/{AgentChat-CRYai8ge.js → AgentChat-C1uyzwuA.js} +6 -6
- package/dist/{AppFormModal-D73ucaHK.js → AppFormModal-ByNEloW-.js} +2 -2
- package/dist/AppListPage-D2NVBJs7.js +1465 -0
- package/dist/{AskDrawer-BUMYsRnt.js → AskDrawer-Bw1NM5v_.js} +4 -4
- package/dist/{ComputedView-CgYrDbx1.js → ComputedView-_CaPjqhY.js} +4 -4
- package/dist/{ConclusionApply-sjGfoEBY.js → ConclusionApply-CG5wSeVp.js} +4 -4
- package/dist/{CypherEditor-lus6FA5L.js → CypherEditor-DbLHQoJJ.js} +5 -5
- package/dist/{LandingList-6JI6864C.js → LandingList-BMPCXj6K.js} +5 -5
- package/dist/{MenuUnfoldOutlined-Cdg24l2h.js → MenuUnfoldOutlined-BoARCVho.js} +1 -1
- package/dist/{ModelTrial-ClHFGTpQ.js → ModelTrial-DZjC0E8E.js} +4 -4
- package/dist/{PageRenderer-DBd_g6mN.js → PageRenderer-Debi-U0v.js} +637 -637
- package/dist/{ScenarioApply-DtW_hh47.js → ScenarioApply-BNFfjIwR.js} +6 -6
- package/dist/{SimulateForm-C-i08Jjd.js → SimulateForm-CEqqMjks.js} +4 -4
- package/dist/{Subgraph-CnrkH9AN.js → Subgraph-C0VjOnZf.js} +3 -3
- package/dist/{WorkshopLabPage-DiVXQL9e.js → WorkshopLabPage-C7hssyUo.js} +9 -9
- package/dist/{WorkshopRunPage-6hjRUf64.js → WorkshopRunPage-BlyM18id.js} +4 -4
- package/dist/{abnfDiagram-WEYOIA3C-beRNhN3c.js → abnfDiagram-WEYOIA3C-wqYhe75a.js} +3 -3
- package/dist/{action-type-tool.service-B2B74fKC.js → action-type-tool.service-CtCfESYq.js} +1 -1
- package/dist/{architectureDiagram-ZHVYKT53-DY2l1qxx.js → architectureDiagram-ZHVYKT53-BYJ2H7bS.js} +3 -3
- package/dist/{bkn-agent-execution.service-DVh-SHyl.js → bkn-agent-execution.service-ogW6NIAz.js} +1 -1
- package/dist/{blockDiagram-RJAE7QA3-DR0mjN2h.js → blockDiagram-RJAE7QA3-DZfrfHRw.js} +3 -3
- package/dist/{c4Diagram-XDPPPE54-DH5zsGug.js → c4Diagram-XDPPPE54--S7sRxgd.js} +2 -2
- package/dist/{channel-B034hcOF.js → channel-Ca2_7Xkz.js} +1 -1
- package/dist/{chunk-2E7WHVMD-Ba3svxgx.js → chunk-2E7WHVMD-BMnl6-jy.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-rT4eU6_y.js → chunk-2Q5K7J3B-BNVTYluA.js} +1 -1
- package/dist/{chunk-4EMNKR2T-C1kQZYHK.js → chunk-4EMNKR2T-CKorQf5z.js} +1 -1
- package/dist/{chunk-55XCU76K-dcpLOktb.js → chunk-55XCU76K-C4xutPQ4.js} +1 -1
- package/dist/{chunk-5VM5RSS4-BdpQuzmO.js → chunk-5VM5RSS4-BM5F2WnL.js} +1 -1
- package/dist/{chunk-JWPE2WC7-CDBrSjU7.js → chunk-JWPE2WC7-CSU5SIs8.js} +1 -1
- package/dist/{chunk-VQ5W62QI-BiVKc40w.js → chunk-VQ5W62QI-Dtk59D_l.js} +1 -1
- package/dist/{chunk-XXDRQBXY-CPYrcdVW.js → chunk-XXDRQBXY-DzVLFl9c.js} +1 -1
- package/dist/{chunk-ZCHMQSOR-BG8OLpvb.js → chunk-ZCHMQSOR-cdQdJeDJ.js} +2 -2
- package/dist/{classDiagram-v2-4MYWR3UA-DqbpQpwI.js → classDiagram-v2-4MYWR3UA-CABAzYlW.js} +5 -5
- package/dist/{cose-bilkent-JH36ORCC-CdXk4sPf.js → cose-bilkent-JH36ORCC-Ca8GJbqv.js} +2 -2
- package/dist/{customParseFormat-C0uLEpdq.js → customParseFormat-H00Ur3YB.js} +1 -1
- package/dist/{cynefinDiagram-WF24UDRP-BYT_KpDL.js → cynefinDiagram-WF24UDRP-iIy_O6OH.js} +2 -2
- package/dist/{dagre-NK4GIZVX-l-ghPdM8.js → dagre-NK4GIZVX-lW5Hra0G.js} +2 -2
- package/dist/{dayjs.min-DZ-YV8Mv.js → dayjs.min-C8_4Wqpb.js} +1 -1
- package/dist/{diagram-CBK3MWTC-Bt3HiwvA.js → diagram-CBK3MWTC-l5LVSm6X.js} +3 -3
- package/dist/{diagram-I5XIIV2D-DcbqfBjx.js → diagram-I5XIIV2D-ChpwB8Wz.js} +2 -2
- package/dist/{diagram-ODIL2UCW-9PC1n3n5.js → diagram-ODIL2UCW-DBavGl7R.js} +3 -3
- package/dist/{diagram-PFBEJUXE-DGhr2kc7.js → diagram-PFBEJUXE-B3fNIQm9.js} +2 -2
- package/dist/{diagram-RJA3I4VV-DwzpOjZ_.js → diagram-RJA3I4VV-Dmj0Shdh.js} +2 -2
- package/dist/{diagram-TYUNFSNR-B3Bd3TDU.js → diagram-TYUNFSNR-D98rsKpY.js} +6 -6
- package/dist/{ebnfDiagram-V4P3TTPT-E5NN2oKc.js → ebnfDiagram-V4P3TTPT-Bxr2oP9U.js} +3 -3
- package/dist/{elk-QONTBCTQ-dFjcujl_.js → elk-QONTBCTQ-CvFT6Pst.js} +5 -5
- package/dist/{erDiagram-KYQIGQAA-BMrasBzB.js → erDiagram-KYQIGQAA-dgeEoLzk.js} +4 -4
- package/dist/{flowDiagram-IUGLLWBU-BGIBH0q0.js → flowDiagram-IUGLLWBU-ChsJgBPn.js} +7 -7
- package/dist/{ganttDiagram-R7GPNTJY-C0tb1Lpp.js → ganttDiagram-R7GPNTJY-C9WcR8Tf.js} +4 -4
- package/dist/{generateCypher-Ch9_lQa6.js → generateCypher-kvNYDLY4.js} +4 -4
- package/dist/{gitGraphDiagram-PDYL7XHY-DBqcOa-c.js → gitGraphDiagram-PDYL7XHY-CeZTDs7V.js} +3 -3
- package/dist/{infoDiagram-MVDRKAX5-Bwuki4JA.js → infoDiagram-MVDRKAX5-CzfcVWVf.js} +1 -1
- package/dist/{ishikawaDiagram-HPEHV2GE-Dz4d6ygx.js → ishikawaDiagram-HPEHV2GE-BK4ExPHB.js} +2 -2
- package/dist/{journeyDiagram-BOSHW7O7-C99m34Bb.js → journeyDiagram-BOSHW7O7-DXJ-ihrY.js} +4 -4
- package/dist/{kanban-definition-FNSA4HC5-mdqjODsT.js → kanban-definition-FNSA4HC5-C9rAkIZN.js} +2 -2
- package/dist/{mermaid.core-yQghUlIz.js → mermaid.core-uROF3Ult.js} +43 -43
- package/dist/{mindmap-definition-6OY57UG3-BZhO2wX4.js → mindmap-definition-6OY57UG3-DC9FfvxT.js} +3 -3
- package/dist/{models-DekiCOuZ.js → models-D5Mffixi.js} +1 -1
- package/dist/{object-metric-numeric-vs3BeDkH.js → object-metric-numeric-DIgqXqB5.js} +1 -1
- package/dist/{object-metric.service-flZgBMRX.js → object-metric.service-B3PtIPEA.js} +2 -2
- package/dist/{pegDiagram-ECIUJNBX-BDa5RfZt.js → pegDiagram-ECIUJNBX-CUCvcOc0.js} +3 -3
- package/dist/{pieDiagram-GNMPY74T-DNVtzXPv.js → pieDiagram-GNMPY74T-DprBId-p.js} +2 -2
- package/dist/{prompt-DYrjlEFr.js → prompt-D9VtVs5i.js} +3 -3
- package/dist/{quadrantDiagram-D57K4MC3-vK0f2OvQ.js → quadrantDiagram-D57K4MC3-CcvW9eIV.js} +1 -1
- package/dist/{railroadDiagram-Y72NRBL7-j6ZrTmRp.js → railroadDiagram-Y72NRBL7-DH43paGB.js} +3 -3
- package/dist/{requirementDiagram-EQYSW5RA-DgfEyljA.js → requirementDiagram-EQYSW5RA-CBY8WT39.js} +3 -3
- package/dist/{sankeyDiagram-SY24JHO5-CImx-IX0.js → sankeyDiagram-SY24JHO5-DD80tYLM.js} +2 -2
- package/dist/{sequenceDiagram-BLEHNHQU-nWmjd1ci.js → sequenceDiagram-BLEHNHQU-Bo9dDD6b.js} +3 -3
- package/dist/{sizeCapture-INFHLROL-D3jlbt7h.js → sizeCapture-INFHLROL-BQTwKEEH.js} +1 -1
- package/dist/{stateDiagram-v2-A6IESKWZ-DG1ZetEu.js → stateDiagram-v2-A6IESKWZ-um_LWxkE.js} +4 -4
- package/dist/{swimlanes-B3ENRKFQ-cCmJE8AU.js → swimlanes-B3ENRKFQ-DyYkLRSQ.js} +3 -3
- package/dist/{swimlanesDiagram-AYQRV4AK-CtuhyguU.js → swimlanesDiagram-AYQRV4AK-DlAG_Vwl.js} +3 -3
- package/dist/{timeline-definition-JXYKGLGB-Cc-INsOv.js → timeline-definition-JXYKGLGB-DVH8Jsv4.js} +1 -1
- package/dist/{useLabData-Df-jEHKs.js → useLabData-fKy_tVvS.js} +2 -1
- package/dist/{usecaseDiagram-WPOLBNNX-r8wVjopm.js → usecaseDiagram-WPOLBNNX-DvsgvjCb.js} +3 -3
- package/dist/{vennDiagram-Q3Y3IDCW-BZiOcgrj.js → vennDiagram-Q3Y3IDCW-BQcWfjtm.js} +2 -2
- package/dist/{wardleyDiagram-IVAIDKWA-16jd07C_.js → wardleyDiagram-IVAIDKWA-M_Wv4tRx.js} +2 -2
- package/dist/{workshop-app-DnHNjBqy.js → workshop-app-wZ37Phc-.js} +60 -22
- package/dist/workshop-app.css +1 -1
- package/dist/workshop-app.js +1 -1
- package/dist/{xychartDiagram-4URNHDU4-C8DwWQNh.js → xychartDiagram-4URNHDU4-DBviJ7Ux.js} +1 -1
- package/package.json +1 -1
- package/dist/AppListPage-D87piiOw.js +0 -1364
|
@@ -34977,10 +34977,10 @@ function PAe() {
|
|
|
34977
34977
|
if (!e) throw new Error("useAppServices must be used within WorkshopServicesProvider.");
|
|
34978
34978
|
return e;
|
|
34979
34979
|
}
|
|
34980
|
-
const aoe = C.lazy(async () => ({ default: (await import("./AppListPage-
|
|
34981
|
-
default: (await import("./WorkshopLabPage-
|
|
34980
|
+
const aoe = C.lazy(async () => ({ default: (await import("./AppListPage-D2NVBJs7.js")).AppListPage })), ooe = C.lazy(async () => ({
|
|
34981
|
+
default: (await import("./WorkshopLabPage-C7hssyUo.js").then((e) => e.W)).WorkshopLabPage
|
|
34982
34982
|
})), ioe = C.lazy(async () => ({
|
|
34983
|
-
default: (await import("./WorkshopRunPage-
|
|
34983
|
+
default: (await import("./WorkshopRunPage-BlyM18id.js")).WorkshopRunPage
|
|
34984
34984
|
}));
|
|
34985
34985
|
function soe({
|
|
34986
34986
|
place: e,
|
|
@@ -44971,7 +44971,7 @@ const Bfe = "_md_1v963_9", zfe = "_doc_1v963_112", Ffe = "_dark_1v963_168", jfe
|
|
|
44971
44971
|
};
|
|
44972
44972
|
let qm = null;
|
|
44973
44973
|
function Lfe() {
|
|
44974
|
-
return qm ??= import("./mermaid.core-
|
|
44974
|
+
return qm ??= import("./mermaid.core-uROF3Ult.js").then((e) => e.ba).then((e) => e.default), qm.catch(() => {
|
|
44975
44975
|
qm = null;
|
|
44976
44976
|
}), qm;
|
|
44977
44977
|
}
|
|
@@ -49841,6 +49841,7 @@ Only output a JSON array, for example ["question1","question2","question3"]. Do
|
|
|
49841
49841
|
question: "Required: the question, with what a click carried along",
|
|
49842
49842
|
context: "The page: its title, as-of date, current filters and selected object, and the added instructions",
|
|
49843
49843
|
conversation_id: "The same for every question in one chat, to carry the conversation on",
|
|
49844
|
+
agent_id: "The agent the user selected. It can be selected in the chat only when the server also provides a list_agents tool that returns [{id, name}] in structuredContent.agents",
|
|
49844
49845
|
app_id: "The app's ID",
|
|
49845
49846
|
kn_id: "The knowledge network's ID",
|
|
49846
49847
|
workspace_id: "Which of their own workspaces the asker put this app in (their default one when they put it nowhere); a grouping only, granting nothing",
|
|
@@ -50386,7 +50387,6 @@ Object types the sample reads: {{types}}. First find the matching object types a
|
|
|
50386
50387
|
agentTitle: "Default outside Agent",
|
|
50387
50388
|
agentIntro: "When you add an Agent chat to an app in this workspace, its answerer starts as this outside Agent. It is written into the app then: changing it here later leaves existing apps as they are.",
|
|
50388
50389
|
agentToolRequired: "Pick the tool that answers",
|
|
50389
|
-
tokenNote: "Handing over the user's sign-in token is not filled in from the workspace: each app's builder decides.",
|
|
50390
50390
|
clearAgent: "No default outside Agent",
|
|
50391
50391
|
deleteTitle: "Delete this workspace",
|
|
50392
50392
|
deleteHint: "Its apps go back to the Default workspace and are otherwise unchanged.",
|
|
@@ -50401,23 +50401,42 @@ Object types the sample reads: {{types}}. First find the matching object types a
|
|
|
50401
50401
|
prefillUnavailable: "The default outside Agent of the workspace {{name}} is no longer available (deleted, not published, or not yours to use), so nothing was filled in."
|
|
50402
50402
|
},
|
|
50403
50403
|
agents: {
|
|
50404
|
-
open: "
|
|
50404
|
+
open: "Develop and integrate",
|
|
50405
50405
|
sections: {
|
|
50406
50406
|
use: {
|
|
50407
50407
|
tab: "Work on tasks",
|
|
50408
|
-
title: "Let an agent
|
|
50408
|
+
title: "Let an agent use decision apps",
|
|
50409
50409
|
hint: "Claude Code, Cursor and others connect to Workshop to see tasks and record analyses"
|
|
50410
50410
|
},
|
|
50411
50411
|
develop: {
|
|
50412
50412
|
tab: "Develop apps",
|
|
50413
|
-
title: "
|
|
50413
|
+
title: "Let an agent develop decision apps",
|
|
50414
50414
|
hint: "An agent in your IDE writes apps and custom components, pushed to the draft"
|
|
50415
50415
|
},
|
|
50416
50416
|
call: {
|
|
50417
50417
|
tab: "Apps call an agent",
|
|
50418
|
-
title: "Call an outside agent from
|
|
50418
|
+
title: "Call an outside agent from a decision app",
|
|
50419
50419
|
hint: "The chat component hands users' questions to your own agent"
|
|
50420
|
-
}
|
|
50420
|
+
},
|
|
50421
|
+
embed: {
|
|
50422
|
+
tab: "Embed",
|
|
50423
|
+
title: "Integrate decision apps into other apps",
|
|
50424
|
+
hint: "Embed a run page, or the whole builder, in another app's pages"
|
|
50425
|
+
}
|
|
50426
|
+
},
|
|
50427
|
+
embed: {
|
|
50428
|
+
intro: "Mount decision apps in your own system's pages: an app's run page for business users, or the whole of Workshop (app list, builder, preview) for implementers. Workshop draws straight into the page, with no iframe, so users stay in your system.",
|
|
50429
|
+
install: "Install it in the host's front-end project (React, antd and the rest are bundled in, so nothing else to install and no clash with your own React):",
|
|
50430
|
+
mount: "Put a container with a definite height in the page and mount Workshop in it:",
|
|
50431
|
+
page: "Host page",
|
|
50432
|
+
appPlaceholder: "<app id>",
|
|
50433
|
+
mountNote: "place is the page shown first: run, apps, builder or preview. A click that moves inside Workshop calls onNavigate, for the host to change its own address; when the address changes (the browser's back button included), call workshop.show(place); to switch languages, call workshop.setLocale.",
|
|
50434
|
+
proxy: `The host's server passes /api on to the platform as it is, so the page reaches it on its own origin and apiBase is "/api". The platform's gateway answers no cross-origin requests: with the platform's address in apiBase, the browser blocks them. With nginx, for example:`,
|
|
50435
|
+
proxyNote: "Don't pass the host's own cookies to the platform, which takes only the token in the request header; don't buffer responses, as agent answers stream.",
|
|
50436
|
+
token: "getToken returns the current user's platform token at each request; when the platform refuses it, refreshToken gets a new one. Users sign in to the platform once, through bkn-sdk's OAuth sign-in; ask the platform's operators to allow your web app's callback address. The host's own sign-in can't be exchanged for a platform token yet.",
|
|
50437
|
+
example: "You can run the host page example in the package first and follow it:",
|
|
50438
|
+
exampleNote: "The example takes its token from the openbkn sign-in; add -k to both commands when the platform's certificate is self-signed. Open http://127.0.0.1:8050/: an example business system with the whole of Workshop in its content area.",
|
|
50439
|
+
styles: "Workshop is not in an iframe: the host's global styles by element name (such as header, main, a) reach inside it, so scope the host's styles with class names. One page holds one Workshop."
|
|
50421
50440
|
},
|
|
50422
50441
|
develop: {
|
|
50423
50442
|
intro: "Develop apps in an agent such as Claude Code, Codex or WorkBuddy: an app is pulled into a local project (app.yaml and custom components), the agent pushes its changes to the app's draft on the platform, and you preview them there.",
|
|
@@ -50438,7 +50457,7 @@ Object types the sample reads: {{types}}. First find the matching object types a
|
|
|
50438
50457
|
register: "Make the agent an MCP server, register and publish it in the Execution Factory, and grant users permission to run it.",
|
|
50439
50458
|
pick: `In the builder, set the Agent chat component's "Answered by" to "Outside agent", then pick the MCP server and the tool that answers (an ask tool is picked for you).`,
|
|
50440
50459
|
contract: "The tool meets this contract:",
|
|
50441
|
-
passToken: `
|
|
50460
|
+
passToken: `To let the agent query platform data as the user, turn on the component's "Hand over the user's sign-in token" switch (off by default). The agent then has the same permissions as the user, including running actions and handling approvals. Turn it on only for agents you trust.`
|
|
50442
50461
|
},
|
|
50443
50462
|
intro: "Add the configuration below to an agent such as Claude Code or Cursor, and it can do the analysis.",
|
|
50444
50463
|
can: "Supported: see apps and tasks, look up the objects involved, record conclusions in a task",
|
|
@@ -52915,6 +52934,7 @@ Object types the sample reads: {{types}}. First find the matching object types a
|
|
|
52915
52934
|
question: "必填,用户的问题(含点击时带上的内容)",
|
|
52916
52935
|
context: "页面上下文:页面、基准日期、当前筛选与选中对象,以及补充说明",
|
|
52917
52936
|
conversation_id: "同一对话框内的多轮提问相同,用于接续对话",
|
|
52937
|
+
agent_id: "使用者选择的智能体。仅当服务同时提供 list_agents 工具,并在 structuredContent.agents 中返回 [{id, name}] 时,对话框中才可选择",
|
|
52918
52938
|
app_id: "应用 ID",
|
|
52919
52939
|
kn_id: "知识网络 ID",
|
|
52920
52940
|
workspace_id: "提问人把这个应用放在自己的哪个工作区(没放过的是默认工作区);只表示分组,不表示权限",
|
|
@@ -53460,7 +53480,6 @@ Object types the sample reads: {{types}}. First find the matching object types a
|
|
|
53460
53480
|
agentTitle: "默认外部 Agent",
|
|
53461
53481
|
agentIntro: "在这个工作区里给应用加「Agent 对话」组件时,「由谁回答」会预先选成这个外部 Agent。填好后就写进应用,以后改这里不影响已有的应用。",
|
|
53462
53482
|
agentToolRequired: "请选择回答问题的工具",
|
|
53463
|
-
tokenNote: "「交出使用者的登录令牌」不随工作区预填,每个应用由构建者自己决定是否打开。",
|
|
53464
53483
|
clearAgent: "不设置默认外部 Agent",
|
|
53465
53484
|
deleteTitle: "删除这个工作区",
|
|
53466
53485
|
deleteHint: "里面的应用回到「默认」工作区,应用本身不受影响。",
|
|
@@ -53475,23 +53494,42 @@ Object types the sample reads: {{types}}. First find the matching object types a
|
|
|
53475
53494
|
prefillUnavailable: "工作区「{{name}}」的默认外部 Agent 已不可用(服务已删除、未发布,或你无权使用),没有预填。"
|
|
53476
53495
|
},
|
|
53477
53496
|
agents: {
|
|
53478
|
-
open: "
|
|
53497
|
+
open: "开发和集成",
|
|
53479
53498
|
sections: {
|
|
53480
53499
|
use: {
|
|
53481
53500
|
tab: "处理任务",
|
|
53482
|
-
title: "让 Agent
|
|
53501
|
+
title: "让 Agent 调用决策智能应用",
|
|
53483
53502
|
hint: "Claude Code、Cursor 等连上 Workshop,查看任务、记录分析"
|
|
53484
53503
|
},
|
|
53485
53504
|
develop: {
|
|
53486
53505
|
tab: "开发应用",
|
|
53487
|
-
title: "
|
|
53506
|
+
title: "让 Agent 开发决策智能应用",
|
|
53488
53507
|
hint: "在 IDE 里让 Agent 写应用和自定义组件,推送到平台草稿"
|
|
53489
53508
|
},
|
|
53490
53509
|
call: {
|
|
53491
53510
|
tab: "应用调用 Agent",
|
|
53492
|
-
title: "
|
|
53511
|
+
title: "在决策智能应用中调用外部 Agent",
|
|
53493
53512
|
hint: "对话组件把使用者的问题交给你们自己的 Agent 回答"
|
|
53494
|
-
}
|
|
53513
|
+
},
|
|
53514
|
+
embed: {
|
|
53515
|
+
tab: "嵌入系统",
|
|
53516
|
+
title: "将决策智能应用集成到其他的应用中",
|
|
53517
|
+
hint: "在其他应用的页面中嵌入运行页或完整的构建器"
|
|
53518
|
+
}
|
|
53519
|
+
},
|
|
53520
|
+
embed: {
|
|
53521
|
+
intro: "将决策智能应用嵌入其他应用的页面:可为业务人员嵌入单个应用的运行页,也可为实施人员嵌入完整的 Workshop(应用列表、构建器、预览)。Workshop 直接渲染在宿主页面中,不使用 iframe,用户无需离开所在系统。",
|
|
53522
|
+
install: "在宿主的前端项目中安装(包内已包含 React、antd 等依赖,无需另行安装,也不会与宿主的 React 冲突):",
|
|
53523
|
+
mount: "在页面中放置一个高度确定的容器,并挂载 Workshop:",
|
|
53524
|
+
page: "宿主页面",
|
|
53525
|
+
appPlaceholder: "<应用 ID>",
|
|
53526
|
+
mountNote: "place 指定首先显示的页面:运行页 run、应用列表 apps、构建器 builder 或草稿预览 preview。用户在 Workshop 内跳转时会调用 onNavigate,宿主据此更新自身地址;宿主地址变化时(包括浏览器后退),调用 workshop.show(place);切换语言时调用 workshop.setLocale。",
|
|
53527
|
+
proxy: '由宿主的服务端将 /api 原样转发至平台,页面以同源方式访问,apiBase 设为 "/api"。平台网关不处理跨域请求,若直接填写平台地址,请求将被浏览器拦截。以 nginx 为例:',
|
|
53528
|
+
proxyNote: "转发时请勿携带宿主自身的 Cookie,平台仅识别请求头中的令牌;请关闭响应缓冲,Agent 的回答以流式方式返回。",
|
|
53529
|
+
token: "getToken 在每次请求时返回当前用户的平台令牌;平台拒绝该令牌时,调用 refreshToken 获取新令牌。用户需在平台登录一次,通过 bkn-sdk 的 OAuth 登录取得令牌,网页应用的回调地址需由平台运维加入允许列表。目前尚不支持以宿主自身的登录直接换取平台令牌。",
|
|
53530
|
+
example: "可先运行包内的示例宿主页作为参考:",
|
|
53531
|
+
exampleNote: "示例使用 openbkn 的登录获取令牌;平台使用自签名证书时,两条命令均需加 -k。访问 http://127.0.0.1:8050/ 即可看到一个示例业务系统,完整的 Workshop 嵌入在其内容区。",
|
|
53532
|
+
styles: "Workshop 不在 iframe 中运行,宿主按元素名编写的全局样式(如 header、main、a)会作用于 Workshop 内部,请用类名限定宿主样式。每个页面只能挂载一个 Workshop。"
|
|
53495
53533
|
},
|
|
53496
53534
|
develop: {
|
|
53497
53535
|
intro: "在 Claude Code、Codex、WorkBuddy 等 Agent 里开发应用:应用拉到本地成为工程目录(app.yaml 和自定义组件),Agent 改完推送到平台上的草稿,在平台上预览。",
|
|
@@ -53512,7 +53550,7 @@ Object types the sample reads: {{types}}. First find the matching object types a
|
|
|
53512
53550
|
register: "把外部 Agent 做成 MCP 服务,在执行工厂登记并发布,给使用者授予执行权限。",
|
|
53513
53551
|
pick: "在构建器里,把「Agent 对话」组件的「由谁回答」选为「外部 Agent」,再选 MCP 服务和回答问题的工具(服务有 ask 工具时自动选上)。",
|
|
53514
53552
|
contract: "工具按下面的约定实现:",
|
|
53515
|
-
passToken: "
|
|
53553
|
+
passToken: "如需 Agent 以使用者本人的身份查询平台数据,可开启组件的「交出使用者的登录令牌」开关(默认关闭)。开启后,Agent 将拥有与使用者相同的权限,包括执行行动和办理审批,请仅对可信的 Agent 开启。"
|
|
53516
53554
|
},
|
|
53517
53555
|
intro: "将下面的配置加到 Claude Code、Cursor 等 Agent 里,即可完成分析工作。",
|
|
53518
53556
|
can: "支持:查看应用和任务、查询相关对象、把结论记进任务",
|
|
@@ -85426,9 +85464,9 @@ function Kke(e) {
|
|
|
85426
85464
|
const u0 = {
|
|
85427
85465
|
getToken: () => Zo().auth.tokenManager.getAccessToken() ?? "",
|
|
85428
85466
|
refresh: () => Zo().auth.tokenManager.refreshAccessToken()
|
|
85429
|
-
}, Kf = () => SL ?? window.location.origin, $M = () => import("./bkn-agent-execution.service-
|
|
85467
|
+
}, Kf = () => SL ?? window.location.origin, $M = () => import("./bkn-agent-execution.service-ogW6NIAz.js");
|
|
85430
85468
|
let $w;
|
|
85431
|
-
const Zke = () => import("./action-type-tool.service-
|
|
85469
|
+
const Zke = () => import("./action-type-tool.service-CtCfESYq.js"), Yke = {
|
|
85432
85470
|
http: fa,
|
|
85433
85471
|
gateway: Kf,
|
|
85434
85472
|
userName: () => Zo().currentUser.name || void 0,
|
|
@@ -85503,7 +85541,7 @@ const Zke = () => import("./action-type-tool.service-B2B74fKC.js"), Yke = {
|
|
|
85503
85541
|
await ($w ??= await $M()).cancelExecution({ base: Kf(), tokenProvider: u0, runId: e });
|
|
85504
85542
|
},
|
|
85505
85543
|
executionErrorText: (e) => $w?.executionRequestError(e).message ?? (e instanceof Error ? e.message : String(e))
|
|
85506
|
-
}, Dw = () => import("./object-metric.service-
|
|
85544
|
+
}, Dw = () => import("./object-metric.service-B3PtIPEA.js"), Xke = {
|
|
85507
85545
|
list: async (e, t) => (await Dw()).listObjectMetricsV1(e, t, { skipErrorToast: !0 }),
|
|
85508
85546
|
get: async (e, t, n) => (await Dw()).getObjectMetricV1(e, t, n, { skipErrorToast: !0 }),
|
|
85509
85547
|
// The Studio's own query shows its failures; a component words them itself, so the request is
|
|
@@ -85512,7 +85550,7 @@ const Zke = () => import("./action-type-tool.service-B2B74fKC.js"), Yke = {
|
|
|
85512
85550
|
const [{ http: a }, { transformPrecisionSafeJSONResponse: o }, { serializeObjectMetricBody: i }] = await Promise.all([
|
|
85513
85551
|
Promise.resolve().then(() => hve),
|
|
85514
85552
|
Promise.resolve().then(() => cbe),
|
|
85515
|
-
import("./object-metric-numeric-
|
|
85553
|
+
import("./object-metric-numeric-DIgqXqB5.js")
|
|
85516
85554
|
]);
|
|
85517
85555
|
return (await a.post(
|
|
85518
85556
|
`/ontology-query/v1/knowledge-networks/${encodeURIComponent(e)}/object-metrics/${encodeURIComponent(t)}/data`,
|