labgate 0.5.37 → 0.5.39

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.
@@ -30314,6 +30314,100 @@ var SlurmJobDB = class {
30314
30314
  // src/lib/config.ts
30315
30315
  import { join } from "path";
30316
30316
  import { homedir } from "os";
30317
+ var DEFAULT_CONFIG = {
30318
+ runtime: "auto",
30319
+ // Default sandbox image: includes python3 + basic build tools (git/make/g++).
30320
+ // Note: pip/venv are not included by default in Debian; users may still need a
30321
+ // custom image for richer Python workflows.
30322
+ image: "docker.io/library/node:20-bookworm",
30323
+ session_timeout_hours: 8,
30324
+ filesystem: {
30325
+ extra_paths: [],
30326
+ blocked_patterns: [
30327
+ "**/.ssh",
30328
+ "**/.gnupg",
30329
+ "**/.aws",
30330
+ "**/.config/gcloud",
30331
+ "**/.azure",
30332
+ "**/.env",
30333
+ "**/.netrc",
30334
+ "**/.git-credentials",
30335
+ "**/*.pem",
30336
+ "**/*.key",
30337
+ "**/id_rsa*",
30338
+ "**/id_ed25519*",
30339
+ "**/credentials*",
30340
+ "**/secrets*"
30341
+ ]
30342
+ },
30343
+ datasets: [],
30344
+ commands: {
30345
+ blacklist: [
30346
+ "mount",
30347
+ "umount",
30348
+ "mkfs",
30349
+ "reboot",
30350
+ "shutdown"
30351
+ ]
30352
+ },
30353
+ network: {
30354
+ mode: "host",
30355
+ allowed_domains: [
30356
+ "api.anthropic.com",
30357
+ "api.openai.com",
30358
+ "pypi.org",
30359
+ "files.pythonhosted.org",
30360
+ "conda.anaconda.org",
30361
+ "registry.npmjs.org",
30362
+ "github.com"
30363
+ ]
30364
+ },
30365
+ slurm: {
30366
+ enabled: true,
30367
+ poll_interval_seconds: 5,
30368
+ sacct_lookback_hours: 24,
30369
+ mcp_server: true
30370
+ },
30371
+ audit: {
30372
+ enabled: true,
30373
+ log_dir: "~/.labgate/logs"
30374
+ },
30375
+ plugins: {
30376
+ files: true,
30377
+ datasets: false,
30378
+ results: false,
30379
+ charting: true,
30380
+ molecular: true,
30381
+ genomics: true,
30382
+ phylogenetics: true,
30383
+ network: true,
30384
+ slurm: true,
30385
+ explorer: true,
30386
+ automation: false
30387
+ },
30388
+ automation: {
30389
+ model: "claude-sonnet-4-5-20250929",
30390
+ system_prompt: "You are an automation assistant helping guide a coding agent. When the agent asks a question or waits for input, provide a concise, helpful response based on the context.",
30391
+ trigger_patterns: [
30392
+ "\\?\\s*$",
30393
+ "^>\\s*$",
30394
+ "Do you want to proceed",
30395
+ "Press Enter to continue",
30396
+ "Y/n\\]?\\s*$"
30397
+ ],
30398
+ context_lines: 100,
30399
+ delay_ms: 3e3,
30400
+ max_turns: 20,
30401
+ max_tokens: 1024
30402
+ },
30403
+ headless: {
30404
+ claude_run_with_allowed_permissions: true,
30405
+ continuation_in_other_terminals: true,
30406
+ git_integration: false
30407
+ }
30408
+ };
30409
+ var KNOWN_PLUGIN_IDS = Object.freeze(Object.keys(DEFAULT_CONFIG.plugins));
30410
+ var KNOWN_PLUGIN_ID_SET = new Set(KNOWN_PLUGIN_IDS);
30317
30411
  var LABGATE_DIR = process.env.LABGATE_DIR ?? join(homedir(), ".labgate");
30318
30412
  function getSlurmDbPath() {
30319
30413
  return join(LABGATE_DIR, "slurm.db");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "labgate",
3
- "version": "0.5.37",
3
+ "version": "0.5.39",
4
4
  "description": "Secure HPC wrapper for AI coding agents (Claude-first): policy controls, Apptainer sandboxes, and SLURM workflows — https://labgate.dev",
5
5
  "homepage": "https://labgate.dev",
6
6
  "keywords": [