@asc-agent/runtime 0.5.3 → 0.5.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/README.md
CHANGED
|
@@ -7,7 +7,7 @@ proceed-by-default, escalation, audit, the external-write guard, host integratio
|
|
|
7
7
|
here.
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g @asc-agent/runtime@0.5.
|
|
10
|
+
npm install -g @asc-agent/runtime@0.5.4
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
npm owns the executable link (on Windows, npm's own `asc.cmd`). This package never edits
|
package/dist/cli/asc.js
CHANGED
|
@@ -929,7 +929,11 @@ async function attachLocalWorkspace(projectRoot, git, declaredWorkspace) {
|
|
|
929
929
|
const home = ascHome();
|
|
930
930
|
const index = await readIndex(home);
|
|
931
931
|
const existing = lookupLocator(index, projectRoot);
|
|
932
|
-
|
|
932
|
+
// **자리만 있고 workspace 가 없으면 등록된 것이 아니다.** 이 상태에서 "이미 등록됨" 이라고
|
|
933
|
+
// 답하면 붙기는 성공하는데 기계 전체 화면에는 끝내 나타나지 않는다 — 등록된 서비스가
|
|
934
|
+
// 그 workspace 를 영영 돌지 않는다. 색인이 부분적으로 지워진 자리에서 실제로 그랬다.
|
|
935
|
+
const orphaned = existing !== null && index.workspaces[existing.workspaceId] === undefined;
|
|
936
|
+
if (existing && !orphaned && !declaredWorkspace) {
|
|
933
937
|
console.log(`Already registered workspace: ${existing.workspaceId}`);
|
|
934
938
|
return existing.root;
|
|
935
939
|
}
|
|
@@ -961,8 +965,11 @@ async function attachLocalWorkspace(projectRoot, git, declaredWorkspace) {
|
|
|
961
965
|
console.log(`같은 프로젝트라면: asc init --profile <id> --workspace ${hits[0].workspace.workspaceId}` +
|
|
962
966
|
(hits.length > 1 ? ' (후보 중 하나를 골라라)' : ''));
|
|
963
967
|
}
|
|
964
|
-
|
|
968
|
+
// 상태가 남아 있으면 그 id 로 되돌린다 — 새 id 를 주면 세션·증거가 있는 자리가 고아로 남는다.
|
|
969
|
+
const workspaceId = orphaned && existing ? existing.workspaceId : newWorkspaceId();
|
|
965
970
|
const root = join(home, 'workspaces', workspaceId);
|
|
971
|
+
if (orphaned)
|
|
972
|
+
console.log(`This location pointed at ${workspaceId}, which the index no longer lists — registering it again.`);
|
|
966
973
|
await writeIndex(home, register(index, {
|
|
967
974
|
workspaceId,
|
|
968
975
|
root,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const RUNTIME_PACKAGE = "@asc-agent/runtime";
|
|
2
2
|
export declare const BOOTSTRAP_PACKAGE = "@asc-agent/bootstrap";
|
|
3
3
|
/** runtime과 bootstrap은 초기 release에서 lockstep이다. */
|
|
4
|
-
export declare const RELEASE_VERSION = "0.5.
|
|
5
|
-
export declare const RUNTIME_SPEC = "@asc-agent/runtime@0.5.
|
|
6
|
-
export declare const BOOTSTRAP_SPEC = "@asc-agent/bootstrap@0.5.
|
|
4
|
+
export declare const RELEASE_VERSION = "0.5.4";
|
|
5
|
+
export declare const RUNTIME_SPEC = "@asc-agent/runtime@0.5.4";
|
|
6
|
+
export declare const BOOTSTRAP_SPEC = "@asc-agent/bootstrap@0.5.4";
|
|
7
7
|
/**
|
|
8
8
|
* 아직 설치되지 않은 machine에서 그대로 실행되는 형태 (C-14 §3.4).
|
|
9
9
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
export const RUNTIME_PACKAGE = '@asc-agent/runtime';
|
|
10
10
|
export const BOOTSTRAP_PACKAGE = '@asc-agent/bootstrap';
|
|
11
11
|
/** runtime과 bootstrap은 초기 release에서 lockstep이다. */
|
|
12
|
-
export const RELEASE_VERSION = '0.5.
|
|
12
|
+
export const RELEASE_VERSION = '0.5.4';
|
|
13
13
|
export const RUNTIME_SPEC = `${RUNTIME_PACKAGE}@${RELEASE_VERSION}`;
|
|
14
14
|
export const BOOTSTRAP_SPEC = `${BOOTSTRAP_PACKAGE}@${RELEASE_VERSION}`;
|
|
15
15
|
/**
|