
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
@hami-frameworx/core-config-fs
Advanced tools
The core configuration file system package for HAMI (Human Agent Machine Interface) - providing essential configuration management operations for building agentic applications.
npm install @hami-frameworx/core-config-fs
import { hamiRegistrationManager, CoreConfigFSPlugin } from '@hami-frameworx/core-config-fs';
import { HAMIFlow } from '@hami-frameworx/core';
// Register the core-config-fs plugin
await hamiRegistrationManager.registerPlugin(CoreConfigFSPlugin);
// Create a flow that gets configuration values
class ConfigFlow extends HAMIFlow<Record<string, any>> {
constructor() {
const initNode = hamiRegistrationManager.createNode('core-fs:init-hami', {
strategy: 'CWD'
});
super(initNode);
}
kind(): string {
return 'example:config-flow';
}
async run(shared: Record<string, any>): Promise<string | undefined> {
// Get a specific config value
const getNode = hamiRegistrationManager.createNode('core-config-fs:get', {
target: 'local-and-global'
});
this.startNode.next(getNode);
return super.run(shared);
}
}
// Run the flow
const flow = new ConfigFlow();
await flow.run({ configKey: 'mySetting' });
This package provides the following configuration node types:
core-config-fs:get: Retrieves a specific configuration value by keycore-config-fs:get-all: Retrieves all configuration values from local, global, or merged sourcescore-config-fs:set: Sets a configuration value by key in local or global configcore-config-fs:remove: Removes a configuration value by key from local or global configimport { HAMIFlow } from '@hami-frameworx/core';
// Create a flow for getting config values
class GetConfigFlow extends HAMIFlow<Record<string, any>> {
constructor() {
const initNode = hamiRegistrationManager.createNode('core-fs:init-hami', {
strategy: 'CWD'
});
super(initNode);
}
kind(): string {
return 'example:get-config-flow';
}
async run(shared: Record<string, any>): Promise<string | undefined> {
// Get a specific config value with fallback to global
const getNode = hamiRegistrationManager.createNode('core-config-fs:get', {
target: 'local-and-global'
});
this.startNode.next(getNode);
return super.run(shared);
}
}
const getFlow = new GetConfigFlow();
await getFlow.run({ configKey: 'database.url' });
// Access the result
console.log(shared.configValue);
import { HAMIFlow } from '@hami-frameworx/core';
// Create a flow for setting config values
class SetConfigFlow extends HAMIFlow<Record<string, any>> {
constructor() {
const initNode = hamiRegistrationManager.createNode('core-fs:init-hami', {
strategy: 'CWD'
});
super(initNode);
}
kind(): string {
return 'example:set-config-flow';
}
async run(shared: Record<string, any>): Promise<string | undefined> {
// Set a config value in local scope
const setNode = hamiRegistrationManager.createNode('core-config-fs:set', {
target: 'local'
});
this.startNode.next(setNode);
return super.run(shared);
}
}
const setFlow = new SetConfigFlow();
await setFlow.run({
configKey: 'api.endpoint',
configValue: 'https://api.example.com'
});
import { HAMIFlow } from '@hami-frameworx/core';
// Create a flow for listing all config
class ListConfigFlow extends HAMIFlow<Record<string, any>> {
constructor() {
const initNode = hamiRegistrationManager.createNode('core-fs:init-hami', {
strategy: 'CWD'
});
super(initNode);
}
kind(): string {
return 'example:list-config-flow';
}
async run(shared: Record<string, any>): Promise<string | undefined> {
// Get all config values (merged local + global)
const getAllNode = hamiRegistrationManager.createNode('core-config-fs:get-all', {
target: 'local-and-global'
});
this.startNode.next(getAllNode);
return super.run(shared);
}
}
const listFlow = new ListConfigFlow();
await listFlow.run({});
// Access all config values
console.log(shared.configValues);
import { HAMIFlow } from '@hami-frameworx/core';
// Create a flow for removing config values
class RemoveConfigFlow extends HAMIFlow<Record<string, any>> {
constructor() {
const initNode = hamiRegistrationManager.createNode('core-fs:init-hami', {
strategy: 'CWD'
});
super(initNode);
}
kind(): string {
return 'example:remove-config-flow';
}
async run(shared: Record<string, any>): Promise<string | undefined> {
// Remove a config value from global scope
const removeNode = hamiRegistrationManager.createNode('core-config-fs:remove', {
target: 'global'
});
this.startNode.next(removeNode);
return super.run(shared);
}
}
const removeFlow = new RemoveConfigFlow();
await removeFlow.run({ configKey: 'deprecated.setting' });
The core-config-fs package supports three configuration scopes:
local: Project-specific configuration stored in ./.hami/config.jsonglobal: User-wide configuration stored in ~/.hami/config.jsonlocal-and-global: Merged configuration where local values override global onesThe core-config-fs package uses a comprehensive shared state interface for passing data between operations:
interface CoreConfigFSStorage {
// Configuration
opts?: { verbose?: boolean };
target: 'global' | 'local' | null;
useGlobalFallback?: boolean;
// Directory paths
hamiDirectory?: string;
userHamiDirectory?: string;
// Config operations
configKey?: string;
configValue?: any;
configValues?: Record<string, any>;
configValuePrevious?: any;
}
@hami-frameworx/core: Core HAMI frameworkFor detailed API documentation, see the TypeScript definitions and source code.
Contributions are welcome! Please see the main repository for contribution guidelines.
MIT © Mahesh K Bhat
FAQs
Core File System based Configuration library for HAMI
We found that @hami-frameworx/core-config-fs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.