@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.
- package/README.md +1 -1
- package/dist/api/help-actions.d.ts +7 -2
- package/dist/api/help-actions.d.ts.map +1 -1
- package/dist/api/help-actions.js +40 -9
- package/dist/api/help-actions.js.map +1 -1
- package/dist/api/judge-actions.d.ts +25 -0
- package/dist/api/judge-actions.d.ts.map +1 -0
- package/dist/api/judge-actions.js +157 -0
- package/dist/api/judge-actions.js.map +1 -0
- package/dist/api/report-source-actions.d.ts.map +1 -1
- package/dist/api/report-source-actions.js +64 -12
- package/dist/api/report-source-actions.js.map +1 -1
- package/dist/api/viewer-server.d.ts.map +1 -1
- package/dist/api/viewer-server.js +29 -16
- package/dist/api/viewer-server.js.map +1 -1
- package/dist/api/work-actions.d.ts.map +1 -1
- package/dist/api/work-actions.js +148 -31
- package/dist/api/work-actions.js.map +1 -1
- package/dist/cli/commands/daemon.d.ts.map +1 -1
- package/dist/cli/commands/daemon.js +2 -1
- package/dist/cli/commands/daemon.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +15 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/replay/jev-client.d.ts +5 -1
- package/dist/replay/jev-client.d.ts.map +1 -1
- package/dist/replay/jev-client.js +1 -0
- package/dist/replay/jev-client.js.map +1 -1
- package/dist/runtime/action-surface.d.ts +6 -1
- package/dist/runtime/action-surface.d.ts.map +1 -1
- package/dist/runtime/action-surface.js +7 -0
- package/dist/runtime/action-surface.js.map +1 -1
- package/dist/runtime/config.d.ts +2 -0
- package/dist/runtime/config.d.ts.map +1 -1
- package/dist/runtime/config.js +5 -1
- package/dist/runtime/config.js.map +1 -1
- package/dist/runtime/owner-runtime.d.ts +5 -0
- package/dist/runtime/owner-runtime.d.ts.map +1 -1
- package/dist/runtime/owner-runtime.js +31 -3
- package/dist/runtime/owner-runtime.js.map +1 -1
- package/dist/runtime/owner-system-prompt.d.ts +9 -4
- package/dist/runtime/owner-system-prompt.d.ts.map +1 -1
- package/dist/runtime/owner-system-prompt.js +79 -34
- package/dist/runtime/owner-system-prompt.js.map +1 -1
- package/dist/runtime/record-orders.d.ts +32 -10
- package/dist/runtime/record-orders.d.ts.map +1 -1
- package/dist/runtime/record-orders.js +265 -59
- package/dist/runtime/record-orders.js.map +1 -1
- package/dist/runtime/session-start-context.d.ts +23 -0
- package/dist/runtime/session-start-context.d.ts.map +1 -0
- package/dist/runtime/session-start-context.js +63 -0
- package/dist/runtime/session-start-context.js.map +1 -0
- package/dist/runtime/stimulus-delivery.d.ts +12 -5
- package/dist/runtime/stimulus-delivery.d.ts.map +1 -1
- package/dist/runtime/stimulus-delivery.js +12 -7
- package/dist/runtime/stimulus-delivery.js.map +1 -1
- package/dist/runtime/turn-orders.d.ts +55 -5
- package/dist/runtime/turn-orders.d.ts.map +1 -1
- package/dist/runtime/turn-orders.js +176 -32
- package/dist/runtime/turn-orders.js.map +1 -1
- package/package.json +2 -2
- package/dist/runtime/recent-owner-exchanges.d.ts +0 -8
- package/dist/runtime/recent-owner-exchanges.d.ts.map +0 -1
- package/dist/runtime/recent-owner-exchanges.js +0 -27
- 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
|
|
@@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