@siact/sime-x-vue 0.0.14 → 0.0.15

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.
@@ -768,17 +768,12 @@ function injectStrict(key, defaultValue, treatDefaultAsFactory) {
768
768
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
769
769
  __name: "sime-provider",
770
770
  props: {
771
- project: {},
772
- description: {},
773
- debug: { type: Boolean },
774
- chatbotUrl: {},
775
- appId: {},
776
771
  appToken: {},
777
- agentId: {}
772
+ organizationId: {}
778
773
  },
779
774
  setup(__props) {
780
775
  const props = __props;
781
- const commandManager = shallowRef(new CommandManager({ debug: props.debug ?? false }));
776
+ const commandManager = shallowRef(new CommandManager({ debug: false }));
782
777
  const startListeningRef = shallowRef(async () => {
783
778
  });
784
779
  const stopListeningRef = shallowRef(async () => {
@@ -786,10 +781,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
786
781
  const stopBroadcastRef = shallowRef(async () => {
787
782
  });
788
783
  provide(AiChatbotXKey, {
789
- chatbotUrl: () => props.chatbotUrl,
790
- appId: () => props.appId,
791
784
  appToken: () => props.appToken,
792
- agentId: () => props.agentId,
785
+ organizationId: () => props.organizationId,
793
786
  startListening: () => startListeningRef.value(),
794
787
  stopListening: () => stopListeningRef.value(),
795
788
  stopBroadcast: () => stopBroadcastRef.value(),
@@ -1960,6 +1953,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1960
1953
  wakeWords: {},
1961
1954
  wakeResponses: {},
1962
1955
  modelPath: {},
1956
+ agentId: {},
1963
1957
  projectId: {},
1964
1958
  voiceConfig: {},
1965
1959
  bubbleSize: {},
@@ -1973,6 +1967,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1973
1967
  return null;
1974
1968
  };
1975
1969
  const wakeResponses = computed(() => props.wakeResponses || ["在呢"]);
1970
+ const agentId = computed(() => props.agentId);
1976
1971
  const tts = useTTS(getVoiceConfig);
1977
1972
  const bubbleBridge = {
1978
1973
  open: () => {
@@ -1982,7 +1977,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1982
1977
  scrollToBottom: () => {
1983
1978
  }
1984
1979
  };
1985
- const endpoint = `/sime/proxy/agent/${aiChatbotX.agentId()}/stream-invoke`;
1980
+ const endpoint = `/sime/proxy/organizations/${aiChatbotX.organizationId()}/agents/${agentId.value}/stream-invoke`;
1986
1981
  const agent = useAgentInvoke({
1987
1982
  endpoint,
1988
1983
  appToken: aiChatbotX.appToken(),
@@ -2179,7 +2174,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2179
2174
  }
2180
2175
  });
2181
2176
 
2182
- const voiceAssistant = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-76f6b7ef"]]);
2177
+ const voiceAssistant = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-59d72f34"]]);
2183
2178
 
2184
2179
  var clientCommandKey = /* @__PURE__ */ ((clientCommandKey2) => {
2185
2180
  clientCommandKey2["SET_THEME"] = "SiMeAgent_setTheme";