@jungjaehoon/mama-os 0.57.0 → 0.58.0
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/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/dist/api/attachment-actions.d.ts.map +1 -1
- package/dist/api/attachment-actions.js +5 -3
- package/dist/api/attachment-actions.js.map +1 -1
- package/dist/api/help-actions.d.ts +12 -0
- package/dist/api/help-actions.d.ts.map +1 -0
- package/dist/api/help-actions.js +70 -0
- package/dist/api/help-actions.js.map +1 -0
- package/dist/api/owner-timezone-actions.d.ts.map +1 -1
- package/dist/api/owner-timezone-actions.js +1 -1
- package/dist/api/owner-timezone-actions.js.map +1 -1
- package/dist/api/record-actions.d.ts +8 -0
- package/dist/api/record-actions.d.ts.map +1 -0
- package/dist/api/record-actions.js +53 -0
- package/dist/api/record-actions.js.map +1 -0
- package/dist/api/report-actions.d.ts +0 -2
- package/dist/api/report-actions.d.ts.map +1 -1
- package/dist/api/report-actions.js +5 -5
- package/dist/api/report-actions.js.map +1 -1
- package/dist/api/report-source-actions.js +2 -2
- package/dist/api/report-source-actions.js.map +1 -1
- package/dist/api/viewer-server.d.ts +1 -0
- package/dist/api/viewer-server.d.ts.map +1 -1
- package/dist/api/viewer-server.js +21 -17
- package/dist/api/viewer-server.js.map +1 -1
- package/dist/api/work-actions.d.ts +0 -13
- package/dist/api/work-actions.d.ts.map +1 -1
- package/dist/api/work-actions.js +6 -37
- 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 +14 -2
- package/dist/cli/commands/daemon.js.map +1 -1
- package/dist/connectors/framework/polling-scheduler.d.ts.map +1 -1
- package/dist/connectors/framework/polling-scheduler.js +9 -0
- package/dist/connectors/framework/polling-scheduler.js.map +1 -1
- package/dist/gateways/telegram-format.js +2 -2
- package/dist/gateways/telegram-format.js.map +1 -1
- package/dist/operator/board-read-views.d.ts.map +1 -1
- package/dist/operator/board-read-views.js +3 -3
- package/dist/operator/board-read-views.js.map +1 -1
- package/dist/operator/board-slot-instructions.d.ts +4 -6
- package/dist/operator/board-slot-instructions.d.ts.map +1 -1
- package/dist/operator/board-slot-instructions.js +11 -24
- package/dist/operator/board-slot-instructions.js.map +1 -1
- package/dist/runtime/action-mcp-server.d.ts.map +1 -1
- package/dist/runtime/action-mcp-server.js +4 -5
- package/dist/runtime/action-mcp-server.js.map +1 -1
- package/dist/runtime/action-surface.d.ts +1 -1
- package/dist/runtime/action-surface.d.ts.map +1 -1
- package/dist/runtime/action-surface.js +13 -3
- package/dist/runtime/action-surface.js.map +1 -1
- package/dist/runtime/native-session.d.ts +6 -0
- package/dist/runtime/native-session.d.ts.map +1 -1
- package/dist/runtime/native-session.js +13 -15
- package/dist/runtime/native-session.js.map +1 -1
- package/dist/runtime/owner-runtime.d.ts +14 -3
- package/dist/runtime/owner-runtime.d.ts.map +1 -1
- package/dist/runtime/owner-runtime.js +77 -13
- package/dist/runtime/owner-runtime.js.map +1 -1
- package/dist/runtime/owner-system-prompt.d.ts +7 -8
- package/dist/runtime/owner-system-prompt.d.ts.map +1 -1
- package/dist/runtime/owner-system-prompt.js +64 -68
- package/dist/runtime/owner-system-prompt.js.map +1 -1
- package/dist/runtime/recent-owner-exchanges.d.ts +0 -2
- package/dist/runtime/recent-owner-exchanges.d.ts.map +1 -1
- package/dist/runtime/recent-owner-exchanges.js +0 -26
- package/dist/runtime/recent-owner-exchanges.js.map +1 -1
- package/dist/runtime/record-orders.d.ts +49 -0
- package/dist/runtime/record-orders.d.ts.map +1 -0
- package/dist/runtime/record-orders.js +152 -0
- package/dist/runtime/record-orders.js.map +1 -0
- package/dist/runtime/report-scheduler.d.ts.map +1 -1
- package/dist/runtime/report-scheduler.js +14 -11
- package/dist/runtime/report-scheduler.js.map +1 -1
- package/dist/runtime/stimulus-delivery.d.ts +25 -27
- package/dist/runtime/stimulus-delivery.d.ts.map +1 -1
- package/dist/runtime/stimulus-delivery.js +185 -268
- package/dist/runtime/stimulus-delivery.js.map +1 -1
- package/dist/runtime/timezone.d.ts +2 -0
- package/dist/runtime/timezone.d.ts.map +1 -1
- package/dist/runtime/timezone.js +9 -0
- package/dist/runtime/timezone.js.map +1 -1
- package/dist/runtime/turn-orders.d.ts +86 -0
- package/dist/runtime/turn-orders.d.ts.map +1 -0
- package/dist/runtime/turn-orders.js +272 -0
- package/dist/runtime/turn-orders.js.map +1 -0
- package/package.json +2 -2
- package/dist/runtime/report-prompts.d.ts +0 -14
- package/dist/runtime/report-prompts.d.ts.map +0 -1
- package/dist/runtime/report-prompts.js +0 -69
- package/dist/runtime/report-prompts.js.map +0 -1
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.scheduledReport = scheduledReport;
|
|
4
|
-
exports.buildScheduledReportPrompt = buildScheduledReportPrompt;
|
|
5
|
-
const board_slot_instructions_js_1 = require("../operator/board-slot-instructions.js");
|
|
6
|
-
const timezone_js_1 = require("./timezone.js");
|
|
7
|
-
function scheduledReport(payload) {
|
|
8
|
-
if (!payload ||
|
|
9
|
-
typeof payload !== 'object' ||
|
|
10
|
-
Array.isArray(payload) ||
|
|
11
|
-
(payload.report !== 'full' && payload.report !== 'reminder') ||
|
|
12
|
-
typeof payload.hourKey !== 'string' ||
|
|
13
|
-
!/^\d{4}-\d{2}-\d{2}:\d{2}$/.test(payload.hourKey)) {
|
|
14
|
-
throw new Error('Scheduled report requires { report: full | reminder, hourKey: YYYY-MM-DD:HH }');
|
|
15
|
-
}
|
|
16
|
-
const previousFullReportAt = payload.previousFullReportAt;
|
|
17
|
-
if (previousFullReportAt !== undefined &&
|
|
18
|
-
previousFullReportAt !== null &&
|
|
19
|
-
typeof previousFullReportAt !== 'string') {
|
|
20
|
-
throw new Error('Scheduled report previousFullReportAt must be a time or null');
|
|
21
|
-
}
|
|
22
|
-
return {
|
|
23
|
-
report: payload.report,
|
|
24
|
-
hourKey: payload.hourKey,
|
|
25
|
-
previousFullReportAt: typeof previousFullReportAt === 'string' ? previousFullReportAt : null,
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
/** Port the report instructions using the product's current actions and board slots. */
|
|
29
|
-
function buildScheduledReportPrompt(payload, now, options) {
|
|
30
|
-
const { report, previousFullReportAt } = scheduledReport(payload);
|
|
31
|
-
const timeZone = options.timeZone;
|
|
32
|
-
const recentSince = previousFullReportAt === null
|
|
33
|
-
? '24h ago'
|
|
34
|
-
: new Date((0, timezone_js_1.epochAtLocalDateTime)(`${previousFullReportAt.slice(0, 10)}T${previousFullReportAt.slice(11)}:00:00`, timeZone)).toISOString();
|
|
35
|
-
const fullReportChecklist = [
|
|
36
|
-
`Current time: ${now.toLocaleString('ko-KR', { timeZone })} (${timeZone})`,
|
|
37
|
-
`Checklist: call source.recent with since="${recentSince}" for changes since that time, work.list with view="pipeline", and schedule.upcoming with days=14.`,
|
|
38
|
-
'Read originals with source.read when a recent line changes the report; distinguish an empty result from failed or stale collection.',
|
|
39
|
-
'Compare every open deadline with the event and holiday calendar; use event end times when deciding whether a booking overlaps.',
|
|
40
|
-
'Name work items under each stage. List every item waiting on an owner decision, with the decision requested.',
|
|
41
|
-
'Say plainly when there were no changes. Include the owner schedule section and list its upcoming events and holidays.',
|
|
42
|
-
];
|
|
43
|
-
const instructions = report === 'full'
|
|
44
|
-
? [
|
|
45
|
-
'[scheduled_full_report]',
|
|
46
|
-
...fullReportChecklist,
|
|
47
|
-
...(0, board_slot_instructions_js_1.buildBoardPublishLines)(timeZone),
|
|
48
|
-
...(options.wikiEnabled === false
|
|
49
|
-
? []
|
|
50
|
-
: [
|
|
51
|
-
'After publishing the board, update each affected topic wiki page with manage.wiki.update, creating one with manage.wiki.publish only when no topic page fits; split separate topic page updates across subagents inside this turn. Write the daily/YYYY-MM-DD.md journal grouped by project with one entry per moved item, and put lessons under lessons/.',
|
|
52
|
-
]),
|
|
53
|
-
'Write the Korean report in five parts, in order: key situation today; needs a response; needs a decision; pipeline with each stage and item; next actions. Put the owner schedule and holidays under key situation today.',
|
|
54
|
-
]
|
|
55
|
-
: [
|
|
56
|
-
'[scheduled_task_reminder]',
|
|
57
|
-
'Use what this owner session already knows and call work.list with view="pipeline" for the compact open-work list. Read source originals only when needed to resolve a material uncertainty.',
|
|
58
|
-
'Call schedule.upcoming when this session has not read the calendar.',
|
|
59
|
-
'Select the 5–8 most urgent open items. Include every item waiting on an owner decision and any deadline affected by a calendar event or holiday.',
|
|
60
|
-
'Update only action_required with report.publish({ slots: { action_required: "<html>" } }); scheduled full reports handle the other slots and wiki resync.',
|
|
61
|
-
'Return only a concise Korean reminder of 3–6 lines, most urgent or nearest deadline first, under a short Korean title that names the top N priorities.',
|
|
62
|
-
];
|
|
63
|
-
return [
|
|
64
|
-
...instructions,
|
|
65
|
-
'Owner-facing text carries no commitment, observation, judgment or channel ids; use readable work titles and sentences.',
|
|
66
|
-
`Messenger: ${options.messenger ?? 'telegram'}. Format the final output for this messenger: Telegram HTML subset with no Markdown; Discord Markdown; Slack mrkdwn. Board div/span/CSS belongs only in report.publish. No code-block wrapper, working notes or [notify]/[ack] tags.`,
|
|
67
|
-
].join('\n');
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=report-prompts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"report-prompts.js","sourceRoot":"","sources":["../../src/runtime/report-prompts.ts"],"names":[],"mappings":";;AAUA,0CA0BC;AAGD,gEAkDC;AAxFD,uFAAgF;AAChF,+CAAqD;AAQrD,SAAgB,eAAe,CAAC,OAA8B;IAC5D,IACE,CAAC,OAAO;QACR,OAAO,OAAO,KAAK,QAAQ;QAC3B,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QACtB,CAAC,OAAO,CAAC,MAAM,KAAK,MAAM,IAAI,OAAO,CAAC,MAAM,KAAK,UAAU,CAAC;QAC5D,OAAO,OAAO,CAAC,OAAO,KAAK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