67e2fc54c2
Rewire onto the shared @simpleworkjs/oidc-client, /directory-schema, /ldap, and
/app-stack packages (deleting the byte-identical local forks). utils/access.js
now fetches reachable hosts through the shared directory client, which
validates the {results} envelope and treats envelope drift as a failed group
rather than silently returning []. models/user_ldap.js is a thin wrapper over
createLdapClient (loose TLS default preserved). build_info moves to utils/ with
the shared {buildVersion,buildHash,buildYear} shape. Align ldapts ^8.1.8 and
redis ^6.1.0. Lockfile regenerated from the registry (no file:/link:).
Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
708 B
JavaScript
19 lines
708 B
JavaScript
'use strict';
|
|
|
|
// Unified build-info shape ({ buildVersion, buildHash, buildYear }) via the
|
|
// shared @simpleworkjs/app-stack. Previously this lived in models/build_info.js
|
|
// and exported { commit, version }; the shape is now aligned with sso + proxy.
|
|
//
|
|
// The baked commit file lives at the jump-host repo root (../../ from here in
|
|
// utils/), matching the Dockerfile gitinfo stage. cwd is utils/ for the
|
|
// bare-metal git fallback.
|
|
|
|
const path = require('path');
|
|
const { createBuildInfo } = require('@simpleworkjs/app-stack');
|
|
const { version } = require('../package.json');
|
|
|
|
module.exports = createBuildInfo({
|
|
version,
|
|
buildCommitPath: path.join(__dirname, '../../.build_commit'),
|
|
cwd: __dirname,
|
|
}); |