@follenfang/fupload 0.0.15 → 0.0.16
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/fupload/SKILL.md +11 -1
- package/fupload/references/dd.md +18 -3
- package/fupload/scripts/fupload_cli/__init__.py +1 -1
- package/fupload/scripts/fupload_cli/dd.py +17 -0
- package/fupload/scripts/fupload_cli/dd_broker.py +16 -0
- package/fupload/scripts/fupload_cli/dd_sidecar.py +67 -8
- package/fupload/scripts/fupload_cli/io.py +3 -1
- package/npm/skill-manifest.json +16 -16
- package/package.json +1 -1
package/fupload/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: fupload
|
|
3
3
|
description: Explicit author-publishing workflow for World of Warcraft plugins, configuration shares, and WA/strings on NewBeeBox, NetEase DD, CurseForge, Heybox Workshop, and ModUs.Creator, including local Creator login reuse and plugin ZIP publishing. Use only when the user explicitly invokes `$fupload`, explicitly asks to use the Fupload Skill, or loads this Skill by path. Do not trigger from ordinary mentions of publishing, NewBeeBox, DD, CurseForge, Heybox, ModUs, plugins, configurations, or WA.
|
|
4
4
|
metadata:
|
|
5
|
-
version: "0.0.
|
|
5
|
+
version: "0.0.16"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Fupload
|
|
@@ -54,6 +54,8 @@ For NewBeeBox, prefer an existing official `ncc login`, then a caller-provided `
|
|
|
54
54
|
|
|
55
55
|
For CurseForge, use `~/.fupload/curseforge.env`, created idempotently by npm install/update, with `CURSEFORGE_AUTHOR_ID`, `CURSEFORGE_API_KEY`, and `CURSEFORGE_UPLOAD_TOKEN`. The author ID is non-secret: if absent, proactively ask for its numeric value or offer `--author-id`. The API key and upload token are secrets: never ask the user to paste either into the conversation; direct them to fill the local env file in their own editor or terminal, then run `curseforge session doctor`. Never print file contents or secret values. Process environment values may override the file without being shown.
|
|
56
56
|
|
|
57
|
+
For DD, reuse only the official client's local auto account and credential through `dd session start`. Never request or accept an email address, mobile number, password, token, credential value, or account-type override. Account and credential values must not appear in CLI output, plans, logs, tests, or analysis evidence; only the safe credential kind may be retained for diagnosis and verification.
|
|
58
|
+
|
|
57
59
|
For ModUs, authentication comes only from `%LOCALAPPDATA%\ModUs.Creator\auth\token.dat` under the current Windows user. `modus session doctor` reports only token presence, DPAPI decryption, nonempty plaintext, and authenticated API readiness. Never print, copy, hash, or persist the token, ciphertext, Bearer header, or signed upload URL.
|
|
58
60
|
|
|
59
61
|
If a token is pasted into the conversation, do not repeat or use it. Tell the user to revoke or regenerate it at its provider and configure the replacement locally. Check only whether the expected field is present, never its length, prefix, hash, or value.
|
|
@@ -107,8 +109,12 @@ For ModUs, require all four `modus session doctor` booleans to be true before an
|
|
|
107
109
|
|
|
108
110
|
Before any DD live GET or write, run `dd session doctor`. If it reports `gui_running=true`, tell the user that continuing will close the listed official DD GUI instances and ask for explicit consent. Without consent, do not run start, do not close a process, and do not issue a native login. After consent, run `dd session start --confirm-close-gui`; when no GUI is running, run `dd session start` without that flag.
|
|
109
111
|
|
|
112
|
+
`dd session start` automatically selects the native relogin flow from the official `Account.method`, `Cred.type`, and `Cred.modifier` enums. `urs + urs_token + normal` uses `UrsReLoginFlow` for an email session; `mobile + urs_mobile_token + mobile_password|mobile_uplink` uses `MobileReLoginFlow` for a mobile session. Missing, unknown, or contradictory combinations fail before any flow runs. Never infer the account kind from its text, coerce an enum, or try the other flow after a failure.
|
|
113
|
+
|
|
110
114
|
Keep the returned opaque `session_id` only in task memory and pass it as `--session <id>` to every DD GET, write, readback, status, and delete. Reuse this one session for the complete task, serialize all commands, stop on the first failure, and never start one session per item in a batch. In a `finally` path, always run `dd session stop --session <id>` and require `cleanup_complete=true`; the ten-minute idle timeout is only an abnormal-exit fallback.
|
|
111
115
|
|
|
116
|
+
Email and mobile differ only during native relogin. After a matching flow succeeds, both reuse the same JWT refresh, author API client, GET, upload, mutation, readback, logout, and cleanup path through that one task session.
|
|
117
|
+
|
|
112
118
|
For every DD configuration, first list backups, select `backup_sn`, then run `dd config backup-get --sn <backup>`. Select a WTF account/server/role before presenting that account's known/unknown WA choices. For a retail configuration, present the safe edit-mode and cooldown selector metadata. Send only stable IDs and returned selectors; never request, display, store, or reconstruct raw backup objects or retail import strings.
|
|
113
119
|
|
|
114
120
|
For a configuration, require a cloud backup already uploaded by the matching desktop client. If none exists, ask the user to upload one in the client and stop before writing.
|
|
@@ -147,6 +153,10 @@ For a Python delete, first run the resource `get` command, show the exact name a
|
|
|
147
153
|
|
|
148
154
|
Run writes serially. For official `ncc`, always request `-o json`, parse stdout as JSON, and treat stderr only as progress diagnostics. For Python, parse its stable JSON output. Never scrape human text. After each successful step, immediately run the corresponding info/get/list/versions/history command and compare the intended fields in the same DD session when applicable. DD performs a bounded GET-only readback poll and never resends a mutation during verification. For DD plugin update, use a nonempty `/addon/addon_versions` result only as a pre-upload duplicate guard; the matching author-list item's `latest_version` is the primary success confirmation and `detail_v2` is supplementary. Plugin edit also uses the same-SN author projection when detail remains stale. An empty history is diagnostic-only. Treat “submitted for review” and “under review” as distinct from “approved” or “publicly visible.”
|
|
149
155
|
|
|
156
|
+
When validating a DD authentication change, automated dispatch and constructor tests must cover every supported email and mobile enum combination, select exactly one matching flow with the correct arguments, and reject missing, unknown, or contradictory combinations without fallback. Exercise the shared JWT refresh, author API, resource, broker, sidecar, and logout path once through unified tests; do not require that common path to be repeated per credential kind.
|
|
157
|
+
|
|
158
|
+
Run the full isolated live matrix only with the official client's currently persisted account and record its safe credential kind; do not switch the persisted account merely to repeat the matrix. For every current non-exploration seasonal build, read the dependency graph and complete plugin and WA create, update, edit, readback, binary upload, delete, and final cleanup. Complete the same configuration matrix, including image upload, only for builds where `/backup/list` and `/backup/detail` provide a usable cloud backup. Record an explicit safe `N/A` reason for every build without one; never silently skip it or fabricate a backup selector. Evidence must record the executed commands, exit status, readback, `N/A` items, implementation commit, DD version, resource hashes, and cleanup result while redacting account names, credential values, tokens, Cookies, JWTs, signed URLs, `clientNo`, raw WA strings, and raw backup content. Cleanup may touch only objects created by that test run, and the run must finish with no sidecar, task broker, or live broker state.
|
|
159
|
+
|
|
150
160
|
For CurseForge, treat the Upload API's returned file ID as upload acceptance only. Record the ID and command result, then report that moderation, processing, manual release, and public visibility are separate states. On an interrupted or ambiguous upload, do not resend automatically because that can create a duplicate file; inspect the Authors project page or public file list before deciding on a new attempt. Follow the HTTP/error handling table in the CurseForge reference.
|
|
151
161
|
|
|
152
162
|
In the third-party Python NewBeeBox channel, public plugin publication is three atomic writes: create privately, upload and verify the first version, then edit to public with explicit review intent. Never send a public `share_state` during Python create. In the official channel, follow the installed `ncc docs` sequence for create, init, push, and visibility instead of applying Python wire rules.
|
package/fupload/references/dd.md
CHANGED
|
@@ -2,11 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
## Task session
|
|
4
4
|
|
|
5
|
-
Run `dd session doctor` first. Doctor only discovers the installation, verifies the Authenticode publisher, reports official DD processes and reads local broker state; it does not login. When `gui_running=true`, explain that the official DD GUI must close and obtain explicit user consent. Only then run `dd session start --confirm-close-gui`. When `gui_running=false`, run `dd session start` without the confirmation flag.
|
|
5
|
+
Run `dd session doctor` first. Doctor only discovers the installation, verifies the Authenticode publisher, reports official DD processes and reads local broker state; it does not login or run either native relogin flow. When `gui_running=true`, explain that the official DD GUI must close and obtain explicit user consent. Only then run `dd session start --confirm-close-gui`. When `gui_running=false`, run `dd session start` without the confirmation flag.
|
|
6
6
|
|
|
7
|
-
`start` closes only identity- and signature-verified official GUI processes, starts one task broker and
|
|
7
|
+
`start` closes only identity- and signature-verified official GUI processes, starts one task broker, and reads the official `AccountCredStorage` auto account and credential. It selects the native relogin flow only from this strict enum matrix:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- `Account.method=urs`, `Cred.type=urs_token`, `Cred.modifier=normal`: run `UrsReLoginFlow(controller, sdk, token, username)` for the email login state.
|
|
10
|
+
- `Account.method=mobile`, `Cred.type=urs_mobile_token`, `Cred.modifier=mobile_password|mobile_uplink`: run `MobileReLoginFlow(controller, sdk, cgi, netconfig, token, isPassword, username)` for the mobile login state. `isPassword` is true only for `mobile_password`.
|
|
11
|
+
|
|
12
|
+
Missing, unknown, or contradictory enum combinations fail before either flow is called. Do not infer account kind from the account string, coerce a value, or fall back to the other flow after a login failure. Do not request or accept manual account names, passwords, tokens, credential values, or account-type overrides.
|
|
13
|
+
|
|
14
|
+
After the selected flow succeeds, both credential kinds use the same JWT refresh, author API client, GET, parser, upload, mutation, readback, logout, and cleanup path. `start` returns an opaque `session_id`; pass it through `--session` to every DD read and write. All operations are serialized through this one task session and one native login. Run `dd session status --session <id>` for a local status check and always run `dd session stop --session <id>` in `finally`; successful stop reports `cleanup_complete=true`. The ten-minute idle timeout is only a crash fallback.
|
|
15
|
+
|
|
16
|
+
Do not request or expose account names, credential values, tokens, Cookies, JWTs, the credential database, signed URLs, `clientNo`, raw WA content, or raw backup objects. The safe credential kind may be reported without its account identity or value. The device state remains under Windows Known Folder Roaming AppData at `CCVoiceHub/Fupload/sidecar-device.json`.
|
|
17
|
+
|
|
18
|
+
## Authentication compatibility verification
|
|
19
|
+
|
|
20
|
+
Any change to DD authentication or session dispatch requires automated tests for every supported email and mobile enum combination. Each case must select exactly one matching flow, verify its constructor arguments, and reject missing, unknown, or contradictory combinations before login without fallback. Unified tests cover the common JWT refresh, author API client, resource operations, single broker/sidecar/login lifecycle, and explicit logout path after dispatch; this common path does not need to be repeated per credential kind.
|
|
21
|
+
|
|
22
|
+
Run the full isolated live matrix only under the account currently persisted by the official DD client, and record its safe credential kind. Do not switch that account merely to repeat the matrix for another credential kind. In one task session, read the live dependency graph for every current non-exploration seasonal build, then cover plugin and WA create, update, edit, readback, binary upload, delete, and final cleanup. For configuration, run the same CRUD, image-upload, readback, and cleanup matrix on every build where `/backup/list` returns a cloud backup whose `/backup/detail` supports valid selections. When a build has no usable cloud backup, record an explicit safe `N/A` reason; never silently skip it or fabricate a backup selector.
|
|
23
|
+
|
|
24
|
+
Verification evidence may contain only the safe credential kind, executed command, exit status, readback result, `N/A` items, implementation commit, DD version, resource hashes, and cleanup result. Redact account names, credential values, passwords, tokens, Cookies, JWTs, signed URLs, `clientNo`, signatures, device proofs, raw WA strings, and raw configuration backup content. Cleanup may remove only the isolated objects recorded as created by that run; do not modify pre-existing remote resources. A completed, failed, or timed-out run must verify that no DD sidecar, task broker, or live broker state remains.
|
|
10
25
|
|
|
11
26
|
## GET before one final JSON
|
|
12
27
|
|
|
@@ -245,6 +245,7 @@ class Sidecar:
|
|
|
245
245
|
self.dd_dir, self.signature = discover_dd_info()
|
|
246
246
|
self.process: Optional[subprocess.Popen[str]] = None
|
|
247
247
|
self.counter = 0
|
|
248
|
+
self.credential_kind: Optional[str] = None
|
|
248
249
|
self.lock_handle = None
|
|
249
250
|
self.responses: queue.Queue[Any] = queue.Queue()
|
|
250
251
|
self.reader_thread: Optional[threading.Thread] = None
|
|
@@ -276,6 +277,15 @@ class Sidecar:
|
|
|
276
277
|
kind="authentication_error",
|
|
277
278
|
stage="session",
|
|
278
279
|
)
|
|
280
|
+
credential_kind = ready.get("credential_kind")
|
|
281
|
+
if credential_kind not in ("email", "mobile"):
|
|
282
|
+
self.close()
|
|
283
|
+
raise FuploadError(
|
|
284
|
+
"DD sidecar returned an invalid credential kind",
|
|
285
|
+
kind="sidecar_error",
|
|
286
|
+
stage="session",
|
|
287
|
+
)
|
|
288
|
+
self.credential_kind = credential_kind
|
|
279
289
|
return self
|
|
280
290
|
|
|
281
291
|
def _lock(self) -> None:
|
|
@@ -1781,6 +1791,13 @@ def config_readback_projection(value: Any) -> Mapping[str, Any]:
|
|
|
1781
1791
|
projected = dict(value)
|
|
1782
1792
|
if "need_buy" in projected:
|
|
1783
1793
|
projected["need_buy"] = 1 if projected["need_buy"] else 0
|
|
1794
|
+
for name in ("known_addon", "unknown_addon", "material", "font", "known_wa", "unknown_wa"):
|
|
1795
|
+
if projected.get(name) is None:
|
|
1796
|
+
projected[name] = {"items": [], "inner_version": {}}
|
|
1797
|
+
if projected.get("wtf") is None:
|
|
1798
|
+
projected["wtf"] = {"accounts": []}
|
|
1799
|
+
if projected.get("vip_levels") is None:
|
|
1800
|
+
projected["vip_levels"] = []
|
|
1784
1801
|
return projected
|
|
1785
1802
|
|
|
1786
1803
|
|
|
@@ -415,6 +415,10 @@ def start(confirm_close_gui: bool) -> Dict[str, Any]:
|
|
|
415
415
|
"running": True,
|
|
416
416
|
"reused": True,
|
|
417
417
|
"login_count": active.get("login_count", 1),
|
|
418
|
+
"broker_count": active.get("broker_count", 1),
|
|
419
|
+
"sidecar_count": active.get("sidecar_count", 1),
|
|
420
|
+
"native_login_count": active.get("native_login_count", 1),
|
|
421
|
+
"credential_kind": active.get("credential_kind"),
|
|
418
422
|
}
|
|
419
423
|
processes = running_dd_processes()
|
|
420
424
|
if processes and not confirm_close_gui:
|
|
@@ -452,6 +456,10 @@ def start(confirm_close_gui: bool) -> Dict[str, Any]:
|
|
|
452
456
|
"running": True,
|
|
453
457
|
"reused": False,
|
|
454
458
|
"login_count": 1,
|
|
459
|
+
"broker_count": state.get("broker_count", 1),
|
|
460
|
+
"sidecar_count": state.get("sidecar_count", 1),
|
|
461
|
+
"native_login_count": state.get("native_login_count", 1),
|
|
462
|
+
"credential_kind": state.get("credential_kind"),
|
|
455
463
|
"closed_gui_processes": len(processes),
|
|
456
464
|
}
|
|
457
465
|
if startup.exists():
|
|
@@ -575,6 +583,10 @@ def _serve(startup_id: str) -> int:
|
|
|
575
583
|
sidecar = _dd_module().Sidecar().__enter__()
|
|
576
584
|
state["dd_dir"] = str(sidecar.dd_dir)
|
|
577
585
|
state["signature"] = sidecar.signature
|
|
586
|
+
state["credential_kind"] = sidecar.credential_kind
|
|
587
|
+
state["broker_count"] = 1
|
|
588
|
+
state["sidecar_count"] = 1
|
|
589
|
+
state["native_login_count"] = 1
|
|
578
590
|
_atomic_json(state_path, state)
|
|
579
591
|
try:
|
|
580
592
|
startup_path.unlink()
|
|
@@ -603,6 +615,10 @@ def _serve(startup_id: str) -> int:
|
|
|
603
615
|
"started_at": started_at,
|
|
604
616
|
"last_activity": last_activity,
|
|
605
617
|
"login_count": 1,
|
|
618
|
+
"broker_count": state.get("broker_count", 1),
|
|
619
|
+
"sidecar_count": state.get("sidecar_count", 1),
|
|
620
|
+
"native_login_count": state.get("native_login_count", 1),
|
|
621
|
+
"credential_kind": state.get("credential_kind"),
|
|
606
622
|
"dd_dir": state.get("dd_dir"),
|
|
607
623
|
"signature": state.get("signature"),
|
|
608
624
|
}
|
|
@@ -551,10 +551,52 @@ def wait_until(qt, predicate, timeout):
|
|
|
551
551
|
return bool(predicate())
|
|
552
552
|
|
|
553
553
|
|
|
554
|
+
def _enum_name(value):
|
|
555
|
+
name = getattr(value, "name", None)
|
|
556
|
+
return name if isinstance(name, str) else None
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
def _create_relogin_flow(
|
|
560
|
+
account, credential, controller, sdk, cgi, netconfig,
|
|
561
|
+
urs_flow_class, mobile_flow_class,
|
|
562
|
+
):
|
|
563
|
+
method = _enum_name(getattr(account, "method", None))
|
|
564
|
+
credential_type = _enum_name(getattr(credential, "type", None))
|
|
565
|
+
modifier = _enum_name(getattr(credential, "modifier", None))
|
|
566
|
+
|
|
567
|
+
if (method, credential_type, modifier) == ("urs", "urs_token", "normal"):
|
|
568
|
+
return urs_flow_class(controller, sdk, credential.value, account.name)
|
|
569
|
+
if (
|
|
570
|
+
method == "mobile"
|
|
571
|
+
and credential_type == "urs_mobile_token"
|
|
572
|
+
and modifier in ("mobile_password", "mobile_uplink")
|
|
573
|
+
):
|
|
574
|
+
return mobile_flow_class(
|
|
575
|
+
controller, sdk, cgi, netconfig, credential.value,
|
|
576
|
+
modifier == "mobile_password", account.name,
|
|
577
|
+
)
|
|
578
|
+
raise RuntimeError("DD persisted login state uses an unsupported credential combination")
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
def _credential_kind(account, credential):
|
|
582
|
+
method = _enum_name(getattr(account, "method", None))
|
|
583
|
+
credential_type = _enum_name(getattr(credential, "type", None))
|
|
584
|
+
modifier = _enum_name(getattr(credential, "modifier", None))
|
|
585
|
+
if (method, credential_type, modifier) == ("urs", "urs_token", "normal"):
|
|
586
|
+
return "email"
|
|
587
|
+
if (
|
|
588
|
+
method == "mobile"
|
|
589
|
+
and credential_type == "urs_mobile_token"
|
|
590
|
+
and modifier in ("mobile_password", "mobile_uplink")
|
|
591
|
+
):
|
|
592
|
+
return "mobile"
|
|
593
|
+
raise RuntimeError("DD persisted login state uses an unsupported credential combination")
|
|
594
|
+
|
|
595
|
+
|
|
554
596
|
def open_session(timeout=45):
|
|
555
597
|
from cli_anything.ccvoicehub.core.container import ContainerManager
|
|
556
598
|
from cli_anything.ccvoicehub.core.qt_runtime import QtRuntime
|
|
557
|
-
from components.login.flow import MobileReLoginFlow
|
|
599
|
+
from components.login.flow import MobileReLoginFlow, UrsReLoginFlow
|
|
558
600
|
import components.login.login_controller as login_controller_module
|
|
559
601
|
import logger.cclogger as cclogger
|
|
560
602
|
|
|
@@ -562,7 +604,7 @@ def open_session(timeout=45):
|
|
|
562
604
|
container = ContainerManager.get_container()
|
|
563
605
|
storage = container.get_instance("AccountCredStorage")
|
|
564
606
|
account = storage.getAutoAccount()
|
|
565
|
-
credential = storage.getCred(account)
|
|
607
|
+
credential = storage.getCred(account) if account else None
|
|
566
608
|
if not account or not credential:
|
|
567
609
|
raise RuntimeError("DD has no persisted credential; sign in with the desktop client first")
|
|
568
610
|
cclogger.renameLogAfterLogin = lambda *_args, **_kwargs: None
|
|
@@ -581,11 +623,12 @@ def open_session(timeout=45):
|
|
|
581
623
|
state["jwt"] = True
|
|
582
624
|
|
|
583
625
|
jwt_helper.sigJwtUpdated.connect(jwt_result)
|
|
584
|
-
flow =
|
|
585
|
-
|
|
586
|
-
container.get_instance("
|
|
587
|
-
|
|
626
|
+
flow = _create_relogin_flow(
|
|
627
|
+
account, credential, controller,
|
|
628
|
+
container.get_instance("UrsSDK"), container.get_instance("CgiHelper"),
|
|
629
|
+
container.get_instance("NetConfig"), UrsReLoginFlow, MobileReLoginFlow,
|
|
588
630
|
)
|
|
631
|
+
flow._fupload_credential_kind = _credential_kind(account, credential)
|
|
589
632
|
flow.sigResult.connect(login_result)
|
|
590
633
|
flow.start()
|
|
591
634
|
if not wait_until(qt, lambda: state["done"], timeout) or not state["ok"]:
|
|
@@ -610,6 +653,12 @@ def api_result(payload):
|
|
|
610
653
|
return payload.get("result") if isinstance(payload, dict) else None
|
|
611
654
|
|
|
612
655
|
|
|
656
|
+
def _retryable_get_signature_rejection(payload):
|
|
657
|
+
if not isinstance(payload, dict) or payload.get("code") != 409:
|
|
658
|
+
return False
|
|
659
|
+
return str(payload.get("msg") or payload.get("message") or "").strip() == "签名无效"
|
|
660
|
+
|
|
661
|
+
|
|
613
662
|
def _native_json(value):
|
|
614
663
|
to_json = getattr(value, "toJson", None)
|
|
615
664
|
if callable(to_json):
|
|
@@ -673,7 +722,13 @@ def run_command(session, command):
|
|
|
673
722
|
method = command.get("method", "GET").upper()
|
|
674
723
|
path = command["path"]
|
|
675
724
|
params = command.get("payload") or {}
|
|
676
|
-
|
|
725
|
+
if method == "GET":
|
|
726
|
+
response_payload = client.get(path, params)
|
|
727
|
+
if _retryable_get_signature_rejection(response_payload):
|
|
728
|
+
client._fupload_last_response_error = None
|
|
729
|
+
response_payload = client.get(path, params)
|
|
730
|
+
else:
|
|
731
|
+
response_payload = client.post(path, params)
|
|
677
732
|
if isinstance(response_payload, dict) and response_payload.get("code") not in (None, 0):
|
|
678
733
|
rejected_payload = response_payload
|
|
679
734
|
response_probe = getattr(client, "_fupload_last_response_error", None)
|
|
@@ -831,7 +886,11 @@ def main():
|
|
|
831
886
|
session = None
|
|
832
887
|
try:
|
|
833
888
|
session = open_session()
|
|
834
|
-
output({
|
|
889
|
+
output({
|
|
890
|
+
"ready": True,
|
|
891
|
+
"device_state_created": created,
|
|
892
|
+
"credential_kind": getattr(session[2], "_fupload_credential_kind", None),
|
|
893
|
+
})
|
|
835
894
|
for line in sys.stdin:
|
|
836
895
|
if not line.strip():
|
|
837
896
|
continue
|
|
@@ -93,7 +93,9 @@ def sanitize_output(value: Any) -> Any:
|
|
|
93
93
|
result: Dict[str, Any] = {}
|
|
94
94
|
for key, item in value.items():
|
|
95
95
|
normalized = str(key).replace("-", "_").lower()
|
|
96
|
-
if normalized
|
|
96
|
+
if normalized == "credential_kind" and item in {"email", "mobile"}:
|
|
97
|
+
result[key] = item
|
|
98
|
+
elif normalized in {"token_present", "token_decrypted", "token_nonempty", "api_ready"} and isinstance(item, bool):
|
|
97
99
|
result[key] = item
|
|
98
100
|
elif normalized in _SENSITIVE_KEYS or any(
|
|
99
101
|
marker in normalized
|
package/npm/skill-manifest.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "fupload.npm-skill-manifest.v1",
|
|
3
3
|
"package_name": "@follenfang/fupload",
|
|
4
|
-
"package_version": "0.0.
|
|
5
|
-
"skill_version": "0.0.
|
|
6
|
-
"tree_sha256": "
|
|
4
|
+
"package_version": "0.0.16",
|
|
5
|
+
"skill_version": "0.0.16",
|
|
6
|
+
"tree_sha256": "aba774b14679854ac01a09711aa10b2f7266af2c43e8220cc67c64b9559bfb51",
|
|
7
7
|
"files": [
|
|
8
8
|
{
|
|
9
9
|
"path": "agents/openai.yaml",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"path": "references/dd.md",
|
|
90
|
-
"bytes":
|
|
91
|
-
"sha256": "
|
|
90
|
+
"bytes": 19727,
|
|
91
|
+
"sha256": "2804e4b77c000d0bd12ca3f69bbcd5720f759fd4e84b4127ea3461093bf5da7c"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"path": "references/modus.md",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
{
|
|
114
114
|
"path": "scripts/fupload_cli/__init__.py",
|
|
115
115
|
"bytes": 50,
|
|
116
|
-
"sha256": "
|
|
116
|
+
"sha256": "f0d2cbd76206a61d5fd78eef58ad808108f9538963da2c0ea67df79c8a41e104"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"path": "scripts/fupload_cli/blackbox_web.py",
|
|
@@ -137,18 +137,18 @@
|
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"path": "scripts/fupload_cli/dd_broker.py",
|
|
140
|
-
"bytes":
|
|
141
|
-
"sha256": "
|
|
140
|
+
"bytes": 27637,
|
|
141
|
+
"sha256": "1ba00dcaea80905769bb2e00a6e965f2a1e9bb46a33534d1e77a6564158605a8"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"path": "scripts/fupload_cli/dd_sidecar.py",
|
|
145
|
-
"bytes":
|
|
146
|
-
"sha256": "
|
|
145
|
+
"bytes": 37603,
|
|
146
|
+
"sha256": "6ad1ab9e2145757f44b410d87d554485566812d9584820180ff3bb7b5bc7763a"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"path": "scripts/fupload_cli/dd.py",
|
|
150
|
-
"bytes":
|
|
151
|
-
"sha256": "
|
|
150
|
+
"bytes": 113914,
|
|
151
|
+
"sha256": "31e349cfee243c1ae8afefd74acfe3f5d79771a1c23ed1892aaf9d8e9b416922"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"path": "scripts/fupload_cli/errors.py",
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
"path": "scripts/fupload_cli/io.py",
|
|
160
|
-
"bytes":
|
|
161
|
-
"sha256": "
|
|
160
|
+
"bytes": 5436,
|
|
161
|
+
"sha256": "4e5929f80223493057244613caf23575275c5838bf6505da0f3b01c5bae791da"
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
"path": "scripts/fupload_cli/modus_zip.py",
|
|
@@ -207,8 +207,8 @@
|
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
"path": "SKILL.md",
|
|
210
|
-
"bytes":
|
|
211
|
-
"sha256": "
|
|
210
|
+
"bytes": 28383,
|
|
211
|
+
"sha256": "2477e603ca826b9bd31533995f2217bfd9239c070adbaa2aa4b829fb6a89fb7f"
|
|
212
212
|
}
|
|
213
213
|
]
|
|
214
214
|
}
|