@hasna/todos 0.9.51 → 0.9.52
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/cli/index.js +8 -2
- package/dist/server/index.js +8 -2
- package/dist/server/serve.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -11653,7 +11653,10 @@ data: ${JSON.stringify({ type: "connected", agent_id: agentId, timestamp: new Da
|
|
|
11653
11653
|
}
|
|
11654
11654
|
}
|
|
11655
11655
|
if (path === "/api/projects" && method === "GET") {
|
|
11656
|
-
|
|
11656
|
+
const pFieldsParam = url.searchParams.get("fields");
|
|
11657
|
+
const pFields = pFieldsParam ? pFieldsParam.split(",").map((f) => f.trim()).filter(Boolean) : undefined;
|
|
11658
|
+
const projects = listProjects();
|
|
11659
|
+
return json(pFields ? projects.map((p) => Object.fromEntries(pFields.map((f) => [f, p[f] ?? null]))) : projects, 200, port);
|
|
11657
11660
|
}
|
|
11658
11661
|
if (path === "/api/agents/me" && method === "GET") {
|
|
11659
11662
|
const name = url.searchParams.get("name");
|
|
@@ -11741,7 +11744,10 @@ data: ${JSON.stringify({ type: "connected", agent_id: agentId, timestamp: new Da
|
|
|
11741
11744
|
return json(getDirectReports2(agentId), 200, port);
|
|
11742
11745
|
}
|
|
11743
11746
|
if (path === "/api/agents" && method === "GET") {
|
|
11744
|
-
|
|
11747
|
+
const aFieldsParam = url.searchParams.get("fields");
|
|
11748
|
+
const aFields = aFieldsParam ? aFieldsParam.split(",").map((f) => f.trim()).filter(Boolean) : undefined;
|
|
11749
|
+
const agents = listAgents();
|
|
11750
|
+
return json(aFields ? agents.map((a) => Object.fromEntries(aFields.map((f) => [f, a[f] ?? null]))) : agents, 200, port);
|
|
11745
11751
|
}
|
|
11746
11752
|
if (path === "/api/projects" && method === "POST") {
|
|
11747
11753
|
try {
|
package/dist/server/index.js
CHANGED
|
@@ -2867,7 +2867,10 @@ data: ${JSON.stringify({ type: "connected", agent_id: agentId, timestamp: new Da
|
|
|
2867
2867
|
}
|
|
2868
2868
|
}
|
|
2869
2869
|
if (path === "/api/projects" && method === "GET") {
|
|
2870
|
-
|
|
2870
|
+
const pFieldsParam = url.searchParams.get("fields");
|
|
2871
|
+
const pFields = pFieldsParam ? pFieldsParam.split(",").map((f) => f.trim()).filter(Boolean) : undefined;
|
|
2872
|
+
const projects = listProjects();
|
|
2873
|
+
return json(pFields ? projects.map((p) => Object.fromEntries(pFields.map((f) => [f, p[f] ?? null]))) : projects, 200, port);
|
|
2871
2874
|
}
|
|
2872
2875
|
if (path === "/api/agents/me" && method === "GET") {
|
|
2873
2876
|
const name = url.searchParams.get("name");
|
|
@@ -2955,7 +2958,10 @@ data: ${JSON.stringify({ type: "connected", agent_id: agentId, timestamp: new Da
|
|
|
2955
2958
|
return json(getDirectReports2(agentId), 200, port);
|
|
2956
2959
|
}
|
|
2957
2960
|
if (path === "/api/agents" && method === "GET") {
|
|
2958
|
-
|
|
2961
|
+
const aFieldsParam = url.searchParams.get("fields");
|
|
2962
|
+
const aFields = aFieldsParam ? aFieldsParam.split(",").map((f) => f.trim()).filter(Boolean) : undefined;
|
|
2963
|
+
const agents = listAgents();
|
|
2964
|
+
return json(aFields ? agents.map((a) => Object.fromEntries(aFields.map((f) => [f, a[f] ?? null]))) : agents, 200, port);
|
|
2959
2965
|
}
|
|
2960
2966
|
if (path === "/api/projects" && method === "POST") {
|
|
2961
2967
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/server/serve.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAiHH,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/server/serve.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAiHH,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA6vB1G"}
|