sigrank 0.11.4 → 0.11.5
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/connect.mjs +13 -0
- package/package.json +2 -1
package/connect.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// connect.mjs — pure predicates for the TUI consolidation (the TUI is the whole app).
|
|
2
|
+
// No fs, no I/O, no side effects — unit-testable in isolation. Used by tui.mjs to
|
|
3
|
+
// decide sign-in state and to classify keystrokes while the Connect code field is focused.
|
|
4
|
+
|
|
5
|
+
/** True iff this device identity is signed in (bound to an operator). */
|
|
6
|
+
export function isSignedIn(id) {
|
|
7
|
+
return !!(id && id.codename && id.operator_id)
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** True iff `s` is a single character a connect code can contain ([A-Za-z0-9-]). */
|
|
11
|
+
export function isCodeChar(s) {
|
|
12
|
+
return typeof s === 'string' && /^[A-Za-z0-9-]$/.test(s)
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sigrank",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.5",
|
|
4
4
|
"description": "SigRank MCP server — the yield cascade + live leaderboard as MCP tools any agent can call",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"sign.mjs",
|
|
37
37
|
"keystore.mjs",
|
|
38
38
|
"submit.mjs",
|
|
39
|
+
"connect.mjs",
|
|
39
40
|
"README.md",
|
|
40
41
|
"LICENSE"
|
|
41
42
|
],
|