@alfe.ai/openclaw 0.0.3 → 0.0.4
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/plugin2.js +89 -1
- package/package.json +2 -2
package/dist/plugin2.js
CHANGED
|
@@ -40,6 +40,15 @@ const ID_PREFIXES = {
|
|
|
40
40
|
transaction: "txn",
|
|
41
41
|
subscription: "sub",
|
|
42
42
|
conversation: "conv",
|
|
43
|
+
referral: "ref",
|
|
44
|
+
promoCode: "prc",
|
|
45
|
+
promoRedemption: "prr",
|
|
46
|
+
pendingPromo: "pdp",
|
|
47
|
+
webhook: "whk",
|
|
48
|
+
webhookDelivery: "wdl",
|
|
49
|
+
onboardingSession: "obs",
|
|
50
|
+
inviteToken: "inv",
|
|
51
|
+
claimToken: "clm",
|
|
43
52
|
run: "run",
|
|
44
53
|
request: "req",
|
|
45
54
|
connection: "conn",
|
|
@@ -3064,7 +3073,8 @@ enumValues({
|
|
|
3064
3073
|
});
|
|
3065
3074
|
enumValues({
|
|
3066
3075
|
Anthropic: "anthropic",
|
|
3067
|
-
OpenAI: "openai"
|
|
3076
|
+
OpenAI: "openai",
|
|
3077
|
+
ElevenLabs: "elevenlabs"
|
|
3068
3078
|
});
|
|
3069
3079
|
enumValues({
|
|
3070
3080
|
Month: "month",
|
|
@@ -3090,6 +3100,7 @@ enumValues({
|
|
|
3090
3100
|
Provisioning: "provisioning",
|
|
3091
3101
|
Running: "running",
|
|
3092
3102
|
Stopped: "stopped",
|
|
3103
|
+
Failing: "failing",
|
|
3093
3104
|
Failed: "failed",
|
|
3094
3105
|
BillingSuspended: "billing_suspended"
|
|
3095
3106
|
});
|
|
@@ -3116,6 +3127,8 @@ enumValues({
|
|
|
3116
3127
|
SubscriptionCredit: "subscription_credit",
|
|
3117
3128
|
AutoRecharge: "auto_recharge",
|
|
3118
3129
|
AdminGift: "admin_gift",
|
|
3130
|
+
ReferralCredit: "referral_credit",
|
|
3131
|
+
PromoCredit: "promo_credit",
|
|
3119
3132
|
Refund: "refund"
|
|
3120
3133
|
});
|
|
3121
3134
|
enumValues({
|
|
@@ -3129,6 +3142,36 @@ enumValues({
|
|
|
3129
3142
|
Week: "week",
|
|
3130
3143
|
Month: "month"
|
|
3131
3144
|
});
|
|
3145
|
+
enumValues({
|
|
3146
|
+
Active: "active",
|
|
3147
|
+
Paused: "paused",
|
|
3148
|
+
Revoked: "revoked"
|
|
3149
|
+
});
|
|
3150
|
+
enumValues({
|
|
3151
|
+
Pending: "pending",
|
|
3152
|
+
Completed: "completed",
|
|
3153
|
+
Failed: "failed"
|
|
3154
|
+
});
|
|
3155
|
+
enumValues({
|
|
3156
|
+
BalanceCredit: "balance_credit",
|
|
3157
|
+
SubscriptionDiscount: "subscription_discount",
|
|
3158
|
+
FreeTrial: "free_trial"
|
|
3159
|
+
});
|
|
3160
|
+
enumValues({
|
|
3161
|
+
Active: "active",
|
|
3162
|
+
Paused: "paused",
|
|
3163
|
+
Revoked: "revoked"
|
|
3164
|
+
});
|
|
3165
|
+
enumValues({
|
|
3166
|
+
Pending: "pending",
|
|
3167
|
+
Completed: "completed",
|
|
3168
|
+
Failed: "failed"
|
|
3169
|
+
});
|
|
3170
|
+
enumValues({
|
|
3171
|
+
Pending: "pending",
|
|
3172
|
+
Consumed: "consumed",
|
|
3173
|
+
Expired: "expired"
|
|
3174
|
+
});
|
|
3132
3175
|
enumValues({
|
|
3133
3176
|
Synced: "synced",
|
|
3134
3177
|
Stale: "stale",
|
|
@@ -3159,6 +3202,51 @@ enumValues({
|
|
|
3159
3202
|
Live: "live"
|
|
3160
3203
|
});
|
|
3161
3204
|
//#endregion
|
|
3205
|
+
//#region ../../packages-internal/types/dist/models.js
|
|
3206
|
+
const AnthropicModel = {
|
|
3207
|
+
Opus: "claude-opus-4-6",
|
|
3208
|
+
Sonnet: "claude-sonnet-4-6",
|
|
3209
|
+
Haiku: "claude-haiku-4-5"
|
|
3210
|
+
};
|
|
3211
|
+
const ANTHROPIC_MODELS = enumValues(AnthropicModel);
|
|
3212
|
+
const OpenAIModel = {
|
|
3213
|
+
GPT4o: "gpt-4o",
|
|
3214
|
+
GPT4oMini: "gpt-4o-mini",
|
|
3215
|
+
O3: "o3"
|
|
3216
|
+
};
|
|
3217
|
+
const OPENAI_MODELS = enumValues(OpenAIModel);
|
|
3218
|
+
[...ANTHROPIC_MODELS, ...OPENAI_MODELS];
|
|
3219
|
+
_enum(ANTHROPIC_MODELS);
|
|
3220
|
+
_enum(OPENAI_MODELS);
|
|
3221
|
+
_enum([...ANTHROPIC_MODELS, ...OPENAI_MODELS]);
|
|
3222
|
+
AnthropicModel.Opus, AnthropicModel.Sonnet, AnthropicModel.Haiku, OpenAIModel.GPT4o, OpenAIModel.GPT4oMini, OpenAIModel.O3;
|
|
3223
|
+
AnthropicModel.Opus, AnthropicModel.Sonnet, AnthropicModel.Haiku, OpenAIModel.GPT4o, OpenAIModel.GPT4oMini, OpenAIModel.O3;
|
|
3224
|
+
enumValues({
|
|
3225
|
+
PendingChallenge: "pending_challenge",
|
|
3226
|
+
Creating: "creating",
|
|
3227
|
+
Complete: "complete",
|
|
3228
|
+
Failed: "failed",
|
|
3229
|
+
Expired: "expired"
|
|
3230
|
+
});
|
|
3231
|
+
enumValues({
|
|
3232
|
+
Active: "active",
|
|
3233
|
+
Used: "used",
|
|
3234
|
+
Expired: "expired",
|
|
3235
|
+
Revoked: "revoked"
|
|
3236
|
+
});
|
|
3237
|
+
enumValues({
|
|
3238
|
+
Pending: "pending",
|
|
3239
|
+
Claimed: "claimed",
|
|
3240
|
+
Expired: "expired"
|
|
3241
|
+
});
|
|
3242
|
+
enumValues({
|
|
3243
|
+
Mcp: "mcp",
|
|
3244
|
+
Api: "api",
|
|
3245
|
+
Cli: "cli",
|
|
3246
|
+
Dashboard: "dashboard",
|
|
3247
|
+
Agent: "agent"
|
|
3248
|
+
});
|
|
3249
|
+
//#endregion
|
|
3162
3250
|
//#region src/types.ts
|
|
3163
3251
|
function isIPCRequest(msg) {
|
|
3164
3252
|
return typeof msg === "object" && msg !== null && msg.type === "req" && typeof msg.id === "string" && typeof msg.method === "string";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/openclaw",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "OpenClaw plugin for Alfe — connects to local gateway daemon via IPC for integration management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@auriclabs/logger": "^0.1.1",
|
|
25
25
|
"@sinclair/typebox": "^0.34.48",
|
|
26
|
-
"@alfe.ai/integrations": "^0.0.
|
|
26
|
+
"@alfe.ai/integrations": "^0.0.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@alfe/agent-client": "0.1.0",
|