@qilin-agent/client-ui-agent-preset 3.1.3 → 3.1.5

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.i18n.yaml CHANGED
@@ -5,39 +5,39 @@
5
5
  /:
6
6
  en: 3278de201ad33089
7
7
  zh: 51e7069b3ee387da
8
- /qilin-client-ui-agent-preset:
9
- en: 30f6e645c7bcb50c
10
- zh: cabc1e5a7187f5e3
11
- /qilin-client-ui-agent-preset/summary:
8
+ /qilin-agent-client-ui-agent-preset:
9
+ en: 57cad1b674089edc
10
+ zh: 215d74e1d8c73b51
11
+ /qilin-agent-client-ui-agent-preset/summary:
12
12
  en: 4faf6bb86bf978bf
13
13
  zh: cd05ce103e1e034d
14
- /qilin-client-ui-agent-preset/table-of-contents:
14
+ /qilin-agent-client-ui-agent-preset/table-of-contents:
15
15
  en: d152484eb41ac6b4
16
16
  zh: 09388d293f9be9cb
17
- /qilin-client-ui-agent-preset/use-this-package:
17
+ /qilin-agent-client-ui-agent-preset/use-this-package:
18
18
  en: 142320bda03115a3
19
19
  zh: a71a9314e24e3832
20
- /qilin-client-ui-agent-preset/use-this-package/managing-the-roster:
20
+ /qilin-agent-client-ui-agent-preset/use-this-package/managing-the-roster:
21
21
  en: c9b3d6dad8581c01
22
22
  zh: 34be43c18449053e
23
- /qilin-client-ui-agent-preset/use-this-package/the-conversational-entry:
23
+ /qilin-agent-client-ui-agent-preset/use-this-package/the-conversational-entry:
24
24
  en: 4ba02329df8a6508
25
25
  zh: 695f54df1f6e2261
26
- /qilin-client-ui-agent-preset/understand-the-implementation:
26
+ /qilin-agent-client-ui-agent-preset/understand-the-implementation:
27
27
  en: 3be1cd45ef0f3c73
28
28
  zh: 0489f50bccb89ae3
29
- /qilin-client-ui-agent-preset/further-exploration:
29
+ /qilin-agent-client-ui-agent-preset/further-exploration:
30
30
  en: cc90b6aadafd4a8c
31
31
  zh: f902b665bfa9ad53
32
- /qilin-client-ui-agent-preset/model-experience:
32
+ /qilin-agent-client-ui-agent-preset/model-experience:
33
33
  en: 5174dc16b8930a37
34
34
  zh: 46a31904e17bd5ad
35
- /qilin-client-ui-agent-preset/model-experience/kv-cache-effect:
35
+ /qilin-agent-client-ui-agent-preset/model-experience/kv-cache-effect:
36
36
  en: daefa797529c67ca
37
37
  zh: e69013e09bb16015
38
- /qilin-client-ui-agent-preset/known-limitations-and-deferred-work:
38
+ /qilin-agent-client-ui-agent-preset/known-limitations-and-deferred-work:
39
39
  en: fb81f60a98dd4e32
40
40
  zh: fd3bef165bd43553
41
- /qilin-client-ui-agent-preset/known-limitations-and-deferred-work/dev-note:
41
+ /qilin-agent-client-ui-agent-preset/known-limitations-and-deferred-work/dev-note:
42
42
  en: e67f633dc6fe7773
43
43
  zh: 3bb0c20c93f16f98
package/lib/client.js CHANGED
@@ -706,20 +706,10 @@ window.__ModuleLoader__.load({
706
706
  };
707
707
  //#endregion
708
708
  //#region ../../preset/agent-presets/src/display.ts
709
- const BUILT_IN_PRESET_KEYS = {
710
- standard: {
711
- name: "presetStandardName",
712
- description: "presetStandardDescription"
713
- },
714
- ptc: {
715
- name: "presetPtcName",
716
- description: "presetPtcDescription"
717
- },
718
- cordis: {
719
- name: "presetCordisName",
720
- description: "presetCordisDescription"
721
- }
722
- };
709
+ const BUILT_IN_PRESET_KEYS = { ptc: {
710
+ name: "presetPtcName",
711
+ description: "presetPtcDescription"
712
+ } };
723
713
  /**
724
714
  * Resolve preset display copy without making user-authored metadata translatable.
725
715
  * @param preset - roster row whose copy is being rendered.
@@ -747,16 +737,12 @@ window.__ModuleLoader__.load({
747
737
  seatHint: "Agent preset for the session you are about to start",
748
738
  headerHint: "The agent preset this session runs, fixed when it started",
749
739
  nav: "Agent presets",
750
- sectionIntro: "A preset is the plugin composition one session's agent runs — its tools, prompt, and capabilities. Duplicate an existing one and make it yours, or let the agent draft one for you in Creator mode.",
740
+ sectionIntro: "A preset is the plugin composition one session's agent runs — its tools, prompt, and capabilities. Duplicate an existing one and make it yours, or let the agent draft one for you.",
751
741
  builtIn: "Built-in",
752
742
  setDefault: "Set as default",
753
743
  view: "View",
754
- presetStandardName: "Standard mode",
755
- presetStandardDescription: "Full coding agent with file editing, shell, file and web search, skills, planning, goals, subagents, and workflows.",
756
744
  presetPtcName: "Coding mode",
757
745
  presetPtcDescription: "Full coding agent without the workflow tool; other tools are exposed through a generated SDK so the model can combine multi-step operations in one TypeScript program.",
758
- presetCordisName: "Creator mode",
759
- presetCordisDescription: "Built for creating custom agent presets, with all Standard mode capabilities plus runtime inspection, persistent plugin management, and preset-authoring guidance.",
760
746
  duplicate: "Duplicate",
761
747
  duplicateUnavailable: "This deployment has no writable preset directory",
762
748
  delete: "Delete",
@@ -781,12 +767,12 @@ window.__ModuleLoader__.load({
781
767
  copyIntro: "The whole preset is copied on this machine. The identifier becomes its directory name and cannot be changed later; everything else is edited in the preset's own files.",
782
768
  create: "Create",
783
769
  creating: "Creating…",
784
- creatorDraft: "Draft a custom preset with Creator mode",
770
+ creatorDraft: "Draft a custom preset with the agent",
785
771
  createPlugin: "Let the agent create a plugin",
786
- createPluginDescription: "Enter Creator mode and make your own plugin",
787
- createPluginChecking: "Checking whether Creator mode is available",
772
+ createPluginDescription: "Ask the agent to make your own plugin",
773
+ createPluginChecking: "Checking whether plugin creation is available",
788
774
  createPluginUnavailable: "Temporarily unavailable. Reopen this menu to retry",
789
- createPluginMissing: "Creator mode is not included in this configuration",
775
+ createPluginMissing: "This configuration cannot create plugins",
790
776
  openLocation: "Open folder",
791
777
  showLocation: "Show location",
792
778
  revealedPathLabel: "Preset files:",
@@ -799,9 +785,9 @@ window.__ModuleLoader__.load({
799
785
  deleting: "Deleting…",
800
786
  showPicker: "Allow switching Agent modes",
801
787
  showPickerBeta: "Beta",
802
- showPickerDescription: "When enabled, new tasks can choose Standard, Coding, Creator, and custom modes. When disabled, all new tasks use the default mode (Standard by default; configurable). Only affects new tasks.",
788
+ showPickerDescription: "When enabled, new tasks can choose among the available modes. When disabled, all new tasks use the default mode (configurable). Only affects new tasks.",
803
789
  enablePickerToSetDefault: "Turn on Agent mode selection to choose a default",
804
- enablePickerToCreate: "Turn on Agent mode selection to start Creator mode"
790
+ enablePickerToCreate: "Turn on Agent mode selection to draft a preset with the agent"
805
791
  };
806
792
  /** Simplified Chinese copy. */
807
793
  const zh = {
@@ -810,16 +796,12 @@ window.__ModuleLoader__.load({
810
796
  seatHint: "即将开始的这个会话所用的 Agent 预设",
811
797
  headerHint: "本会话运行的 Agent 预设,开始时即固定",
812
798
  nav: "Agent 预设",
813
- sectionIntro: "预设即一个会话的 Agent 所运行的插件组装 —— 它的工具、提示词与能力。复制一份既有预设改成自己的,或用「创造模式」让 Agent 帮你创建。",
799
+ sectionIntro: "预设即一个会话的 Agent 所运行的插件组装 —— 它的工具、提示词与能力。复制一份既有预设改成自己的,或让 Agent 帮你创建。",
814
800
  builtIn: "内置",
815
801
  setDefault: "设为默认",
816
802
  view: "查看",
817
- presetStandardName: "标准模式",
818
- presetStandardDescription: "功能完整的编码 Agent,支持文件编辑、Shell、文件与网页检索、Skills、计划、目标、子代理和工作流。",
819
803
  presetPtcName: "编码模式",
820
804
  presetPtcDescription: "功能完整的编码 Agent,但默认不提供 workflow 工具;其他工具经生成的 SDK 呈现,让模型用一个 TypeScript 程序组合多步操作。",
821
- presetCordisName: "创造模式",
822
- presetCordisDescription: "用于创建自定义 Agent preset:具备标准模式的全部能力,并提供运行时检查、持久化插件管理和 preset 创作指导。",
823
805
  duplicate: "复制",
824
806
  duplicateUnavailable: "此部署未配置可写的预设目录",
825
807
  delete: "删除",
@@ -844,12 +826,12 @@ window.__ModuleLoader__.load({
844
826
  copyIntro: "整个预设会在本机复制一份。标识符将成为目录名,事后无法更改;其余内容之后直接在预设自己的文件里编辑。",
845
827
  create: "创建",
846
828
  creating: "正在创建…",
847
- creatorDraft: "用「创造模式」创作自定义预设",
829
+ creatorDraft: "让 Agent 起草自定义预设",
848
830
  createPlugin: "让 Agent 创建插件",
849
- createPluginDescription: "进入创造模式,制作属于你的插件",
850
- createPluginChecking: "正在确认创造模式是否可用",
831
+ createPluginDescription: "让 Agent 制作属于你的插件",
832
+ createPluginChecking: "正在确认是否可以创建插件",
851
833
  createPluginUnavailable: "暂时不可用,请重新打开菜单重试",
852
- createPluginMissing: "当前配置未提供创造模式",
834
+ createPluginMissing: "当前配置无法创建插件",
853
835
  openLocation: "打开目录",
854
836
  showLocation: "查看路径",
855
837
  revealedPathLabel: "预设文件:",
@@ -862,9 +844,9 @@ window.__ModuleLoader__.load({
862
844
  deleting: "正在删除…",
863
845
  showPicker: "允许切换agent模式",
864
846
  showPickerBeta: "beta",
865
- showPickerDescription: "开启后,新任务可选择标准、编码、创造及自定义模式;关闭后统一使用默认模式(默认为标准模式,可自定义)。仅影响新任务。",
847
+ showPickerDescription: "开启后,新任务可在可选模式中选择;关闭后统一使用默认模式(可自定义)。仅影响新任务。",
866
848
  enablePickerToSetDefault: "请先开启 Agent 模式选择,再设置默认模式",
867
- enablePickerToCreate: "请先开启 Agent 模式选择,再启动创造模式"
849
+ enablePickerToCreate: "请先开启 Agent 模式选择,再让 Agent 起草预设"
868
850
  };
869
851
  //#endregion
870
852
  //#region \0qilin-css:/home/runner/work/QiLin/QiLin/packages/client/ui-agent-preset/src/client/AgentPresetLabel.module.css.mjs
@@ -1134,7 +1116,7 @@ window.__ModuleLoader__.load({
1134
1116
  */
1135
1117
  function CreatePluginMenuItem({ t, useAgentPresets, load, onDismiss, startCreatorDraft }) {
1136
1118
  const roster = useAgentPresets((state) => state);
1137
- const enabled = roster.status === "ready" && roster.options.some((option) => option.id === "cordis");
1119
+ const enabled = roster.status === "ready" && roster.options.some((option) => option.id === "ptc");
1138
1120
  (0, react.useEffect)(() => {
1139
1121
  load();
1140
1122
  }, [load]);
@@ -1879,7 +1861,7 @@ window.__ModuleLoader__.load({
1879
1861
  })]
1880
1862
  });
1881
1863
  }
1882
- const creatorButton = props.startCreatorDraft !== void 0 && state.rows.some((row) => row.id === "cordis") ? (0, react_jsx_runtime.jsxs)("button", {
1864
+ const creatorButton = props.startCreatorDraft !== void 0 && state.rows.some((row) => row.id === "ptc") ? (0, react_jsx_runtime.jsxs)("button", {
1883
1865
  type: "button",
1884
1866
  className: AgentPresetSection_module_css_default.creatorButton,
1885
1867
  disabled: !state.authorable || !state.showPicker || state.policySaving,
@@ -2448,7 +2430,7 @@ window.__ModuleLoader__.load({
2448
2430
  const startCreatorDraft = () => {
2449
2431
  if (!section.store.getSnapshot().showPicker) return;
2450
2432
  const seat = mainBlankSeat(scope) ?? unboundSeat;
2451
- seat.stage("cordis", true);
2433
+ seat.stage("ptc", true);
2452
2434
  scope.uiWorkspace.startSession();
2453
2435
  seat.apply();
2454
2436
  };
@@ -1,6 +1,6 @@
1
1
  /** Locale bundles for the agent-preset hero chip, header label, and management section. */
2
2
  /** Locale keys these surfaces render. */
3
- export type AgentPresetSettingsKey = 'error' | 'userTrust' | 'seatHint' | 'headerHint' | 'nav' | 'sectionIntro' | 'builtIn' | 'setDefault' | 'view' | 'presetStandardName' | 'presetStandardDescription' | 'presetPtcName' | 'presetPtcDescription' | 'presetCordisName' | 'presetCordisDescription' | 'duplicate' | 'duplicateUnavailable' | 'delete' | 'presetId' | 'presetIdPlaceholder' | 'copyOf' | 'displayName' | 'displayNamePlaceholder' | 'inUse' | 'selectionOffDefault' | 'noDescription' | 'builtInGroup' | 'customGroup' | 'brokenBadge' | 'brokenNoCopy' | 'switchRefused' | 'composition' | 'cancel' | 'close' | 'retry' | 'copyTitle' | 'copyIntro' | 'create' | 'creating' | 'creatorDraft' | 'createPlugin' | 'createPluginDescription' | 'createPluginChecking' | 'createPluginUnavailable' | 'createPluginMissing' | 'openLocation' | 'showLocation' | 'revealedPathLabel' | 'idRequired' | 'idInvalid' | 'idTaken' | 'deleteTitle' | 'deleteDescription' | 'deleteConfirm' | 'deleting' | 'showPicker' | 'showPickerBeta' | 'showPickerDescription' | 'enablePickerToSetDefault' | 'enablePickerToCreate';
3
+ export type AgentPresetSettingsKey = 'error' | 'userTrust' | 'seatHint' | 'headerHint' | 'nav' | 'sectionIntro' | 'builtIn' | 'setDefault' | 'view' | 'presetPtcName' | 'presetPtcDescription' | 'duplicate' | 'duplicateUnavailable' | 'delete' | 'presetId' | 'presetIdPlaceholder' | 'copyOf' | 'displayName' | 'displayNamePlaceholder' | 'inUse' | 'selectionOffDefault' | 'noDescription' | 'builtInGroup' | 'customGroup' | 'brokenBadge' | 'brokenNoCopy' | 'switchRefused' | 'composition' | 'cancel' | 'close' | 'retry' | 'copyTitle' | 'copyIntro' | 'create' | 'creating' | 'creatorDraft' | 'createPlugin' | 'createPluginDescription' | 'createPluginChecking' | 'createPluginUnavailable' | 'createPluginMissing' | 'openLocation' | 'showLocation' | 'revealedPathLabel' | 'idRequired' | 'idInvalid' | 'idTaken' | 'deleteTitle' | 'deleteDescription' | 'deleteConfirm' | 'deleting' | 'showPicker' | 'showPickerBeta' | 'showPickerDescription' | 'enablePickerToSetDefault' | 'enablePickerToCreate';
4
4
  /** English copy. */
5
5
  export declare const en: Record<AgentPresetSettingsKey, string>;
6
6
  /** Simplified Chinese copy. */
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The shipped preset that carries the runtime-authoring toolset. The deployment
3
+ * ships exactly one preset, and the creator flow stages it so a blank Session
4
+ * can author a composition in conversation.
5
+ */
6
+ export declare const SHIPPED_PRESET_ID = "ptc";
7
+ //# sourceMappingURL=shipped-preset.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qilin-agent/client-ui-agent-preset",
3
3
  "description": "Agent-preset surfaces: the default for later sessions, this session's seat, and the composition editor",
4
- "version": "3.1.3",
4
+ "version": "3.1.5",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -50,24 +50,24 @@
50
50
  "devDependencies": {
51
51
  "@types/react": "~18.3.1",
52
52
  "react": "^18.2.0",
53
- "@qilin-agent/api-remotes": "3.1.3",
54
- "@qilin-agent/api-session-controller": "3.1.3",
55
- "@qilin-agent/agent-presets": "3.1.3",
56
- "@qilin-agent/client-connection": "3.1.3",
57
- "@qilin-agent/client-locale": "3.1.3",
58
- "@qilin-agent/client-store": "3.1.3",
59
- "@qilin-agent/client-test-runtime": "3.1.3",
60
- "@qilin-agent/client-ui-conversation": "3.1.3",
61
- "@qilin-agent/client-ui-plugin-manager": "3.1.3",
62
- "@qilin-agent/client-ui-primitives": "3.1.3",
63
- "@qilin-agent/client-ui-slots": "3.1.3",
64
- "@qilin-agent/client-ui-settings": "3.1.3",
65
- "@qilin-agent/util-values": "3.1.3",
53
+ "@qilin-agent/api-remotes": "3.1.5",
54
+ "@qilin-agent/api-session-controller": "3.1.5",
55
+ "@qilin-agent/agent-presets": "3.1.5",
56
+ "@qilin-agent/client-connection": "3.1.5",
57
+ "@qilin-agent/client-locale": "3.1.5",
58
+ "@qilin-agent/client-ui-conversation": "3.1.5",
59
+ "@qilin-agent/client-store": "3.1.5",
60
+ "@qilin-agent/client-ui-plugin-manager": "3.1.5",
61
+ "@qilin-agent/client-ui-primitives": "3.1.5",
62
+ "@qilin-agent/client-ui-settings": "3.1.5",
63
+ "@qilin-agent/client-test-runtime": "3.1.5",
64
+ "@qilin-agent/client-ui-slots": "3.1.5",
65
+ "@qilin-agent/session": "3.1.5",
66
+ "@qilin-agent/util-values": "3.1.5",
66
67
  "@qilin-agent/kylin": "~4.0.3",
67
- "@qilin-agent/session": "3.1.3",
68
- "@qilin-agent/client-ui-renderer": "3.1.3",
69
- "@qilin-agent/client-ui-session": "3.1.3",
70
- "@qilin-agent/client-ui-workspace": "3.1.3"
68
+ "@qilin-agent/client-ui-session": "3.1.5",
69
+ "@qilin-agent/client-ui-workspace": "3.1.5",
70
+ "@qilin-agent/client-ui-renderer": "3.1.5"
71
71
  },
72
72
  "files": [
73
73
  "lib/index.js",