@moxt-ai/mobius 0.0.334 → 0.0.335
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.js +125 -10
- package/dist/cli.js.map +4 -4
- package/dist/runtime.js +28 -10
- package/dist/runtime.js.map +4 -4
- package/dist/session/live/agent-session.d.ts.map +1 -1
- package/dist/session/live/agent-session.js +2 -1
- package/dist/session/live/agent-session.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -2086,7 +2086,7 @@ var init_package = __esm({
|
|
|
2086
2086
|
"package.json"() {
|
|
2087
2087
|
package_default = {
|
|
2088
2088
|
name: "@moxt-ai/mobius",
|
|
2089
|
-
version: "0.0.
|
|
2089
|
+
version: "0.0.335",
|
|
2090
2090
|
description: "Mobius CLI for pairing and running local AI agent services.",
|
|
2091
2091
|
type: "module",
|
|
2092
2092
|
bin: {
|
|
@@ -75603,14 +75603,7 @@ var init_event_log = __esm({
|
|
|
75603
75603
|
sessionId: identifierStringSchema
|
|
75604
75604
|
};
|
|
75605
75605
|
sessionLiveEventFields = { ...sharedSessionEventFields, position: positionSchema };
|
|
75606
|
-
sessionEventSchema = external_exports.
|
|
75607
|
-
external_exports.object({ ...sharedSessionEventFields, payload: acpSessionUpdateSchema, type: external_exports.literal("acp") }).readonly(),
|
|
75608
|
-
external_exports.object({
|
|
75609
|
-
...sharedSessionEventFields,
|
|
75610
|
-
payload: lifecycleMetadataSchema,
|
|
75611
|
-
type: external_exports.literal("lifecycle-metadata")
|
|
75612
|
-
}).readonly()
|
|
75613
|
-
]);
|
|
75606
|
+
sessionEventSchema = external_exports.object({ ...sharedSessionEventFields, payload: acpSessionUpdateSchema, type: external_exports.literal("acp") }).readonly();
|
|
75614
75607
|
sessionLiveEventSchema = external_exports.discriminatedUnion("type", [
|
|
75615
75608
|
external_exports.object({ ...sessionLiveEventFields, payload: acpSessionUpdateSchema, type: external_exports.literal("acp") }).readonly(),
|
|
75616
75609
|
external_exports.object({
|
|
@@ -93992,6 +93985,127 @@ var init_operation_metrics = __esm({
|
|
|
93992
93985
|
}
|
|
93993
93986
|
});
|
|
93994
93987
|
|
|
93988
|
+
// ../mobius-sdk/src/conversation-title.ts
|
|
93989
|
+
function conversationTitleFromText(text2) {
|
|
93990
|
+
let compact = "";
|
|
93991
|
+
for (const line of text2.split(/\r?\n/u)) {
|
|
93992
|
+
const candidate = line.replaceAll(/\s+/g, " ").trim();
|
|
93993
|
+
if (candidate.length === 0 || candidate.startsWith("```") || candidate.startsWith("~~~")) {
|
|
93994
|
+
continue;
|
|
93995
|
+
}
|
|
93996
|
+
const readable = candidate.replace(/^(?:>\s*)+/u, "").replace(/^#{1,6}(?:\s+|$)/u, "").replace(/^(?:[-*+]|\d+[.)])\s+/u, "").trim();
|
|
93997
|
+
if (readable.length > 0) {
|
|
93998
|
+
compact = readable;
|
|
93999
|
+
break;
|
|
94000
|
+
}
|
|
94001
|
+
}
|
|
94002
|
+
if (compact.length === 0) {
|
|
94003
|
+
compact = text2.replaceAll(/\s+/g, " ").trim();
|
|
94004
|
+
}
|
|
94005
|
+
const characters = Array.from(compact);
|
|
94006
|
+
if (characters.length <= CONVERSATION_TITLE_CHARACTER_LIMIT) {
|
|
94007
|
+
return compact;
|
|
94008
|
+
}
|
|
94009
|
+
return `${characters.slice(0, CONVERSATION_TITLE_CHARACTER_LIMIT - 1).join("")}\u2026`;
|
|
94010
|
+
}
|
|
94011
|
+
var CONVERSATION_TITLE_CHARACTER_LIMIT;
|
|
94012
|
+
var init_conversation_title = __esm({
|
|
94013
|
+
"../mobius-sdk/src/conversation-title.ts"() {
|
|
94014
|
+
"use strict";
|
|
94015
|
+
CONVERSATION_TITLE_CHARACTER_LIMIT = 42;
|
|
94016
|
+
}
|
|
94017
|
+
});
|
|
94018
|
+
|
|
94019
|
+
// ../mobius-sdk/src/errors.ts
|
|
94020
|
+
var init_errors4 = __esm({
|
|
94021
|
+
"../mobius-sdk/src/errors.ts"() {
|
|
94022
|
+
"use strict";
|
|
94023
|
+
}
|
|
94024
|
+
});
|
|
94025
|
+
|
|
94026
|
+
// ../mobius-sdk/src/project-authentication.ts
|
|
94027
|
+
var MAXIMUM_RESPONSE_LENGTH, PROJECT_PERMISSIONS, MobiusCredentialLifecycle;
|
|
94028
|
+
var init_project_authentication = __esm({
|
|
94029
|
+
"../mobius-sdk/src/project-authentication.ts"() {
|
|
94030
|
+
"use strict";
|
|
94031
|
+
MAXIMUM_RESPONSE_LENGTH = 8 * 1024 * 1024;
|
|
94032
|
+
PROJECT_PERMISSIONS = Object.freeze([
|
|
94033
|
+
"artifact:read",
|
|
94034
|
+
"artifact:write",
|
|
94035
|
+
"identity-binding:manage",
|
|
94036
|
+
"interaction:respond",
|
|
94037
|
+
"owner-credential:manage",
|
|
94038
|
+
"project:event:read",
|
|
94039
|
+
"project:read",
|
|
94040
|
+
"runtime:pair",
|
|
94041
|
+
"runtime:read",
|
|
94042
|
+
"runtime:revoke",
|
|
94043
|
+
"session:delete",
|
|
94044
|
+
"session:read",
|
|
94045
|
+
"session:write"
|
|
94046
|
+
]);
|
|
94047
|
+
MobiusCredentialLifecycle = class _MobiusCredentialLifecycle {
|
|
94048
|
+
static Current = new _MobiusCredentialLifecycle("current");
|
|
94049
|
+
static Replaced = new _MobiusCredentialLifecycle("replaced");
|
|
94050
|
+
static Revoked = new _MobiusCredentialLifecycle("revoked");
|
|
94051
|
+
value;
|
|
94052
|
+
constructor(value) {
|
|
94053
|
+
this.value = value;
|
|
94054
|
+
}
|
|
94055
|
+
toJSON = () => this.value;
|
|
94056
|
+
};
|
|
94057
|
+
}
|
|
94058
|
+
});
|
|
94059
|
+
|
|
94060
|
+
// ../mobius-sdk/src/resources.ts
|
|
94061
|
+
var MobiusRuntimePairingLifecycle;
|
|
94062
|
+
var init_resources = __esm({
|
|
94063
|
+
"../mobius-sdk/src/resources.ts"() {
|
|
94064
|
+
"use strict";
|
|
94065
|
+
MobiusRuntimePairingLifecycle = Object.freeze({
|
|
94066
|
+
Expired: "expired",
|
|
94067
|
+
Paired: "paired",
|
|
94068
|
+
Pending: "pending",
|
|
94069
|
+
Revoked: "revoked"
|
|
94070
|
+
});
|
|
94071
|
+
}
|
|
94072
|
+
});
|
|
94073
|
+
|
|
94074
|
+
// ../mobius-sdk/src/transport/http-transport.ts
|
|
94075
|
+
var init_http_transport = __esm({
|
|
94076
|
+
"../mobius-sdk/src/transport/http-transport.ts"() {
|
|
94077
|
+
"use strict";
|
|
94078
|
+
}
|
|
94079
|
+
});
|
|
94080
|
+
|
|
94081
|
+
// ../mobius-sdk/src/service-client.ts
|
|
94082
|
+
var init_service_client = __esm({
|
|
94083
|
+
"../mobius-sdk/src/service-client.ts"() {
|
|
94084
|
+
"use strict";
|
|
94085
|
+
}
|
|
94086
|
+
});
|
|
94087
|
+
|
|
94088
|
+
// ../mobius-sdk/src/transport/ws-transport.ts
|
|
94089
|
+
var init_ws_transport = __esm({
|
|
94090
|
+
"../mobius-sdk/src/transport/ws-transport.ts"() {
|
|
94091
|
+
"use strict";
|
|
94092
|
+
}
|
|
94093
|
+
});
|
|
94094
|
+
|
|
94095
|
+
// ../mobius-sdk/src/index.ts
|
|
94096
|
+
var init_src = __esm({
|
|
94097
|
+
"../mobius-sdk/src/index.ts"() {
|
|
94098
|
+
"use strict";
|
|
94099
|
+
init_conversation_title();
|
|
94100
|
+
init_errors4();
|
|
94101
|
+
init_project_authentication();
|
|
94102
|
+
init_resources();
|
|
94103
|
+
init_service_client();
|
|
94104
|
+
init_http_transport();
|
|
94105
|
+
init_ws_transport();
|
|
94106
|
+
}
|
|
94107
|
+
});
|
|
94108
|
+
|
|
93995
94109
|
// src/session/api/session-api.ts
|
|
93996
94110
|
var NullSessionObserver, PreparedSession, AgentSettingsSnapshot;
|
|
93997
94111
|
var init_session_api = __esm({
|
|
@@ -95085,6 +95199,7 @@ var AgentSession;
|
|
|
95085
95199
|
var init_agent_session = __esm({
|
|
95086
95200
|
"src/session/live/agent-session.ts"() {
|
|
95087
95201
|
"use strict";
|
|
95202
|
+
init_src();
|
|
95088
95203
|
init_protocol();
|
|
95089
95204
|
init_acp_error();
|
|
95090
95205
|
init_agent_initialization();
|
|
@@ -95516,7 +95631,7 @@ var init_agent_session = __esm({
|
|
|
95516
95631
|
}
|
|
95517
95632
|
validatePromptContent(options, this.#capabilities);
|
|
95518
95633
|
if (this.#sessionTitle === null || this.#sessionTitle.length === 0) {
|
|
95519
|
-
this.#sessionTitle =
|
|
95634
|
+
this.#sessionTitle = conversationTitleFromText(options.prompt);
|
|
95520
95635
|
}
|
|
95521
95636
|
this.#prompted = true;
|
|
95522
95637
|
this.writeStoredSession((/* @__PURE__ */ new Date()).toISOString());
|