@ascenda-one/agent-mcp 0.1.11 → 0.1.12
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 +23 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -247,6 +247,8 @@ var require_afterHours = __commonJS({
|
|
|
247
247
|
"use strict";
|
|
248
248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249
249
|
exports.isAfterHours = isAfterHours;
|
|
250
|
+
exports.utcOffsetMinutesAt = utcOffsetMinutesAt;
|
|
251
|
+
exports.localHourAt = localHourAt;
|
|
250
252
|
function isAfterHours(now = /* @__PURE__ */ new Date(), start = "19:00", end = "07:00") {
|
|
251
253
|
const currentMinutes = now.getHours() * 60 + now.getMinutes();
|
|
252
254
|
const startMinutes = parseTimeToMinutes(start, 19 * 60);
|
|
@@ -267,6 +269,13 @@ var require_afterHours = __commonJS({
|
|
|
267
269
|
return fallback;
|
|
268
270
|
return Math.max(0, Math.min(23, hours)) * 60 + Math.max(0, Math.min(59, minutes));
|
|
269
271
|
}
|
|
272
|
+
function utcOffsetMinutesAt(at) {
|
|
273
|
+
return -at.getTimezoneOffset();
|
|
274
|
+
}
|
|
275
|
+
function localHourAt(at, utcOffsetMinutes) {
|
|
276
|
+
const shifted = new Date(at.getTime() + utcOffsetMinutes * 6e4);
|
|
277
|
+
return shifted.getUTCHours();
|
|
278
|
+
}
|
|
270
279
|
}
|
|
271
280
|
});
|
|
272
281
|
|
|
@@ -358,7 +367,7 @@ var require_out = __commonJS({
|
|
|
358
367
|
"../packages/tool-contract/out/index.js"(exports) {
|
|
359
368
|
"use strict";
|
|
360
369
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
361
|
-
exports.ASCENDA_SEMANTIC_PROVENANCE = exports.ASCENDA_COLLABORATION_CONSENT_SCOPE = exports.ASCENDA_SEMANTIC_CONSENT_SCOPE = exports.ASCENDA_PROVENANCE = exports.ASCENDA_CONSENT_SCOPE = exports.EVENT_WORKLOAD_CATEGORY = exports.COLLABORATION_EVENT_TYPES = exports.SEMANTIC_WORK_SIGNAL_EVENT_TYPES = void 0;
|
|
370
|
+
exports.ASCENDA_SEMANTIC_PROVENANCE = exports.ASCENDA_HISTORICAL_CONSENT_SCOPE = exports.ASCENDA_COLLABORATION_CONSENT_SCOPE = exports.ASCENDA_SEMANTIC_CONSENT_SCOPE = exports.ASCENDA_PROVENANCE = exports.ASCENDA_CONSENT_SCOPE = exports.EVENT_WORKLOAD_CATEGORY = exports.COLLABORATION_EVENT_TYPES = exports.SEMANTIC_WORK_SIGNAL_EVENT_TYPES = void 0;
|
|
362
371
|
exports.SEMANTIC_WORK_SIGNAL_EVENT_TYPES = [
|
|
363
372
|
"approach_churn_detected",
|
|
364
373
|
"goal_drift_detected",
|
|
@@ -415,6 +424,7 @@ var require_out = __commonJS({
|
|
|
415
424
|
exports.ASCENDA_PROVENANCE = "ai_work_telemetry";
|
|
416
425
|
exports.ASCENDA_SEMANTIC_CONSENT_SCOPE = "semantic_work_signals";
|
|
417
426
|
exports.ASCENDA_COLLABORATION_CONSENT_SCOPE = "workflow_telemetry";
|
|
427
|
+
exports.ASCENDA_HISTORICAL_CONSENT_SCOPE = "historical_import";
|
|
418
428
|
exports.ASCENDA_SEMANTIC_PROVENANCE = "semantic_work_signals";
|
|
419
429
|
}
|
|
420
430
|
});
|
|
@@ -820,6 +830,7 @@ var require_eventSender = __commonJS({
|
|
|
820
830
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
821
831
|
exports.AscendaEventSender = exports.AscendaSemanticEventError = void 0;
|
|
822
832
|
exports.buildEventPayload = buildEventPayload;
|
|
833
|
+
var afterHours_1 = require_afterHours();
|
|
823
834
|
var tool_contract_1 = require_out();
|
|
824
835
|
var eventLog_1 = require_eventLog();
|
|
825
836
|
var http_1 = require_http();
|
|
@@ -837,6 +848,7 @@ var require_eventSender = __commonJS({
|
|
|
837
848
|
toolInstallationId: identity.toolInstallationId,
|
|
838
849
|
source: identity.source,
|
|
839
850
|
occurredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
851
|
+
utcOffsetMinutes: (0, afterHours_1.utcOffsetMinutesAt)(/* @__PURE__ */ new Date()),
|
|
840
852
|
sessionId: identity.sessionId ?? void 0,
|
|
841
853
|
workspaceHash: identity.workspaceHash ?? void 0,
|
|
842
854
|
consentScope: tool_contract_1.ASCENDA_CONSENT_SCOPE,
|
|
@@ -890,6 +902,7 @@ var require_eventSender = __commonJS({
|
|
|
890
902
|
source: this.config.source,
|
|
891
903
|
eventType: mapped.eventType,
|
|
892
904
|
occurredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
905
|
+
utcOffsetMinutes: (0, afterHours_1.utcOffsetMinutesAt)(/* @__PURE__ */ new Date()),
|
|
893
906
|
severity: "low",
|
|
894
907
|
sessionId: this.config.sessionId ?? void 0,
|
|
895
908
|
workspaceHash: this.config.workspaceHash ?? void 0,
|
|
@@ -918,6 +931,7 @@ var require_eventSender = __commonJS({
|
|
|
918
931
|
source: this.config.source,
|
|
919
932
|
eventType: mapped.eventType,
|
|
920
933
|
occurredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
934
|
+
utcOffsetMinutes: (0, afterHours_1.utcOffsetMinutesAt)(/* @__PURE__ */ new Date()),
|
|
921
935
|
severity: "low",
|
|
922
936
|
sessionId: this.config.sessionId ?? void 0,
|
|
923
937
|
workspaceHash: this.config.workspaceHash ?? void 0,
|
|
@@ -1399,8 +1413,8 @@ var require_out2 = __commonJS({
|
|
|
1399
1413
|
"../packages/tool-kit/out/index.js"(exports) {
|
|
1400
1414
|
"use strict";
|
|
1401
1415
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1402
|
-
exports.
|
|
1403
|
-
exports.isRetryableStatus = exports.parseIngestResponse = void 0;
|
|
1416
|
+
exports.renewToolToken = exports.getPairingStatus = exports.createPairingSession = exports.AscendaApiError = exports.liveBusSocketCandidates = exports.liveBusSocketPath = exports.bucketPromptSize = exports.emitLiveSignal = exports.hashWithMachineSalt = exports.readOrCreateMachineSalt = exports.machineSaltFilePath = exports.markFailureNotified = exports.shouldAnnounceFailure = exports.recordSendOutcome = exports.readCollectorState = exports.defaultStateFilePath = exports.readTokenFile = exports.persistEventWriteToken = exports.defaultTokenFilePath = exports.recordTurnStart = exports.consumeTurnDurationMs = exports.loadCliAgentConfig = exports.deliverHookEvents = exports.DEFAULT_API_BASE_URL = exports.resolveEventLogPath = exports.expandUserPath = exports.appendEventLog = exports.EVENT_LOG_ENV_VAR = exports.buildEventPayload = exports.AscendaSemanticEventError = exports.AscendaEventSender = exports.looksLikeCorrection = exports.outcomeForHook = exports.inferOutcome = exports.getNestedNumber = exports.getNestedString = exports.getNested = exports.getNumber = exports.getString = exports.localHourAt = exports.utcOffsetMinutesAt = exports.isAfterHours = exports.bucketDurationMs = exports.bucketLinesChanged = exports.invitesDebrief = exports.classifyWorkMilestone = exports.isReworkGitAction = exports.classifyGitAction = exports.isVerificationCommand = exports.classifyCommand = void 0;
|
|
1417
|
+
exports.isRetryableStatus = exports.parseIngestResponse = exports.postToolEventsBatch = exports.postToolEvent = void 0;
|
|
1404
1418
|
var commandClassifier_1 = require_commandClassifier();
|
|
1405
1419
|
Object.defineProperty(exports, "classifyCommand", { enumerable: true, get: function() {
|
|
1406
1420
|
return commandClassifier_1.classifyCommand;
|
|
@@ -1433,6 +1447,12 @@ var require_out2 = __commonJS({
|
|
|
1433
1447
|
Object.defineProperty(exports, "isAfterHours", { enumerable: true, get: function() {
|
|
1434
1448
|
return afterHours_1.isAfterHours;
|
|
1435
1449
|
} });
|
|
1450
|
+
Object.defineProperty(exports, "utcOffsetMinutesAt", { enumerable: true, get: function() {
|
|
1451
|
+
return afterHours_1.utcOffsetMinutesAt;
|
|
1452
|
+
} });
|
|
1453
|
+
Object.defineProperty(exports, "localHourAt", { enumerable: true, get: function() {
|
|
1454
|
+
return afterHours_1.localHourAt;
|
|
1455
|
+
} });
|
|
1436
1456
|
var payload_1 = require_payload();
|
|
1437
1457
|
Object.defineProperty(exports, "getString", { enumerable: true, get: function() {
|
|
1438
1458
|
return payload_1.getString;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"publishConfig": { "access": "public" },
|
|
3
3
|
"name": "@ascenda-one/agent-mcp",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.12",
|
|
5
5
|
"description": "MCP server exposing ascenda_emit_work_signal — the one submission interface for agent-observed (semantic) work-friction signals.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|