flowcollab 0.2.5 → 0.2.6
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/bin/_client.mjs +2 -0
- package/bin/close.mjs +2 -1
- package/bin/scan.mjs +5 -4
- package/package.json +1 -1
package/bin/_client.mjs
CHANGED
|
@@ -76,6 +76,8 @@ export async function flowFetch(path, { method = 'GET', body } = {}) {
|
|
|
76
76
|
'content-type': 'application/json',
|
|
77
77
|
};
|
|
78
78
|
if (actingViaClaude()) headers['x-flow-acting-via'] = 'claude';
|
|
79
|
+
const org = process.env.FLOW_ORG_ID || _gc.orgId || '';
|
|
80
|
+
if (org) headers['x-flow-org'] = org;
|
|
79
81
|
const proj = process.env.FLOW_PROJECT_ID || _gc.projectId || '';
|
|
80
82
|
if (proj) headers['x-flow-project'] = proj;
|
|
81
83
|
|
package/bin/close.mjs
CHANGED
|
@@ -16,7 +16,8 @@ async function main() {
|
|
|
16
16
|
body: { task_id: id, ...(summary ? { summary } : {}) },
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
const ref = r.task.issue_num != null ? r.task.issue_num : r.task.id.slice(0, 6);
|
|
20
|
+
process.stdout.write(`Closed #${ref} — "${r.task.title}"\n`);
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
main().catch(e => die(e.message || e));
|
package/bin/scan.mjs
CHANGED
|
@@ -176,10 +176,11 @@ function printSection(heading, suggestions) {
|
|
|
176
176
|
|
|
177
177
|
// ── Main ───────────────────────────────────────────────────────────────────────
|
|
178
178
|
async function main() {
|
|
179
|
-
const
|
|
180
|
-
const
|
|
181
|
-
const
|
|
182
|
-
const
|
|
179
|
+
const argv = process.argv;
|
|
180
|
+
const doTodos = argv.includes('--todos');
|
|
181
|
+
const doIssues = argv.includes('--issues');
|
|
182
|
+
const doPRs = argv.includes('--prs');
|
|
183
|
+
const doSecurity = argv.includes('--security');
|
|
183
184
|
const all = !doTodos && !doIssues && !doPRs && !doSecurity;
|
|
184
185
|
|
|
185
186
|
const dir = arg('dir') || process.cwd();
|