@hachej/boring-ask-user 0.1.53 → 0.1.55

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.
@@ -278,7 +278,25 @@ function validateAskUserFormSchema(value) {
278
278
  function validateAskUserToolInput(value) {
279
279
  return AskUserToolInputSchema.safeParse(value);
280
280
  }
281
+
282
+ // src/shared/bridge.ts
283
+ var ASK_USER_BRIDGE_OPS = {
284
+ request: "ask-user.v1.request",
285
+ answer: "ask-user.v1.answer",
286
+ cancel: "ask-user.v1.cancel",
287
+ pending: "ask-user.v1.pending",
288
+ transcript: "ask-user.v1.transcript"
289
+ };
290
+ var ASK_USER_BRIDGE_CAPABILITIES = {
291
+ request: "ask-user:request",
292
+ answer: "ask-user:answer",
293
+ cancel: "ask-user:cancel",
294
+ pending: "ask-user:pending",
295
+ transcriptRead: "ask-user:transcript.read"
296
+ };
281
297
  export {
298
+ ASK_USER_BRIDGE_CAPABILITIES,
299
+ ASK_USER_BRIDGE_OPS,
282
300
  ASK_USER_COMMAND_KINDS,
283
301
  ASK_USER_ERROR_CODES,
284
302
  ASK_USER_ERROR_CODE_VALUES,
@@ -108,6 +108,8 @@ type AskUserRequest = {
108
108
  context?: string;
109
109
  schema?: AskUserFormSchema;
110
110
  timeoutMs?: number;
111
+ /** Trusted server/runtime attribution. Not accepted from browser bridge inputs. */
112
+ ownerPrincipalId?: string;
111
113
  };
112
114
  type AskUserToolInput = {
113
115
  title: string;
@@ -190,4 +192,4 @@ type AskUserTranscriptEvent = {
190
192
  at: string;
191
193
  };
192
194
 
193
- export { type AskUserQuestion as A, type QuestionsCommand as Q, type AskUserAnswer as a, type AskUserTranscriptEvent as b, type AskUserToolResult as c, type AskUserCancelReason as d, type AskUserRequest as e, type AskUserField as f, type AskUserAnswerValue as g, ASK_USER_PLUGIN_ID as h, ASK_USER_COMMAND_KINDS as i, ASK_USER_FIELD_NAME_PATTERN as j, ASK_USER_PANEL_ID as k, ASK_USER_PANEL_TITLE as l, ASK_USER_RESERVED_FIELD_NAMES as m, ASK_USER_SCHEMA_LIMITS as n, ASK_USER_SURFACE_KIND as o, ASK_USER_UI_STATE_SLOTS as p, type AskUserFormSchema as q, type AskUserOption as r, type AskUserQuestionStatus as s, type AskUserToolInput as t, type QuestionsCancelCommand as u, type QuestionsSubmitCommand as v };
195
+ export { type AskUserQuestion as A, type QuestionsCommand as Q, type AskUserAnswer as a, type AskUserTranscriptEvent as b, type AskUserToolResult as c, type AskUserCancelReason as d, type AskUserRequest as e, type AskUserField as f, type AskUserAnswerValue as g, ASK_USER_PLUGIN_ID as h, type AskUserFormSchema as i, ASK_USER_COMMAND_KINDS as j, ASK_USER_FIELD_NAME_PATTERN as k, ASK_USER_PANEL_ID as l, ASK_USER_PANEL_TITLE as m, ASK_USER_RESERVED_FIELD_NAMES as n, ASK_USER_SCHEMA_LIMITS as o, ASK_USER_SURFACE_KIND as p, ASK_USER_UI_STATE_SLOTS as q, type AskUserOption as r, type AskUserQuestionStatus as s, type AskUserToolInput as t, type QuestionsCancelCommand as u, type QuestionsSubmitCommand as v };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hachej/boring-ask-user",
3
- "version": "0.1.53",
3
+ "version": "0.1.55",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -46,12 +46,12 @@
46
46
  "fastify": "^5.3.3",
47
47
  "react": "^18.0.0 || ^19.0.0",
48
48
  "react-dom": "^18.0.0 || ^19.0.0",
49
- "@hachej/boring-workspace": "0.1.53"
49
+ "@hachej/boring-workspace": "0.1.55"
50
50
  },
51
51
  "dependencies": {
52
52
  "lucide-react": "^1.8.0",
53
53
  "zod": "^3.23.0",
54
- "@hachej/boring-ui-kit": "0.1.53"
54
+ "@hachej/boring-ui-kit": "0.1.55"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@testing-library/jest-dom": "^6.9.1",
@@ -67,7 +67,7 @@
67
67
  "tsup": "^8.4.0",
68
68
  "typescript": "~5.9.3",
69
69
  "vitest": "^3.2.6",
70
- "@hachej/boring-workspace": "0.1.53"
70
+ "@hachej/boring-workspace": "0.1.55"
71
71
  },
72
72
  "peerDependenciesMeta": {
73
73
  "fastify": {