@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
|
@@ -245,7 +245,7 @@ services:
|
|
|
245
245
|
environment:
|
|
246
246
|
NODE_ENV: production
|
|
247
247
|
EXED_PORT: "8765"
|
|
248
|
-
EXED_HOST:
|
|
248
|
+
EXED_HOST: "127.0.0.1"
|
|
249
249
|
EXED_MCP_TOKEN: ${EXED_MCP_TOKEN:?EXED_MCP_TOKEN is required}
|
|
250
250
|
EXED_DEVICE_ID: ${EXED_DEVICE_ID:-vps-default}
|
|
251
251
|
EXE_LICENSE_KEY: ${EXE_LICENSE_KEY:?EXE_LICENSE_KEY is required — purchase at https://askexe.com}
|
|
@@ -286,11 +286,11 @@ services:
|
|
|
286
286
|
EXE_GATEWAY_HOME: /data
|
|
287
287
|
EXE_GATEWAY_CONFIG: /data/gateway.json
|
|
288
288
|
EXE_GATEWAY_PORT: "3100"
|
|
289
|
-
EXE_GATEWAY_HOST:
|
|
289
|
+
EXE_GATEWAY_HOST: "127.0.0.1"
|
|
290
290
|
EXE_GATEWAY_AUTH_TOKEN: ${EXE_GATEWAY_AUTH_TOKEN:?EXE_GATEWAY_AUTH_TOKEN is required}
|
|
291
291
|
EXE_GATEWAY_WHATSAPP_VERIFY_TOKEN: ${EXE_GATEWAY_WHATSAPP_VERIFY_TOKEN:?EXE_GATEWAY_WHATSAPP_VERIFY_TOKEN is required}
|
|
292
292
|
EXE_GATEWAY_WS_RELAY_ENABLED: "true"
|
|
293
|
-
EXE_GATEWAY_WS_RELAY_HOST:
|
|
293
|
+
EXE_GATEWAY_WS_RELAY_HOST: "127.0.0.1"
|
|
294
294
|
EXE_GATEWAY_WS_RELAY_PORT: "3101"
|
|
295
295
|
EXE_GATEWAY_WS_RELAY_AUTH_TOKEN: ${EXE_GATEWAY_WS_RELAY_AUTH_TOKEN:?EXE_GATEWAY_WS_RELAY_AUTH_TOKEN is required}
|
|
296
296
|
WHATSAPP_ACCESS_TOKEN: ${WHATSAPP_ACCESS_TOKEN:-}
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
// src/bin/age-ontology-load.ts
|
|
4
4
|
import { Client } from "pg";
|
|
5
5
|
|
|
6
|
+
// src/lib/pg-ssl.ts
|
|
7
|
+
function pgSslConfig() {
|
|
8
|
+
if (process.env.EXE_DB_SSL_DISABLED === "true") return {};
|
|
9
|
+
return { ssl: { rejectUnauthorized: process.env.EXE_DB_SSL_ALLOW_SELFSIGNED !== "true" } };
|
|
10
|
+
}
|
|
11
|
+
|
|
6
12
|
// src/lib/background-jobs.ts
|
|
7
13
|
import { existsSync as existsSync3, mkdirSync as mkdirSync2, readFileSync as readFileSync2, writeFileSync, unlinkSync } from "fs";
|
|
8
14
|
import { execFileSync } from "child_process";
|
|
@@ -272,8 +278,8 @@ async function main() {
|
|
|
272
278
|
if (!ageUrl) throw new Error("AGE_DATABASE_URL is required for Apache AGE target");
|
|
273
279
|
const graph = process.env.AGE_GRAPH_NAME || "exe_ontology";
|
|
274
280
|
const limit = Number(process.argv[process.argv.indexOf("--limit") + 1] || "1000");
|
|
275
|
-
const source = new Client({ connectionString: sourceUrl });
|
|
276
|
-
const age = new Client({ connectionString: ageUrl });
|
|
281
|
+
const source = new Client({ connectionString: sourceUrl, ...pgSslConfig() });
|
|
282
|
+
const age = new Client({ connectionString: ageUrl, ...pgSslConfig() });
|
|
277
283
|
await source.connect();
|
|
278
284
|
await age.connect();
|
|
279
285
|
try {
|
|
@@ -1487,6 +1487,7 @@ __export(database_exports, {
|
|
|
1487
1487
|
isInitialized: () => isInitialized,
|
|
1488
1488
|
setExternalClient: () => setExternalClient
|
|
1489
1489
|
});
|
|
1490
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1490
1491
|
import { createClient } from "@libsql/client";
|
|
1491
1492
|
async function initDatabase(config) {
|
|
1492
1493
|
if (_walCheckpointTimer) {
|
|
@@ -1528,6 +1529,16 @@ async function initDatabase(config) {
|
|
|
1528
1529
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1529
1530
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1530
1531
|
}
|
|
1532
|
+
try {
|
|
1533
|
+
chmodSync2(config.dbPath, 384);
|
|
1534
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1535
|
+
try {
|
|
1536
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1537
|
+
} catch {
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
} catch {
|
|
1541
|
+
}
|
|
1531
1542
|
}
|
|
1532
1543
|
function isInitialized() {
|
|
1533
1544
|
return _adapterClient !== null || _client !== null;
|
|
@@ -3382,6 +3393,24 @@ var init_platform_procedures = __esm({
|
|
|
3382
3393
|
priority: "p0",
|
|
3383
3394
|
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."
|
|
3384
3395
|
},
|
|
3396
|
+
{
|
|
3397
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
3398
|
+
domain: "support",
|
|
3399
|
+
priority: "p1",
|
|
3400
|
+
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."
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
3404
|
+
domain: "support",
|
|
3405
|
+
priority: "p0",
|
|
3406
|
+
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."
|
|
3407
|
+
},
|
|
3408
|
+
{
|
|
3409
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
3410
|
+
domain: "support",
|
|
3411
|
+
priority: "p1",
|
|
3412
|
+
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."
|
|
3413
|
+
},
|
|
3385
3414
|
// --- Operations ---
|
|
3386
3415
|
{
|
|
3387
3416
|
title: "Managers must supervise deployed workers",
|
|
@@ -1487,6 +1487,7 @@ __export(database_exports, {
|
|
|
1487
1487
|
isInitialized: () => isInitialized,
|
|
1488
1488
|
setExternalClient: () => setExternalClient
|
|
1489
1489
|
});
|
|
1490
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1490
1491
|
import { createClient } from "@libsql/client";
|
|
1491
1492
|
async function initDatabase(config) {
|
|
1492
1493
|
if (_walCheckpointTimer) {
|
|
@@ -1528,6 +1529,16 @@ async function initDatabase(config) {
|
|
|
1528
1529
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1529
1530
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1530
1531
|
}
|
|
1532
|
+
try {
|
|
1533
|
+
chmodSync2(config.dbPath, 384);
|
|
1534
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1535
|
+
try {
|
|
1536
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1537
|
+
} catch {
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
} catch {
|
|
1541
|
+
}
|
|
1531
1542
|
}
|
|
1532
1543
|
function isInitialized() {
|
|
1533
1544
|
return _adapterClient !== null || _client !== null;
|
|
@@ -3382,6 +3393,24 @@ var init_platform_procedures = __esm({
|
|
|
3382
3393
|
priority: "p0",
|
|
3383
3394
|
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."
|
|
3384
3395
|
},
|
|
3396
|
+
{
|
|
3397
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
3398
|
+
domain: "support",
|
|
3399
|
+
priority: "p1",
|
|
3400
|
+
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."
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
3404
|
+
domain: "support",
|
|
3405
|
+
priority: "p0",
|
|
3406
|
+
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."
|
|
3407
|
+
},
|
|
3408
|
+
{
|
|
3409
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
3410
|
+
domain: "support",
|
|
3411
|
+
priority: "p1",
|
|
3412
|
+
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."
|
|
3413
|
+
},
|
|
3385
3414
|
// --- Operations ---
|
|
3386
3415
|
{
|
|
3387
3416
|
title: "Managers must supervise deployed workers",
|
|
@@ -1487,6 +1487,7 @@ __export(database_exports, {
|
|
|
1487
1487
|
isInitialized: () => isInitialized,
|
|
1488
1488
|
setExternalClient: () => setExternalClient
|
|
1489
1489
|
});
|
|
1490
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1490
1491
|
import { createClient } from "@libsql/client";
|
|
1491
1492
|
async function initDatabase(config) {
|
|
1492
1493
|
if (_walCheckpointTimer) {
|
|
@@ -1528,6 +1529,16 @@ async function initDatabase(config) {
|
|
|
1528
1529
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1529
1530
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1530
1531
|
}
|
|
1532
|
+
try {
|
|
1533
|
+
chmodSync2(config.dbPath, 384);
|
|
1534
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1535
|
+
try {
|
|
1536
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1537
|
+
} catch {
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
} catch {
|
|
1541
|
+
}
|
|
1531
1542
|
}
|
|
1532
1543
|
function isInitialized() {
|
|
1533
1544
|
return _adapterClient !== null || _client !== null;
|
|
@@ -3382,6 +3393,24 @@ var init_platform_procedures = __esm({
|
|
|
3382
3393
|
priority: "p0",
|
|
3383
3394
|
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."
|
|
3384
3395
|
},
|
|
3396
|
+
{
|
|
3397
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
3398
|
+
domain: "support",
|
|
3399
|
+
priority: "p1",
|
|
3400
|
+
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."
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
3404
|
+
domain: "support",
|
|
3405
|
+
priority: "p0",
|
|
3406
|
+
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."
|
|
3407
|
+
},
|
|
3408
|
+
{
|
|
3409
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
3410
|
+
domain: "support",
|
|
3411
|
+
priority: "p1",
|
|
3412
|
+
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."
|
|
3413
|
+
},
|
|
3385
3414
|
// --- Operations ---
|
|
3386
3415
|
{
|
|
3387
3416
|
title: "Managers must supervise deployed workers",
|
|
@@ -1627,6 +1627,7 @@ __export(database_exports, {
|
|
|
1627
1627
|
isInitialized: () => isInitialized,
|
|
1628
1628
|
setExternalClient: () => setExternalClient
|
|
1629
1629
|
});
|
|
1630
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1630
1631
|
import { createClient } from "@libsql/client";
|
|
1631
1632
|
async function initDatabase(config) {
|
|
1632
1633
|
if (_walCheckpointTimer) {
|
|
@@ -1668,6 +1669,16 @@ async function initDatabase(config) {
|
|
|
1668
1669
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1669
1670
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1670
1671
|
}
|
|
1672
|
+
try {
|
|
1673
|
+
chmodSync2(config.dbPath, 384);
|
|
1674
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1675
|
+
try {
|
|
1676
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1677
|
+
} catch {
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
} catch {
|
|
1681
|
+
}
|
|
1671
1682
|
}
|
|
1672
1683
|
function isInitialized() {
|
|
1673
1684
|
return _adapterClient !== null || _client !== null;
|
|
@@ -3522,6 +3533,24 @@ var init_platform_procedures = __esm({
|
|
|
3522
3533
|
priority: "p0",
|
|
3523
3534
|
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."
|
|
3524
3535
|
},
|
|
3536
|
+
{
|
|
3537
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
3538
|
+
domain: "support",
|
|
3539
|
+
priority: "p1",
|
|
3540
|
+
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."
|
|
3541
|
+
},
|
|
3542
|
+
{
|
|
3543
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
3544
|
+
domain: "support",
|
|
3545
|
+
priority: "p0",
|
|
3546
|
+
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."
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
3550
|
+
domain: "support",
|
|
3551
|
+
priority: "p1",
|
|
3552
|
+
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."
|
|
3553
|
+
},
|
|
3525
3554
|
// --- Operations ---
|
|
3526
3555
|
{
|
|
3527
3556
|
title: "Managers must supervise deployed workers",
|
|
@@ -5091,6 +5120,7 @@ import { fileURLToPath as fileURLToPath2 } from "url";
|
|
|
5091
5120
|
function isMainModule(importMetaUrl) {
|
|
5092
5121
|
if (process.argv[1] == null) return false;
|
|
5093
5122
|
if (process.argv[1].includes("mcp/server")) return false;
|
|
5123
|
+
if (process.argv[1].includes("exe-daemon")) return false;
|
|
5094
5124
|
try {
|
|
5095
5125
|
const scriptPath = realpathSync(process.argv[1]);
|
|
5096
5126
|
const modulePath = realpathSync(fileURLToPath2(importMetaUrl));
|
|
@@ -1627,6 +1627,7 @@ __export(database_exports, {
|
|
|
1627
1627
|
isInitialized: () => isInitialized,
|
|
1628
1628
|
setExternalClient: () => setExternalClient
|
|
1629
1629
|
});
|
|
1630
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1630
1631
|
import { createClient } from "@libsql/client";
|
|
1631
1632
|
async function initDatabase(config) {
|
|
1632
1633
|
if (_walCheckpointTimer) {
|
|
@@ -1668,6 +1669,16 @@ async function initDatabase(config) {
|
|
|
1668
1669
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1669
1670
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1670
1671
|
}
|
|
1672
|
+
try {
|
|
1673
|
+
chmodSync2(config.dbPath, 384);
|
|
1674
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1675
|
+
try {
|
|
1676
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1677
|
+
} catch {
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
} catch {
|
|
1681
|
+
}
|
|
1671
1682
|
}
|
|
1672
1683
|
function isInitialized() {
|
|
1673
1684
|
return _adapterClient !== null || _client !== null;
|
|
@@ -3522,6 +3533,24 @@ var init_platform_procedures = __esm({
|
|
|
3522
3533
|
priority: "p0",
|
|
3523
3534
|
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."
|
|
3524
3535
|
},
|
|
3536
|
+
{
|
|
3537
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
3538
|
+
domain: "support",
|
|
3539
|
+
priority: "p1",
|
|
3540
|
+
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."
|
|
3541
|
+
},
|
|
3542
|
+
{
|
|
3543
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
3544
|
+
domain: "support",
|
|
3545
|
+
priority: "p0",
|
|
3546
|
+
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."
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
3550
|
+
domain: "support",
|
|
3551
|
+
priority: "p1",
|
|
3552
|
+
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."
|
|
3553
|
+
},
|
|
3525
3554
|
// --- Operations ---
|
|
3526
3555
|
{
|
|
3527
3556
|
title: "Managers must supervise deployed workers",
|
|
@@ -5090,6 +5119,7 @@ import { fileURLToPath as fileURLToPath2 } from "url";
|
|
|
5090
5119
|
function isMainModule(importMetaUrl) {
|
|
5091
5120
|
if (process.argv[1] == null) return false;
|
|
5092
5121
|
if (process.argv[1].includes("mcp/server")) return false;
|
|
5122
|
+
if (process.argv[1].includes("exe-daemon")) return false;
|
|
5093
5123
|
try {
|
|
5094
5124
|
const scriptPath = realpathSync(process.argv[1]);
|
|
5095
5125
|
const modulePath = realpathSync(fileURLToPath2(importMetaUrl));
|
|
@@ -1623,6 +1623,7 @@ __export(database_exports, {
|
|
|
1623
1623
|
isInitialized: () => isInitialized,
|
|
1624
1624
|
setExternalClient: () => setExternalClient
|
|
1625
1625
|
});
|
|
1626
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1626
1627
|
import { createClient } from "@libsql/client";
|
|
1627
1628
|
async function initDatabase(config) {
|
|
1628
1629
|
if (_walCheckpointTimer) {
|
|
@@ -1664,6 +1665,16 @@ async function initDatabase(config) {
|
|
|
1664
1665
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1665
1666
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1666
1667
|
}
|
|
1668
|
+
try {
|
|
1669
|
+
chmodSync2(config.dbPath, 384);
|
|
1670
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1671
|
+
try {
|
|
1672
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1673
|
+
} catch {
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
} catch {
|
|
1677
|
+
}
|
|
1667
1678
|
}
|
|
1668
1679
|
function isInitialized() {
|
|
1669
1680
|
return _adapterClient !== null || _client !== null;
|
|
@@ -3518,6 +3529,24 @@ var init_platform_procedures = __esm({
|
|
|
3518
3529
|
priority: "p0",
|
|
3519
3530
|
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."
|
|
3520
3531
|
},
|
|
3532
|
+
{
|
|
3533
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
3534
|
+
domain: "support",
|
|
3535
|
+
priority: "p1",
|
|
3536
|
+
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."
|
|
3537
|
+
},
|
|
3538
|
+
{
|
|
3539
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
3540
|
+
domain: "support",
|
|
3541
|
+
priority: "p0",
|
|
3542
|
+
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."
|
|
3543
|
+
},
|
|
3544
|
+
{
|
|
3545
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
3546
|
+
domain: "support",
|
|
3547
|
+
priority: "p1",
|
|
3548
|
+
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."
|
|
3549
|
+
},
|
|
3521
3550
|
// --- Operations ---
|
|
3522
3551
|
{
|
|
3523
3552
|
title: "Managers must supervise deployed workers",
|
|
@@ -4169,6 +4198,7 @@ import { fileURLToPath as fileURLToPath2 } from "url";
|
|
|
4169
4198
|
function isMainModule(importMetaUrl) {
|
|
4170
4199
|
if (process.argv[1] == null) return false;
|
|
4171
4200
|
if (process.argv[1].includes("mcp/server")) return false;
|
|
4201
|
+
if (process.argv[1].includes("exe-daemon")) return false;
|
|
4172
4202
|
try {
|
|
4173
4203
|
const scriptPath = realpathSync(process.argv[1]);
|
|
4174
4204
|
const modulePath = realpathSync(fileURLToPath2(importMetaUrl));
|
|
@@ -1487,6 +1487,7 @@ __export(database_exports, {
|
|
|
1487
1487
|
isInitialized: () => isInitialized,
|
|
1488
1488
|
setExternalClient: () => setExternalClient
|
|
1489
1489
|
});
|
|
1490
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1490
1491
|
import { createClient } from "@libsql/client";
|
|
1491
1492
|
async function initDatabase(config) {
|
|
1492
1493
|
if (_walCheckpointTimer) {
|
|
@@ -1528,6 +1529,16 @@ async function initDatabase(config) {
|
|
|
1528
1529
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1529
1530
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1530
1531
|
}
|
|
1532
|
+
try {
|
|
1533
|
+
chmodSync2(config.dbPath, 384);
|
|
1534
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1535
|
+
try {
|
|
1536
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1537
|
+
} catch {
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
} catch {
|
|
1541
|
+
}
|
|
1531
1542
|
}
|
|
1532
1543
|
function isInitialized() {
|
|
1533
1544
|
return _adapterClient !== null || _client !== null;
|
|
@@ -3690,6 +3701,24 @@ var init_platform_procedures = __esm({
|
|
|
3690
3701
|
priority: "p0",
|
|
3691
3702
|
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."
|
|
3692
3703
|
},
|
|
3704
|
+
{
|
|
3705
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
3706
|
+
domain: "support",
|
|
3707
|
+
priority: "p1",
|
|
3708
|
+
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."
|
|
3709
|
+
},
|
|
3710
|
+
{
|
|
3711
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
3712
|
+
domain: "support",
|
|
3713
|
+
priority: "p0",
|
|
3714
|
+
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."
|
|
3715
|
+
},
|
|
3716
|
+
{
|
|
3717
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
3718
|
+
domain: "support",
|
|
3719
|
+
priority: "p1",
|
|
3720
|
+
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."
|
|
3721
|
+
},
|
|
3693
3722
|
// --- Operations ---
|
|
3694
3723
|
{
|
|
3695
3724
|
title: "Managers must supervise deployed workers",
|
|
@@ -4319,6 +4348,21 @@ var init_crdt_sync = __esm({
|
|
|
4319
4348
|
}
|
|
4320
4349
|
});
|
|
4321
4350
|
|
|
4351
|
+
// src/lib/pg-ssl.ts
|
|
4352
|
+
var pg_ssl_exports = {};
|
|
4353
|
+
__export(pg_ssl_exports, {
|
|
4354
|
+
pgSslConfig: () => pgSslConfig
|
|
4355
|
+
});
|
|
4356
|
+
function pgSslConfig() {
|
|
4357
|
+
if (process.env.EXE_DB_SSL_DISABLED === "true") return {};
|
|
4358
|
+
return { ssl: { rejectUnauthorized: process.env.EXE_DB_SSL_ALLOW_SELFSIGNED !== "true" } };
|
|
4359
|
+
}
|
|
4360
|
+
var init_pg_ssl = __esm({
|
|
4361
|
+
"src/lib/pg-ssl.ts"() {
|
|
4362
|
+
"use strict";
|
|
4363
|
+
}
|
|
4364
|
+
});
|
|
4365
|
+
|
|
4322
4366
|
// src/lib/store.ts
|
|
4323
4367
|
init_memory();
|
|
4324
4368
|
init_database();
|
|
@@ -4811,7 +4855,8 @@ function loadPgClient() {
|
|
|
4811
4855
|
return new Ctor();
|
|
4812
4856
|
}
|
|
4813
4857
|
const { Pool } = await import("pg");
|
|
4814
|
-
const
|
|
4858
|
+
const { pgSslConfig: pgSslConfig2 } = await Promise.resolve().then(() => (init_pg_ssl(), pg_ssl_exports));
|
|
4859
|
+
const pool = new Pool({ connectionString: process.env.DATABASE_URL, ...pgSslConfig2() });
|
|
4815
4860
|
return {
|
|
4816
4861
|
async $queryRawUnsafe(query, ...values) {
|
|
4817
4862
|
const result = await pool.query(query, values);
|
|
@@ -4861,6 +4906,7 @@ async function pushToPostgres(records) {
|
|
|
4861
4906
|
return inserted;
|
|
4862
4907
|
}
|
|
4863
4908
|
var ROSTER_DELETIONS_PATH = path10.join(EXE_AI_DIR, "roster-deletions.json");
|
|
4909
|
+
var CODE_CONTEXT_DIR = path10.join(EXE_AI_DIR, "code-context");
|
|
4864
4910
|
|
|
4865
4911
|
// src/bin/bulk-sync-postgres.ts
|
|
4866
4912
|
var BATCH_SIZE = 500;
|
package/dist/bin/cc-doctor.js
CHANGED
|
@@ -12,6 +12,7 @@ import { fileURLToPath } from "url";
|
|
|
12
12
|
function isMainModule(importMetaUrl) {
|
|
13
13
|
if (process.argv[1] == null) return false;
|
|
14
14
|
if (process.argv[1].includes("mcp/server")) return false;
|
|
15
|
+
if (process.argv[1].includes("exe-daemon")) return false;
|
|
15
16
|
try {
|
|
16
17
|
const scriptPath = realpathSync(process.argv[1]);
|
|
17
18
|
const modulePath = realpathSync(fileURLToPath(importMetaUrl));
|
|
@@ -587,7 +588,7 @@ function runHealthCheck() {
|
|
|
587
588
|
const failed = results.filter((r) => !r.pass).length;
|
|
588
589
|
return { results, passed, failed };
|
|
589
590
|
}
|
|
590
|
-
if (isMainModule(import.meta.url)) {
|
|
591
|
+
if (isMainModule(import.meta.url) && (process.argv[1] ?? "").includes("exe-healthcheck")) {
|
|
591
592
|
const { results, passed, failed } = runHealthCheck();
|
|
592
593
|
console.log("\n exe-os Health Check\n");
|
|
593
594
|
for (const r of results) {
|
|
@@ -620,7 +621,7 @@ function runCcDoctor() {
|
|
|
620
621
|
const failed = results.filter((r) => !r.pass).length;
|
|
621
622
|
return { results, passed, failed };
|
|
622
623
|
}
|
|
623
|
-
if (isMainModule(import.meta.url)) {
|
|
624
|
+
if (isMainModule(import.meta.url) && (process.argv[1] ?? "").includes("cc-doctor")) {
|
|
624
625
|
const { results, passed, failed } = runCcDoctor();
|
|
625
626
|
console.log("\n CC Install Health Check\n");
|
|
626
627
|
for (const r of results) {
|
|
@@ -1713,6 +1713,7 @@ __export(database_exports, {
|
|
|
1713
1713
|
isInitialized: () => isInitialized,
|
|
1714
1714
|
setExternalClient: () => setExternalClient
|
|
1715
1715
|
});
|
|
1716
|
+
import { chmodSync as chmodSync2 } from "fs";
|
|
1716
1717
|
import { createClient } from "@libsql/client";
|
|
1717
1718
|
async function initDatabase(config) {
|
|
1718
1719
|
if (_walCheckpointTimer) {
|
|
@@ -1754,6 +1755,16 @@ async function initDatabase(config) {
|
|
|
1754
1755
|
if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
|
|
1755
1756
|
_adapterClient = await createPrismaDbAdapter(_resilientClient);
|
|
1756
1757
|
}
|
|
1758
|
+
try {
|
|
1759
|
+
chmodSync2(config.dbPath, 384);
|
|
1760
|
+
for (const suffix of ["-wal", "-shm"]) {
|
|
1761
|
+
try {
|
|
1762
|
+
chmodSync2(config.dbPath + suffix, 384);
|
|
1763
|
+
} catch {
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
} catch {
|
|
1767
|
+
}
|
|
1757
1768
|
}
|
|
1758
1769
|
function isInitialized() {
|
|
1759
1770
|
return _adapterClient !== null || _client !== null;
|
|
@@ -4165,6 +4176,24 @@ var init_platform_procedures = __esm({
|
|
|
4165
4176
|
priority: "p0",
|
|
4166
4177
|
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."
|
|
4167
4178
|
},
|
|
4179
|
+
{
|
|
4180
|
+
title: "Bug report status check \u2014 surface available fixes on boot",
|
|
4181
|
+
domain: "support",
|
|
4182
|
+
priority: "p1",
|
|
4183
|
+
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."
|
|
4184
|
+
},
|
|
4185
|
+
{
|
|
4186
|
+
title: "Feature request triage \u2014 upstream feature vs local customization",
|
|
4187
|
+
domain: "support",
|
|
4188
|
+
priority: "p0",
|
|
4189
|
+
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."
|
|
4190
|
+
},
|
|
4191
|
+
{
|
|
4192
|
+
title: "Feature request status check \u2014 surface shipped features on boot",
|
|
4193
|
+
domain: "support",
|
|
4194
|
+
priority: "p1",
|
|
4195
|
+
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."
|
|
4196
|
+
},
|
|
4168
4197
|
// --- Operations ---
|
|
4169
4198
|
{
|
|
4170
4199
|
title: "Managers must supervise deployed workers",
|
|
@@ -5904,6 +5933,7 @@ import { fileURLToPath as fileURLToPath3 } from "url";
|
|
|
5904
5933
|
function isMainModule(importMetaUrl) {
|
|
5905
5934
|
if (process.argv[1] == null) return false;
|
|
5906
5935
|
if (process.argv[1].includes("mcp/server")) return false;
|
|
5936
|
+
if (process.argv[1].includes("exe-daemon")) return false;
|
|
5907
5937
|
try {
|
|
5908
5938
|
const scriptPath = realpathSync(process.argv[1]);
|
|
5909
5939
|
const modulePath = realpathSync(fileURLToPath3(importMetaUrl));
|