@staff0rd/assist 0.309.0 → 0.310.0
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/README.md +1 -1
- package/dist/index.js +10 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -226,7 +226,7 @@ The first backlog command in a repository that still has a local `.assist/backlo
|
|
|
226
226
|
- `assist sql tables [connection]` - List tables in the connected database (via INFORMATION_SCHEMA.TABLES)
|
|
227
227
|
- `assist sql columns <table> [connection]` - List columns for a table (use `schema.table` for non-default schema; via INFORMATION_SCHEMA.COLUMNS)
|
|
228
228
|
- `assist netcap [-p, --port <port>] [-o, --out <dir>] [-f, --filter <pattern>]` - Start a local receiver that captures browser network traffic to a JSONL file (`capture.jsonl` under `--out`, default `~/.assist/netcap`), paired with the netcap browser extension. Sends permissive CORS, logs each ping/capture live, and runs until Ctrl-C, then prints a capture count (default port `8723`). `--filter` bakes a URL substring into the extension so only matching requests forward. See [netcap browser extension](#netcap-browser-extension)
|
|
229
|
-
- `assist netcap extract [file]` - Parse a netcap capture file into structured posts (`text`, `markdown` with mentions linked, `author`, `mentions`, `hashtags`, `links`, `relatedPosts`, and `postedAt` decoded from the activity id) and write them to `posts.json` beside the capture (defaults to `~/.assist/netcap/capture.jsonl`). Reads both the LinkedIn SDUI (rsc-action) responses rendered on first paint and the voyager GraphQL profile-updates responses loaded on scroll, deduped by activity urn keeping the richest copy of each post
|
|
229
|
+
- `assist netcap extract-linkedin-posts [file]` - Parse a netcap capture file into structured LinkedIn posts (`text`, `markdown` with mentions linked, `author`, `mentions`, `hashtags`, `links`, `relatedPosts`, `permalink` to the post, and `postedAt` decoded from the activity id) and write them to `posts.json` beside the capture (defaults to `~/.assist/netcap/capture.jsonl`). Reads both the LinkedIn SDUI (rsc-action) responses rendered on first paint and the voyager GraphQL profile-updates responses loaded on scroll, deduped by activity urn keeping the richest copy of each post
|
|
230
230
|
- `assist screenshot <process>` - Capture a screenshot of a running application window (e.g. `assist screenshot notepad`). Output directory is configurable via `screenshot.outputDir` (default `./screenshots`)
|
|
231
231
|
- `assist handover save --summary <s>` - Save a session handover note to the backlog DB (content read from stdin), scoped by the repo's git origin. Appends a new row each call; `--summary` is the one-line description shown when recalling
|
|
232
232
|
- `assist handover list` - List unrecalled handovers for this repo, most recent first, one per line as tab-separated `id`, ISO-8601 created timestamp, and one-line summary. Prints nothing when none are pending
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.310.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -11688,6 +11688,11 @@ function buildMentionMap(rows, resolve16) {
|
|
|
11688
11688
|
return map;
|
|
11689
11689
|
}
|
|
11690
11690
|
|
|
11691
|
+
// src/commands/netcap/activityPermalink.ts
|
|
11692
|
+
function activityPermalink(urn) {
|
|
11693
|
+
return urn ? `https://www.linkedin.com/feed/update/${urn}/` : void 0;
|
|
11694
|
+
}
|
|
11695
|
+
|
|
11691
11696
|
// src/commands/netcap/activityUrnDate.ts
|
|
11692
11697
|
function activityUrnDate(urn) {
|
|
11693
11698
|
if (!urn) return void 0;
|
|
@@ -11754,6 +11759,7 @@ function buildPost(raw, mentionMap, author) {
|
|
|
11754
11759
|
links: dedupeLinks(raw.links),
|
|
11755
11760
|
relatedPosts,
|
|
11756
11761
|
activityUrn: relatedPosts[0],
|
|
11762
|
+
permalink: activityPermalink(relatedPosts[0]),
|
|
11757
11763
|
postedAt: activityUrnDate(relatedPosts[0]),
|
|
11758
11764
|
author: resolveAuthor(mentionMap, author)
|
|
11759
11765
|
};
|
|
@@ -11895,6 +11901,7 @@ function buildVoyagerPost(update3, profiles) {
|
|
|
11895
11901
|
links: links2,
|
|
11896
11902
|
relatedPosts: activityUrn ? [activityUrn] : [],
|
|
11897
11903
|
activityUrn,
|
|
11904
|
+
permalink: activityPermalink(activityUrn),
|
|
11898
11905
|
postedAt: activityUrnDate(activityUrn),
|
|
11899
11906
|
author
|
|
11900
11907
|
};
|
|
@@ -12028,8 +12035,8 @@ function registerNetcap(program2) {
|
|
|
12028
12035
|
"-f, --filter <pattern>",
|
|
12029
12036
|
"Only forward requests whose URL contains this substring"
|
|
12030
12037
|
).action((options2) => netcap(options2));
|
|
12031
|
-
command.command("extract [file]").description(
|
|
12032
|
-
"Extract LinkedIn posts (text, author, mentions, links) from a netcap capture file to posts.json"
|
|
12038
|
+
command.command("extract-linkedin-posts [file]").description(
|
|
12039
|
+
"Extract LinkedIn posts (text, author, mentions, links, permalink) from a netcap capture file to posts.json"
|
|
12033
12040
|
).action((file) => netcapExtract(file));
|
|
12034
12041
|
}
|
|
12035
12042
|
|