@blade-hq/agent-kit 1.0.34 → 1.0.35

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.
Files changed (46) hide show
  1. package/README.md +95 -2
  2. package/dist/chunk-6KO3AOJ7.js +251 -0
  3. package/dist/chunk-6KO3AOJ7.js.map +1 -0
  4. package/dist/{chunk-FK4CV6R2.js → chunk-C63X3RCM.js} +629 -32
  5. package/dist/chunk-C63X3RCM.js.map +1 -0
  6. package/dist/{chunk-BDGMBHYV.js → chunk-DOBX7XP3.js} +5 -5
  7. package/dist/{chunk-EGGBOVVF.js → chunk-IP7EZVT5.js} +2 -2
  8. package/dist/{chunk-OICNN4K4.js → chunk-J6H4TMTH.js} +2 -2
  9. package/dist/{chunk-F4Y7SUBC.js → chunk-SEHOWQVO.js} +2 -2
  10. package/dist/{chunk-IDVNG3YJ.js → chunk-YJSN44Q4.js} +16 -3
  11. package/dist/{chunk-IDVNG3YJ.js.map → chunk-YJSN44Q4.js.map} +1 -1
  12. package/dist/{chunk-E7FQV4IX.js → chunk-ZPPYDQPU.js} +3 -3
  13. package/dist/client/auth.d.ts +55 -0
  14. package/dist/client/blade-client.d.ts +19 -3
  15. package/dist/client/connection.d.ts +41 -0
  16. package/dist/client/index.d.ts +3 -0
  17. package/dist/client/index.js +11 -3
  18. package/dist/client/resources/auth.d.ts +1 -26
  19. package/dist/client/socket.d.ts +1 -0
  20. package/dist/client/types/rest.d.ts +151 -0
  21. package/dist/client/types/socket-events.d.ts +4 -0
  22. package/dist/react/api/published-apps.js +3 -3
  23. package/dist/react/api/sessions.js +2 -2
  24. package/dist/react/bootstrap.d.ts +1 -1
  25. package/dist/react/components/chat/index.js +5 -5
  26. package/dist/react/components/connection/BladeConnectionButton.d.ts +7 -0
  27. package/dist/react/components/connection/BladeConnectionPanel.d.ts +7 -0
  28. package/dist/react/components/connection/index.d.ts +2 -0
  29. package/dist/react/components/connection/index.js +15 -0
  30. package/dist/react/components/connection/index.js.map +1 -0
  31. package/dist/react/components/plan/index.js +4 -4
  32. package/dist/react/components/session/index.js +3 -3
  33. package/dist/react/components/workspace/index.js +3 -3
  34. package/dist/react/hooks/use-blade-connection.d.ts +14 -0
  35. package/dist/react/index.d.ts +5 -1
  36. package/dist/react/index.js +20 -22
  37. package/dist/react/index.js.map +1 -1
  38. package/dist/react/sockets/event-bridge.d.ts +2 -0
  39. package/dist/style.css +1 -1
  40. package/package.json +5 -1
  41. package/dist/chunk-FK4CV6R2.js.map +0 -1
  42. /package/dist/{chunk-BDGMBHYV.js.map → chunk-DOBX7XP3.js.map} +0 -0
  43. /package/dist/{chunk-EGGBOVVF.js.map → chunk-IP7EZVT5.js.map} +0 -0
  44. /package/dist/{chunk-OICNN4K4.js.map → chunk-J6H4TMTH.js.map} +0 -0
  45. /package/dist/{chunk-F4Y7SUBC.js.map → chunk-SEHOWQVO.js.map} +0 -0
  46. /package/dist/{chunk-E7FQV4IX.js.map → chunk-ZPPYDQPU.js.map} +0 -0
@@ -1,6 +1,14 @@
1
+ import {
2
+ BladeClientProvider,
3
+ BladeConnectionButton,
4
+ BladeConnectionPanel,
5
+ BladeContext,
6
+ useBladeClient,
7
+ useBladeConnection
8
+ } from "../chunk-6KO3AOJ7.js";
1
9
  import {
2
10
  published_apps_exports
3
- } from "../chunk-EGGBOVVF.js";
11
+ } from "../chunk-IP7EZVT5.js";
4
12
  import {
5
13
  useCardState
6
14
  } from "../chunk-DQCXSPHP.js";
@@ -36,7 +44,7 @@ import {
36
44
  useTiptapVoiceInput,
37
45
  useVoiceInput,
38
46
  user_preferences_exports
39
- } from "../chunk-BDGMBHYV.js";
47
+ } from "../chunk-DOBX7XP3.js";
40
48
  import "../chunk-H62LH2AG.js";
41
49
  import {
42
50
  CardCodeBlock,
@@ -46,21 +54,21 @@ import {
46
54
  normalizeCodeLanguage,
47
55
  useCardContext,
48
56
  useHighlightedCodeHtml
49
- } from "../chunk-E7FQV4IX.js";
57
+ } from "../chunk-ZPPYDQPU.js";
50
58
  import {
51
59
  buildBinaryPreviewTarget,
52
60
  buildSessionBinaryPreviewTarget,
53
61
  isOfficePdfPreviewable,
54
62
  resolveSessionFilePreviewTarget,
55
63
  resolveTextPreviewType
56
- } from "../chunk-OICNN4K4.js";
64
+ } from "../chunk-J6H4TMTH.js";
57
65
  import {
58
66
  CardJSON,
59
67
  cardRegistry
60
68
  } from "../chunk-2UP7MG3J.js";
61
69
  import {
62
70
  useSession
63
- } from "../chunk-F4Y7SUBC.js";
71
+ } from "../chunk-SEHOWQVO.js";
64
72
  import {
65
73
  PartnerSkillFile,
66
74
  PartnerSkillInstallPayload,
@@ -89,6 +97,7 @@ import {
89
97
  getTextContent,
90
98
  groupMessagesByLoop,
91
99
  invalidateHomeSidebarSessions,
100
+ isHiddenInternalMessage,
92
101
  isInsideIframe,
93
102
  isUiMeta,
94
103
  listSkills,
@@ -115,12 +124,12 @@ import {
115
124
  useTaskStore,
116
125
  useUiBridgeStore,
117
126
  useUiStore
118
- } from "../chunk-IDVNG3YJ.js";
127
+ } from "../chunk-YJSN44Q4.js";
119
128
  import "../chunk-J3XVFPOV.js";
120
129
  import {
121
130
  REGISTRY_PREFIX,
122
131
  normalizeResource
123
- } from "../chunk-FK4CV6R2.js";
132
+ } from "../chunk-C63X3RCM.js";
124
133
  import {
125
134
  cn,
126
135
  copyToClipboard
@@ -132,21 +141,6 @@ import {
132
141
  __export
133
142
  } from "../chunk-PZ5AY32C.js";
134
143
 
135
- // src/react/context.ts
136
- import { createContext } from "react";
137
- var BladeContext = createContext(null);
138
-
139
- // src/react/provider.tsx
140
- import { useContext } from "react";
141
- import { jsx } from "react/jsx-runtime";
142
- function BladeClientProvider({ client, children }) {
143
- const instance = client ?? getBootstrappedClient();
144
- return /* @__PURE__ */ jsx(BladeContext.Provider, { value: instance, children });
145
- }
146
- function useBladeClient() {
147
- return useContext(BladeContext) ?? getBootstrappedClient();
148
- }
149
-
150
144
  // src/react/api/api-keys.ts
151
145
  var api_keys_exports = {};
152
146
  __export(api_keys_exports, {
@@ -1882,6 +1876,8 @@ export {
1882
1876
  AgentDriver,
1883
1877
  AgentResource,
1884
1878
  BladeClientProvider,
1879
+ BladeConnectionButton,
1880
+ BladeConnectionPanel,
1885
1881
  BladeContext,
1886
1882
  CardCodeBlock,
1887
1883
  CardContext,
@@ -1967,6 +1963,7 @@ export {
1967
1963
  gis_api_exports as gisApi,
1968
1964
  groupMessagesByLoop,
1969
1965
  invalidateHomeSidebarSessions,
1966
+ isHiddenInternalMessage,
1970
1967
  isInsideIframe,
1971
1968
  isOfficePdfPreviewable,
1972
1969
  isUiMeta,
@@ -2008,6 +2005,7 @@ export {
2008
2005
  useBackgroundStore,
2009
2006
  useBackgroundTasks,
2010
2007
  useBladeClient,
2008
+ useBladeConnection,
2011
2009
  useCardContext,
2012
2010
  useCardState,
2013
2011
  useCardStateStore,