@ignix-social/creator 0.1.0 → 0.1.1
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.cjs +23 -13
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -22996,6 +22996,7 @@ var WORDS = {
|
|
|
22996
22996
|
approve: "Approve",
|
|
22997
22997
|
decline: "Decline",
|
|
22998
22998
|
intro: (a) => `Your AI agent (${a}) wants Ignix Creator to do this:`,
|
|
22999
|
+
introAnon: "Your AI agent wants Ignix Creator to do this:",
|
|
22999
23000
|
credits: (n) => `Credits: ${String(n)}`,
|
|
23000
23001
|
because: "It needs your OK because:",
|
|
23001
23002
|
kinds: {
|
|
@@ -23012,6 +23013,7 @@ var WORDS = {
|
|
|
23012
23013
|
approve: "Aprobar",
|
|
23013
23014
|
decline: "Rechazar",
|
|
23014
23015
|
intro: (a) => `Tu agente de IA (${a}) quiere que Ignix Creator haga esto:`,
|
|
23016
|
+
introAnon: "Tu agente de IA quiere que Ignix Creator haga esto:",
|
|
23015
23017
|
credits: (n) => `Cr\xE9ditos: ${String(n)}`,
|
|
23016
23018
|
because: "Necesita tu permiso porque:",
|
|
23017
23019
|
kinds: {
|
|
@@ -23028,6 +23030,7 @@ var WORDS = {
|
|
|
23028
23030
|
approve: "Aprovar",
|
|
23029
23031
|
decline: "Recusar",
|
|
23030
23032
|
intro: (a) => `Seu agente de IA (${a}) quer que o Ignix Creator fa\xE7a isto:`,
|
|
23033
|
+
introAnon: "Seu agente de IA quer que o Ignix Creator fa\xE7a isto:",
|
|
23031
23034
|
credits: (n) => `Cr\xE9ditos: ${String(n)}`,
|
|
23032
23035
|
because: "Precisa da sua autoriza\xE7\xE3o porque:",
|
|
23033
23036
|
kinds: {
|
|
@@ -23044,6 +23047,7 @@ var WORDS = {
|
|
|
23044
23047
|
approve: "Approuver",
|
|
23045
23048
|
decline: "Refuser",
|
|
23046
23049
|
intro: (a) => `Votre agent IA (${a}) demande \xE0 Ignix Creator de faire ceci :`,
|
|
23050
|
+
introAnon: "Votre agent IA demande \xE0 Ignix Creator de faire ceci :",
|
|
23047
23051
|
credits: (n) => `Cr\xE9dits : ${String(n)}`,
|
|
23048
23052
|
because: "Votre accord est n\xE9cessaire car :",
|
|
23049
23053
|
kinds: {
|
|
@@ -23060,6 +23064,7 @@ var WORDS = {
|
|
|
23060
23064
|
approve: "Genehmigen",
|
|
23061
23065
|
decline: "Ablehnen",
|
|
23062
23066
|
intro: (a) => `Dein KI-Agent (${a}) m\xF6chte, dass Ignix Creator Folgendes tut:`,
|
|
23067
|
+
introAnon: "Dein KI-Agent m\xF6chte, dass Ignix Creator Folgendes tut:",
|
|
23063
23068
|
credits: (n) => `Credits: ${String(n)}`,
|
|
23064
23069
|
because: "Daf\xFCr braucht es dein OK, weil:",
|
|
23065
23070
|
kinds: {
|
|
@@ -23072,6 +23077,7 @@ var WORDS = {
|
|
|
23072
23077
|
yesNo: "Ja = genehmigen \xB7 Nein = ablehnen"
|
|
23073
23078
|
}
|
|
23074
23079
|
};
|
|
23080
|
+
var GENERIC_CLIENTS = /* @__PURE__ */ new Set(["cli", "client", "mcp client", "mcp-client", ""]);
|
|
23075
23081
|
var AGENT_NAMES = {
|
|
23076
23082
|
"claude-code": "Claude Code",
|
|
23077
23083
|
"claude-ai": "Claude",
|
|
@@ -23082,8 +23088,9 @@ var AGENT_NAMES = {
|
|
|
23082
23088
|
function dialogText(r, lang = "en") {
|
|
23083
23089
|
const w = WORDS[lang];
|
|
23084
23090
|
const agent = AGENT_NAMES[r.client.toLowerCase()] ?? r.client;
|
|
23091
|
+
const named = !GENERIC_CLIENTS.has(r.client.toLowerCase());
|
|
23085
23092
|
const lines = [
|
|
23086
|
-
w.intro(agent),
|
|
23093
|
+
named ? w.intro(agent) : w.introAnon,
|
|
23087
23094
|
"",
|
|
23088
23095
|
r.title,
|
|
23089
23096
|
...r.details.slice(0, 4).map((d) => `\u2022 ${d}`),
|
|
@@ -23096,24 +23103,27 @@ function dialogText(r, lang = "en") {
|
|
|
23096
23103
|
];
|
|
23097
23104
|
return lines.join("\n").slice(0, 1500);
|
|
23098
23105
|
}
|
|
23099
|
-
|
|
23100
|
-
return
|
|
23101
|
-
}
|
|
23102
|
-
async function askPerson(r, lang = "en", platform = process.platform, timeoutMs = 10 * 6e4) {
|
|
23103
|
-
const w = WORDS[lang];
|
|
23104
|
-
const text = dialogText(r, lang);
|
|
23105
|
-
if (platform === "darwin") {
|
|
23106
|
-
const script = `on run argv
|
|
23107
|
-
set {t, ttl, no, yes} to argv
|
|
23106
|
+
function macDialogScript(givingUpAfterSec) {
|
|
23107
|
+
return `on run argv
|
|
23108
|
+
set {msgText, titleText, declineLabel, approveLabel} to argv
|
|
23108
23109
|
try
|
|
23109
|
-
set r to display dialog
|
|
23110
|
+
set r to display dialog msgText with title titleText buttons {declineLabel, approveLabel} default button declineLabel cancel button declineLabel with icon caution giving up after ${String(givingUpAfterSec)}
|
|
23110
23111
|
if gave up of r then return "unanswered"
|
|
23111
|
-
if button returned of r is
|
|
23112
|
+
if button returned of r is approveLabel then return "approve"
|
|
23112
23113
|
return "decline"
|
|
23113
23114
|
on error
|
|
23114
23115
|
return "decline"
|
|
23115
23116
|
end try
|
|
23116
23117
|
end run`;
|
|
23118
|
+
}
|
|
23119
|
+
async function answer(cmd, args, input2, timeoutMs) {
|
|
23120
|
+
return (await runProgram(cmd, args, { input: input2, timeoutMs, showWindow: true })).out.trim();
|
|
23121
|
+
}
|
|
23122
|
+
async function askPerson(r, lang = "en", platform = process.platform, timeoutMs = 10 * 6e4) {
|
|
23123
|
+
const w = WORDS[lang];
|
|
23124
|
+
const text = dialogText(r, lang);
|
|
23125
|
+
if (platform === "darwin") {
|
|
23126
|
+
const script = macDialogScript(Math.floor(timeoutMs / 1e3) - 5);
|
|
23117
23127
|
const out = await answer(
|
|
23118
23128
|
"osascript",
|
|
23119
23129
|
["-e", script, text, w.title, w.decline, w.approve],
|
|
@@ -23595,7 +23605,7 @@ async function runService(paths, version2) {
|
|
|
23595
23605
|
}
|
|
23596
23606
|
|
|
23597
23607
|
// src/cli.ts
|
|
23598
|
-
var VERSION = true ? "0.1.
|
|
23608
|
+
var VERSION = true ? "0.1.1" : "0.0.0-dev";
|
|
23599
23609
|
var HELP = `Ignix Creator ${VERSION} - generation tools for AI agents (ADR-0028/0029)
|
|
23600
23610
|
|
|
23601
23611
|
ignix-creator login sign in to Ignix in your browser
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ignix-social/creator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Ignix Creator: generation tools (presenters, photo → video, text → video, recast, dubbing) on this computer or Cloud Boost, driven by AI agents over MCP. Needs an active Ignix plan.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "commonjs",
|