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)
27 lines
786 B
JavaScript
27 lines
786 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isFatal = exports.fatal = exports.FatalException = exports.BaseException = void 0;
|
|
class BaseException extends Error {
|
|
constructor(message, code) {
|
|
super(message);
|
|
this.message = message;
|
|
this.code = code;
|
|
}
|
|
}
|
|
exports.BaseException = BaseException;
|
|
class FatalException extends BaseException {
|
|
constructor(message, exitCode = 1) {
|
|
super(message, 'FATAL');
|
|
this.message = message;
|
|
this.exitCode = exitCode;
|
|
}
|
|
}
|
|
exports.FatalException = FatalException;
|
|
function fatal(message) {
|
|
throw new FatalException(message);
|
|
}
|
|
exports.fatal = fatal;
|
|
function isFatal(e) {
|
|
return e && e instanceof FatalException;
|
|
}
|
|
exports.isFatal = isFatal;
|