@ignix-social/creator 0.1.4 → 0.2.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.
Files changed (3) hide show
  1. package/dist/cli.cjs +19 -22
  2. package/dist/core.cjs +174 -413
  3. package/package.json +5 -4
package/dist/cli.cjs CHANGED
@@ -11,7 +11,7 @@ var import_node_fs2 = require("node:fs");
11
11
  var import_node_path6 = require("node:path");
12
12
  var import_node_net3 = require("node:net");
13
13
 
14
- // ../desktop/main/mcp/endpoint.ts
14
+ // src/host/mcp/endpoint.ts
15
15
  var import_node_crypto = require("node:crypto");
16
16
  var import_promises = require("node:fs/promises");
17
17
  var import_node_path = require("node:path");
@@ -22082,7 +22082,7 @@ var MainFrameSchema = external_exports.discriminatedUnion("t", [
22082
22082
  }).strict()
22083
22083
  ]);
22084
22084
 
22085
- // ../desktop/main/mcp/endpoint.ts
22085
+ // src/host/mcp/endpoint.ts
22086
22086
  var MAX_SOCKET_PATH = 100;
22087
22087
  function mcpPaths(userData, platform, uid) {
22088
22088
  const token = (0, import_node_path.join)(userData, "mcp-token");
@@ -22125,7 +22125,7 @@ async function removeStaleSocket(path) {
22125
22125
  if (st?.isSocket()) await (0, import_promises.rm)(path, { force: true });
22126
22126
  }
22127
22127
 
22128
- // ../desktop/main/mcp/lines.ts
22128
+ // src/host/mcp/lines.ts
22129
22129
  function createLineReader(maxBytes, onLine, onOverflow) {
22130
22130
  let parts = [];
22131
22131
  let size2 = 0;
@@ -22169,23 +22169,23 @@ function parseLine(line) {
22169
22169
  }
22170
22170
  }
22171
22171
 
22172
- // ../desktop/main/mcp/bridge.ts
22173
- var instructions = (host) => `Ignix Creator runs on this computer: it renders and edits the person's own videos (Ignix Editor), transcribes, cuts clips, dubs, recasts and makes images/clips locally or on Cloud Boost.
22174
- - Start with creator_status. ${host === "cli" ? "Its background service starts with this server; it must be signed in (the person runs `ignix-creator login` in a terminal)." : "Ignix Creator must be OPEN and signed in; it is never started for you."}
22172
+ // src/host/mcp/bridge.ts
22173
+ var INSTRUCTIONS = `Ignix Creator runs on this computer: it renders and edits the person's own videos (Ignix Editor), transcribes, cuts clips, dubs, recasts and makes images/clips locally or on Cloud Boost.
22174
+ - Start with creator_status. Its background service starts with this server; it must be signed in (the person runs \`ignix-creator login\` in a terminal).
22175
22175
  - Same account: compare creator_status (organization, workspace) with the Ignix cloud MCP before mixing results. Account things (posts, inbox, automations, brand, characters, edit styles) stay in the cloud MCP.
22176
22176
  - Bring your own direction and nothing is charged for directing: a ProductionPlanV2 for make_piece (get_production_vocabulary), an EditDecision on transcribe's word indices for edit_video, windows for make_clips, lines for dub.
22177
- - Anything that spends credits, writes to Ignix, downloads engines or uses photos of people without consent returns needs_approval: the person decides in ${host === "cli" ? "an Ignix Creator approval dialog on this computer" : "the Creator window"}; poll get_approval. Jobs are asynchronous: poll get_job.`;
22177
+ - Anything that spends credits, writes to Ignix, downloads engines or uses photos of people without consent returns needs_approval: the person decides in an Ignix Creator approval dialog on this computer; poll get_approval. Jobs are asynchronous: poll get_job.`;
22178
22178
  var RPC = {
22179
22179
  parse: -32700,
22180
22180
  invalid: -32600,
22181
22181
  method: -32601,
22182
22182
  params: -32602
22183
22183
  };
22184
- var notRunning = (host) => ({
22184
+ var NOT_RUNNING = {
22185
22185
  status: "error",
22186
22186
  code: "creator_not_running",
22187
- message: host === "cli" ? "Ignix Creator stopped on this computer. Run `ignix-creator service start` (or restart this MCP server), then try again." : "Ignix Creator is not open on this computer. Open Ignix Creator (and sign in), then try again \u2014 it is never started for you."
22188
- });
22187
+ message: "Ignix Creator stopped on this computer. Run `ignix-creator service start` (or restart this MCP server), then try again."
22188
+ };
22189
22189
  var DISABLED = {
22190
22190
  status: "error",
22191
22191
  code: "mcp_disabled",
@@ -22206,8 +22206,6 @@ ${JSON.stringify(r)}` : JSON.stringify(r.data ?? null);
22206
22206
  };
22207
22207
  }
22208
22208
  function runBridge(deps) {
22209
- const host = deps.host ?? "app";
22210
- const NOT_RUNNING = notRunning(host);
22211
22209
  const tools = mcpToolDefinitions();
22212
22210
  let client = { name: "MCP client", version: null };
22213
22211
  let conn = null;
@@ -22334,7 +22332,7 @@ function runBridge(deps) {
22334
22332
  protocolVersion: MCP_PROTOCOL_VERSIONS.includes(asked) ? asked : MCP_PROTOCOL_VERSIONS[0],
22335
22333
  capabilities: { tools: { listChanged: false } },
22336
22334
  serverInfo: { name: MCP_SERVER_NAME, title: "Ignix Creator", version: deps.version },
22337
- instructions: instructions(host)
22335
+ instructions: INSTRUCTIONS
22338
22336
  });
22339
22337
  return;
22340
22338
  }
@@ -22593,7 +22591,7 @@ function createLogger(scope, sink, getLevel = () => "info") {
22593
22591
  };
22594
22592
  }
22595
22593
 
22596
- // ../desktop/main/auth/auth-config.ts
22594
+ // src/host/auth/auth-config.ts
22597
22595
  var PRODUCTION_AUTH = {
22598
22596
  issuer: "https://app.ignix.social",
22599
22597
  clientId: "ignix-creator"
@@ -22668,7 +22666,7 @@ function candidateConfig(environment, env) {
22668
22666
  return config2;
22669
22667
  }
22670
22668
 
22671
- // ../desktop/main/auth/host-handlers.ts
22669
+ // src/host/auth/host-handlers.ts
22672
22670
  function createHostHandler(deps) {
22673
22671
  const reply = (id, value) => ({
22674
22672
  type: "host_response",
@@ -22712,7 +22710,7 @@ function createHostHandler(deps) {
22712
22710
  };
22713
22711
  }
22714
22712
 
22715
- // ../desktop/main/auth/vault.ts
22713
+ // src/host/auth/vault.ts
22716
22714
  var import_promises2 = require("node:fs/promises");
22717
22715
  var import_node_path3 = require("node:path");
22718
22716
  function createVault(deps) {
@@ -22761,7 +22759,7 @@ function createVault(deps) {
22761
22759
  };
22762
22760
  }
22763
22761
 
22764
- // ../desktop/main/core/core-client.ts
22762
+ // src/host/core/core-client.ts
22765
22763
  function createCoreClient(transport, { timeoutMs = 5e3, log, onCoreLog, onHostRequest }) {
22766
22764
  const pending = /* @__PURE__ */ new Map();
22767
22765
  let nextId = 1;
@@ -22847,7 +22845,7 @@ function createCoreClient(transport, { timeoutMs = 5e3, log, onCoreLog, onHostRe
22847
22845
  return { request, markUnavailable, isAvailable: () => available };
22848
22846
  }
22849
22847
 
22850
- // ../desktop/main/mcp/server.ts
22848
+ // src/host/mcp/server.ts
22851
22849
  var import_node_crypto2 = require("node:crypto");
22852
22850
  var import_promises3 = require("node:fs/promises");
22853
22851
  var import_node_net = require("node:net");
@@ -23229,7 +23227,7 @@ async function createKeychainStorage(opts) {
23229
23227
  return storageWithKey(key);
23230
23228
  }
23231
23229
 
23232
- // ../desktop/main/auth/authorization-url.ts
23230
+ // src/host/auth/authorization-url.ts
23233
23231
  var ALLOWED_PARAMS = /* @__PURE__ */ new Set([
23234
23232
  "response_type",
23235
23233
  "client_id",
@@ -23878,7 +23876,7 @@ ${rows}
23878
23876
  }
23879
23877
 
23880
23878
  // src/cli.ts
23881
- var VERSION = true ? "0.1.4" : "0.0.0-dev";
23879
+ var VERSION = true ? "0.2.0" : "0.0.0-dev";
23882
23880
  var HELP = `Ignix Creator ${VERSION} - generation tools for AI agents (ADR-0028/0029)
23883
23881
 
23884
23882
  ignix-creator login sign in to Ignix in your browser
@@ -24101,8 +24099,7 @@ Waiting for your approval: ${String(m?.requests?.length ?? 0)}
24101
24099
  socket.once("error", reject);
24102
24100
  }),
24103
24101
  readToken: () => readToken(p.token),
24104
- version: VERSION,
24105
- host: "cli"
24102
+ version: VERSION
24106
24103
  });
24107
24104
  return;
24108
24105
  }