feat: Phase 1 — extract the client (web SPA + desktop) to dtoro/oikos-web
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.
This commit is contained in:
114
web/node_modules/eslint-plugin-svelte/lib/utils/ts-utils/index.d.ts
generated
vendored
Normal file
114
web/node_modules/eslint-plugin-svelte/lib/utils/ts-utils/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
import type { RuleContext, ASTNode } from '../../types';
|
||||
import type * as TS from 'typescript';
|
||||
export type TypeScript = typeof TS;
|
||||
export type { TS };
|
||||
export type TSTools = {
|
||||
service: {
|
||||
esTreeNodeToTSNodeMap: ReadonlyMap<unknown, TS.Node>;
|
||||
tsNodeToESTreeNodeMap: ReadonlyMap<TS.Node, ASTNode>;
|
||||
program: TS.Program;
|
||||
hasFullTypeInformation: boolean;
|
||||
};
|
||||
ts: TypeScript;
|
||||
};
|
||||
/**
|
||||
* Get TypeScript tools
|
||||
*/
|
||||
export declare function getTypeScriptTools(context: RuleContext): TSTools | null;
|
||||
/**
|
||||
* Get TypeScript tools
|
||||
*/
|
||||
export declare function getTypeScript(context: RuleContext): TypeScript | null;
|
||||
/**
|
||||
* Check whether the given type is a truthy literal type or not.
|
||||
*/
|
||||
export declare function isTruthyLiteral(type: TS.Type, tsTools: TSTools): boolean;
|
||||
/**
|
||||
* Check whether the given type is a falsy type or not.
|
||||
*/
|
||||
export declare function isFalsyType(type: TS.Type, tsTools: TSTools): boolean;
|
||||
/**
|
||||
* Check whether the given type is a nullish type or not.
|
||||
*/
|
||||
export declare function isNullishType(type: TS.Type, ts: TypeScript): boolean;
|
||||
/**
|
||||
* Checks whether the given type is nullable or not.
|
||||
*/
|
||||
export declare function isNullableType(type: TS.Type, ts: TypeScript): boolean;
|
||||
/**
|
||||
* Check whether the given type is a boolean literal type or not.
|
||||
*/
|
||||
export declare function isBooleanLiteralType(type: TS.Type, ts: TypeScript): boolean;
|
||||
/**
|
||||
* Check whether the given type is an object type or not.
|
||||
*/
|
||||
export declare function isObjectType(type: TS.Type, ts: TypeScript): type is TS.ObjectType;
|
||||
/**
|
||||
* Check whether the given type is a reference type or not.
|
||||
*/
|
||||
export declare function isReferenceObjectType(type: TS.Type, ts: TypeScript): type is TS.TypeReference;
|
||||
/**
|
||||
* Check whether the given type is a tuple type or not.
|
||||
*/
|
||||
export declare function isTupleObjectType(type: TS.Type, ts: TypeScript): type is TS.TupleType;
|
||||
/**
|
||||
* Check whether the given type is a tuple type or not.
|
||||
* Unlike isTupleObjectType, it also refers to reference types.
|
||||
*/
|
||||
export declare function isTupleType(type: TS.Type, ts: TypeScript): boolean;
|
||||
/**
|
||||
* Check whether the given type is an any type or not.
|
||||
*/
|
||||
export declare function isAnyType(type: TS.Type, ts: TypeScript): boolean;
|
||||
/**
|
||||
* Check whether the given type is an unknown type or not.
|
||||
*/
|
||||
export declare function isUnknownType(type: TS.Type, ts: TypeScript): boolean;
|
||||
/**
|
||||
* Check whether the given type is a never type or not.
|
||||
*/
|
||||
export declare function isNeverType(type: TS.Type, ts: TypeScript): boolean;
|
||||
/**
|
||||
* Check whether the given type is an undefined type or not.
|
||||
*/
|
||||
export declare function isUndefinedType(type: TS.Type, ts: TypeScript): boolean;
|
||||
/**
|
||||
* Check whether the given type is a void type or not.
|
||||
*/
|
||||
export declare function isVoidType(type: TS.Type, ts: TypeScript): boolean;
|
||||
/**
|
||||
* Check whether the given type is a null type or not.
|
||||
*/
|
||||
export declare function isNullType(type: TS.Type, ts: TypeScript): boolean;
|
||||
/**
|
||||
* Check whether the given type is a possibly falsy type or not.
|
||||
*/
|
||||
export declare function isPossiblyFalsyType(type: TS.Type, ts: TypeScript): boolean;
|
||||
/**
|
||||
* Get the call signatures from the given type.
|
||||
* This method is heavily inspired by tsutils. https://github.com/ajafff/tsutils
|
||||
* The MIT License (MIT) Copyright (c) 2017 Klaus Meinhardt
|
||||
* https://github.com/ajafff/tsutils/blob/master/LICENSE
|
||||
*/
|
||||
export declare function getCallSignaturesOfType(type: TS.Type): readonly TS.Signature[];
|
||||
/**
|
||||
* Resolves the given node's type. Will resolve to the type's generic constraint, if it has one.
|
||||
* Copied this method from @typescript-eslint/type-utils. https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/type-utils
|
||||
* The MIT License (MIT) Copyright (c) 2021 TypeScript ESLint and other contributors
|
||||
* https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/type-utils/LICENSE
|
||||
*/
|
||||
export declare function getConstrainedTypeAtLocation(checker: TS.TypeChecker, node: TS.Node): TS.Type;
|
||||
/**
|
||||
* Get the type name of a given type.
|
||||
*
|
||||
* Copied this method from @typescript-eslint/type-utils. https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/type-utils
|
||||
* The MIT License (MIT) Copyright (c) 2021 TypeScript ESLint and other contributors
|
||||
* https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/type-utils/LICENSE
|
||||
*
|
||||
* @param type The type to get the name of.
|
||||
*/
|
||||
export declare function getTypeName(type: TS.Type, tsTools: TSTools): string;
|
||||
/**
|
||||
* Return the type of the given property in the given type, or undefined if no such property exists
|
||||
*/
|
||||
export declare function getTypeOfPropertyOfType(type: TS.Type, name: string, checker: TS.TypeChecker): TS.Type | undefined;
|
||||
Reference in New Issue
Block a user