This repository has been archived on 2026-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
Nico e2667f8e12 Initial nyx project — fork of hermes-frontend
Forked from hermes-frontend, stripped openclaw/bun specifics:
- Auth tokens: openclaw_session -> nyx_session
- Vite proxy: localhost:3003 -> localhost:8000 (assay)
- Prod WS: wss://assay.loop42.de/ws
- Workspace paths: removed openclaw-specific paths
- Added missing deps: @heroicons/vue, overlayscrollbars-vue
- Branding: title -> nyx

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 20:23:27 +02:00

39 lines
1.0 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.segment = void 0;
function segment(...args) {
const text = args[0];
if (args.length === 1) {
return text;
}
let source;
let start;
let end;
let hasData = false;
let data;
if (typeof args[1] !== 'number') {
source = args[1];
start = typeof args[2] == 'number' ? args[2] : args[2][0];
end = typeof args[2] == 'number' ? args[2] + text.length : args[2][1];
hasData = args.length >= 4;
if (hasData) {
data = args[3];
}
}
else {
start = typeof args[1] == 'number' ? args[1] : args[1][0];
end = typeof args[1] == 'number' ? args[1] + text.length : args[1][1];
hasData = args.length >= 3;
if (hasData) {
data = args[2];
}
}
if (hasData) {
return [text, source, [start, end], data];
}
else {
return [text, source, [start, end]];
}
}
exports.segment = segment;
//# sourceMappingURL=segment.js.map