MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / withLimit

Function withLimit

dashboard/holographic/src/api.ts:42–47  ·  view source on GitHub ↗
(path: string, limit?: number)

Source from the content-addressed store, hash-verified

40const AUTOMATION_BASE = "/api/automation";
41
42function withLimit(path: string, limit?: number): string {
43 const qs = new URLSearchParams();
44 if (limit) qs.set("limit", String(limit));
45 const suffix = qs.toString();
46 return `${path}${suffix ? `?${suffix}` : ""}`;
47}
48
49function managedSkillPath(id: string, action?: string): string {
50 const path = `${AUTOMATION_BASE}/skills/${encodeURIComponent(id)}`;

Callers 1

api.tsFile · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected