Problem: the hexagonal refactor churns the backend tree for nine more phases; the UI delivery stack (web/ SPA, cmd/desktop Wails wrapper, compose/web image) must move to its own repo first so doc/layout rewrites land once on a backend-only tree. Change: - New repo git.hubris.network/dtoro/oikos-web (v0.33.0): web/, desktop/ (updateURL repointed to oikos-web releases), compose/, own CI (web + desktop jobs), own deploy script (CI-green gate, TOCTOU guard, version-tagged images, prune-to-3), own webhook receiver on :9798 + launchd unit, own compose project publishing the same 8091:80. - Cutover executed on mac-mini in order: oikos stack's web service stopped+removed, oikos-web project brought up on 8091; outer Caddy untouched (targets the published port) — serving + Authentik flow + /wails 404 quirk verified post-cutover. - Stripped from oikos: web/, cmd/desktop/, compose/web/, desktop CI workflow, ci.yml web job, Makefile ui/desktop/desktop-package/install targets, the compose web service, oikos-web from deploy.sh's fallback prune list; wails + go-keyring dropped from go.mod, vendor synced. - README / CONTRIBUTING / AGENTS.md / .agents dev+operations docs now point at the new repo; mbse + mascot design docs carry a path note. Risk: production SPA serving depends on the new pipeline now; rollback is versioned-image re-up of the old web service from a pre-split checkout (port 8091). Desktop builds installed before the split still check dtoro/oikos releases — one manual reinstall, noted in the oikos-web release notes. Verification: go vet, make test (race), make generate-check, golangci (no new findings; baseline down 400→365); post-cutover curls — localhost:8091 200, /wails/runtime.js 404, outer Caddy 302 Authentik.
109 lines
2.7 KiB
JavaScript
109 lines
2.7 KiB
JavaScript
/**
|
|
* @fileoverview Shared flags for ESLint.
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Typedefs
|
|
//------------------------------------------------------------------------------
|
|
|
|
/**
|
|
* @typedef {Object} InactiveFlagData
|
|
* @property {string} description Flag description
|
|
* @property {string | null} [replacedBy] Can be either:
|
|
* - An active flag (string) that enables the same feature.
|
|
* - `null` if the feature is now enabled by default.
|
|
* - Omitted if the feature has been abandoned.
|
|
*/
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Exports
|
|
//-----------------------------------------------------------------------------
|
|
|
|
/**
|
|
* The set of flags that change ESLint behavior with a description.
|
|
* @type {Map<string, string>}
|
|
*/
|
|
const activeFlags = new Map([
|
|
["test_only", "Used only for testing."],
|
|
["test_only_2", "Used only for testing."],
|
|
[
|
|
"v10_config_lookup_from_file",
|
|
"Look up `eslint.config.js` from the file being linted.",
|
|
],
|
|
[
|
|
"unstable_native_nodejs_ts_config",
|
|
"Use native Node.js to load TypeScript configuration.",
|
|
],
|
|
]);
|
|
|
|
/**
|
|
* The set of flags that used to be active.
|
|
* @type {Map<string, InactiveFlagData>}
|
|
*/
|
|
const inactiveFlags = new Map([
|
|
[
|
|
"test_only_replaced",
|
|
{
|
|
description:
|
|
"Used only for testing flags that have been replaced by other flags.",
|
|
replacedBy: "test_only",
|
|
},
|
|
],
|
|
[
|
|
"test_only_enabled_by_default",
|
|
{
|
|
description:
|
|
"Used only for testing flags whose features have been enabled by default.",
|
|
replacedBy: null,
|
|
},
|
|
],
|
|
[
|
|
"test_only_abandoned",
|
|
{
|
|
description:
|
|
"Used only for testing flags whose features have been abandoned.",
|
|
},
|
|
],
|
|
[
|
|
"unstable_ts_config",
|
|
{
|
|
description: "Enable TypeScript configuration files.",
|
|
replacedBy: null,
|
|
},
|
|
],
|
|
[
|
|
"unstable_config_lookup_from_file",
|
|
{
|
|
description:
|
|
"Look up `eslint.config.js` from the file being linted.",
|
|
replacedBy: "v10_config_lookup_from_file",
|
|
},
|
|
],
|
|
]);
|
|
|
|
/**
|
|
* Creates a message that describes the reason the flag is inactive.
|
|
* @param {InactiveFlagData} inactiveFlagData Data for the inactive flag.
|
|
* @returns {string} Message describing the reason the flag is inactive.
|
|
*/
|
|
function getInactivityReasonMessage({ replacedBy }) {
|
|
if (typeof replacedBy === "undefined") {
|
|
return "This feature has been abandoned.";
|
|
}
|
|
|
|
if (typeof replacedBy === "string") {
|
|
return `This flag has been renamed '${replacedBy}' to reflect its stabilization. Please use '${replacedBy}' instead.`;
|
|
}
|
|
|
|
// null
|
|
return "This feature is now enabled by default.";
|
|
}
|
|
|
|
module.exports = {
|
|
activeFlags,
|
|
inactiveFlags,
|
|
getInactivityReasonMessage,
|
|
};
|