New mobile/ directory with Capacitor project: - Configurable server URL launcher (default: app.pedshub.com) - Android: foreground service + wake lock for background recording (AudioRecordingService preserved from existing TWA) - iOS: background audio mode + microphone permission - App ID: com.pedshub.scribe - Both platforms initialized and synced Existing android/ TWA project untouched — this is a separate project. Build: cd mobile && npx cap open android (or ios)
31 lines
935 B
JavaScript
31 lines
935 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.configCommand = void 0;
|
|
const tslib_1 = require("tslib");
|
|
const util_1 = tslib_1.__importDefault(require("util"));
|
|
const log_1 = require("../log");
|
|
async function configCommand(config, json) {
|
|
const evaluatedConfig = await deepAwait(config);
|
|
if (json) {
|
|
process.stdout.write(`${JSON.stringify(evaluatedConfig)}\n`);
|
|
}
|
|
else {
|
|
log_1.output.write(`${util_1.default.inspect(evaluatedConfig, { depth: Infinity, colors: true })}\n`);
|
|
}
|
|
}
|
|
exports.configCommand = configCommand;
|
|
async function deepAwait(obj) {
|
|
if (obj &&
|
|
!Array.isArray(obj) &&
|
|
typeof obj === 'object' &&
|
|
obj.constructor === Object) {
|
|
const o = {};
|
|
for (const [k, v] of Object.entries(obj)) {
|
|
o[k] = await deepAwait(v);
|
|
}
|
|
return o;
|
|
}
|
|
else {
|
|
return await obj;
|
|
}
|
|
}
|