@askexenow/exe-os 0.9.86 → 0.9.88
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/deploy/compose/docker-compose.yml +3 -3
- package/dist/bin/age-ontology-load.js +8 -2
- package/dist/bin/agentic-ontology-backfill.js +29 -0
- package/dist/bin/agentic-reflection-backfill.js +29 -0
- package/dist/bin/agentic-semantic-label.js +29 -0
- package/dist/bin/backfill-conversations.js +30 -0
- package/dist/bin/backfill-responses.js +30 -0
- package/dist/bin/backfill-vectors.js +30 -0
- package/dist/bin/bulk-sync-postgres.js +47 -1
- package/dist/bin/cc-doctor.js +3 -2
- package/dist/bin/cleanup-stale-review-tasks.js +30 -0
- package/dist/bin/cli.js +357 -19
- package/dist/bin/exe-agent.js +19 -0
- package/dist/bin/exe-assign.js +30 -0
- package/dist/bin/exe-boot.js +157 -4
- package/dist/bin/exe-call.js +20 -0
- package/dist/bin/exe-cloud.js +156 -3
- package/dist/bin/exe-dispatch.js +30 -1
- package/dist/bin/exe-doctor.js +30 -0
- package/dist/bin/exe-export-behaviors.js +29 -0
- package/dist/bin/exe-forget.js +30 -0
- package/dist/bin/exe-gateway.js +150 -35
- package/dist/bin/exe-healthcheck.js +2 -1
- package/dist/bin/exe-heartbeat.js +30 -0
- package/dist/bin/exe-kill.js +29 -0
- package/dist/bin/exe-launch-agent.js +29 -0
- package/dist/bin/exe-new-employee.js +37 -4
- package/dist/bin/exe-pending-messages.js +29 -0
- package/dist/bin/exe-pending-notifications.js +30 -0
- package/dist/bin/exe-pending-reviews.js +30 -0
- package/dist/bin/exe-rename.js +30 -0
- package/dist/bin/exe-review.js +30 -0
- package/dist/bin/exe-search.js +30 -0
- package/dist/bin/exe-session-cleanup.js +30 -1
- package/dist/bin/exe-settings.js +3 -0
- package/dist/bin/exe-start-codex.js +31 -2
- package/dist/bin/exe-start-opencode.js +31 -2
- package/dist/bin/exe-status.js +30 -0
- package/dist/bin/exe-team.js +30 -0
- package/dist/bin/git-sweep.js +30 -1
- package/dist/bin/graph-backfill.js +29 -0
- package/dist/bin/graph-export.js +29 -0
- package/dist/bin/graph-layer-benchmark.js +9 -1
- package/dist/bin/install.js +9 -0
- package/dist/bin/intercom-check.js +31 -1
- package/dist/bin/list-providers.js +1 -0
- package/dist/bin/postgres-agentic-reflection-backfill.js +7 -1
- package/dist/bin/postgres-agentic-semantic-backfill.js +7 -1
- package/dist/bin/registry-proxy.js +1 -0
- package/dist/bin/scan-tasks.js +31 -1
- package/dist/bin/setup.js +165 -9
- package/dist/bin/shard-migrate.js +29 -0
- package/dist/bin/stack-update.js +24 -7
- package/dist/bin/update.js +5 -0
- package/dist/gateway/index.js +30 -1
- package/dist/hooks/bug-report-worker.js +30 -1
- package/dist/hooks/codex-stop-task-finalizer.js +30 -1
- package/dist/hooks/commit-complete.js +30 -1
- package/dist/hooks/error-recall.js +29 -0
- package/dist/hooks/ingest.js +29 -0
- package/dist/hooks/instructions-loaded.js +29 -0
- package/dist/hooks/notification.js +29 -0
- package/dist/hooks/post-compact.js +29 -0
- package/dist/hooks/post-tool-combined.js +29 -0
- package/dist/hooks/pre-compact.js +30 -1
- package/dist/hooks/pre-tool-use.js +29 -0
- package/dist/hooks/prompt-submit.js +30 -1
- package/dist/hooks/session-end.js +30 -1
- package/dist/hooks/session-start.js +29 -0
- package/dist/hooks/stop.js +29 -0
- package/dist/hooks/subagent-stop.js +29 -0
- package/dist/hooks/summary-worker.js +155 -3
- package/dist/index.js +30 -1
- package/dist/lib/cloud-sync.js +136 -2
- package/dist/lib/consolidation.js +1 -0
- package/dist/lib/database.js +11 -0
- package/dist/lib/db.js +11 -0
- package/dist/lib/device-registry.js +11 -0
- package/dist/lib/employee-templates.js +19 -0
- package/dist/lib/exe-daemon.js +1455 -208
- package/dist/lib/hybrid-search.js +29 -0
- package/dist/lib/identity-templates.js +6 -2
- package/dist/lib/identity.js +1 -0
- package/dist/lib/messaging.js +2 -1
- package/dist/lib/reminders.js +1 -0
- package/dist/lib/schedules.js +29 -0
- package/dist/lib/skill-learning.js +1 -0
- package/dist/lib/store.js +29 -0
- package/dist/lib/tasks.js +2 -1
- package/dist/lib/tmux-routing.js +2 -1
- package/dist/lib/token-spend.js +1 -0
- package/dist/mcp/server.js +1278 -165
- package/dist/mcp/tools/complete-reminder.js +1 -0
- package/dist/mcp/tools/create-reminder.js +1 -0
- package/dist/mcp/tools/create-task.js +8 -3
- package/dist/mcp/tools/deactivate-behavior.js +1 -0
- package/dist/mcp/tools/list-reminders.js +1 -0
- package/dist/mcp/tools/list-tasks.js +1 -0
- package/dist/mcp/tools/send-message.js +2 -1
- package/dist/mcp/tools/update-task.js +2 -1
- package/dist/runtime/index.js +30 -1
- package/dist/tui/App.js +30 -1
- package/package.json +2 -2
|
@@ -2112,6 +2112,7 @@ __export(database_exports, {
|
|
|
2112
2112
|
isInitialized: () => isInitialized,
|
|
2113
2113
|
setExternalClient: () => setExternalClient
|
|
2114
2114
|
});
|
|
2115
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
2115
2116
|
import { createClient } from "@libsql/client";
|
|
2116
2117
|
async function initDatabase(config) {
|
|
2117
2118
|
if (_walCheckpointTimer) {
|
|
@@ -2153,6 +2154,16 @@ async function initDatabase(config) {
|
|
|
2153
2154
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
2154
2155
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
2155
2156
|
}
|
|
2157
|
+
try {
|
|
2158
|
+
chmodSync2(config.dbPath, 384);
|
|
2159
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
2160
|
+
try {
|
|
2161
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
2162
|
+
} catch {
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
} catch {
|
|
2166
|
+
}
|
|
2156
2167
|
}
|
|
2157
2168
|
function isInitialized() {
|
|
2158
2169
|
return _adapterClient !== null || _client !== null;
|
|
@@ -4564,6 +4575,24 @@ var init_platform_procedures = __esm({
|
|
|
4564
4575
|
priority: "p0",
|
|
4565
4576
|
content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
|
|
4566
4577
|
},
|
|
4578
|
+
{
|
|
4579
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
4580
|
+
domain: "support",
|
|
4581
|
+
priority: "p1",
|
|
4582
|
+
content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4583
|
+
},
|
|
4584
|
+
{
|
|
4585
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
4586
|
+
domain: "support",
|
|
4587
|
+
priority: "p0",
|
|
4588
|
+
content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
|
|
4589
|
+
},
|
|
4590
|
+
{
|
|
4591
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
4592
|
+
domain: "support",
|
|
4593
|
+
priority: "p1",
|
|
4594
|
+
content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4595
|
+
},
|
|
4567
4596
|
// --- Operations ---
|
|
4568
4597
|
{
|
|
4569
4598
|
title: "Managers must supervise deployed workers",
|
|
@@ -6122,7 +6151,7 @@ function readQueue() {
|
|
|
6122
6151
|
function writeQueue(queue) {
|
|
6123
6152
|
ensureDir();
|
|
6124
6153
|
const tmp = `${QUEUE_PATH}.tmp`;
|
|
6125
|
-
writeFileSync5(tmp, JSON.stringify(queue, null, 2));
|
|
6154
|
+
writeFileSync5(tmp, JSON.stringify(queue, null, 2), { mode: 384 });
|
|
6126
6155
|
renameSync4(tmp, QUEUE_PATH);
|
|
6127
6156
|
}
|
|
6128
6157
|
function queueIntercom(targetSession, reason) {
|
|
@@ -1795,6 +1795,7 @@ __export(database_exports, {
|
|
|
1795
1795
|
isInitialized: () => isInitialized,
|
|
1796
1796
|
setExternalClient: () => setExternalClient
|
|
1797
1797
|
});
|
|
1798
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1798
1799
|
import { createClient } from "@libsql/client";
|
|
1799
1800
|
async function initDatabase(config) {
|
|
1800
1801
|
if (_walCheckpointTimer) {
|
|
@@ -1836,6 +1837,16 @@ async function initDatabase(config) {
|
|
|
1836
1837
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1837
1838
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1838
1839
|
}
|
|
1840
|
+
try {
|
|
1841
|
+
chmodSync2(config.dbPath, 384);
|
|
1842
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1843
|
+
try {
|
|
1844
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1845
|
+
} catch {
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
} catch {
|
|
1849
|
+
}
|
|
1839
1850
|
}
|
|
1840
1851
|
function isInitialized() {
|
|
1841
1852
|
return _adapterClient !== null || _client !== null;
|
|
@@ -4247,6 +4258,24 @@ var init_platform_procedures = __esm({
|
|
|
4247
4258
|
priority: "p0",
|
|
4248
4259
|
content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
|
|
4249
4260
|
},
|
|
4261
|
+
{
|
|
4262
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
4263
|
+
domain: "support",
|
|
4264
|
+
priority: "p1",
|
|
4265
|
+
content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4266
|
+
},
|
|
4267
|
+
{
|
|
4268
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
4269
|
+
domain: "support",
|
|
4270
|
+
priority: "p0",
|
|
4271
|
+
content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
|
|
4272
|
+
},
|
|
4273
|
+
{
|
|
4274
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
4275
|
+
domain: "support",
|
|
4276
|
+
priority: "p1",
|
|
4277
|
+
content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4278
|
+
},
|
|
4250
4279
|
// --- Operations ---
|
|
4251
4280
|
{
|
|
4252
4281
|
title: "Managers must supervise deployed workers",
|
|
@@ -5800,7 +5829,7 @@ function readQueue() {
|
|
|
5800
5829
|
function writeQueue(queue) {
|
|
5801
5830
|
ensureDir();
|
|
5802
5831
|
const tmp = `${QUEUE_PATH}.tmp`;
|
|
5803
|
-
writeFileSync4(tmp, JSON.stringify(queue, null, 2));
|
|
5832
|
+
writeFileSync4(tmp, JSON.stringify(queue, null, 2), { mode: 384 });
|
|
5804
5833
|
renameSync4(tmp, QUEUE_PATH);
|
|
5805
5834
|
}
|
|
5806
5835
|
function queueIntercom(targetSession, reason) {
|
|
@@ -711,7 +711,7 @@ function readQueue() {
|
|
|
711
711
|
function writeQueue(queue) {
|
|
712
712
|
ensureDir();
|
|
713
713
|
const tmp = `${QUEUE_PATH}.tmp`;
|
|
714
|
-
writeFileSync3(tmp, JSON.stringify(queue, null, 2));
|
|
714
|
+
writeFileSync3(tmp, JSON.stringify(queue, null, 2), { mode: 384 });
|
|
715
715
|
renameSync2(tmp, QUEUE_PATH);
|
|
716
716
|
}
|
|
717
717
|
function queueIntercom(targetSession, reason) {
|
|
@@ -2290,6 +2290,7 @@ __export(database_exports, {
|
|
|
2290
2290
|
isInitialized: () => isInitialized,
|
|
2291
2291
|
setExternalClient: () => setExternalClient
|
|
2292
2292
|
});
|
|
2293
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
2293
2294
|
import { createClient } from "@libsql/client";
|
|
2294
2295
|
async function initDatabase(config) {
|
|
2295
2296
|
if (_walCheckpointTimer) {
|
|
@@ -2331,6 +2332,16 @@ async function initDatabase(config) {
|
|
|
2331
2332
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
2332
2333
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
2333
2334
|
}
|
|
2335
|
+
try {
|
|
2336
|
+
chmodSync2(config.dbPath, 384);
|
|
2337
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
2338
|
+
try {
|
|
2339
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
2340
|
+
} catch {
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
} catch {
|
|
2344
|
+
}
|
|
2334
2345
|
}
|
|
2335
2346
|
function isInitialized() {
|
|
2336
2347
|
return _adapterClient !== null || _client !== null;
|
|
@@ -7935,6 +7946,24 @@ var init_platform_procedures = __esm({
|
|
|
7935
7946
|
priority: "p0",
|
|
7936
7947
|
content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
|
|
7937
7948
|
},
|
|
7949
|
+
{
|
|
7950
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
7951
|
+
domain: "support",
|
|
7952
|
+
priority: "p1",
|
|
7953
|
+
content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
7954
|
+
},
|
|
7955
|
+
{
|
|
7956
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
7957
|
+
domain: "support",
|
|
7958
|
+
priority: "p0",
|
|
7959
|
+
content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
|
|
7960
|
+
},
|
|
7961
|
+
{
|
|
7962
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
7963
|
+
domain: "support",
|
|
7964
|
+
priority: "p1",
|
|
7965
|
+
content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
7966
|
+
},
|
|
7938
7967
|
// --- Operations ---
|
|
7939
7968
|
{
|
|
7940
7969
|
title: "Managers must supervise deployed workers",
|
|
@@ -1703,6 +1703,7 @@ __export(database_exports, {
|
|
|
1703
1703
|
isInitialized: () => isInitialized,
|
|
1704
1704
|
setExternalClient: () => setExternalClient
|
|
1705
1705
|
});
|
|
1706
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1706
1707
|
import { createClient } from "@libsql/client";
|
|
1707
1708
|
async function initDatabase(config) {
|
|
1708
1709
|
if (_walCheckpointTimer) {
|
|
@@ -1744,6 +1745,16 @@ async function initDatabase(config) {
|
|
|
1744
1745
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1745
1746
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1746
1747
|
}
|
|
1748
|
+
try {
|
|
1749
|
+
chmodSync2(config.dbPath, 384);
|
|
1750
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1751
|
+
try {
|
|
1752
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1753
|
+
} catch {
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
} catch {
|
|
1757
|
+
}
|
|
1747
1758
|
}
|
|
1748
1759
|
function isInitialized() {
|
|
1749
1760
|
return _adapterClient !== null || _client !== null;
|
|
@@ -4155,6 +4166,24 @@ var init_platform_procedures = __esm({
|
|
|
4155
4166
|
priority: "p0",
|
|
4156
4167
|
content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
|
|
4157
4168
|
},
|
|
4169
|
+
{
|
|
4170
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
4171
|
+
domain: "support",
|
|
4172
|
+
priority: "p1",
|
|
4173
|
+
content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4174
|
+
},
|
|
4175
|
+
{
|
|
4176
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
4177
|
+
domain: "support",
|
|
4178
|
+
priority: "p0",
|
|
4179
|
+
content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
|
|
4180
|
+
},
|
|
4181
|
+
{
|
|
4182
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
4183
|
+
domain: "support",
|
|
4184
|
+
priority: "p1",
|
|
4185
|
+
content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4186
|
+
},
|
|
4158
4187
|
// --- Operations ---
|
|
4159
4188
|
{
|
|
4160
4189
|
title: "Managers must supervise deployed workers",
|
package/dist/hooks/ingest.js
CHANGED
|
@@ -1879,6 +1879,7 @@ __export(database_exports, {
|
|
|
1879
1879
|
isInitialized: () => isInitialized,
|
|
1880
1880
|
setExternalClient: () => setExternalClient
|
|
1881
1881
|
});
|
|
1882
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1882
1883
|
import { createClient } from "@libsql/client";
|
|
1883
1884
|
async function initDatabase(config) {
|
|
1884
1885
|
if (_walCheckpointTimer) {
|
|
@@ -1920,6 +1921,16 @@ async function initDatabase(config) {
|
|
|
1920
1921
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1921
1922
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1922
1923
|
}
|
|
1924
|
+
try {
|
|
1925
|
+
chmodSync2(config.dbPath, 384);
|
|
1926
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1927
|
+
try {
|
|
1928
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1929
|
+
} catch {
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
} catch {
|
|
1933
|
+
}
|
|
1923
1934
|
}
|
|
1924
1935
|
function isInitialized() {
|
|
1925
1936
|
return _adapterClient !== null || _client !== null;
|
|
@@ -4331,6 +4342,24 @@ var init_platform_procedures = __esm({
|
|
|
4331
4342
|
priority: "p0",
|
|
4332
4343
|
content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
|
|
4333
4344
|
},
|
|
4345
|
+
{
|
|
4346
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
4347
|
+
domain: "support",
|
|
4348
|
+
priority: "p1",
|
|
4349
|
+
content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4350
|
+
},
|
|
4351
|
+
{
|
|
4352
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
4353
|
+
domain: "support",
|
|
4354
|
+
priority: "p0",
|
|
4355
|
+
content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
|
|
4356
|
+
},
|
|
4357
|
+
{
|
|
4358
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
4359
|
+
domain: "support",
|
|
4360
|
+
priority: "p1",
|
|
4361
|
+
content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4362
|
+
},
|
|
4334
4363
|
// --- Operations ---
|
|
4335
4364
|
{
|
|
4336
4365
|
title: "Managers must supervise deployed workers",
|
|
@@ -1704,6 +1704,7 @@ __export(database_exports, {
|
|
|
1704
1704
|
isInitialized: () => isInitialized,
|
|
1705
1705
|
setExternalClient: () => setExternalClient
|
|
1706
1706
|
});
|
|
1707
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1707
1708
|
import { createClient } from "@libsql/client";
|
|
1708
1709
|
async function initDatabase(config) {
|
|
1709
1710
|
if (_walCheckpointTimer) {
|
|
@@ -1745,6 +1746,16 @@ async function initDatabase(config) {
|
|
|
1745
1746
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1746
1747
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1747
1748
|
}
|
|
1749
|
+
try {
|
|
1750
|
+
chmodSync2(config.dbPath, 384);
|
|
1751
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1752
|
+
try {
|
|
1753
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1754
|
+
} catch {
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
} catch {
|
|
1758
|
+
}
|
|
1748
1759
|
}
|
|
1749
1760
|
function isInitialized() {
|
|
1750
1761
|
return _adapterClient !== null || _client !== null;
|
|
@@ -4156,6 +4167,24 @@ var init_platform_procedures = __esm({
|
|
|
4156
4167
|
priority: "p0",
|
|
4157
4168
|
content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
|
|
4158
4169
|
},
|
|
4170
|
+
{
|
|
4171
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
4172
|
+
domain: "support",
|
|
4173
|
+
priority: "p1",
|
|
4174
|
+
content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4175
|
+
},
|
|
4176
|
+
{
|
|
4177
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
4178
|
+
domain: "support",
|
|
4179
|
+
priority: "p0",
|
|
4180
|
+
content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
|
|
4181
|
+
},
|
|
4182
|
+
{
|
|
4183
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
4184
|
+
domain: "support",
|
|
4185
|
+
priority: "p1",
|
|
4186
|
+
content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4187
|
+
},
|
|
4159
4188
|
// --- Operations ---
|
|
4160
4189
|
{
|
|
4161
4190
|
title: "Managers must supervise deployed workers",
|
|
@@ -1704,6 +1704,7 @@ __export(database_exports, {
|
|
|
1704
1704
|
isInitialized: () => isInitialized,
|
|
1705
1705
|
setExternalClient: () => setExternalClient
|
|
1706
1706
|
});
|
|
1707
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1707
1708
|
import { createClient } from "@libsql/client";
|
|
1708
1709
|
async function initDatabase(config) {
|
|
1709
1710
|
if (_walCheckpointTimer) {
|
|
@@ -1745,6 +1746,16 @@ async function initDatabase(config) {
|
|
|
1745
1746
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1746
1747
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1747
1748
|
}
|
|
1749
|
+
try {
|
|
1750
|
+
chmodSync2(config.dbPath, 384);
|
|
1751
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1752
|
+
try {
|
|
1753
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1754
|
+
} catch {
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
} catch {
|
|
1758
|
+
}
|
|
1748
1759
|
}
|
|
1749
1760
|
function isInitialized() {
|
|
1750
1761
|
return _adapterClient !== null || _client !== null;
|
|
@@ -4156,6 +4167,24 @@ var init_platform_procedures = __esm({
|
|
|
4156
4167
|
priority: "p0",
|
|
4157
4168
|
content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
|
|
4158
4169
|
},
|
|
4170
|
+
{
|
|
4171
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
4172
|
+
domain: "support",
|
|
4173
|
+
priority: "p1",
|
|
4174
|
+
content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4175
|
+
},
|
|
4176
|
+
{
|
|
4177
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
4178
|
+
domain: "support",
|
|
4179
|
+
priority: "p0",
|
|
4180
|
+
content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
|
|
4181
|
+
},
|
|
4182
|
+
{
|
|
4183
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
4184
|
+
domain: "support",
|
|
4185
|
+
priority: "p1",
|
|
4186
|
+
content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4187
|
+
},
|
|
4159
4188
|
// --- Operations ---
|
|
4160
4189
|
{
|
|
4161
4190
|
title: "Managers must supervise deployed workers",
|
|
@@ -1999,6 +1999,7 @@ __export(database_exports, {
|
|
|
1999
1999
|
isInitialized: () => isInitialized,
|
|
2000
2000
|
setExternalClient: () => setExternalClient
|
|
2001
2001
|
});
|
|
2002
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
2002
2003
|
import { createClient } from "@libsql/client";
|
|
2003
2004
|
async function initDatabase(config) {
|
|
2004
2005
|
if (_walCheckpointTimer) {
|
|
@@ -2040,6 +2041,16 @@ async function initDatabase(config) {
|
|
|
2040
2041
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
2041
2042
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
2042
2043
|
}
|
|
2044
|
+
try {
|
|
2045
|
+
chmodSync2(config.dbPath, 384);
|
|
2046
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
2047
|
+
try {
|
|
2048
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
2049
|
+
} catch {
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
} catch {
|
|
2053
|
+
}
|
|
2043
2054
|
}
|
|
2044
2055
|
function isInitialized() {
|
|
2045
2056
|
return _adapterClient !== null || _client !== null;
|
|
@@ -4594,6 +4605,24 @@ var init_platform_procedures = __esm({
|
|
|
4594
4605
|
priority: "p0",
|
|
4595
4606
|
content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
|
|
4596
4607
|
},
|
|
4608
|
+
{
|
|
4609
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
4610
|
+
domain: "support",
|
|
4611
|
+
priority: "p1",
|
|
4612
|
+
content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4613
|
+
},
|
|
4614
|
+
{
|
|
4615
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
4616
|
+
domain: "support",
|
|
4617
|
+
priority: "p0",
|
|
4618
|
+
content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
|
|
4619
|
+
},
|
|
4620
|
+
{
|
|
4621
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
4622
|
+
domain: "support",
|
|
4623
|
+
priority: "p1",
|
|
4624
|
+
content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4625
|
+
},
|
|
4597
4626
|
// --- Operations ---
|
|
4598
4627
|
{
|
|
4599
4628
|
title: "Managers must supervise deployed workers",
|
|
@@ -1955,6 +1955,7 @@ __export(database_exports, {
|
|
|
1955
1955
|
isInitialized: () => isInitialized,
|
|
1956
1956
|
setExternalClient: () => setExternalClient
|
|
1957
1957
|
});
|
|
1958
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1958
1959
|
import { createClient } from "@libsql/client";
|
|
1959
1960
|
async function initDatabase(config) {
|
|
1960
1961
|
if (_walCheckpointTimer) {
|
|
@@ -1996,6 +1997,16 @@ async function initDatabase(config) {
|
|
|
1996
1997
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1997
1998
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1998
1999
|
}
|
|
2000
|
+
try {
|
|
2001
|
+
chmodSync2(config.dbPath, 384);
|
|
2002
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
2003
|
+
try {
|
|
2004
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
2005
|
+
} catch {
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
} catch {
|
|
2009
|
+
}
|
|
1999
2010
|
}
|
|
2000
2011
|
function isInitialized() {
|
|
2001
2012
|
return _adapterClient !== null || _client !== null;
|
|
@@ -4407,6 +4418,24 @@ var init_platform_procedures = __esm({
|
|
|
4407
4418
|
priority: "p0",
|
|
4408
4419
|
content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
|
|
4409
4420
|
},
|
|
4421
|
+
{
|
|
4422
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
4423
|
+
domain: "support",
|
|
4424
|
+
priority: "p1",
|
|
4425
|
+
content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4426
|
+
},
|
|
4427
|
+
{
|
|
4428
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
4429
|
+
domain: "support",
|
|
4430
|
+
priority: "p0",
|
|
4431
|
+
content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
|
|
4432
|
+
},
|
|
4433
|
+
{
|
|
4434
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
4435
|
+
domain: "support",
|
|
4436
|
+
priority: "p1",
|
|
4437
|
+
content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
4438
|
+
},
|
|
4410
4439
|
// --- Operations ---
|
|
4411
4440
|
{
|
|
4412
4441
|
title: "Managers must supervise deployed workers",
|
|
@@ -782,7 +782,7 @@ function readQueue() {
|
|
|
782
782
|
function writeQueue(queue) {
|
|
783
783
|
ensureDir();
|
|
784
784
|
const tmp = `${QUEUE_PATH}.tmp`;
|
|
785
|
-
writeFileSync5(tmp, JSON.stringify(queue, null, 2));
|
|
785
|
+
writeFileSync5(tmp, JSON.stringify(queue, null, 2), { mode: 384 });
|
|
786
786
|
renameSync3(tmp, QUEUE_PATH);
|
|
787
787
|
}
|
|
788
788
|
function queueIntercom(targetSession, reason) {
|
|
@@ -2290,6 +2290,7 @@ __export(database_exports, {
|
|
|
2290
2290
|
isInitialized: () => isInitialized,
|
|
2291
2291
|
setExternalClient: () => setExternalClient
|
|
2292
2292
|
});
|
|
2293
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
2293
2294
|
import { createClient } from "@libsql/client";
|
|
2294
2295
|
async function initDatabase(config) {
|
|
2295
2296
|
if (_walCheckpointTimer) {
|
|
@@ -2331,6 +2332,16 @@ async function initDatabase(config) {
|
|
|
2331
2332
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
2332
2333
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
2333
2334
|
}
|
|
2335
|
+
try {
|
|
2336
|
+
chmodSync2(config.dbPath, 384);
|
|
2337
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
2338
|
+
try {
|
|
2339
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
2340
|
+
} catch {
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
} catch {
|
|
2344
|
+
}
|
|
2334
2345
|
}
|
|
2335
2346
|
function isInitialized() {
|
|
2336
2347
|
return _adapterClient !== null || _client !== null;
|
|
@@ -7919,6 +7930,24 @@ var init_platform_procedures = __esm({
|
|
|
7919
7930
|
priority: "p0",
|
|
7920
7931
|
content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
|
|
7921
7932
|
},
|
|
7933
|
+
{
|
|
7934
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
7935
|
+
domain: "support",
|
|
7936
|
+
priority: "p1",
|
|
7937
|
+
content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
7938
|
+
},
|
|
7939
|
+
{
|
|
7940
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
7941
|
+
domain: "support",
|
|
7942
|
+
priority: "p0",
|
|
7943
|
+
content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
|
|
7944
|
+
},
|
|
7945
|
+
{
|
|
7946
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
7947
|
+
domain: "support",
|
|
7948
|
+
priority: "p1",
|
|
7949
|
+
content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
7950
|
+
},
|
|
7922
7951
|
// --- Operations ---
|
|
7923
7952
|
{
|
|
7924
7953
|
title: "Managers must supervise deployed workers",
|
|
@@ -2286,6 +2286,7 @@ __export(database_exports, {
|
|
|
2286
2286
|
isInitialized: () => isInitialized,
|
|
2287
2287
|
setExternalClient: () => setExternalClient
|
|
2288
2288
|
});
|
|
2289
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
2289
2290
|
import { createClient } from "@libsql/client";
|
|
2290
2291
|
async function initDatabase(config) {
|
|
2291
2292
|
if (_walCheckpointTimer) {
|
|
@@ -2327,6 +2328,16 @@ async function initDatabase(config) {
|
|
|
2327
2328
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
2328
2329
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
2329
2330
|
}
|
|
2331
|
+
try {
|
|
2332
|
+
chmodSync2(config.dbPath, 384);
|
|
2333
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
2334
|
+
try {
|
|
2335
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
2336
|
+
} catch {
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
} catch {
|
|
2340
|
+
}
|
|
2330
2341
|
}
|
|
2331
2342
|
function isInitialized() {
|
|
2332
2343
|
return _adapterClient !== null || _client !== null;
|
|
@@ -5065,6 +5076,24 @@ var init_platform_procedures = __esm({
|
|
|
5065
5076
|
priority: "p0",
|
|
5066
5077
|
content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
|
|
5067
5078
|
},
|
|
5079
|
+
{
|
|
5080
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
5081
|
+
domain: "support",
|
|
5082
|
+
priority: "p1",
|
|
5083
|
+
content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
5084
|
+
},
|
|
5085
|
+
{
|
|
5086
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
5087
|
+
domain: "support",
|
|
5088
|
+
priority: "p0",
|
|
5089
|
+
content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
|
|
5090
|
+
},
|
|
5091
|
+
{
|
|
5092
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
5093
|
+
domain: "support",
|
|
5094
|
+
priority: "p1",
|
|
5095
|
+
content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
|
|
5096
|
+
},
|
|
5068
5097
|
// --- Operations ---
|
|
5069
5098
|
{
|
|
5070
5099
|
title: "Managers must supervise deployed workers",
|