log-llm-config-staging 1.3.45 → 1.3.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apply_deferred_vscdb.js +0 -0
- package/dist/cli.js +0 -0
- package/dist/compliance_check_runner.js +4 -0
- package/dist/compliance_prompt_gate.js +1 -0
- package/dist/execute_trusted_restarts.js +1 -0
- package/dist/log_config_files/index.js +0 -0
- package/dist/log_sensitive_paths_audit.js +0 -0
- package/dist/log_uuid/index.js +0 -0
- package/dist/tofu.js +3 -0
- package/package.json +2 -2
|
File without changes
|
package/dist/cli.js
CHANGED
|
File without changes
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import { complianceRunnerRunnerLine, hookLogAppendSection } from './log_config_files/runtime/hook_logger.js';
|
|
2
3
|
import { runComplianceCheck } from './log_config_files/runtime/compliance_check.js';
|
|
4
|
+
import { loadEndpointBase, getEndpointSource } from './log_config_files/sender/endpoint_config.js';
|
|
3
5
|
(async () => {
|
|
4
6
|
hookLogAppendSection('compliance_check_runner (background sync + check)');
|
|
5
7
|
complianceRunnerRunnerLine('compliance_check_runner: start');
|
|
8
|
+
complianceRunnerRunnerLine(`compliance_check_runner: debug env OPTIMUS_ENVIRONMENT=${process.env.OPTIMUS_ENVIRONMENT ?? ''} OPTIMUS_ENDPOINT=${process.env.OPTIMUS_ENDPOINT ?? ''} cwd=${process.cwd()} argv=${JSON.stringify(process.argv)}`);
|
|
9
|
+
complianceRunnerRunnerLine(`compliance_check_runner: debug endpoint source=${getEndpointSource()} resolved=${loadEndpointBase()}`);
|
|
6
10
|
try {
|
|
7
11
|
await runComplianceCheck();
|
|
8
12
|
complianceRunnerRunnerLine('compliance_check_runner: finished ok');
|
|
File without changes
|
|
File without changes
|
package/dist/log_uuid/index.js
CHANGED
|
File without changes
|
package/dist/tofu.js
CHANGED
|
@@ -13,6 +13,9 @@ import { homedir } from "os";
|
|
|
13
13
|
import path from "path";
|
|
14
14
|
import { fileURLToPath } from "url";
|
|
15
15
|
function readEnvironment() {
|
|
16
|
+
const fromEnv = process.env.OPTIMUS_ENVIRONMENT?.trim().toLowerCase();
|
|
17
|
+
if (fromEnv)
|
|
18
|
+
return fromEnv;
|
|
16
19
|
try {
|
|
17
20
|
const content = readFileSync(path.join(homedir(), "opt-ai-sec", "management", "optimus_dev.env"), "utf8");
|
|
18
21
|
const match = content.match(/^(?:environment|ENVIRONMENT|OPTIMUS_ENVIRONMENT)\s*=\s*(.+)/m);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "log-llm-config-staging",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.47",
|
|
4
4
|
"description": "CLI helpers for logging hardware UUIDs and posting startup payloads to Optimus Security.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"compliance_check_runner-staging": "dist/compliance_check_runner.js"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "tsc -p tsconfig.json",
|
|
17
|
+
"build": "tsc -p tsconfig.json && node ../../scripts/ensure-bin-executable.mjs",
|
|
18
18
|
"dev": "ts-node src/cli.ts",
|
|
19
19
|
"lint": "eslint \"src/**/*.ts\"",
|
|
20
20
|
"prepare": "npm run build",
|