@mkterswingman/5mghost-yonder 0.0.34 → 0.0.35

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 CHANGED
@@ -92,7 +92,15 @@ async function main() {
92
92
  }
93
93
  case "setup-cookies": {
94
94
  const { runSetupCookies, parseSetupCookiesArgs } = await import("./setupCookies.js");
95
- await runSetupCookies({}, parseSetupCookiesArgs(process.argv.slice(3)));
95
+ try {
96
+ parseSetupCookiesArgs(process.argv.slice(3));
97
+ }
98
+ catch (err) {
99
+ const msg = err instanceof Error ? err.message : String(err);
100
+ console.error(msg);
101
+ process.exit(1);
102
+ }
103
+ await runSetupCookies({});
96
104
  break;
97
105
  }
98
106
  case "uninstall": {
@@ -51,10 +51,6 @@ export interface SetupCookiesDeps {
51
51
  runManualCookieSetup: typeof runManualCookieSetup;
52
52
  log: (message: string) => void;
53
53
  }
54
- export interface SetupCookiesOptions {
55
- importOnly?: boolean;
56
- headed?: boolean;
57
- }
58
54
  export declare class BrowserProfileLockedError extends Error {
59
55
  constructor(message?: string);
60
56
  }
@@ -83,6 +79,6 @@ export declare function runManualCookieSetup(chromium: SetupCookiesChromium, dep
83
79
  /**
84
80
  * Interactive cookie setup — opens a visible browser for user to log in.
85
81
  */
86
- export declare function parseSetupCookiesArgs(argv: string[]): SetupCookiesOptions;
87
- export declare function runSetupCookies(overrides?: Partial<SetupCookiesDeps>, options?: SetupCookiesOptions): Promise<void>;
82
+ export declare function parseSetupCookiesArgs(argv: string[]): void;
83
+ export declare function runSetupCookies(overrides?: Partial<SetupCookiesDeps>): Promise<void>;
88
84
  export {};
@@ -413,17 +413,13 @@ export async function runManualCookieSetup(chromium, deps) {
413
413
  * Interactive cookie setup — opens a visible browser for user to log in.
414
414
  */
415
415
  export function parseSetupCookiesArgs(argv) {
416
- return {
417
- importOnly: argv.includes("--import-only"),
418
- headed: argv.includes("--headed"),
419
- };
416
+ for (const arg of argv) {
417
+ throw new Error(`Unknown option for setup-cookies: ${arg}. setup-cookies accepts no options.`);
418
+ }
420
419
  }
421
- export async function runSetupCookies(overrides = {}, options = {}) {
420
+ export async function runSetupCookies(overrides = {}) {
422
421
  const deps = buildSetupCookiesDeps(overrides);
423
422
  deps.log("\n🍪 YouTube Cookie Setup\n");
424
- if (options.importOnly && !options.headed) {
425
- throw new Error("setup-cookies --import-only mode is no longer supported. Use headed login instead.");
426
- }
427
423
  deps.ensureConfigDir();
428
424
  let chromium;
429
425
  try {
@@ -81,10 +81,9 @@ async function tryPlaywrightRefresh() {
81
81
  */
82
82
  async function tryHeadedManualLogin() {
83
83
  try {
84
- // Why: runSetupCookies with { headed: true } skips import and goes straight
85
- // to manual Playwright login, which creates browser-profile for future Tier 1 use.
84
+ // Why: setup-cookies now only supports the dedicated manual Playwright login flow.
86
85
  const { runSetupCookies } = await import("../cli/setupCookies.js");
87
- await runSetupCookies({}, { headed: true });
86
+ await runSetupCookies({});
88
87
  return hasSIDCookies(PATHS.cookiesTxt);
89
88
  }
90
89
  catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mkterswingman/5mghost-yonder",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "Internal MCP client with local data tools and remote API proxy",
5
5
  "type": "module",
6
6
  "bin": {