@jungjaehoon/mama-os 0.58.1 → 0.59.1

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 (65) hide show
  1. package/README.md +1 -1
  2. package/dist/api/help-actions.d.ts +7 -2
  3. package/dist/api/help-actions.d.ts.map +1 -1
  4. package/dist/api/help-actions.js +40 -9
  5. package/dist/api/help-actions.js.map +1 -1
  6. package/dist/api/judge-actions.d.ts +25 -0
  7. package/dist/api/judge-actions.d.ts.map +1 -0
  8. package/dist/api/judge-actions.js +157 -0
  9. package/dist/api/judge-actions.js.map +1 -0
  10. package/dist/api/report-source-actions.d.ts.map +1 -1
  11. package/dist/api/report-source-actions.js +64 -12
  12. package/dist/api/report-source-actions.js.map +1 -1
  13. package/dist/api/viewer-server.d.ts.map +1 -1
  14. package/dist/api/viewer-server.js +29 -16
  15. package/dist/api/viewer-server.js.map +1 -1
  16. package/dist/api/work-actions.d.ts.map +1 -1
  17. package/dist/api/work-actions.js +148 -31
  18. package/dist/api/work-actions.js.map +1 -1
  19. package/dist/cli/commands/daemon.d.ts.map +1 -1
  20. package/dist/cli/commands/daemon.js +2 -1
  21. package/dist/cli/commands/daemon.js.map +1 -1
  22. package/dist/cli/commands/init.d.ts.map +1 -1
  23. package/dist/cli/commands/init.js +15 -1
  24. package/dist/cli/commands/init.js.map +1 -1
  25. package/dist/replay/jev-client.d.ts +5 -1
  26. package/dist/replay/jev-client.d.ts.map +1 -1
  27. package/dist/replay/jev-client.js +1 -0
  28. package/dist/replay/jev-client.js.map +1 -1
  29. package/dist/runtime/action-surface.d.ts +6 -1
  30. package/dist/runtime/action-surface.d.ts.map +1 -1
  31. package/dist/runtime/action-surface.js +7 -0
  32. package/dist/runtime/action-surface.js.map +1 -1
  33. package/dist/runtime/config.d.ts +2 -0
  34. package/dist/runtime/config.d.ts.map +1 -1
  35. package/dist/runtime/config.js +5 -1
  36. package/dist/runtime/config.js.map +1 -1
  37. package/dist/runtime/owner-runtime.d.ts +5 -0
  38. package/dist/runtime/owner-runtime.d.ts.map +1 -1
  39. package/dist/runtime/owner-runtime.js +31 -3
  40. package/dist/runtime/owner-runtime.js.map +1 -1
  41. package/dist/runtime/owner-system-prompt.d.ts +9 -4
  42. package/dist/runtime/owner-system-prompt.d.ts.map +1 -1
  43. package/dist/runtime/owner-system-prompt.js +79 -34
  44. package/dist/runtime/owner-system-prompt.js.map +1 -1
  45. package/dist/runtime/record-orders.d.ts +32 -10
  46. package/dist/runtime/record-orders.d.ts.map +1 -1
  47. package/dist/runtime/record-orders.js +265 -59
  48. package/dist/runtime/record-orders.js.map +1 -1
  49. package/dist/runtime/session-start-context.d.ts +23 -0
  50. package/dist/runtime/session-start-context.d.ts.map +1 -0
  51. package/dist/runtime/session-start-context.js +63 -0
  52. package/dist/runtime/session-start-context.js.map +1 -0
  53. package/dist/runtime/stimulus-delivery.d.ts +12 -5
  54. package/dist/runtime/stimulus-delivery.d.ts.map +1 -1
  55. package/dist/runtime/stimulus-delivery.js +12 -7
  56. package/dist/runtime/stimulus-delivery.js.map +1 -1
  57. package/dist/runtime/turn-orders.d.ts +55 -5
  58. package/dist/runtime/turn-orders.d.ts.map +1 -1
  59. package/dist/runtime/turn-orders.js +176 -32
  60. package/dist/runtime/turn-orders.js.map +1 -1
  61. package/package.json +2 -2
  62. package/dist/runtime/recent-owner-exchanges.d.ts +0 -8
  63. package/dist/runtime/recent-owner-exchanges.d.ts.map +0 -1
  64. package/dist/runtime/recent-owner-exchanges.js +0 -27
  65. package/dist/runtime/recent-owner-exchanges.js.map +0 -1
@@ -1,8 +0,0 @@
1
- /** Startup carry uses durable inputs/results, gated by the transport's delivered receipts. */
2
- import type { Mailbox, MailboxRow } from '@jungjaehoon/mama-core/runtime/mailbox';
3
- export interface OwnerExchange {
4
- owner: string;
5
- answer: string;
6
- }
7
- export declare function readRecentOwnerExchanges(mailbox: Mailbox, deliveredRefs: readonly string[], current: MailboxRow): OwnerExchange[];
8
- //# sourceMappingURL=recent-owner-exchanges.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recent-owner-exchanges.d.ts","sourceRoot":"","sources":["../../src/runtime/recent-owner-exchanges.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAElF,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,SAAS,MAAM,EAAE,EAChC,OAAO,EAAE,UAAU,GAClB,aAAa,EAAE,CA0BjB"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readRecentOwnerExchanges = readRecentOwnerExchanges;
4
- function readRecentOwnerExchanges(mailbox, deliveredRefs, current) {
5
- return deliveredRefs
6
- .slice(0, 20)
7
- .map((ref) => mailbox.readInput(ref, current.principalId))
8
- .filter((row) => row !== null && row.kind === 'owner_message' && row.stimulusId !== current.stimulusId)
9
- .sort((a, b) => b.occurredAt - a.occurredAt || b.id - a.id)
10
- .flatMap((row) => {
11
- const receipt = row.nativeDelivery?.receipt;
12
- if (!receipt)
13
- return [];
14
- const result = mailbox.nativeInputs.resultForReceipt(receipt, current.principalId);
15
- const payload = row.payload;
16
- if (!result ||
17
- !payload ||
18
- typeof payload !== 'object' ||
19
- Array.isArray(payload) ||
20
- typeof payload.text !== 'string')
21
- return [];
22
- return [{ owner: payload.text, answer: result.response }];
23
- })
24
- .slice(0, 5)
25
- .reverse();
26
- }
27
- //# sourceMappingURL=recent-owner-exchanges.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recent-owner-exchanges.js","sourceRoot":"","sources":["../../src/runtime/recent-owner-exchanges.ts"],"names":[],"mappings":";;AAQA,4DA8BC;AA9BD,SAAgB,wBAAwB,CACtC,OAAgB,EACh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