Scan your whole stack
From OX Research Newsroom
Are you using @procedures/procedure?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.68.7
@procedures/procedure was last scanned on 24 Nov 2026 at version 0.68.7. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.68.7 LATEST | 24 Nov 2026 | No rules fired |
| 0.68.6 | 24 Nov 2026 | No rules fired |
| 0.68.5 | 24 Nov 2026 | No rules fired |
| 0.68.4 | 24 Nov 2026 | Not shown |
| 0.68.3 | 24 Nov 2026 | Not shown |
Findings for v0.68.7. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.68.7; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Procedure scaffolding and meta-procedures for runtime procedure management.
@procedures/procedure provides utilities for creating and managing procedures:
This package simplifies procedure development by automating the creation of procedure files, type definitions, and registration code.
npm install @procedures/procedure
Since 0.2.0, an import of the package registers nothing. To register its procedures in the global registry:
import "@procedures/procedure/register";
npm installs its dependencies, @procedures/client and zod.
graph TB
subgraph "Procedure Scaffolding"
ProcNew[procedure.new]
Templates[Code Templates]
FileGen[File Generator]
end
subgraph "Generated Files"
ProcFile[src/procedures/namespace/operation.ts]
TypesFile[src/types.ts]
IndexFile[src/procedures/namespace/index.ts]
RegisterFile[src/register.ts]
end
subgraph "Meta-Procedures"
ProcList[procedure.list]
ProcGet[procedure.get]
ProcExport[procedure.export]
end
subgraph "Runtime Registry"
Registry[PROCEDURE_REGISTRY]
Procedures[Registered Procedures]
end
ProcNew --> Templates
Templates --> FileGen
FileGen --> ProcFile
FileGen --> TypesFile
FileGen --> IndexFile
ProcList --> Registry
ProcGet --> Registry
ProcExport --> Registry
Registry --> Procedures
sequenceDiagram
participant User
participant ProcNew as procedure.new
participant FS as File System
participant Templates
User->>ProcNew: procedure.new { name: "user.create" }
ProcNew->>Templates: Generate procedure code
Templates-->>ProcNew: Procedure file content
ProcNew->>FS: Write src/procedures/user/create.ts
ProcNew->>Templates: Generate types
Templates-->>ProcNew: Type definitions
ProcNew->>FS: Append to src/types.ts
ProcNew->>Templates: Generate exports
Templates-->>ProcNew: Export statement
ProcNew->>FS: Update src/procedures/user/index.ts
ProcNew->>FS: Add the procedure to src/register.ts
ProcNew-->>User: Success + next steps
The scaffolded code compiles with the strict options of the workspace. A name whose path, file, type names or registration exists already is an error, and then nothing is written.
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/procedure/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
// Scaffold a new procedure
const result = await client.exec(["procedure", "new"], {
name: "user.create",
description: "Create a new user account",
});
console.log(result.operations);
// [
// "Creating directory: /project/src/procedures/user",
// "Creating procedure file: /project/src/procedures/user/create.ts",
// "Creating index: /project/src/procedures/user/index.ts",
// "Appending types to: /project/src/types.ts",
// "Next steps: ..."
// ]
procedure.newScaffold a new procedure with type definitions and boilerplate.
interface ProcedureNewInput {
name: string; // Dot-notation name (e.g., "user.create" or "fs.readJson")
namespace?: string; // Namespace override: the folder under src/procedures (defaults to first segment)
description?: string; // Procedure description
path?: string; // Project path (defaults to cwd)
dryRun?: boolean; // Preview without creating files
}
interface ProcedureNewOutput {
success: boolean;
procedurePath: string[]; // e.g., ["user", "create"]
created: string[]; // Files created
modified: string[]; // Files modified
operations: string[]; // Operations performed
errors: string[]; // Any errors
}
Example:
const result = await client.exec(["procedure", "new"], {
name: "user.create",
description: "Create a new user",
path: "/path/to/package",
});
Generated Files:
The file of a procedure is src/procedures/<first segment>/<middle segments>/<last segment>.ts: api.v2.users.create gives src/procedures/api/v2/users/create.ts.
src/procedures/user/create.ts):/**
* user.create procedure
*
* Create a new user
*/
import type { UserCreateInput, UserCreateOutput } from "../../types.js";
/**
* Create a new user
*/
export async function userCreate(_input: UserCreateInput): Promise<UserCreateOutput> {
// TODO: Implement user.create (rename _input to input when the code uses it)
return {
success: true,
message: "Hello from user.create",
};
}
src/types.ts, which gets import * as z from "zod" if it has none, or is created):// =============================================================================
// user.create Types - Create a new user
// =============================================================================
export const UserCreateInputSchema: z.ZodObject<{
// TODO: Add input fields
}> = z.object({
// TODO: Add input fields
});
export type UserCreateInput = z.infer<typeof UserCreateInputSchema>;
export interface UserCreateOutput {
/** Whether the operation succeeded */
success: boolean;
/** Response message */
message: string;
}
src/procedures/user/index.ts):export { userCreate } from "./create.js";
Registration: the imports, the definition, and the item of the list of procedures go into src/module.ts. The list is the second argument of defineModule:
defineModule("@procedures/demo", [userCreateProcedure])src/module.ts declares as an array: const procedures = [userCreateProcedure]defineModule("@procedures/demo", [...procedures]). The item goes into the array of the variable.The definition goes before the list that uses it. When the list comes from another file or from a function, procedure.new fails and writes nothing. A package of the old kind, without src/module.ts, gets the procedure in the registerProcedures([...]) array of src/register.ts:
import { createProcedure, registerProcedures, typed } from "@procedures/client";
import { userCreate } from "./procedures/user/create.js";
import { UserCreateInputSchema, type UserCreateInput, type UserCreateOutput } from "./types.js";
const userCreateProcedure = createProcedure()
.path(["user", "create"])
.input(UserCreateInputSchema)
.output(typed<UserCreateOutput>())
.meta({
description: "Create a new user",
args: [],
shorts: {},
output: "text",
})
.handler(async (input: UserCreateInput): Promise<UserCreateOutput> => userCreate(input))
.build();
export function register(): void {
registerProcedures([userCreateProcedure]);
}
If the file has no list that procedure.new can change, the result has success: false, the error gives the reason, and no file changes.
procedure.listList the procedures of the registry, with an optional namespace filter.
interface ProcedureListInput {
namespace?: string; // Only the procedures of this first path segment
includeMetadata?: boolean; // Default: false
}
interface ProcedureListOutput {
procedures: Array<{
path: string[];
key: string; // "git.commit"
description?: string;
tags?: string[];
hasHandler: boolean;
}>;
count: number;
}
const { procedures, count } = await client.exec(["procedure", "list"], { namespace: "git" });
procedure.getGet the metadata of one procedure.
interface ProcedureGetInput {
path: string[] | string; // ["git", "commit"] or "git.commit"
}
interface ProcedureGetOutput {
found: boolean;
path?: string[];
metadata?: Record<string, unknown>;
hasHandler?: boolean;
hasInputSchema?: boolean;
hasOutputSchema?: boolean;
}
procedure.exportExport the path and the metadata of one procedure as a call ($proc).
interface ProcedureExportInput {
path: string[] | string;
}
interface ProcedureExportOutput {
success: boolean;
definition?: { $proc: string[]; metadata?: Record<string, unknown> };
error?: string; // When the procedure does not exist
}
[!NOTE] The core package
clientalso hasprocedure.listandprocedure.get, for the procedures thatprocedure.definemade.client-procedureregisters its own versions withoverride: true. Thus the result depends on whether the host importsclient-procedure:markand the MCP server do.
const result = await client.exec(["procedure", "new"], {
name: "api.users.permissions.grant",
description: "Grant permission to a user",
});
// Generated path: ["api", "users", "permissions", "grant"]
// File: src/procedures/api/users/permissions/grant.ts
// The plan of the scaffold, without a change of a file
const preview = await client.exec(["procedure", "new"], {
name: "product.update",
dryRun: true,
});
console.log(preview.operations);
The procedure.new command is also available via the Mark CLI:
# Scaffold a new procedure
node packages/mark/dist/cli.js procedure new user.create --path packages/my-package
# With options
node packages/mark/dist/cli.js procedure new user.update \
--description "Update user information" \
--path packages/my-package \
--dry-run
node packages/mark/dist/cli.js lib new my-client-package
pnpm install
node packages/mark/dist/cli.js procedure new myapp.start --path packages/myapp
node packages/mark/dist/cli.js procedure new myapp.stop --path packages/myapp
node packages/mark/dist/cli.js procedure new myapp.status --path packages/myapp
Implement handlers:
Edit the generated files in src/procedures/myapp/*.ts. procedure new registered each procedure in src/register.ts.
Build and test:
pnpm build
pnpm test
Procedure names follow dot-notation:
greet → ["greet"]user.create → ["user", "create"]api.users.permissions.grant → ["api", "users", "permissions", "grant"]fs.readJson → ["fs", "readJson"]Generated identifiers:
user.create → userCreateuser.create → UserCreateuser.create → user/create.ts, api.users.permissions.grant → api/users/permissions/grant.tsTwo names can give the same identifiers (a.b.c and a.bC both give aBC). The second one is an error.
@procedures/client (workspace:*)zod ^3.24.0MIT
@procedures/client - Core client/procedure system@procedures/mark - CLI that uses procedure.new for scaffoldingFind threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.